Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Energenie Demo

A fork of the Python game 'Memory Puzzle' used to demonstrate the Energenie board

  • energenie.py is a module containing functions to switch plug sockets on and off
  • energenie-demo.py is a basic demonstration of switching power switches on and off with Python
  • memorypuzzle.py is a modified version of a game which plays music and turns on a power switch when the player wins

Usage of the energenie module:

from energenie import switch_on, switch_off
from time import sleep

# turn a plug socket on and off by number
switch_on(1)
switch_off(1)

switch_on(3)
switch_off(3)

# turn all plug sockets on and off
switch_on(0)
switch_off(0)

# turn some plug sockets on, then turn them off after 10 seconds
switch_on(1)
switch_on(4)
sleep(10)
switch_off(1)
switch_off(4)

See a video of the memory puzzle game demonstration at http://vimeo.com/99159077

About

A fork of the Python game 'Memory Puzzle' used to demonstrate the Energenie board

Resources

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

You can’t perform that action at this time.