Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created March 9, 2016 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/dfea789173cb18b2bcba to your computer and use it in GitHub Desktop.
Save LarsBergqvist/dfea789173cb18b2bcba to your computer and use it in GitHub Desktop.
relaydefinitions
relays = [
{ 'id' : 1, 'name' : 'Window lamp', 'state' : 'off'},
{ 'id' : 2, 'name' : 'Floor lamp', 'state' : 'off'},
{ 'id' : 3, 'name' : 'TV etc', 'state' : 'off'},
{ 'id' : 4, 'name' : 'Guitar equipment', 'state' : 'off'}
]
relayIdToPin = {
1 : 24,
2 : 25,
3 : 14,
4 : 15
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment