User:Claxhanson/proto: Difference between revisions

From XPUB & Lens-Based wiki
Line 7: Line 7:
<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) {
if (KNOB < 31) {<br>
  Serial.print (" ");
Serial.print (" ");<br>
  }
}<br><br>
else if (KNOB > 31 && KNOB < 62) {  [[File:Ifknob.jpg|900px|frameless|right]]
else if (KNOB > 31 && KNOB < 62) {<br> [[File:Ifknob.jpg|900px|frameless|right]]
  Serial.print (" ");
Serial.print (" ");<br>
  }
}<br><br>
...
...<br><br>
  }
else if (KNOB > 217 && KNOB < 248) {<br>
else if (KNOB > 217 && KNOB < 248) {
Serial.print ("");<br>
  Serial.print ("");
}<br><br>
  }
else if (KNOB > 248 && KNOB < 279) {<br>
else if (KNOB > 248 && KNOB < 279) {
Serial.print (" ");<br>
  Serial.print (" ");
}<br><br>
  }
...<br><br>
...
else if (KNOB > 899 && KNOB < 992) {<br>
else if (KNOB > 899 && KNOB < 992) {
Serial.print ("The Amazon forest is burning"");<br>
  Serial.print ("The Amazon forest is burning"");
}<br><br>
  }
else if (KNOB > 992 && KNOB < 1023) {<br>
else if (KNOB > 992 && KNOB < 1023) {
Serial.print (" ");<br>
  Serial.print (" ");
}<br><br>
  }


==Knob, Slider, Switch==
==Knob, Slider, Switch==

Revision as of 23:11, 19 April 2020

🩲

If, else if, and the knob

Knobb.jpg

(Repeat for each KNOB)



if (KNOB < 31) {
Serial.print (" ");
}

else if (KNOB > 31 && KNOB < 62) {

Ifknob.jpg

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 (" ");
}

Knob, Slider, Switch

Knob.jpg Sliderr.jpg Switch.jpg