transmit specific set of bits from Excel file in Mycropython
Posted: Fri Aug 12, 2022 10:21 am
Hello.
I am new to Micropython. I already have a code that runs and sends to my Raspberry pi pico a square wave to power an LED.
Now I would like it to send a set of 0 and 1 bits to run the LED. This set of bits are saved in an Excel file.
I am having trouble making my Thonny code firstly to read this Excel file (.xlsx) and then to make my ode read this set of bits..
This is what I am using now to send the square wave to my LED.
def square():
wrap_target()
set(pins, 1)
set(pins, 0)
wrap()
sm = rp2.StateMachine(0, square, freq=1000000, set_base=Pin(21))
sm.active(1)
Hope someone will help, thank you
I am new to Micropython. I already have a code that runs and sends to my Raspberry pi pico a square wave to power an LED.
Now I would like it to send a set of 0 and 1 bits to run the LED. This set of bits are saved in an Excel file.
I am having trouble making my Thonny code firstly to read this Excel file (.xlsx) and then to make my ode read this set of bits..
This is what I am using now to send the square wave to my LED.
def square():
wrap_target()
set(pins, 1)
set(pins, 0)
wrap()
sm = rp2.StateMachine(0, square, freq=1000000, set_base=Pin(21))
sm.active(1)
Hope someone will help, thank you