mirror of
https://codeberg.org/scip/attinycore-makefile-tests.git
synced 2025-12-16 19:00:57 +01:00
+tests
This commit is contained in:
26
85-avr-only-test/main.c
Executable file
26
85-avr-only-test/main.c
Executable file
@@ -0,0 +1,26 @@
|
||||
|
||||
//*************************************************************************
|
||||
// steffen wrote this stuff for mikrocontrollerspielwiese.de
|
||||
// have fun!
|
||||
//*************************************************************************
|
||||
|
||||
#include "delay.h"
|
||||
#include "digital.h"
|
||||
#include "analog.h"
|
||||
|
||||
|
||||
#define LED 1
|
||||
|
||||
int main(void){
|
||||
pinMode(LED, OUTPUT);
|
||||
|
||||
while (1) {
|
||||
digitalWrite(LED, HIGH);
|
||||
_delay_ms(255);
|
||||
digitalWrite(LED, LOW);
|
||||
_delay_ms(255);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user