Files
Last update 7 years 8 months
by
ivanfeofanov
Filesrobotprocesses | |
---|---|
.. | |
bumper.h | |
button.h | |
drive_motors.h | |
led_indicator.h | |
mower.h | |
perimeter_sensor.h | |
terminal.h |
button.h#ifndef BUTTON_H #define BUTTON_H template< typename ButtonPin, typename Time > class Button { public: void init() { ButtonPin::setInput(); } void run(uint8_t* status) { if(ButtonPin::isHigh()) { *status = 1; }else{ *status = 0; } } }; #endif