Add toggle functionality to inputs #46

Merged
basdp merged 1 commits from master into master 2017-06-27 15:10:13 +01:00
basdp commented 2017-06-27 08:34:55 +01:00 (Migrated from github.com)

I've added code to set the controlled IO value for 'Raspberry Pi Inputs' to Toggle. This toggles the value between GPIO.HIGH and GPIO.LOW, depending on the current state.

I am currently using this functionality for a light-switch, which enables and disables a relay. It is fully tested and works.

I've added code to set the controlled IO value for 'Raspberry Pi Inputs' to Toggle. This toggles the value between GPIO.HIGH and GPIO.LOW, depending on the current state. I am currently using this functionality for a light-switch, which enables and disables a relay. It is fully tested and works.
vitormhenrique commented 2017-06-27 15:11:13 +01:00 (Migrated from github.com)

Awesome, Thanks!

Awesome, Thanks!
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#46