We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've managed to successfully get an LED to flash on/off depending on the noise level with the set up below:
var five = require("johnny-five"); var analog = "A0" var ledPin = 3; five.Board().on("ready", function(){ var led = new five.Led(ledPin); var analogSensor = new five.Sensor({pin:analog, freq: 1000, }); analogSensor.on("data", function() { if(this.value > 700){ led.on(); } else { console.log('light off'); } }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've managed to successfully get an LED to flash on/off depending on the noise level with the set up below:
The text was updated successfully, but these errors were encountered: