Open n1md4 opened 7 years ago
The old library u8glib does not really work together with SPI.h. Switching to u8g2 would be a much better option here. https://github.com/olikraus/U8g2_Arduino
Perfect. Along with the porting guide, this now works perfectly.
Hi,
I'm using several MCP2515 & TJA1050 modules to create a CAN bus network. At the moment I have 2 nodes, one creating an input and the other with the SH1106 OLED attached displaying the output.
The OLED will not update it's display.
Here is some testing I've done so far. What do I know…
All 7 pins need wiring in order for the OLED to function. The choice between hardware and software SPI means some devices can share pins, but still means 3 other pins will take up resources.
Despite the unresponsive nature of the OLED, the CAN messages is always being received.
If I comment out the CAN.readMsgBuf() the display updates.
With only the OLED code works perfectly.
The presence of a message sending CAN node makes no difference to the operation of the OLED, the display will not update.
Despite not operating correctly, the display does light up, it just appears to hold on to old data.
The data to display should ideally not change before being rendered, and hence the displayVariables() function.