0

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");

Cylon.robot({
  connections: {
    raspi: { adaptor: 'raspi' }
  },

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

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

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

0

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.

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.