I am trying to run cylon framework. I installed it using these instructions.

Now I am trying to execute this sample LED blinking program.

var Cylon = require("cylon");

  connections: {
    raspi: { adaptor: 'raspi' }

  devices: {
    led: { driver: 'led', pin: 11 }

  work: function(my) {
    every((1).second(), my.led.toggle);

But I have no idea how to save and execute this. My javascript knowledge is not advance one, so any help would help me.

Thanks in advance


After doing some google search I found this tutorial (looks like japanies)

1) Go to cylonjs installed folder

2) Create a .js file for the program (eg : blink.js)

3) Develop your javascript program for cylonjs

4) Then run

node blink.js 

I am posting this for someone who may have the same problem like me.

  • 1
    Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year. – Ingo Feb 20 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.