Update naming convention for GPIO control macros (#23085)

This commit is contained in:
Ryan
2024-02-17 00:18:26 +11:00
committed by GitHub
parent 6890c1aeb8
commit b8646bc40b
12 changed files with 100 additions and 83 deletions

View File

@ -19,14 +19,14 @@
bool pins[32] = {0};
bool pinIsInputHigh[32] = {0};
uint8_t mockSetPinInputHigh(pin_t pin) {
uint8_t mock_set_pin_input_high(pin_t pin) {
// dprintf("Setting pin %d input high.", pin);
pins[pin] = true;
pinIsInputHigh[pin] = true;
return 0;
}
bool mockReadPin(pin_t pin) {
bool mock_read_pin(pin_t pin) {
return pins[pin];
}