This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# filename: colors.py | |
# written February, 2016 | |
# last edit: February 22, 2016 | |
# | |
# This is a Python 2.7 script for controlling some relays attached | |
# to an Omega Onion microcontroller board. This specific code was written | |
# for a relay control board with four separate relays, each having a set of SPDT contacts. | |
# The drive circuitry energizes a relay when the input signal is at a low voltage | |
# (logic LOW), and de-energizes the relay when the input signal is at a HIGH | |
# logic level. This may seem "backwards", so the script corrects for this (see the |