🛠 Faire clignoter la LED de la Feather nRF52840

Adafruit Feather nRF52840 Express · debutant · Schéma : IMG-nrf52840-feather-debutant-1-nrf52840-clignotement-led.svg — Vue de dessus de la Feather nRF52840 Express alimentée en micro-USB, LED rouge utilisateur et bouton RST annotés.

Objectives

Get started with the Adafruit Feather nRF52840 Express: install the "Adafruit nRF52 Boards" Arduino core, select the *Adafruit Feather 52840* board, compile to the board, and blink the user LED. The nRF52840 is a Nordic SoC (Cortex-M4F 64 MHz, 1 MB flash, 256 KB RAM) in Feather format; the red LED is controlled by the LED_BUILTIN constant defined by the BSP, which avoids the conflict in Adafruit documentation (Express page: "Pin #3", Sense page: "Pin #13").

Hardware

Complete Code

// nrf52840-clignotement-led.ino — core Adafruit nRF52 Boards
void setup {
  pinMode(LED_BUILTIN, OUTPUT);   // LED rouge, broche définie par le BSP
  Serial.begin(115200);           // USB CDC natif : aucune puce FTDI/CP210x sur la carte
}

void loop {
  digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
  Serial.println("Feather 52840 : LED toggle");
  delay(500);
}

Expected Verification

The red LED blinks every 500 ms and the serial monitor (115200 baud) displays the messages. Double-click the RST button: the NeoPixel turns green and the FTHR840BOOT drive appears — proof that the UF2 bootloader is alive (useful for reflashing via drag-and-drop).

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials