| 31 | #endif |
| 32 | |
| 33 | bool getLevel(Pin pin) { |
| 34 | #ifdef ESP_PLATFORM |
| 35 | return gpio_get_level(toEspPin(pin)) == 1; |
| 36 | #else |
| 37 | return false; |
| 38 | #endif |
| 39 | } |
| 40 | |
| 41 | bool setLevel(Pin pin, bool level) { |
| 42 | #ifdef ESP_PLATFORM |
nothing calls this directly
no test coverage detected