Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. /* This code was written for the Stitch the Loop e-textiles curriculum by the
  2. Exploring Computer Science e-textiles team. ECS 2018 GPL V3 for non commercial use.
  3. ECS 2018 CC- BY NC SA. */
  4.  
  5. /*
  6. ◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
  7. This program is a starter you will need to add code. This code will not compile as is.
  8. ◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇
  9.  
  10. */
  11. /* STUDENT META HERE
  12. STUDENT NAME(S)
  13. Date Written
  14. Brief description of what program does here.
  15. */
  16.  
  17. // The first section is where to declare global objects and call up additional files the program needs to use.
  18. /* Unlike pinMode(INPUT), there is no pull-down resistor necessary. An internal
  19. 20K-ohm resistor is pulled to 5V. This configuration causes the input to
  20. read HIGH when the switch is open, and LOW when it is closed.
  21.  
  22. In other words, when the switch is 'on' (closed/connected), it will read as LOW.
  23. If the switch is 'off' (open/disconnected), it will read as HIGH.
  24.  
  25. */
  26.  
  27. int wristband1 = 10;
  28.  
  29.  
  30.  
  31. void setup() {
  32. // The second section is for things that only need to be done once at the beginning of the program.
  33.  
  34. pinMode(wristband1, OUTPUT);
  35.  
  36. }
  37.  
  38. /*ACTIVITY SECTION: This is one big loop. Whatever you put in here
  39. will run over and over and over again.
  40. */
  41. void loop() {
  42. // The second section is for things that only need to be done once at the beginning of the program.
  43. int switch1storage = digitalRead(switch1);
  44.  
  45.  
  46.  
  47. }
  48.  
  49. // The fourth section is for functions that are called up by the third section.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement