Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if(obstacle_left && obstacle_right)
  2. statusLEDs.byte = 0b100100;
  3. else
  4. statusLEDs.byte = 0b000000;
  5. statusLEDs.LED5 = obstacle_left;
  6. statusLEDs.LED4 = (!obstacle_left);
  7. statusLEDs.LED2 = obstacle_right;
  8. statusLEDs.LED1 = (!obstacle_right);
  9. updateStatusLEDs();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement