User:Claxhanson/proto: Difference between revisions

From XPUB & Lens-Based wiki
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
===<div style="text-align: center; font-size:20px; color:#00FF00;text-align:center;font-family:gobold blocky">http://145.24.139.127/~claxhanson/</div>===
===<div style="text-align: center; font-size:20px; color:#00FF00;text-align:center;font-family:gobold blocky">http://145.24.139.127/~claxhanson/</div>===
 
<div style="text-align: center; font-size:100px;>
==CODE NUMBER 1==
🩲
</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>
<pre>
if (KNOB < 31) {<br>
if (KNOB < 31) {
Serial.print (" ");<br>
  Serial.print (" Must act quickly ! ");
}<br><br>
  }
else if (KNOB > 31 && KNOB < 62) {<br>  [[File:Ifknob.jpg|700px|frameless|right]]
else if (KNOB > 31 && KNOB < 62) {
Serial.print (" ");<br>
  Serial.print (" ");
}<br><br>
  }
...<br><br>
else if (KNOB > 62 && KNOB < 93) {
else if (KNOB > 217 && KNOB < 248) {<br>
  Serial.print ("");
Serial.print ("");<br>
  }
}<br><br>
else if (KNOB > 93 && KNOB < 124) {
else if (KNOB > 248 && KNOB < 279) {<br>
  Serial.print (" ");
Serial.print (" ");<br>
  }
}<br><br>
else if (KNOB > 124 && KNOB < 155) {
...<br><br>
  Serial.print (" ");
else if (KNOB > 899 && KNOB < 992) {<br>
  }
Serial.print ("The Amazon forest is burning"");<br>
else if (KNOB > 155 && KNOB < 186) {
}<br><br>
  Serial.print (" ");
else if (KNOB > 992 && KNOB < 1023) {<br>
  }
Serial.print (" ");<br>
else if (KNOB > 186 && KNOB < 217) {
}<br><br>
  Serial.print (" ");
 
  }
==Knob, Slider, Switch==
else if (KNOB > 217 && KNOB < 248) {
 
  Serial.print ("");
[[File:Knob.jpg|150px|frameless]]
  }
[[File:Sliderr.jpg|250px|frameless]]
else if (KNOB > 248 && KNOB < 279) {
[[File:Switch.jpg|130px|frameless]]
  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 Amazonian 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 (" ");
  }
</pre>

Latest revision as of 23:12, 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