clean day

This commit is contained in:
2024-02-27 12:57:20 +01:00
parent ab327d98c0
commit e44b717c0b
18 changed files with 0 additions and 1911 deletions

View File

@@ -1,38 +0,0 @@
/*
* Light_WS2812 library example - RGB_blinky
*
* cycles one LED through red, green, blue
*
* This example is configured for a ATtiny85 with PLL clock fuse set and
* the WS2812 string connected to PB4.
*/
#include <util/delay.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "light_ws2812.h"
struct cRGB led[1];
int main(void)
{
#ifdef __AVR_ATtiny10__
CCP=0xD8; // configuration change protection, write signature
CLKPSR=0; // set cpu clock prescaler =1 (8Mhz) (attiny 4/5/9/10)
#endif
while(1)
{
led[0].r=255;led[0].g=00;led[0].b=0; // Write red to array
ws2812_setleds(led,1);
_delay_ms(500); // wait for 500ms.
led[0].r=0;led[0].g=255;led[0].b=0; // green
ws2812_setleds(led,1);
_delay_ms(500);
led[0].r=0;led[0].g=00;led[0].b=255; // blue
ws2812_setleds(led,1);
_delay_ms(500);
}
}