Skip to content
Victor Carreño edited this page Jul 23, 2015 · 3 revisions

Description

This section contains a vitual analog Gauge. In this

Functions

void setGaugeValue(int value);

Syntax

myiShield.setGaugeValue(int value);

Returns

None

Parameters

int value

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()
{
  for(int i = 0;i<256;i++){
     myiShield.setGaugeValue(i);
     delay(100);
  }
	
}

Clone this wiki locally