Рет қаралды 269
Developing a MIDI sequencer using the Teensy 4.0 and some rotary encoders.
How to use the extra pins underneath the Teensy 4.0
Here's a simple Arduino sketch for blinking a series of pins. It's useful when checking that wires have been soldered correctly:
github.com/Nor...
This is a basic test script for checking the rotary encoders and OLED are connected correctly.
github.com/Nor...
/*
Teensy 4.0 Experiments with 8 PDVC Rotary Encoders and OLED Display
- Reads values from 8 rotary encoders (A, B, C, D, E, F, G, H)
- Scrolls through a truncated set of musical notes (C2 to C4) based on encoder positions
- Displays the musical note corresponding to each encoder on the OLED screen
- Uses a global variable to set a default start note (C2 in this example)
- Encoder values are mapped to note names and displayed on the screen
Hardware:
- Teensy 4.0 board
- 8 rotary encoders (A, B, C, D, E, F, G, H)
- OLED display (128x64)
Libraries:
- Adafruit_SSD1306 (For the OLED)
- Encoder (For reading the rotary encoders)
- SPI (For communication)
- Wire (For I2C communication)
Written by Nordl3, 2023
*/