Blinky nRF52

nRF52 bluefruit adafruit

Create a blinky LED with Adafruit Bluefruit nRF52 breakout board.

To use command line arduino-cli, install Adafruit nRF52 nrfutil with pip3:

pip3 install --user adafruit-nrfutil

Code

Download code
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  // turn the LED ON (HIGH is the voltage level)
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);

  // turn the LED off by making the voltage LOW
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

Arduino settings

Ensure the followingIDE settings before flashing.

References