poweroff.py
1 # -*- coding: utf-8 -*-
2 
3 import sys
4 from ev3dev import *
5 
6 if ev3_init() < 1: sys.exit( 1 )
7 
8 if raw_input( 'Enter \'bye\' to power-off the EV3 brick: ' ).lower() == 'bye' :
10  print 'Goodbye!'
11 else:
12  print 'Misspelling.'
13 
14 ev3_uninit()