Some fixes for Windows 10 and support for Firmata firmware #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to let you know that I've forked your anyio repository and made a few changes that I hope you will consider incorporating into your official repository.
I had a lot of trouble getting everything to work with a SparkFun ProMicro in Windows 10. The drivers have changed and so have the Arduino libraries. I needed to update the embedded PySerial to version 3.2.1 for the system to function.
For some reason, my machine is line-buffering the serial device. This caused the first command to be interpreted, but the system would lock up after. The firmware was waiting for a second byte while the system was waiting for the buffer to flush. To fix this, I reworked the Arduino sketch to consume all available bytes rather than wait.
I also added another anyio GPIO device type for using PyMata with the Firmata firmware. I know the RaspberryPi doesn't have analog GPIO pins, but kids can do a lot with them on an Arduino. I wanted to allow kids to graduate to using analog inputs with PyMata while maintaining compatibility with their anyio programs. This driver will also work with an Arduino plugged into a RaspberryPi, potentially via one of the RPi UART HATs.
I'm planning to deploy from my repo using Firmata, but you probably want to change the default firmware back to 'arduino' in the GPIO redirection module.
Thanks for the great book and getting kids interested in software.