2020-01-23 17:21:12 -08:00
|
|
|
#include <Arduino.h>
|
2020-01-29 21:17:20 -08:00
|
|
|
#include <unity.h>
|
2020-01-23 17:21:12 -08:00
|
|
|
|
2020-01-23 19:18:57 -08:00
|
|
|
#include "tests_corrections.h"
|
2020-01-23 17:21:12 -08:00
|
|
|
#include "tests_init.h"
|
2020-01-29 21:17:20 -08:00
|
|
|
#include "tests_schedules.h"
|
2020-01-23 17:21:12 -08:00
|
|
|
|
|
|
|
void setup() {
|
|
|
|
// NOTE!!! Wait for >2 secs
|
|
|
|
// if board doesn't support software reset via Serial.DTR/RTS
|
|
|
|
delay(2000);
|
|
|
|
|
|
|
|
UNITY_BEGIN(); // IMPORTANT LINE!
|
|
|
|
|
|
|
|
pinMode(LED_BUILTIN, OUTPUT);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t i = 0;
|
|
|
|
uint8_t max_blinks = 5;
|
|
|
|
|
|
|
|
void loop()
|
|
|
|
{
|
|
|
|
testInitialisation();
|
2020-01-23 19:18:57 -08:00
|
|
|
testCorrections();
|
2020-01-29 21:17:20 -08:00
|
|
|
testSchedules();
|
2020-01-23 17:21:12 -08:00
|
|
|
|
|
|
|
UNITY_END(); // stop unit testing
|
|
|
|
}
|