nathanlong85 / midi_footswitch_v2

MIT License
0 stars 0 forks source link

Add OLED Display #7

Open nathanlong85 opened 1 year ago

nathanlong85 commented 1 year ago

Display functionality needs to be added to display PC values in #6.

Arduino has either hardware or software SPI. Ideally, I'll use hardware because it's faster (which is good for both storage AND the display). This means I need to use specific pins:

Pin Name AKA Shared Between SPI Devices Notes
50 MISO (Master In Slave Out) SDO, DO Yes
51 MOSI (Master Out Slave In) SDI, DI Yes
52 SCK (Serial Clock) SCLK Yes
53, ? CS (ChipSelect) SS (SlaveSelect) No 53 isn't required, nor is it the only pin that can be used for this. It just makes sense to use because it can't be used for any other input... 53 is the dedicated CS port when the Arduino itself is being used as a slave SPI device.

I need to figure out which pins to use for the CS lines from the devices... 53 seems to be the official one, but I'm not sure if a dedicated pin is actually needed or not.

nathanlong85 commented 1 year ago

Image

Here is the simulation I used to create the attached screenshot. The code from there is really rough and not dynamic... the values are all fixed.