mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 11:00:26 +00:00
30 lines
329 B
C
30 lines
329 B
C
#include <util/delay.h>
|
|
#include <stdio.h>
|
|
#include "ard/serial.h"
|
|
#include "ard/pins.h"
|
|
#include "ard/util.h"
|
|
#include "servo/servo.h"
|
|
|
|
Servo servo = {7};
|
|
|
|
void prepare();
|
|
void loop();
|
|
|
|
int main(){
|
|
prepare();
|
|
|
|
while(1){
|
|
loop();
|
|
}
|
|
}
|
|
|
|
void prepare(){
|
|
pins_init();
|
|
serial_init(9600);
|
|
servo_init(&servo);
|
|
}
|
|
|
|
void loop(){
|
|
|
|
}
|