User:Claxhanson/proto: Difference between revisions
Claxhanson (talk | contribs) No edit summary |
Claxhanson (talk | contribs) |
||
Line 3: | Line 3: | ||
🩲 | 🩲 | ||
</div> | </div> | ||
== | ==If, else if, and the knob== | ||
<div style="color:#77e600;font-size:40"> | <div style="color:#77e600;font-size:40"> | ||
(Repeat for each KNOB) | (Repeat for each KNOB) | ||
Line 102: | Line 102: | ||
} | } | ||
</pre> | </pre> | ||
==Knob, Slider, Switch== | |||
[[File:Knob.jpg|150px|frameless]] | |||
[[File:Sliderr.jpg|250px|frameless]] | |||
[[File:Switch.jpg|130px|frameless]] |
Revision as of 14:33, 19 April 2020
🩲
If, else if, and the knob
(Repeat for each KNOB)
if (KNOB < 31) { Serial.print (" "); } else if (KNOB > 31 && KNOB < 62) { Serial.print (" "); } else if (KNOB > 62 && KNOB < 93) { Serial.print (""); } else if (KNOB > 93 && KNOB < 124) { Serial.print (" "); } else if (KNOB > 124 && KNOB < 155) { Serial.print (" "); } else if (KNOB > 155 && KNOB < 186) { Serial.print (" "); } else if (KNOB > 186 && KNOB < 217) { Serial.print (" "); } else if (KNOB > 217 && KNOB < 248) { Serial.print (""); } else if (KNOB > 248 && KNOB < 279) { Serial.print (" "); } else if (KNOB > 279 && KNOB < 310) { Serial.print (" "); } else if (KNOB > 310 && KNOB < 341) { Serial.print (" "); } else if (KNOB > 341 && KNOB < 372) { Serial.print (" "); } else if (KNOB > 372 && KNOB < 403) { Serial.print (" "); } else if (KNOB > 403 && KNOB < 434) { Serial.print (" "); } else if (KNOB > 434 && KNOB < 465) { Serial.print (" "); } else if (KNOB > 465 && KNOB < 496) { Serial.print (" "); } else if (KNOB > 496 && KNOB < 527) { Serial.print (" "); } else if (KNOB > 527 && KNOB < 558) { Serial.print (" "); } else if (KNOB > 558 && KNOB < 589) { Serial.print (" "); } else if (KNOB > 589 && KNOB < 620) { Serial.print (" "); } else if (KNOB > 620 && KNOB < 651) { Serial.print (" "); } else if (KNOB > 651 && KNOB < 682) { Serial.print (" "); } else if (KNOB > 682 && KNOB < 713) { Serial.print (" "); } else if (KNOB > 713 && KNOB < 744) { Serial.print (« The Amazon forest is burning"); } else if (KNOB > 744 && KNOB < 775) { Serial.print (" "); } else if (KNOB > 775 && KNOB < 806) { Serial.print (""); } else if (KNOB > 806 && KNOB < 837) { Serial.print (" "); } else if (KNOB > 837 && KNOB < 868) { Serial.print (" "); } else if (KNOB > 868 && KNOB < 899) { Serial.print (" "); } else if (KNOB > 899 && KNOB < 992) { Serial.print (" "); } else if (KNOB > 992 && KNOB < 1023) { Serial.print (" "); }