.

Dependencies:   mbed FXOS8700Q

Files at this revision

API Documentation at this revision

Comitter:
karlaivon
Date:
Sat May 30 00:53:48 2020 +0000
Commit message:
.

Changed in this revision

FXOS8700Q.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 77181102b27d FXOS8700Q.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FXOS8700Q.lib	Sat May 30 00:53:48 2020 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/Freescale/code/FXOS8700Q/#aee7dea904e2
diff -r 000000000000 -r 77181102b27d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat May 30 00:53:48 2020 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "C12832.h"
+
+C12832 lcd(SPI_MOSI, SPI_SCK, SPI_MISO, p8, p11);
+
+AnalogIn Ain(p20);
+float ADCdata, voltaje;
+
+int main () {
+       while (1) {
+           ADCdata=Ain;
+           lcd.locate(0,3);
+           lcd.printf("%f", ADCdata);
+           voltaje=ADCdata * (3.3f/65535.0f)*100000;
+           
+           lcd.locate(0,16);
+           lcd.printf("%f", voltaje);
+           printf("%f /n/r", ADCdata);
+           wait(0.5);
+           
+        }
+    }
diff -r 000000000000 -r 77181102b27d mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat May 30 00:53:48 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file