Skip to content
Victor Carreño edited this page Jan 28, 2015 · 1 revision

Description

This section contains a virtual LED wich you can turn it on/off using your Arduino.

Functions

void LEDOn()
void LEDOff()

Syntax

myiShield.LEDOn()
myiShield.LEDOff()

Returns

None

Parameters

None

Example

#include <boards.h>
#include <SPI.h>
#include <RBL_nRF8001.h>
#include "iShield.h"

iShield myiShield;
	
void setup()
{
  	// Init. and start BLE library.
	ble_begin();
  	Serial.begin(9600); 
        ble_set_name("BLEShield");
}

void loop()
{
        //myiShield.getInbox();
	myiShield.LEDOn();
	delay(1000);
	myiShield.LEDOff();
	delay(1000);
	
}
Clone this wiki locally