MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / init

Method init

Devices/m5stack-cardputer/Source/keyboard/keyboard.cpp:46–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46void Keyboard::init()
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
66
67Point2D_t Keyboard::getKey()

Callers 5

initAxpFunction · 0.45
startLvglMethod · 0.45
startLvglMethod · 0.45
startLvglMethod · 0.45
initAxpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected