7 if __name__ ==
'__main__':
8 print 'Waiting the EV3 brick online...' 11 print '*** ( EV3 ) Hello! ***' 16 print 'Set mode of the EV3 output port (%s)...' % ( name_port )
21 print '%s: %s' % ( name_port, mode )
26 print 'Found DC motors:' 27 for i
in range( DC_DESC__LIMIT_ ):
29 if type_inx != DC_TYPE__NONE_:
35 print 'DC motor is found, run for 5 sec...' 49 print 'DC motor is NOT found' 52 print 'Reset mode of the EV3 output port...' 56 print '%s: %s' % ( name_port, mode )
59 print '*** ( EV3 ) Bye! ***'