Advertisement
Korni

Switch

May 14th, 2013
1,594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Regfile="attiny13.dat"
  2.  
  3. Config PORTB.2=output
  4. Config PORTB.1=output
  5.  
  6. Do
  7.   If portb.3=1 then Portb.2=1 else portb.2=0
  8.   If PORTB.4=1 then PORTB.1=1 else PORTB.1=0
  9. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement