speeduino/test/test_decoders/test_decoders.cpp

31 lines
571 B
C++
Raw Normal View History

2020-11-19 02:38:00 -08:00
#include <Arduino.h>
#include <unity.h>
2020-11-19 02:38:00 -08:00
#include "missing_tooth/missing_tooth.h"
#include "dual_wheel/dual_wheel.h"
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
// NOTE!!! Wait for >2 secs
// if board doesn't support software reset via Serial.DTR/RTS
delay(2000);
UNITY_BEGIN(); // IMPORTANT LINE!
2020-11-19 02:38:00 -08:00
testMissingTooth();
testDualWheel();
UNITY_END(); // stop unit testing
}
void loop()
{
// Blink to indicate end of test
digitalWrite(LED_BUILTIN, HIGH);
delay(250);
digitalWrite(LED_BUILTIN, LOW);
delay(250);
}