PalmOrb : Instructions : Sample Code
On this page I hope to host sample code for communicating with PalmOrb. This is for users who find the existing LCD software (LCDC, LCDSmartie, LCDproc, etc) too restrictive and want to play with their own code.
In the longer term I would like code samples for many platforms in many languages (C, C++, C#, VB, etc) - if you want to submit a sample then post in the forums; and I'll put them here.
Simple sample 1
Edit the file so the DEVICE define is set to point to your serial device. Then compile (Unix: "gcc sample.c -o sample"), then run it; you should now see "Hello World" appearing on the PalmOrb LCD.
- C: UNIX code
- C: Windows (Win32) Console code
- Bourne shell: UNIX script
- PERL: UNIX script (requires Device::SerialPort module)
- PERL: Windows script (requires Win32::SerialPort module)
Simple sample 2
Same as Simple sample 1, except it clears the screen and centers the text.
- C: UNIX code
- C: Windows (Win32) Console code
- Bourne shell: UNIX script
- PERL: UNIX script (requires Device::SerialPort module)
- PERL: Windows script (requires Win32::SerialPort module)