Hi
I'm using Matlab to control a 96-G2 Goldelox display. Whenever I change the BaudRate I'm unable to clear the screen and display things - all I get is the splash screen (not scrolling).
Here's the code, I just want to change the BaudRate and draw a circle but I can't do it.
Any ideas?
Many thanks
Chris
I'm using Matlab to control a 96-G2 Goldelox display. Whenever I change the BaudRate I'm unable to clear the screen and display things - all I get is the splash screen (not scrolling).
Here's the code, I just want to change the BaudRate and draw a circle but I can't do it.
HTML Code:
clear alldelete(instrfind)oled = serial('com8');set(oled, 'BaudRate', 115200);fopen(oled);fwrite(oled, hex2dec('00')); % Disable scrollingfwrite(oled, hex2dec('0C'));fwrite(oled, hex2dec('00'));fwrite(oled, hex2dec('00')); fwrite(oled, hex2dec('FF')); % Clear displayfwrite(oled, hex2dec('D7')); fwrite(oled, hex2dec('FF')); % Shape: filled circlefwrite(oled, hex2dec('CC'));fwrite(oled, 0)fwrite(oled, 30) % xfwrite(oled, 0)fwrite(oled, 30) % yfwrite(oled, 0)fwrite(oled, 5) % radiusfwrite(oled, 123)fwrite(oled, 123) % colorpause(5)fclose(oled)
Many thanks
Chris
Comment