Basic motor speed test

master
Tom Wilson 4 years ago
parent b50197608c
commit db52cbe01c

@ -7,3 +7,10 @@
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:default]
platform = espressif32
framework = arduino
board = esp32dev
monitor_speed = 57600

@ -0,0 +1,15 @@
#include <Arduino.h>
#define MOTOR_SPEED_SENSE 5
void setup() {
pinMode(MOTOR_SPEED_SENSE, INPUT_PULLUP);
Serial.setTimeout(1);
Serial.begin(57600);
}
void loop() {
delay(10);
Serial.println(digitalRead(MOTOR_SPEED_SENSE));
}
Loading…
Cancel
Save