C.7 Sample Programs
Sample programs illustrating the use of the LCD/keypad module with the Prototyping
Board are provided in the
These sample programs use the external I/O bus on the Rabbit 3000 chip, and so the
#define PORTA_AUX_IO
Each sample program has comments that describe the purpose and function of the pro-
gram. Follow the instructions at the beginning of the sample program. To run a sample
program, open it with the
menu, and then run it by selecting
be in Program mode (see Section 4.3, "Serial Programming Cable"), and must be con-
nected to a PC using the programming cable as described in Section 2.2.2.
Complete information on Dynamic C is provided in the Dynamic C User's Manual.
The following sample programs are found in the
•
KEYPADTOLED.C
program will light up an LED on the LCD/keypad module and will display a message
on the LCD when a key press is detected. The DS1 and DS2 LEDs on the Prototyping
Board will also light up.
—This program demonstrates how to draw primitive features from the
•
LCDKEYFUN.C
graphic library (lines, circles, polygons), and also demonstrates the keypad with the key
release option.
•
SWITCHTOLED.C
program will light up an LED on the LCD/keypad module and will display a message
on the LCD when a switch press is detected. The DS1 and DS2 LEDs on the Prototyp-
ing Board will also light up.
88
SAMPLES\RCM3200
line is already included in the sample programs.
menu (if it is not still open), compile it using the
File
in the
Run
—This program demonstrates the use of the external I/O bus. The
—This program demonstrates the use of the external I/O bus. The
directory.
menu. The RCM3209/RCM3229 must
Run
SAMPLES\RCM3200\LCD_KEYPAD
RabbitCore RCM3209/RCM3229
Compile
folder.
Need help?
Do you have a question about the RabbitCore RCM3209 and is the answer not in the manual?
Questions and answers