Help with freezing OLED display
Posted: 06 Jan 2020, 11:45
Hi all,
For the last couple of days I have been struggling with a pulse analyser with a 128x64 OLED display, based on the sketch that Phil published with a bit of code added by me to measure the supply voltage. I tested it with my Uno on a bread board setup, and all was fine. Now I have built a permanent setup, using a ProMini board, and programming it with Usbasp. Programming does not generate any errors, but the OLED freezes after a while, varying from right away to about 10 seconds. I have at one point integrated a blinking led to see if it was the board itself, but it wasn't, it's just the display that freezes.
Here is my sketch. I added a voltage divider between Vcc and A2, reading at A3: Can somebody help me to find the fault please?
Cheers,
Max.
For the last couple of days I have been struggling with a pulse analyser with a 128x64 OLED display, based on the sketch that Phil published with a bit of code added by me to measure the supply voltage. I tested it with my Uno on a bread board setup, and all was fine. Now I have built a permanent setup, using a ProMini board, and programming it with Usbasp. Programming does not generate any errors, but the OLED freezes after a while, varying from right away to about 10 seconds. I have at one point integrated a blinking led to see if it was the board itself, but it wasn't, it's just the display that freezes.
Here is my sketch. I added a voltage divider between Vcc and A2, reading at A3: Can somebody help me to find the fault please?
Cheers,
Max.