Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
backup all
  • Loading branch information
armageddon421 committed Dec 17, 2012
1 parent 3627eb0 commit 1c0b633
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
File renamed without changes.
Binary file added blinkenstrobe
Binary file not shown.
13 changes: 7 additions & 6 deletions main.c
Expand Up @@ -31,17 +31,18 @@ int main(void){


while(42){ 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 led_set(i,0,0,0); //245-152-157
} }
update();
usleep(100000);

for(i=0;i<LED_NUM;i+=1){ 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(); update();
t++; usleep(2000);
//if(t>=10) t=0;
usleep(1000);
} }


} }
Expand Down
Binary file added nyan/nyan.bmp
Binary file not shown.
Binary file removed nyan/nyan.gif
Binary file not shown.
4 changes: 2 additions & 2 deletions program.sh
Expand Up @@ -3,7 +3,7 @@
./blinken29 & ./blinken29 &
sleep 7 sleep 7
killall blinken29 killall blinken29
./blinkenpi & ./blinkenflash &
sleep 13 sleep 13
killall blinkenpi killall blinkenflash
./program.sh ./program.sh

0 comments on commit 1c0b633

Please sign in to comment.