ClosedLoop as singleton
This commit is contained in:
parent
30ee0d3800
commit
48151d1778
6 changed files with 29 additions and 13 deletions
|
|
@ -29,12 +29,14 @@
|
|||
|
||||
#include "closedloop.h"
|
||||
|
||||
void init_closedloop() {
|
||||
ClosedLoop closedloop;
|
||||
|
||||
void ClosedLoop::init() {
|
||||
OUT_WRITE(CLOSED_LOOP_ENABLE_PIN, LOW);
|
||||
SET_INPUT_PULLUP(CLOSED_LOOP_MOVE_COMPLETE_PIN);
|
||||
}
|
||||
|
||||
void set_closedloop(const byte val) {
|
||||
void ClosedLoop::set(const byte val) {
|
||||
OUT_WRITE(CLOSED_LOOP_ENABLE_PIN, val);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue