Poor I/O pin addressing in micro:python
Posted: Wed May 19, 2021 12:58 pm
As far as I can tell, the standard MicroPython I/O control statements such as: pin6.write_digital(0) do not provide a way to change the pin number "on the fly." Thus a program cannot address a series of I/O pins in a loop as you might with:
while X < 7
pin(x).digital_write(my_list[x])
etc...
Perhaps the compiler-interpreter team could add such a capability to the next code release? Comments welcome.
while X < 7
pin(x).digital_write(my_list[x])
etc...
Perhaps the compiler-interpreter team could add such a capability to the next code release? Comments welcome.