Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while creating pin files #371

Open
alexarroyoduque opened this issue Aug 7, 2017 · 0 comments
Open

Error while creating pin files #371

alexarroyoduque opened this issue Aug 7, 2017 · 0 comments

Comments

@alexarroyoduque
Copy link

alexarroyoduque commented Aug 7, 2017

Hi, I'm using a raspberry pi.

I have been experimenting with the CylonJS library following the documentation example. However when I run the script I get the following error.

Can anybody help me?

2017-08-07T18:50:16.659Z : [Robot 1] - Starting connections.
2017-08-07T18:50:16.677Z : [Robot 1] - Starting connection 'raspi'.
2017-08-07T18:50:16.705Z : [Robot 1] - Starting devices.
2017-08-07T18:50:16.713Z : [Robot 1] - Starting device 'led' on pin 18.
2017-08-07T18:50:16.720Z : [Robot 1] - Working.
events.js:187
      throw err;
      ^

Error: Unhandled "error" event. (Error while creating pin files)
    at DigitalPin.emit (events.js:185:19)
    at DigitalPin.<anonymous> (/home/pi/led-project/node_modules/cylon/lib/io/digital-pin.js:117:12)
    at fs.js:1279:7
    at FSReqWrap.oncomplete (fs.js:135:15)
var Cylon = require("cylon");
Cylon.robot({
  connections: {
    raspi: { adaptor: 'raspi' }
  },

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

  work: function(my) {
    every((1).second(), my.led.toggle);
  }
}).start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant