Advertisement
ossipee

6677 arduino to picaxe

Feb 14th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2.  
  3. #define led 13
  4. void setup()
  5. {
  6. // put your setup code here, to run once:
  7. pinMode(led, OUTPUT);
  8. }
  9.  
  10. void loop()
  11. {
  12. high(led);
  13. pause(500);
  14. low(led);
  15. pause(500);
  16. }
  17.  
  18. void high(int pin) {
  19. digitalWrite(pin, HIGH);
  20. }
  21. void low(int pin) {
  22. digitalWrite(pin, LOW);
  23. }
  24. void pause(unsigned long time) {
  25. delay(time);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement