Advertisement
Korni

Beam Roboter Test

Apr 14th, 2013
1,436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' BEAM Roboter
  2. ' 2013 Paul Korn
  3. '
  4. regfile = "attiny13.dat"
  5. $crystal = 1000000
  6. Dim adc3 as word
  7. Dim adc2 as word
  8. PORTB = output
  9.  
  10. Do
  11. Get adc2
  12. Get adc3
  13. If adc3 > adc2 then portb.1 = 1
  14. If adc2 > adc3 then PORTB.2 = 1
  15. waitms 10
  16. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement