mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
12 lines
295 B
Arduino
12 lines
295 B
Arduino
#include <RoverPeripheral.h>
|
|
|
|
void configureRoverPeripheral(RoverPeripheral& io) {
|
|
io.name("Headlight controller");
|
|
|
|
RoverDigitalOutputConfig headlight;
|
|
headlight.pin = 18;
|
|
headlight.polarity = OutputPolarity::ActiveHigh;
|
|
headlight.initiallyOn = false;
|
|
io.addHeadlight(headlight);
|
|
}
|