ROBOT SIGUE LINEAS CON SENSOR DIGITAL 5 CANALES

CODIGO #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SH110X.h> #define i2c_Address 0x 3c //initialize with the I2C addr 0x3C Typically eBay OLED's #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels #define OLED_RESET - 1 // QT-PY / XIAO Adafruit_SH1106G display = Adafruit_SH1106G ( SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET ) ; #define Sensor1 A6 #define Sensor2 A3 #define Sensor3 A2 #define Sensor4 A1 #define Sensor5 A0 #define STBY 3 #define AIN1 8 #define AIN2 9 #define PWMB 6 #define PWMA 5 #define BIN1 4 #define BIN2 7 #define LED 13 #define PINBOTON 2 #define PINBUZZER 10 #define POTENCIOMETRO A7 int S1; int S2; int S3; int S4; int S5; int valpot; int potH = 100 ; //Potencia 1 de motores int potL = 50 ; void setup () { Serial . be...