test1

Dependencies:   TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
Ajay_Marampally
Date:
Sun Oct 28 16:53:42 2018 +0000
Commit message:
test1

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
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
diff -r 000000000000 -r 66274df5e4b6 TextLCD.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Sun Oct 28 16:53:42 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/dreschpe/code/TextLCD/#a7c74d4c6911
diff -r 000000000000 -r 66274df5e4b6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 28 16:53:42 2018 +0000
@@ -0,0 +1,19 @@
+#include"mbed.h"
+
+PwmOut pwm1(p21);
+AnalogIn ain(p20);
+
+
+int main()
+{
+    pwm1.period_ms(20);
+    float v=0,i=0;
+    v = (ain*0.5)+(1.25);
+    while(1)
+    {
+        pwm1.pulsewidth_ms(i);
+        wait(1);
+        v = (ain*0.5)+(1.25);
+        i=v;
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 66274df5e4b6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Oct 28 16:53:42 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file