set a flag to indicate the old status of the port pin. If the port goes high, and the flag is low, send the alarm and set the flag high. If the flag is high, ignore the port. When the port goes low, clear the flag
set a flag to indicate the old status of the port pin. If the port goes high, and the flag is low, send the alarm and set the flag high. If the flag is high, ignore the port. When the port goes low, clear the flag
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks