I am outputting three square waves and I need to change the output voltage 
into 5V. Is there any way I can change the voltage?
 
I use Cloud9

Here is my code:
 

var b = require('bonescript');
b.pinMode('P9_14', b.ANALOG_OUTPUT);
b.analogWrite('P9_14', 0.5, 1000, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

var b = require('bonescript');
b.pinMode('P9_22', b.ANALOG_OUTPUT);
b.analogWrite('P9_22', 0.5, 1500, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

b.pinMode('P9_16', b.ANALOG_OUTPUT);
b.analogWrite('P9_16', 0.5, 2000, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0532e196-d5b2-4e9b-b029-bd6fa3ef5e3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to