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

Method _set_output

lib/utility/Keyboard.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21void Keyboard_Class::_set_output(const std::vector<int> &pinList,
22 uint8_t output)
23{
24 output = output & 0B00000111;
25
26 digitalWrite(pinList[0], (output & 0B00000001));
27 digitalWrite(pinList[1], (output & 0B00000010));
28 digitalWrite(pinList[2], (output & 0B00000100));
29}
30
31uint8_t Keyboard_Class::_get_input(const std::vector<int> &pinList)
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected