Programming the SIB™
Introduction SiB™ vs SID mode Programs in SiB™ mode Programs in SID mode Sample Programs - Door Bell - Emergency Button - Freezer Monitor - I Love You - Lights Demo - Magnetic Alarm - Motion Sensor - Sweet Dreams - Thermometer - Water/Moisture Sensor - Yes or No Commands A - Z Configuration GPIO Programming Time Sensor Messaging | Sample Programs: Magnetic Alarm The magnetic alarm uses the built-in HALL sensor to detect the presence or absence of a magnetic field. This program sends an alert and lights a LED while the SiB has LOST contact with a magnet. PROG hallmon HALL myval ; read the hall sensor into the variable myval if myval>10 ; the hall sensor is not near a magnet IMTO 12345551234 ALARM! ALARM! WA RED 100 ; red light on DL 10s WA RED 1023 ;red light off EI SL 1s ; perform the test every second. You can modify this value LOOPTO SUBMIT THIS PROGRAM: First, send MODE SID to your SiB, as this is a SID program. It is not activated by the button press but rather by a timed sensor event. Next, send the above program in an IM to your SiB, and press your SiB to receive the program. Finally, place your SiB against the alarm magnet! |