Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mAIn_2.cpp
- Revision:
- 0:f0bb7332032f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mAIn_2.cpp Thu Nov 15 18:04:45 2018 +0000
@@ -0,0 +1,21 @@
+/*#include "mbed.h"
+#include "C12832.h"
+
+C12832 lcd(p5, p7, p6, p8, p11);
+AnalogIn aiPoti1(p19);
+AnalogIn aiPoti2(p20);
+
+int main() {
+ unsigned short adcWert2;
+ lcd.cls(); // löscht lcd (clear screen)
+ lcd.locate(0,0); // x-position, y-position (x: 0-128; y: 0-32)
+ lcd.printf("Werte von Poti 1 und 2:");
+ while(1) {
+ lcd.locate(0,10);
+ lcd.printf("Spannung 1 = : %f V", aiPoti1.read()*3.3);
+ adcWert2 = aiPoti2.read_u16();
+ lcd.printf("\nADC 2 = 0X%04X / %05d", adcWert2, adcWert2 );
+ wait_ms(100);
+ }
+}
+*/
\ No newline at end of file