Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.