MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / begin

Method begin

lib/utility/Keyboard.cpp:46–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void Keyboard_Class::begin()
47{
48 for (auto i : output_list)
49 {
50 gpio_reset_pin((gpio_num_t)i);
51 gpio_set_direction((gpio_num_t)i, GPIO_MODE_OUTPUT);
52 gpio_set_pull_mode((gpio_num_t)i, GPIO_PULLUP_PULLDOWN);
53 digitalWrite(i, 0);
54 }
55
56 for (auto i : input_list)
57 {
58 gpio_reset_pin((gpio_num_t)i);
59 gpio_set_direction((gpio_num_t)i, GPIO_MODE_INPUT);
60 gpio_set_pull_mode((gpio_num_t)i, GPIO_PULLUP_ONLY);
61 }
62
63 _set_output(output_list, 0);
64}
65
66uint8_t Keyboard_Class::getKey(Point2D_t keyCoor)
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected