Figure 2
16ms2802
You have to modify your original program (a) to check the status of your burglar-alarm switch. A modified version checks the state of the switch only after you activate a key (b). A better solution is to check for the state of the door every time you go around the loop that tests to see if a you have pressed a key (c).
Back

| EDN Access | Feedback | Table of Contents |


Copyright © 1997 EDN Magazine, EDN Access. EDN is a registered trademark of Reed Properties Inc, used under license. EDN is published by Cahners Publishing Company, a unit of Reed Elsevier Inc.