mikemontauk
Active member
Hi! Full code attached; video here https://drive.google.com/file/d/1ByJGH3-74UsAg6_n22N2JxHRnuG7SkjR/view?usp=sharing
This project receives midi notes (songs) and illuminates LEDs in time with the notes. When a user presses a button the next 5 notes received are mapped to 5 LEDs; then, when any of those 5 notes is/are received, the corresponding led(s) is/are illuminated. If a note that is not assigned to an led is received an error message occurs. This is a primitive "Midi Decoder" as some call it.
The display is scrolling left to right but I have no scroll instruction in my code.
I'm using the Teensy LC.
For reference I am using: 'MakerFocus 2pcs I2C OLED Display Module 0.91 Inch I2C SSD1306 OLED Display Module White I2C OLED Screen Driver DC 3.3V~5V for Ar duino' (it was 2 for $8.68 on amazon)
The 4 display pins are wired to Teensy LC's 3.3v, GND, SCL0 SDA0 and the display is otherwise working and displaying the correct content. It seems like every time a display.X executes it scrolls the origin right one pixel but my origin is always 0,0.
(the mosfet circuit on the board is not being used)
If anyone knows why this is occurring or how to fix it I would really appreciate some help, thanks!
Tomorrow I am going to post about speeding up the code because it can't keep up with fast MIDI songs. (The output starts lagging behind the song.)
This project receives midi notes (songs) and illuminates LEDs in time with the notes. When a user presses a button the next 5 notes received are mapped to 5 LEDs; then, when any of those 5 notes is/are received, the corresponding led(s) is/are illuminated. If a note that is not assigned to an led is received an error message occurs. This is a primitive "Midi Decoder" as some call it.
The display is scrolling left to right but I have no scroll instruction in my code.
I'm using the Teensy LC.
For reference I am using: 'MakerFocus 2pcs I2C OLED Display Module 0.91 Inch I2C SSD1306 OLED Display Module White I2C OLED Screen Driver DC 3.3V~5V for Ar duino' (it was 2 for $8.68 on amazon)
The 4 display pins are wired to Teensy LC's 3.3v, GND, SCL0 SDA0 and the display is otherwise working and displaying the correct content. It seems like every time a display.X executes it scrolls the origin right one pixel but my origin is always 0,0.
(the mosfet circuit on the board is not being used)
If anyone knows why this is occurring or how to fix it I would really appreciate some help, thanks!
Tomorrow I am going to post about speeding up the code because it can't keep up with fast MIDI songs. (The output starts lagging behind the song.)