dpoulson / r2_control

Python code to control an R2D2 (or other astromech) from a Raspberry Pi over i2c
http://r2djp.co.uk/
GNU General Public License v2.0
38 stars 13 forks source link

Make dome and drive enable options controlled from GPIO rather than servo switch #62

Closed dpoulson closed 5 years ago

dpoulson commented 6 years ago

Currently to enable/disable dome and drive motors, a servo switch is used. This isn't ideal, and if there is a problem with the i2c bus then the drive is unusable.

Instead, a gpio pin should be used and a dedicated module added to the code. This will make it a lot safer too.

dpoulson commented 5 years ago

Initial commit of class to control GPIO pins. A csv file configures the pins with a descriptive name, and sets a default value.

https://github.com/dpoulson/r2_control/commit/2deeece715512b1d4c2280985b9092980c472ec2

dpoulson commented 5 years ago

GPIO code is more or less working. Can reference by pin currently, but not name from config file