Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

backup all

  • Loading branch information...
commit 1c0b6330136988e54f6dbcf31656911c0b6ce246 1 parent 3627eb0
@armageddon421 authored
View
0  blinkenpi → blinkenflash
File renamed without changes
View
BIN  blinkenstrobe
Binary file not shown
View
13 main.c
@@ -31,17 +31,18 @@ int main(void){
while(42){
- for(i=0;i<LED_NUM/5;i++){
+ for(i=0;i<LED_NUM;i++){
led_set(i,0,0,0); //245-152-157
- }
+ }
+ update();
+ usleep(100000);
+
for(i=0;i<LED_NUM;i+=1){
- led_set(i,(sin(i*5.0+t/40.0)+1.0)*8.0, (sin(i*8.0+t/30.0)+1.0)*8.0, ((i+t)%41 == 0 || (i+t)%39 == 0)?127:0);
+ led_set(i,127,127,127);
}
update();
- t++;
- //if(t>=10) t=0;
- usleep(1000);
+ usleep(2000);
}
}
View
BIN  nyan/nyan.bmp
Binary file not shown
View
BIN  nyan/nyan.gif
Deleted file not rendered
View
4 program.sh
@@ -3,7 +3,7 @@
./blinken29 &
sleep 7
killall blinken29
-./blinkenpi &
+./blinkenflash &
sleep 13
-killall blinkenpi
+killall blinkenflash
./program.sh
Please sign in to comment.
Something went wrong with that request. Please try again.