๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday January 20, 2020 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday January 17 will go out Tuesday January 21 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

espcomm_upload_mem failed
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

espcomm_upload_mem failed

by Joeyoz on Mon Oct 29, 2018 1:41 pm

anyone know why I'm getting this error?

This is my code:
Code: Select all | TOGGLE FULL SIZE
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++;
}

Joeyoz
 
Posts: 4
Joined: Mon Sep 24, 2018 12:15 pm

Please be positive and constructive with your questions and comments.