AnotherJohnH / picoX7

Software simulation of the Yamaha DX7 with a MIDI interface for the Raspberry Pi Pico
MIT License
13 stars 1 forks source link

Display with i2s "backpack" #5

Open probonopd opened 1 month ago

probonopd commented 1 month ago

It would be nice if we could use a display module with a i2s "backpack" so that we have to wire up only 4 wires for the display instead of many.

image

AnotherJohnH commented 1 month ago

Agree that would be nicer.

Have recently added I2C support to the SDK "Platform". Having quickly looked up an I2C 16x2 LCD* can see that, unsurprsingly, the internal register set looks the same as the parallel LCD devices. So the work would be...

  1. Write a new version of MTL/Lcd.h ripping out the raw GPIO use and putting in an instance of MTL::I2C MTL/rp2040/I2C.h
  2. Add another hardware target to the build with some conditional compilation in picoX7.cpp to select the I2C LCD driver.

Might buy one to play with when I next order some bits.

*am going to assume that an I2C AlphaNum LCD and and a parallel LCD with a "backpack" are reasonably similar devices

AnotherJohnH commented 1 month ago

Have completed the trivial parts here 721a3eb Remaining work is to complete implementation of Platform/MTL/AlphaNumLcd_I2C.h