That looks a really impressive project.
$49 for the display. Hmm? Sounds OK.
Could you post some code to help get us started?
e
Sure, its pretty simple.
Here is some really crude code to get you going. Step #1, you must wait 500ms for the power to initialize to the OLED display before sending any commands.
Code:
'wait at least 500ms for power to initialize to OLED
pause 550
Step #2: If you don't send any commands within 5 seconds (I think its 5) the OLED displays its own splash screen/marque. So, you send an "auto baud rate" detect command to the OLED to detect the operating baud rate of the serout of the PICAXE. Also, the OLED's manual says it takes from 1 to "several" milliseconds for the OLED to respond to commands. So I chose to wait 50ms between commands. You could probably do with shorter.
Code:
' Initialize OLED - auto baudrate detect
serout 2, T2400, ("U")
pause 50
Step#3: Now that you have the PICAXE OLED connected and talking, its time to display whatever. For this, you can view the manual of commands and display text as a string or single character, images from the onboard microSD card, or even videos from the onboard microSD card. Of course, it also supports commands as putpixel, line, triangle, rectangle, polygon etc. For example, I can draw two horizontal lines running the width of the display, one at the top and one at the bottom of the display, in a yellowish/green color.
Code:
serout 2, T2400, ("L",$00,$00,$5F,$00,$7F,$80)
pause 50
serout 2, T2400, ("L",$00,$3F,$5F,$3F,$7F,$80)
pause 50
Thats the gist of things. Like I previously posted, you can get by with hooking up +5, ground and Rx pins on the OLED (so its a 1 wire hookup to the PICAXE, PICAXE sends out commands on a serout compatible pin) however if you want to receive acknowledgements from the OLED, you need to receive them from the OLED and hook up the Tx from the OLED to an input pin on the PICAXE.
Here's a schematic:
Let me know if guys would like to know anything else!