thearn / Python-Arduino-Command-API

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

Bug fixes and error checking #20

Closed hamsolo474 closed 10 years ago

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.