Alan Yorinks
Alan Yorinks
I am not sure how quickly I can get to this but would be willing to give it a try. That being said, without having the ability to send something...
If first testing if either of the buttons is pressed and then adding a short delay before reading the other button, wouldn't that solve the "race" condition?
The procedure is not exactly intuitive. Here is a guide on how to do this: https://microbit-playground.co.uk/howto/add-python-module-microbit-micropython I find it easier to just copy the code I wish to import to...
This may cause more issues for you than it is worth. One cannot use both the REPL and persistent file system manipulation at the same time - they both compete...
Also, it is very easy to add microfs as an external tool if one wishes to do so. https://mryslab.github.io/pseudo-microbit/install/#adding-uflash-and-microfs-as-external-tools
The value passed into spi.write() needs to be a buffer type object., such as a bytearray Take a look at this article and it should explain it: https://forum.micropython.org/viewtopic.php?t=2797
Unfortunately I have no experience with SPI. These articles may be of some help: https://learn.adafruit.com/micropython-hardware-spi-devices/spi-master https://forum.micropython.org/viewtopic.php?t=3323 The [spi.init](https://microbit-micropython.readthedocs.io/en/latest/spi.html#microbit.spi.init) method has a baudrate parameter, but I am not sure if that...
@deshipu You beat me to it ;-). Well at least I used one of your postings as a resource.
The next time it happens I will upload the debug console output.
@KenT2 I am not sure if the question is directed towards me, but I develop on Linux, so I don't know if this happens on Windows or not.