Source code: https://github.com/andriyadi/FireSmartLamp
Introduction to Firebase showing how Firebase can be a realtime backend for web app and IoT devices. I used this deck for GDG DevFest 2015 event in Surabaya and Jakarta.
25. Code
var wpi = require('wiring-pi');
wpi.setup('gpio');
var ledPin = 26; //26 is GPIO pin to LED
wpi.pinMode(ledPin, wpi.OUTPUT);
//Turn off/on the LED directly
var ledValue = 1; //0 to switch off
wpi.digitalWrite(ledPin, ledValue);
51. We contribute
Education
100+ seminars, workshops, trainings delivered
Delivered to 20+ communities, organisations,
campuses
Next, could be yours…
Just drop us a message:
http://edu.dycode.co.id | edu@dycode.com