Go to advanced search

by notbobRSA
Thu Dec 12, 2013 9:27 am
Forum: Python
Topic: Using GPIO to update a MySQL table
Replies: 8
Views: 3974

Re: Using GPIO to update a MySQL table

Awesome, thanks for testing my code :)

It is probably the bounce from a loose connection, I'll be setting up a test bed in the next week with firm connections and I'll report back.

Thank you to everyone for their help and comments, happy holidays!
by notbobRSA
Tue Dec 10, 2013 2:30 pm
Forum: Python
Topic: Using GPIO to update a MySQL table
Replies: 8
Views: 3974

Re: Using GPIO to update a MySQL table

@DougieLawson Thanks for the tips on exception catching, your code has a syntax error (missing a comma on the except line: ) ... except OperationalError, m: print m[0] I instead used the MySQLdb.Error import as follows to give comprehensive error messages. try: db = MySQLdb.connect("localhost", "gue...
by notbobRSA
Mon Dec 09, 2013 2:11 pm
Forum: Python
Topic: Using GPIO to update a MySQL table
Replies: 8
Views: 3974

Using GPIO to update a MySQL table

Hi there, Any help would be much appreciated! I'm working on a project where I'm listening to 8 pins (7,11,12,13,15,16,18,22) for pulses (falling edges on the pins which have been pulled up). Currently I'm using threaded callbacks (see code) to run the following SQL statement which just inserts a ro...

Go to advanced search