Hi, I am building a cluster display for a car I am building for a car and so far have laid out the information I need, can read and map CAN data but I am stuck on something very silly.
The OLED I am using is a waveshare 1.5 mono OLED driven over SPI and the screen is working and displaying information as I would expect when static.
In the scope I have the following:
int ECT1 = 12;
Then within the void loop I have the following:
GUI_DisString_EN(0, 4, "ECT:", &Font16, FONT_BACKGROUND, WHITE); GUI_DisString_EN(75, 4, ECT1, &Font16, FONT_BACKGROUND, WHITE); OLED_DisPage(0, 1); OLED_ClearBuf();
On the call up of the int using ECT1 I would expect the screen to display a number however I am receiving a full block of print - if I took out ECT1 and replace with "12" that works no issues
Is there a better way to do this? I am using the waveshare lib and maybe this is where the complications are however this is a screen used a lot and I can find very little information on how I can have numbers mapped to the screen output
I have noticed on here when uploading the ECT1 puts the 1 as green but I have tried other names such as EC and no alteration of the int makes any change
I have also tried
GUI_DisNum(75, 4, ECT1, &Font16, FONT_BACKGROUND, WHITE); which kept resetting the Arduino
Thank you for your time