Relocated example and updated readme

patch/inventor_encoders
ZodiusInfuser 2024-04-03 14:37:26 +01:00
rodzic a90c31fb3b
commit 44d7875f7e
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -4,6 +4,7 @@
- [Read ADCs](#read-adcs)
- [Read GPIOs](#read-gpios)
- [Read Encoders](#read-encoders)
- [Read Speeds](#read-speeds)
- [LED Rainbow](#led-rainbow)
- [Reset Inventor](#reset-inventor)
- [Motor Examples](#motor-examples)
@ -22,13 +23,14 @@
- [Velocity Tuning](#velocity-tuning)
- [Position on Velocity Tuning](#position-on-velocity-tuning)
- [Servo Examples](#servo-examples)
- [Single Servos](#single-servo)
- [Single Servo](#single-servo)
- [Multiple Servos](#multiple-servos)
- [Simple Easing](#simple-easing)
- [Servo Wave](#servo-wave)
- [Calibration](#calibration)
- [Audio Examples](#audio-examples)
- [Tone Song](#tone-song)
- [Motor Song](#motor-song)
## 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.
### 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.py](led_rainbow.py)

Wyświetl plik

@ -43,4 +43,4 @@ while not board.switch_pressed():
print(NAMES[i], "=", captures[i].revolutions_per_second, end=", ")
print()
time.sleep(SLEEP)
time.sleep(SLEEP)