22 lines
446 B
Arduino
22 lines
446 B
Arduino
#include <Studuino.h>
|
|
#include <Clock.h> // Keep the complete smoke-test dependency set in clangd's database.
|
|
|
|
// DC Motor Calibration (0-100)
|
|
#define M1_CALIB 100
|
|
#define M2_CALIB 100
|
|
|
|
Studuino board;
|
|
|
|
void setup() {
|
|
board.InitSensorPort(PORT_A0, PIDLED);
|
|
byte calib[] = { M1_CALIB, M2_CALIB };
|
|
board.SetDCMotorCalibration(calib);
|
|
}
|
|
|
|
void loop() {
|
|
board.LED(PORT_A0, ON);
|
|
board.Timer(1);
|
|
board.LED(PORT_A0, OFF);
|
|
board.Timer(1);
|
|
}
|