AND / Mbed 2 deprecated FeNO_LCD

Dependencies:   mbed TextLCD

Committer:
christodoulos
Date:
Thu May 23 08:09:19 2019 +0000
Revision:
0:a13b440d4fd1
Child:
1:fd5a598caa32
Test TTL

Who changed what in which revision?

UserRevisionLine numberNew contents of line
christodoulos 0:a13b440d4fd1 1 #include "mbed.h"
christodoulos 0:a13b440d4fd1 2 AnalogIn ain(A3);
christodoulos 0:a13b440d4fd1 3 Serial ttl(PA_0, PA_1);
christodoulos 0:a13b440d4fd1 4
christodoulos 0:a13b440d4fd1 5 int main()
christodoulos 0:a13b440d4fd1 6 {
christodoulos 0:a13b440d4fd1 7
christodoulos 0:a13b440d4fd1 8 ttl.baud(9600);
christodoulos 0:a13b440d4fd1 9 float x=0;
christodoulos 0:a13b440d4fd1 10
christodoulos 0:a13b440d4fd1 11 while(1) {
christodoulos 0:a13b440d4fd1 12 x=3.3*ain; //Logic level 3.3
christodoulos 0:a13b440d4fd1 13 ttl.printf("%f\n", x);
christodoulos 0:a13b440d4fd1 14 }
christodoulos 0:a13b440d4fd1 15 }