I am trying to change the comms speed between the micro and the display, but every variation on the syntax just produces a blank display when the code is run.
I can't use the Workshop facility because the display is now fixed into the device for which it was intended so I can only access the graphics processor using serial commands through the ATMega 328.
The "setbaudWait" command is the problem area (i think)..
The code I am trying to get working is as below, and is part of the void setup functions. The default 9600 baud is working fine but the added lines to change the baud rate just don't work. Any help greatly appreciated.
I can't use the Workshop facility because the display is now fixed into the device for which it was intended so I can only access the graphics processor using serial commands through the ATMega 328.
The "setbaudWait" command is the problem area (i think)..
The code I am trying to get working is as below, and is part of the void setup functions. The default 9600 baud is working fine but the added lines to change the baud rate just don't work. Any help greatly appreciated.
Code:
// Set the data rate to the OLED and initialise digitalWrite(OUTPUT_OLED_RST,0); delay(100); digitalWrite(OUTPUT_OLED_RST,1); delay(100); DisplaySerial.begin(9600); Display.SSTimeout(0); DisplaySerial.flush(); DisplaySerial.end(); Display.setbaudWait(BAUD_115200); delay(2000); DisplaySerial.begin(115200); delay(5000);
Comment