Problem displaying on OLED

Thread Starter

D1NG0

Joined Jul 28, 2021
7
Hi, I'm on a project where I would like to measure a battery voltage. For that, I have to use a Digital Current and Power Monitor, called INA260 and using the PIC18F26K80. I can already read the values of the INA260 the only problem is that when I want to show these values on an OLED it doesn't show and it doesn't seem to start. I already had a project that worked perfectly with the OLED. I just imported the OLED library for this INA260 project and I am not able to show anything. Is it some communication conflict because the two are by I2C?

Project Code: https://github.com/D1ng00/INA260_OLED
 

MrSalts

Joined Apr 2, 2020
725
Hi, I'm on a project where I would like to measure a battery voltage. For that, I have to use a Digital Current and Power Monitor, called INA260 and using the PIC18F26K80. I can already read the values of the INA260 the only problem is that when I want to show these values on an OLED it doesn't show and it doesn't seem to start. I already had a project that worked perfectly with the OLED. I just imported the OLED library for this INA260 project and I am not able to show anything. Is it some communication conflict because the two are by I2C?

Project Code: https://github.com/D1ng00/INA260_OLED
Post the code that actually works on the OLED.
 

MrSalts

Joined Apr 2, 2020
725
The ADC is assigned address 0x40
The ssd1306 display is assigned 0x3c

Look at line 99 from your Main.
Oled_WriteString(voltage_str);

As a test, replace that line with...
Oled_WriteString("OLA");

Do that just to make sure the display works when your ADC is connected.
Let me know if it correctly displays "OLA"
 
Top