adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
458 stars 349 forks source link

Possibly wrap PySerial inside UART for linux systems #332

Open dhalbert opened 4 years ago

dhalbert commented 4 years ago

UART is missing:

I don't actually need these on Blinka right now, but because Blinka is used by pylint to check methods and properties, I have to disable checking for these.

makermelissa commented 4 years ago

If you are referring to the UART class in busio, that is only used in MicroPython. We have been using PySerial for anything linux based.

dhalbert commented 4 years ago

Ah, OK, though it's still true that pylint uses these definitions to vet calls to UART. Perhaps this is overloading the function of Blinka.

Could you actually wrap PySerial inside busio.UART?

makermelissa commented 4 years ago

Hmm, that's not a bad idea. Then we wouldn't need people to change code for examples.