File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
setup (
4
4
name = "neopia" ,
5
- version = "0.1.6 " ,
5
+ version = "0.2.0 " ,
6
6
author = "RoboticsWare" ,
7
7
8
8
description = "Python library for Neopia neobot" ,
Original file line number Diff line number Diff line change 31
31
# wait(500)
32
32
# n.motor_move('backward')
33
33
# wait(500)
34
- # n.motor_move('stop')
35
34
36
35
# case6) Moving control by direction keys on the keyboard
37
36
# while True:
53
52
# wait(500)
54
53
# n.motor_rotate('both', 'backward', '30')
55
54
# wait(500)
56
- # n.motor_stop('both')
57
55
58
56
59
57
## Buzzer, Distance sensor
60
58
# case8) Play same note by pitch, sharp and flat, and a length of note
61
59
# n.buzzer('3', n.NOTE_NAME_C)
62
60
# n.buzzer('3', 'c')
63
-
61
+ #
64
62
# n.buzzer('4', n.NOTE_NAME_C_SHARP, '8')
65
63
# n.buzzer('4', 'c#', '8')
66
-
64
+ #
67
65
# n.buzzer('5', n.NOTE_NAME_D_FLAT, '16')
68
66
# n.buzzer('5', 'db', '16')
69
67
84
82
# n.led_off('out1')
85
83
86
84
87
- # Servo Motor
85
+ ## Servo Motor
88
86
# case 11) Rotate servo motor forth and back with speed 50% during 5s and stop
89
87
# n.servo_rotate('out2', 'forward', '50')
90
88
# wait(2000)
You can’t perform that action at this time.
0 commit comments