dasdasd

asdasdasd
mail@pastecode.io avatar
unknown
c_cpp
7 months ago
506 B
1
Indexable
Never
/*
 * Uzd_1.cpp
 *
 * Created: 14.09.2023 10:22:55
 * Author : 
 */ 

#include <avr/io.h>
#define F_CPU 16000000UL
#include <util/delay.h>

int main(void)
{
    
	/*DDRD = (1 << DDD7); //DDRD = 0x80 */
	DDRB = 0xE0 ; //DDRD = 0x80;
	
	/* Replace with your application code */
    while (1) 
    {
		PORTB |=0x80; 
		PORTB &=0x9F;
		PORTB &=0x5F;
		_delay_ms(50);
		PORTB &=0x3F;
		_delay_ms(200);
		PORTB &=0x7F;
		_delay_ms(50);
		PORTB &=0x9F;
		_delay_ms(200);
    }
}