Re: 1.3" SH1106 uOLED Display Module (HCMODU0058 & HCMODU005
This site has been the most useful for my PIC Microcontroller based SH1106 project, so I thought I would show you my result. Note that I did not buy the OLED board from HC, and it is not as good: it has no CS pin, and was more expensive. As soon as HC have stock I want more.
The device is a water tank gauge for the two water tanks on my boat. The two tank senders have 16 switches (or 20 on the longer one) which change the resistance, so the output falls into one of a number of "slots". The large numbers on the OLED show the midrange of the slot, in litres; calibrated by noting the readings on the D/A converter while filling the tanks.
The bargraph is this number as a percentage of the maximum value for the tank. The filled > character points to the aft tank, as this is the button that was pressed.
The smaller 999 on the display is just debug info from the sensor reading the ambient light, used to set the contrast of the OLED.
Schematic diagram and source code for PIC Microcontroller using mikroC Pro here