I recently bought a 1.5" oled display from sparkfun. Part number uOLED-128-G1. It receives serial data to display messages on the screen. I got it to display simple commands but it lags tremendously between each command. I had to add a pause between each command to avvoid skipping but it looks horrible in real time. Any ideas?
Code:DEFINe CHAR_PACING 1000 define OSC 4 baud con 2 counter var word Main: pause 10000 serout GPIO.2, baud, [$55] pause 500 'Displays James Richards! then holds for 2 seconds serout GPIO.2, baud, [$73, 6, 3, 2, $f8, $00, "James", $00] pause 100 serout GPIO.2, baud, [$73, 4, 4, 2, $f8, $00, "Richards!", $00] pause 10000 'Clears screen serout GPIO.2, baud, [$45] pause 200 for counter = 0 to 99 serout GPIO.2, baud, [$53, 5, 5, 0, $ff, $ff, 10, 10, #counter, $00] pause 1000 serout GPIO.2, baud, [$45] pause 150 next counter END




Bookmarks