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

Function getLevel

Tactility/Source/hal/gpio/Gpio.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#endif
32
33bool getLevel(Pin pin) {
34#ifdef ESP_PLATFORM
35 return gpio_get_level(toEspPin(pin)) == 1;
36#else
37 return false;
38#endif
39}
40
41bool setLevel(Pin pin, bool level) {
42#ifdef ESP_PLATFORM

Callers

nothing calls this directly

Calls 1

toEspPinFunction · 0.85

Tested by

no test coverage detected