Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Last active October 3, 2016 19:45
Show Gist options
  • Save adrianfaciu/8fa74249a8e2f9c2b288a9272c4b8223 to your computer and use it in GitHub Desktop.
Save adrianfaciu/8fa74249a8e2f9c2b288a9272c4b8223 to your computer and use it in GitHub Desktop.
NativeScriptLightBulb
import { Component } from '@angular/core';
@Component({
moduleId: module.id,
selector: 'ns-bulb-control',
templateUrl: 'bulb-control.component.html',
styleUrls: ['bulb-control.component.css']
})
export class BulbControlComponent {
maxValue = 255;
minValue = 0;
redValue = 128;
greenValue = 0;
blueValue = 0;
whiteValue = 0;
updateLightBulb() {
console.log('Update color');
}
connectToMagicBlue() {
console.log('Connecting to device');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment