Pass all Setup() and Loop() methods into Arduino setup() and loop() functions.
This commit is contained in:
parent
ffbbb7c3ce
commit
bf48f52333
|
@ -100,3 +100,7 @@ void ContactPrinter::RampTakeup(uint16_t start, uint16_t end, uint16_t time) {
|
|||
bool ContactPrinter::IsRunning () {
|
||||
return running;
|
||||
}
|
||||
|
||||
void ContactPrinter::Loop () {
|
||||
drive_motor.Loop();
|
||||
}
|
|
@ -24,3 +24,7 @@ void EncoderMotor::Setup () {
|
|||
digitalWrite(forward_pin, LOW);
|
||||
digitalWrite(backward_pin, LOW);
|
||||
}
|
||||
|
||||
void EncoderMotor::Loop () {
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
#include "ContactPrinter.h";
|
||||
|
||||
void setup () {}
|
||||
void loop () {}
|
||||
ContactPrinter contact_printer;
|
||||
|
||||
void setup () {
|
||||
contact_printer.Setup();
|
||||
}
|
||||
void loop () {
|
||||
contact_printer.Loop();
|
||||
}
|
Loading…
Reference in New Issue