espcomm_upload_mem failed

Ideas and questions about MintyBoost kits

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Joeyoz
 
Posts: 4
Joined: Mon Sep 24, 2018 12:15 pm

espcomm_upload_mem failed

Post by Joeyoz »

anyone know why I'm getting this error?

This is my code:

Code: Select all

const byte ledPinIRSensor = 13;
const byte interruptPin = 3;
volatile byte state = LOW;
int rev = 0;
 
void setup() {
  pinMode(ledPinIRSensor, OUTPUT);
  pinMode(interruptPin, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(interruptPin), triggerEncoder, RISING);
  Serial.begin(115200);
}
 
void loop() {
  digitalWrite(ledPinIRSensor, HIGH);
  Serial.print("Number of revolutions: ");
  Serial.println(rev);
}
 
void triggerEncoder() {
  rev++;
}

Locked
Please be positive and constructive with your questions and comments.

Return to “MintyBoost”