TinyJS

Dependencies:   mbed

Fork of TinyJS by Takehisa Oneta

Files at this revision

API Documentation at this revision

Comitter:
ohneta
Date:
Sun Jan 19 16:30:15 2014 +0000
Parent:
4:729cab0e95c6
Child:
6:30b4122b0ee2
Commit message:
bug fixed mbedAnalogOut

Changed in this revision

Mbed_Functions.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Mbed_Functions.cpp	Sun Jan 19 04:15:59 2014 +0000
+++ b/Mbed_Functions.cpp	Sun Jan 19 16:30:15 2014 +0000
@@ -61,7 +61,7 @@
 {
     string pinNameString = c->getParameter("pinName")->getString();
     PinName pinName = _mbedPinNameExchange(pinNameString);
-    int val = c->getParameter("val")->getInt();
+    float val = c->getParameter("val")->getDouble();
 
     AnalogOut aout = AnalogOut((PinName)pinName);
     aout.write(val);