The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
|location=Laptop Lounge | |location=Laptop Lounge | ||
|image=blinkencontrol hardware.jpg | |image=blinkencontrol hardware.jpg | ||
|status= | |status=beta | ||
|people={{U|derf}} | |people={{U|derf}} | ||
|source=https://github.com/derf/dorfmap{{!}}github | |source=https://github.com/derf/dorfmap{{!}}github | ||
}} | }} | ||
[[File:Blinkencontrol.png|Schaltplan für RGB|200x200px|framed|right]] | |||
Eine Instanz hängt in der [[Laptop Lounge]] und steuert den RGB-Streifen im Schaufenster. Angeschlossen per GPIO an {{H|donationprint}}, Ansteuerung wie gewohnt per [http://dorfmap/blinkencontrol/lounge_rggb dorfmap] (siehe auch [[Lichtsteuerung]]). | |||
== Protokoll == | == Protokoll == | ||
Vier Byte: <tt>mode red green blue</tt>. Zuerst wird <tt>mode</tt> übertragen, danach die Farben. | |||
Jeweils most significant bit first. | |||
red, green und blue sind PWM-Level von 0 (aus) bis 255 (maximale Helligkeit). Beachten: Es findet derzeit keine Helligkeitsanpassung statt, d.h. es wird linear gefadet, während das menschliche Auge Helligkeit [http://www.mikrocontroller.net/articles/LED-Fading logarithmisch wahrnimmt]. | |||
<tt>mode == MMMS SSSS</tt> setzt sich aus dem Betriebsmodus (MMM) und der Fade- / Blinkgeschwindigkeit (SSSSS) zusammen. Geschwindigkeit 0 ist am schnellsten, Geschwindigkeit 31 am Langsamsten. Modi: | |||
{| class="wikitable" | |||
! Modus (Bits) !! Wat | |||
|- | |||
| 000 || steady (Dauerleuchten) | |||
|- | |||
| 001 || RGB, kein Fading | |||
|- | |||
| 010 || Zufallsfarbe, kein Fading | |||
|- | |||
| 011 || ''none'' | |||
|- | |||
| 100 || ''none'' | |||
|- | |||
| 101 || RGB Fading | |||
|- | |||
| 110 || Zufallsfarbe Fading | |||
|- | |||
| 111 || ''none'' | |||
|} |