Author Topic: RFduino built-in led doesn't work!  (Read 1299 times)


  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
RFduino built-in led doesn't work!
« on: November 12, 2016, 04:16:11 AM »
Hi all,

I am totally new to RFduino, installed everything, and deployed a code to simply blink the built-in LED, NOT THE LED ON RGB SHIELD as I don't have an RGB shield.
The code is pretty standard as recommended by many out there, setup and loop as follows;
#include <RFduinoBLE.h>
int LED_BUILTIN = 3;

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, 1);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, 0);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second

However, I am not sure how to see this code running!

May sound very basic, but please help.

I guess I won't have to run a code on RFduino necessarily using a mobile app and Bluetooth connectivity.

My RFduino has USB and battery sheilds stacked on the main board, and is connected to the USB on the laptop.

What should I do to see this code running?

« Last Edit: November 13, 2016, 12:56:30 AM by rfbaaz »


  • Global Moderator
  • *****
  • Posts: 883
  • Karma: +21/-0
    • View Profile
    • Thomas Olson Consulting
Re: RFduino built-in led doesn't work!
« Reply #1 on: November 18, 2016, 11:27:11 AM »
Hi rfbaaz,

What built-in LED are you referring to, if you are not using the RGB module?
The RGB module LEDs are on GPIO2,3,4. (RED, GREEN, BLUE).
If you are using the Sparkfun Simblee board, it's  LED is on GPIO2 (RED).
If you are using the Sparkfun SImblee Lilypad, they put a BLUE LED on GPIO13.


  • RFduino Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: RFduino built-in led doesn't work!
« Reply #2 on: November 30, 2016, 03:37:09 AM »
Rfbaaz, I'm not sure I understand correctly, but are you referring to the LEDs on the USB Programming Shield (RFD22121)?

Those would not be found at some pin, but I was able to get them to blink in a pattern by alternating between delay(500) and Serial.print(" ").

Is this what you mean?
Otherwise add some pictures explaining what LED you are talking about.