thearn / Python-Arduino-Command-API

A Python library for communicating with Arduino microcontroller boards
415 stars 151 forks source link

Python 3 compatilbity #18

Closed hamsolo474 closed 1 year ago

hamsolo474 commented 10 years ago

Hey,

I have ported your excellent library to python 3 while maintaining backwards compatibility to python 2.7, I have also fixed some spelling mistakes. feel free to hit me up at hamsolo474@hotmail.com if you have any questions

thearn commented 10 years ago

Excellent! I'm going to give your branch a test drive a bit before merging, but I appreciate the enhancements!

hamsolo474 commented 10 years ago

Hey man,

I dont know if you have had time to give my lib a thorough testing, but i have done a major update that fixes a few of the bugs in the last one, specifically in the servos class.

I have also added strict error checking which allows this api to return useful error messages, so if you try to digitalWrite(13, 'HIGH') without first setting pinMode(13, 'OUTPUT') it throws an error it will also throw errors if you try to digitalWrite(13, 'Apples'). I have added some tests to work test the new functionality.

thearn commented 9 years ago

Coming back around to checking this out (since Python 3 compatibility would be great), it looks like there is a conflict between our branches though. Can you resolve this?