I'm trying to get a simple PWM controlled motor running from the Edison, using the NodeJS part of MRAA.
The most basic test script I could think of:
var m = require('mraa');
var motorPin = new m.PWM(3);
SyntaxError: Unexpected token ILLEGAL
What's the correct way of setting the period and dutycycle of a PWM pin in NodeJS?
Why don't you check this example code made by CMata_Intel, it is an example of a Fade script written in Node.JS, I believe it'll help you get started with node.
Retrieving data ...