====== WS2812 Ansteuerung ====== ===== Datenblatt ===== {{microcontrollertechnik:ws2812.pdf}} ===== Beispiel===== * empfohlener Code: {{microcontrollertechnik:ws2812_v2.zip}} (ab 8.5MHz für ATmega328, Clean Code)((alternative Variante :{{microcontrollertechnik:ws2812.zip}} (ab 13MHz für ATmega328) )) * Simulide-File: {{microcontrollertechnik:ws2812_discrete.sim1}} * Hex-File: {{microcontrollertechnik:ws2812_test.hex|ws2812_test.hex}} Im Code muss in der Datei ''light_ws2812.h'' die verwendete Taktfrequenz ''F_CPU'' eingestellt werden Das Programm enthält Assembler Code, welcher unter bestimmten Konfigurationen des Compilers nicht korrekt kompiliert wird. Bitte prüfen Sie vorher folgende Konfiguration: - Drücke '' + '' für die Projekt Einstellungen - Gehe zu ''Toolchain'' >> ''AVR/GNU Compiler'' >> ''Optimization'' - Der Optimization Level muss auf ''Optimize -O1'' stehen.