-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAstroDuino.ino
64 lines (50 loc) · 994 Bytes
/
AstroDuino.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// AstroDuinio Project. Copyright (c) Licensed under GNU General Public License, version 3.0
// Source: https://github.com/tgiphil/AstroDuino
#include "LogicPanelControl.h"
#include "LogicDisplay.h"
#include "Comm.h"
#include <FastLED.h>
//#include <EEPROM.h>
//#include <Wire.h>
//#include <Servo.h>
#include "LogicPanelControl.h"
#include "Command.h"
#include "Ticks.h"
#include "Global.h"
//Servo myservo;
void setup()
{
Comm.Setup();
Command.Setup();
Ticks.Setup();
LogicPanelControl.Setup();
pinMode(LED_BUILTIN, OUTPUT);
SetLEDOn();
//myservo.attach(8);
}
//unsigned long next = 0;
void loop()
{
Ticks.Update();
Comm.Update();
Command.Update();
LogicPanelControl.Update();
//if (Ticks.Now > next)
//{
// int pos = (Ticks.Now / 50) % 180;
// myservo.write(pos);
// next = Ticks.Now + 1;
//}
}
void SetLEDOff()
{
digitalWrite(LED_BUILTIN, LOW);
}
void SetLEDOn()
{
digitalWrite(LED_BUILTIN, HIGH);
}
void Acknowledge()
{
Serial.println("Acknowledge");
}