-
Notifications
You must be signed in to change notification settings - Fork 2
Gauge
Victor Carreño edited this page Jul 23, 2015
·
3 revisions
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);
}
}