Skip to content

Instantly share code, notes, and snippets.

# 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