Step 14Serial Command and Python Extras
You can either communicate with the firmware using a terminal application such as hyperterminal or minicom, or you can use a programing language like Perl, Python or Java to orchestrate animations. The firmware sets the serial port's BAUD at 115200. Along with the code to the firmware, you will find a script called "clock.py". This python script will draw a clock face on the platter using the serial communication protocol.
The firmware sets up the display for 255 individual slices. It builds a double-buffered frame-buffer, allocating one byte to represent each slice. The double-buffer allows you to draw to the device without disturbing the current frame. Once you upload your frame, you must issue a page flip command (command f) to have it displayed.
Serial commands:
r - Report on status
h - Write to the hidden page
v - Read the visible page
c - Clear the page
s - Set single slice number to a value
f - Flip page
1 - Setup test pattern 1
2 - Setup test pattern 2
| « Previous Step | Download PDFView All Steps | Next Step » |


















































its giving me a bunch of trouble, and id hate to give up on such an awesome project, right at the end.