User:Claxhanson/proto: Difference between revisions
Claxhanson (talk | contribs) No edit summary |
Claxhanson (talk | contribs) Β |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
π©² | π©² | ||
</div> | </div> | ||
== | ==If, else if, and the knob== | ||
[[File:Knobb.jpg|150px|frameless]] | |||
<div style="color:#77e600;font-size:40"> | <div style="color:#77e600;font-size:40"> | ||
(Repeat for each KNOB) | (Repeat for each KNOB) | ||
<div> | </div><br><br> | ||
< | if (KNOB < 31) {<br> | ||
if (KNOB < 31) { | Serial.print (" ");<br> | ||
}<br><br> | |||
else if (KNOB > 31 && KNOB < 62) {<br>Β [[File:Ifknob.jpg|700px|frameless|right]] | |||
else if (KNOB > 31 && KNOB < 62) { | Serial.print (" ");<br> | ||
}<br><br> | |||
...<br><br> | |||
else if (KNOB > 217 && KNOB < 248) {<br> | |||
Serial.print ("");<br> | |||
}<br><br> | |||
else if (KNOB > 248 && KNOB < 279) {<br> | |||
Serial.print (" ");<br> | |||
}<br><br> | |||
...<br><br> | |||
else if (KNOB > 899 && KNOB < 992) {<br> | |||
Serial.print ("The Amazon forest is burning"");<br> | |||
}<br><br> | |||
else if (KNOB > 992 && KNOB < 1023) {<br> | |||
Serial.print (" ");<br> | |||
}<br><br> | |||
Β | |||
==Knob, Slider, Switch== | |||
else if (KNOB > 217 && KNOB < 248) { | Β | ||
[[File:Knob.jpg|150px|frameless]] | |||
[[File:Sliderr.jpg|250px|frameless]] | |||
else if (KNOB > 248 && KNOB < 279) { | [[File:Switch.jpg|130px|frameless]] | ||
else if (KNOB > | |||
else if (KNOB > | |||
Latest revision as of 23:12, 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 > 217 && KNOB < 248) {
Serial.print ("");
}
else if (KNOB > 248 && KNOB < 279) {
Serial.print (" ");
}
...
else if (KNOB > 899 && KNOB < 992) {
Serial.print ("The Amazon forest is burning"");
}
else if (KNOB > 992 && KNOB < 1023) {
Serial.print (" ");
}