#include "../config.h" #include "../random/prng.h" #include "../pixel.h" #include "../util.h" #ifdef AVR #include #endif #define RANDOM8() (random8()) #ifdef ANIMATION_TESTS void test1(){ unsigned char x,y; for (y=0;y>(i&0x01); } wait(200); } } #endif #ifdef ANIMATION_FEUER #define FEUER_Y (NUM_ROWS + 3) void feuer() { unsigned char y, x; unsigned int t; unsigned char world[NUM_COLS][FEUER_Y]; // double buffer for(t=0; t<800; t++) { // diffuse for(y=1; y> 5) ); } }; wait(FEUER_DELAY); } } #endif #ifdef ANIMATION_RANDOM_BRIGHT /** * void random_bright(void) * by Daniel Otte * * */ void random_bright(unsigned cycles){ uint8_t t,x,y; while(cycles--){ for(y=0; y>0)); setpixel((pixel){x*4+1, y}, 0x3&(t>>2)); setpixel((pixel){x*4+2, y}, 0x3&(t>>4)); setpixel((pixel){x*4+3, y}, 0x3&(t>>6)); } wait(200); } } #endif