edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
Nado Hollow
Published © MIT

Led fading using 1Sheeld

Control LED light fading using smartphone.

BeginnerFull instructions provided1,739
Led fading using 1Sheeld

Things used in this project

Schematics

Led fading with onesheeld circuit

Code

Untitled file

Arduino
#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 with 1sheeld code

Credits

Nado Hollow
2 projects • 4 followers

Comments