#define CUSTOM_SETTINGS
#define INCLUDE_SLIDER_SHIELD
#include <OneSheeld.h>
int ledPin = 11;
void setup() {
// put your setup code here, to run once:
OneSheeld.begin();
pinMode(ledPin,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(ledPin,Slider.getValue());
}
Led fading using 1Sheeld
Control LED light fading using smartphone.
Comments