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.
mAIn_2.cpp
- Committer:
- martwerl
- Date:
- 2018-11-15
- Revision:
- 0:f0bb7332032f
File content as of revision 0:f0bb7332032f:
/*#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);
}
}
*/