Changeset 240 for trunk/brainstorms/arduino/puzzlebox_brainstorms_wheelchair_noisebridge/puzzlebox_brainstorms_wheelchair_noisebridge.pde
- Timestamp:
- 12/04/10 14:04:26 (12 years ago)
- Location:
- trunk/brainstorms/arduino/puzzlebox_brainstorms_wheelchair_noisebridge
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/brainstorms/arduino/puzzlebox_brainstorms_wheelchair_noisebridge/puzzlebox_brainstorms_wheelchair_noisebridge.pde
r239 r240 43 43 digitalWrite(7,g); 44 44 digitalWrite(8,h); 45 46 display_values(); 45 47 46 Serial.println('x'); 48 } 49 50 void display_values() { 47 51 52 Serial.print('x'); 53 54 if (h == true) 55 Serial.print("1"); 56 else 57 Serial.print("0"); 58 59 if (a == true) 60 Serial.print("1"); 61 else 62 Serial.print("0"); 63 64 if (b == true) 65 Serial.print("1"); 66 else 67 Serial.print("0"); 68 69 if (c == true) 70 Serial.print("1"); 71 else 72 Serial.print("0"); 73 74 if (d == true) 75 Serial.print("1"); 76 else 77 Serial.print("0"); 78 79 if (e == true) 80 Serial.print("1"); 81 else 82 Serial.print("0"); 83 84 if (f == true) 85 Serial.print("1"); 86 else 87 Serial.print("0"); 88 89 if (g == true) 90 Serial.print("1"); 91 else 92 Serial.print("0"); 93 94 Serial.println(); 48 95 } 49 96 … … 91 138 a = (inByte =='1'); 92 139 } 93 140 141 display_values(); 94 142 //Serial.println(char(a),char(b),char(c),char(d),char(e),char(f),char(g),char(h)); 95 143 //Serial.println(a, b, c, d, e, f, g ,h);
Note: See TracChangeset
for help on using the changeset viewer.