python

Dependencies:   TSI mbed

Fork of pymite by Norimasa Okamoto

Revision:
8:88d4fba4ccd5
Parent:
7:71a6f45bc563
diff -r 71a6f45bc563 -r 88d4fba4ccd5 platform/mbed/main_nat.cpp
--- a/platform/mbed/main_nat.cpp	Sat Jun 14 12:14:55 2014 +0000
+++ b/platform/mbed/main_nat.cpp	Sat Jun 21 01:08:08 2014 +0000
@@ -22,13 +22,13 @@
 #include "TSISensor.h"
 #endif
 
-#if defined(TARGET_NUCLEO_F401RE)
+#if DEVICE_ANALOGOUT==0
 class AnalogOut {
 public:
 AnalogOut(PinName pin){}
 void write(float value){}
 void write_u16(unsigned short value){}
-float read(){}
+float read(){ return 0.0; }
 };
 #endif