Practical PIC Projects

 

 

Serial Addressable RGB PWM LED Driver

 


ZFRGB Command Interface

zfrgb.exe is a command interface for configuring and testing the SAD through the serial port of a PC. It's a quite basic but functional application to enable the SAD to be tested and settings altered and saved.  zfrgb.pl is the perl source code should you wish to adapt or change it.

The exe needs to be run from within a cmd.exe window (start - run - cmd.exe)

If no command line switches are specified it defaults to serial port Comm1 at 9600bps. You can change this from the command line as described below.

C:\perlzcode>zfrgb /?
Serial Addressable RGB LED PWM Driver control interface
Version 1.1 for Windows


zfrgb.exe [/p:commport] [/b:bit_rate]

Supports Comm ports 1-4
Supports bit rates 1200, 2400, 9600, 19200, 38400

Default is COM1, 9600bps

Example use:
zfrgb.exe /p:2 /b:1200

 

The following screen dumps show examples of the control interface application in use.

 

Software