Dateien nach "/" hochladen
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// Version Init for CI Pipline
|
||||
#define VERSION "V0.1"
|
||||
|
||||
|
||||
#define F_CPU 8000000UL // 8 MHz clock (adjust if needed)
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Set PA0 (Port A, Pin 0) as output
|
||||
DDRA |= (1 << PA0);
|
||||
|
||||
while (1)
|
||||
{
|
||||
// Turn LED ON
|
||||
PORTA |= (1 << PA0);
|
||||
// test asdfasdf
|
||||
_delay_ms(500);
|
||||
|
||||
// Turn LED OFF
|
||||
PORTA &= ~(1 << PA0);
|
||||
|
||||
_delay_ms(500);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
///asdfasf
|
||||
//test 22 2
|
||||
}
|
||||
Reference in New Issue
Block a user