![]() Bringing old technology back to life! Lightsunfinished project, but will serve for the base so i don't forget how shit works lmfao#include <avr/io.h> #include <util/delay.h> //configure CPU and devices void setup(void) { DDRB = 0b00000111; PORTB = 0b00000111; DDRD = 0b00000000; PORTD = 0b00000000; } //white light work void whiteLight(void) { PORTB = 0b00000011; _delay_ms(500); PORTB = 0b00000111; _delay_ms(500); } //red light work void redLights(void) { } //main entry point int main(void) { setup(); while(1) { whiteLight(); } //daLoop(); //_delay_ms(250); } void daLoop(void) { PORTB = 0b00000001; _delay_ms(250); PORTB = 0b00000011; _delay_ms(250); PORTB = 0b00000111; _delay_ms(250); PORTB = 0b00000110; _delay_ms(250); PORTB = 0b00000100; _delay_ms(250); PORTB = 0b00000000; _delay_ms(250); daLoop(); } I hate the big decisions. LabeTronics is (c) DEJVOSS Productions 2024 |