From the documentation I can find, its not clear what gpio.write(true) does.
The code does a native write of 1 or 0 but how does this relate the pin state of high or low?
if 1 is high and 0 is low, then I would suggest that the api would be more self explanatory if the write took an enum similar to:
enum PinState {
high(1),
low(0),
int value;
PinState(this.value);
}'
gpio.write(PinState.low);
From the documentation I can find, its not clear what gpio.write(true) does.
The code does a native write of 1 or 0 but how does this relate the pin state of high or low?
if 1 is high and 0 is low, then I would suggest that the api would be more self explanatory if the write took an enum similar to: