//----------------------------------------------------------------- // Code for Attinty2313 Mood Light SKull Lantern by_MAx // // fast PWM will be used for separate dimming of RGB LED's channles // sorry I will not explain how Pulse With Modulaton works // many sources are available on internet // one example: www.atmel.com/images/doc2542.pdf //----------------------------------------------------------------- #include //needed for pin defines #include //needed for delay function #include //needed for random function // ----- ===== ( defines for human readble code ) ===== ----- // many defines were made to make code self explanatory #define mainProgram int main(void) #define integer uint8_t #define setBit(x) |=1<