Tracy Allen''s state machine
Hello,
> Sounds like you need to store the initial (non-alarm) state of the
sensors
> in the EEPROM and then compare the actual inputs to this state to
see if
> something is wrong. Check out the DATA command in the Stamp manual.
That's a good idea, I don't need to use the data statement, I can
just compare against a number, the non-alarm state represent a
binaire number, I can simply use the $ identifier and compare against
a HEX number.
Thx
Michel
> Sounds like you need to store the initial (non-alarm) state of the
sensors
> in the EEPROM and then compare the actual inputs to this state to
see if
> something is wrong. Check out the DATA command in the Stamp manual.
That's a good idea, I don't need to use the data statement, I can
just compare against a number, the non-alarm state represent a
binaire number, I can simply use the $ identifier and compare against
a HEX number.
Thx
Michel