Main Page
Related Pages
Modules
Data Structures
Files
Examples
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'
:
9
ev3_poweroff
()
10
print
'Goodbye!'
11
else
:
12
print
'Misspelling.'
13
14
ev3_uninit
()
Generated on Fri Oct 20 2017 17:49:28 by
1.8.11