OLED displaying real time data from MCU ADC |
Having removed the Si5351 breakout board ( refer to previous post ) incorporating the I2C bus pull-up resistors on the SCL and SDA lines, I then had to provide these resistors separately ( 10K Ohm each ) for the OLED.
In my firmware, written in 'C' language, there is a look-up table of characters I created, with font based on a 8x8 pixel grid which gives exactly 16 characters per 128 pixel row. I have so far included only capital letters, 0 to 9, =, -, +, space and a few common punctuation marks; 41 in total.
It is essential to have the documentation for the Solomon Systech SSD1306 OLED driver. This was located and downloaded.
As in my post of 17 February 2019, the 10 bit analogue to digital converter ( ADC ) on my micro-controller unit ( MCU ) development board was used to sample the voltage on the slider of a potentiometer ( POT ) every 0.5s, and the result sent over I2C bus to be displayed on the OLED.
I now have the basics in place and ready to adapt to a future project which uses an OLED.
I would also like to try a white on black monochrome OLED which I might find easier to read.
( Note : OLED = Organic LED display ).