Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LET bit0 = pinB.1 ; bit0 is a part of byte variable b0
- LET bit1 = pinB.2
- LET bit2 = pinB.3
- LET bit3 = pinB.4
- LET bit4 = pinB.5
- LET bit5 = pinC.0 ; bit5 is a part of byte variable b0
- SYMBOL Ldr = pinC.4
- main:
- if b0>0 then alarm
- if b0>0 and ldr>100 then alarmlight
- goto main
- alarm:
- high C.2
- goto main
- alarmlight:
- high C.1
- high C.2
- goto main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement