RabbitCore RCM3900 User’s Manual
69
The sample program SMTP.C allows you to send an e-mail when a switch on the Prototyp-
ing Board is pressed. Follow the instructions included with the sample program. LED DS1
on the Prototyping Board will light up when sending e-mail. Note that pin PB7 is con-
nected to both switch S2 and to the external I/O bus on the Prototyping Board, and so
switch S2 should not be used with Ethernet operations.
6.6.1 RabbitWeb Sample Programs
The sample programs can be found in the SAMPLES\RCM3900\TCPIP\RABBITWEB
folder.
BLINKLEDS.C
—This program demonstrates a basic example to change the rate at
which the DS1 and DS2 LEDs on the Prototyping Board blink.
DOORMONITOR.C
—The optional LCD/keypad module (see
Appendix C) must be plugged
in to the RCM3900 Prototyping Board when using this sample program. This program
demonstrates adding and monitoring passwords entered via the LCD/keypad module.
SPRINKLER.C
—This program demonstrates how to schedule times for the digital out-
puts in a 24-hour period using the Prototyping Board.
The Web page uses the following setup.
Station 1 is connected to the relay on Prototyping Board header J17.
Station 2 is connected to OUT00 on Prototyping Board header J10.
Station 3 is connected to OUT01 on Prototyping Board header J10.
Zones 1, 2 and 3 are watering areas where stations are turned on or off at different times.
The Pages/sprinkler.zhtml page associated with this sample program demonstrates
the corresponding scripting features.
The real-time clock must be set before you compile and run this sample program — see
Section 3.2.4 for information on sample programs that show how to set the real-time
clock.
Once you compile and run this sample program, open the Web page, enter the times for
the various zones and stations, then press the Submit button to update the settings.
You may connect Rabbit’s Demonstration Board to the Prototyping Board's relay and
two outputs to view the on and off intervals via the LEDs on the Demonstration Board.
The Demonstration Board is not included with the Development Kit, but may be pur-
chased separately