Relocated example and updated readme
This commit is contained in:
parent
a90c31fb3b
commit
44d7875f7e
|
@ -4,6 +4,7 @@
|
||||||
- [Read ADCs](#read-adcs)
|
- [Read ADCs](#read-adcs)
|
||||||
- [Read GPIOs](#read-gpios)
|
- [Read GPIOs](#read-gpios)
|
||||||
- [Read Encoders](#read-encoders)
|
- [Read Encoders](#read-encoders)
|
||||||
|
- [Read Speeds](#read-speeds)
|
||||||
- [LED Rainbow](#led-rainbow)
|
- [LED Rainbow](#led-rainbow)
|
||||||
- [Reset Inventor](#reset-inventor)
|
- [Reset Inventor](#reset-inventor)
|
||||||
- [Motor Examples](#motor-examples)
|
- [Motor Examples](#motor-examples)
|
||||||
|
@ -22,13 +23,14 @@
|
||||||
- [Velocity Tuning](#velocity-tuning)
|
- [Velocity Tuning](#velocity-tuning)
|
||||||
- [Position on Velocity Tuning](#position-on-velocity-tuning)
|
- [Position on Velocity Tuning](#position-on-velocity-tuning)
|
||||||
- [Servo Examples](#servo-examples)
|
- [Servo Examples](#servo-examples)
|
||||||
- [Single Servos](#single-servo)
|
- [Single Servo](#single-servo)
|
||||||
- [Multiple Servos](#multiple-servos)
|
- [Multiple Servos](#multiple-servos)
|
||||||
- [Simple Easing](#simple-easing)
|
- [Simple Easing](#simple-easing)
|
||||||
- [Servo Wave](#servo-wave)
|
- [Servo Wave](#servo-wave)
|
||||||
- [Calibration](#calibration)
|
- [Calibration](#calibration)
|
||||||
- [Audio Examples](#audio-examples)
|
- [Audio Examples](#audio-examples)
|
||||||
- [Tone Song](#tone-song)
|
- [Tone Song](#tone-song)
|
||||||
|
- [Motor Song](#motor-song)
|
||||||
|
|
||||||
## Function Examples
|
## Function Examples
|
||||||
|
|
||||||
|
@ -50,6 +52,12 @@ Shows how to initialise and read the 6 GPIO headers of Inventor 2040 W.
|
||||||
Demonstrates how to read the angles of Inventor 2040 W's two encoders.
|
Demonstrates how to read the angles of Inventor 2040 W's two encoders.
|
||||||
|
|
||||||
|
|
||||||
|
### Read Speeds
|
||||||
|
[read_speeds.py](read_speeds.py)
|
||||||
|
|
||||||
|
Demonstrates how to read the speeds of Inventor 2040 W's two encoders.
|
||||||
|
|
||||||
|
|
||||||
### LED Rainbow
|
### LED Rainbow
|
||||||
[led_rainbow.py](led_rainbow.py)
|
[led_rainbow.py](led_rainbow.py)
|
||||||
|
|
||||||
|
|
|
@ -43,4 +43,4 @@ while not board.switch_pressed():
|
||||||
print(NAMES[i], "=", captures[i].revolutions_per_second, end=", ")
|
print(NAMES[i], "=", captures[i].revolutions_per_second, end=", ")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
time.sleep(SLEEP)
|
time.sleep(SLEEP)
|
Loading…
Reference in New Issue