You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ MicroPython-Examples
3
3
4
4
This repo features examples for MicroPython similar to Arduino.
5
5
6
-
###00.Basics
6
+
###00.Basics
7
7
8
8
__boot.py__
9
9
Sample boot file which points to 'helloWorld.py' to run after booting. The examples in this repo will not include copies of the boot file. Please edit and include boot.py accordingly.
@@ -18,7 +18,7 @@ All examples can be tested on the board without having to manually upload every
18
18
19
19
====================
20
20
21
-
###01.LEDs
21
+
###01.LEDs
22
22
23
23
__blink__
24
24
Replicates Arduino's Blink sketch exactly (uses .on() and .off() and loops)
@@ -40,7 +40,7 @@ Similar to previous 'Heartbeat' script, but fades the light in and out instead o
40
40
41
41
====================
42
42
43
-
###02.Inputs
43
+
###02.Inputs
44
44
45
45
__button__
46
46
Pull down button that toggles an LED
@@ -56,7 +56,7 @@ Example of the Switch.callback function (uses interrupts)
56
56
57
57
====================
58
58
59
-
###03.Pins
59
+
###03.Pins
60
60
61
61
__PinsBasicOutput__
62
62
Example of using on of the pins to control an output (LED, motor, buzzer, relay, et al)
@@ -74,7 +74,7 @@ Prints the x,y,z values of the accelerometer every second (REPL required)
74
74
75
75
====================
76
76
77
-
###05.Servos
77
+
###05.Servos
78
78
79
79
__ServoSetAngle__
80
80
Example of setting a servo's angle, and animating it over time
@@ -84,14 +84,14 @@ Generates a random number roughly between -90 and 90, and sets it as the servo's
84
84
85
85
====================
86
86
87
-
###06.Clock
87
+
###06.Clock
88
88
89
89
__clock__
90
90
Uses the RTC (independent Real Time Clock) in the pyboard. Prints the time and date with delay of 100 microseconds. Start time is set with variables.
91
91
92
92
====================
93
93
94
-
###07.Mouse
94
+
###07.Mouse
95
95
96
96
__boot.py__
97
97
Sets the device as a HID when it boots.
@@ -101,7 +101,7 @@ Control cursor with the pyboard's accelerometer. The USR switch is used as the b
101
101
102
102
====================
103
103
104
-
###08.Sensors
104
+
###08.Sensors
105
105
106
106
__HC-SR04__
107
107
Prints distance values in cm and inches from two ultrasonic sensors connected to the pyboard. Uses the ultrasonic module available [here](https://github.com/mithru/MicropythonLibs/tree/master/Ultrasonic) and [here](https://github.com/skgsergio/MicropythonLibs/tree/master/Ultrasonic).
0 commit comments