Forum >Replies by foodini
userhead foodini
Replies (1)
  • You Reply: What got this started is that a number of pins (9, 36, 39, to name a few) don't work as GPIO pins - at all. None of the four boards I have will blink an LED with:
    Code: Select all
    void setup() {
      pinMode(36, OUTPUT);
      pinMode(LED_BUILTIN, OUTPUT);
    }
    
    bool state = false;
    void loop() {
      state = !state;
      digitalWrite(36, state?HIGH:LOW);
      digitalWrite(LED_BUILTIN, state?HIGH:LOW);
      Serial.println(state);
      delay(1000);
    }
    
    If there's an explanation that gives me a workaround, I'll be happy to hear it, but it's going to be way outside the bounds of what's normal for Arduino. I think I'd rather just send everything back to Mouser than work with hardware I can't trust.