takamoto ryouhei / Mbed 2 deprecated STM32_ADC_InternalChannels_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ryouheitakamoto
Date:
Mon Dec 07 11:01:49 2020 +0000
Commit message:
pc

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 07 11:01:49 2020 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+Serial pc(SERIAL_TX, SERIAL_RX);
+//Serial device(PA_9,PA_10);
+
+DigitalIn dir(PA_10);
+ 
+int main()
+{
+    while(1) {
+        
+    if(dir)
+    {
+      pc.printf("1\r\n");  
+    }
+    else
+    {
+      pc.printf("0\r\n"); 
+    }
+    
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 07 11:01:49 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file