Ev dizinindeki node.js dosyasını açın. İçine bunları yapıştırın. Kısa açıklamalarını bir aksilik olmazsa bu iletiyi düzenleyip yazmaya çalışırım.// require the LED module
var keyboard = require('msi-keyboard');
// Set left region to high intensity, color red
keyboard.color('left', {
color: 'red',
intensity: 'high'
});
// Set middle region to green default high intensity
keyboard.color('middle', 'green');
// Set right region to blue with light intensity
keyboard.color('right', {
color: 'blue',
intensity: 'light',
});
// Hardware modes
// Setting .color() will Not affect the hardware defined colors for modes
// Set Hardware mode to breath
keyboard.mode('breathe');
// Blinking
// Set the keyboard.color() Before calling .blink()
// Refer to examples/blinkMulti.js
// Blink all the keyboard LEDs to 750ms
keyboard.blink(750);
// Blink Only left and right regions at 750ms
keyboard.blink(['left','right'], 750);
// Use the default blink, time: 1000ms
keyboard.blink();
// Stop the blink after 5000ms
setTimeout(keyboard.stopBlink, 5000);Açılışta yanması için Menü>Başlangıç Uygulamalarına girip aşağıdaki komutu ekleyin:
node ~/server.js