Änderungen

KY-040 Kodierter Drehschalter (Rotary Encoder)

52 Byte hinzugefügt, 16:01, 16. Feb. 2016
/* Keine Zusammenfassung */
==Bild==
[[Datei:ky-040.jpg|358x358px|none|358x358px]]
==Technische Daten / Kurzbeschreibung==
==Kodierung==
<div class="level2"><div class="table sectionedit5">
{| class="inline" style="height: 178px; border-color: #000000;" width="359"
|- class="row0"
! class="col0"|A
! class="col1"|B
|- class="row1" style="border-color: #000000;"
| class="col0"|1
| class="col1"|1
| class="col1"|1
|}</div>
 
</div>
==Pin-Belegung==
int change = getEncoderTurn ();
int newPeriod = longPeriod + (change * 1000);
if (newPeriod >= 1000 && newPeriod <= 10000) { longPeriod = newPeriod;
}
if (count> targetCount)
Bürokrat, Administrator
611
Bearbeitungen