mirror of
https://codeberg.org/scip/attinycore-makefile-tests.git
synced 2025-12-16 19:00:57 +01:00
27 lines
501 B
C
27 lines
501 B
C
|
|
|
||
|
|
//*************************************************************************
|
||
|
|
// 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;
|
||
|
|
}
|
||
|
|
|