han back
/
CLEO_CDS
SMART CLEO CDS
main.cpp
- Committer:
- SMART_CLEO
- Date:
- 2017-09-28
- Revision:
- 0:2d4f287f9900
File content as of revision 0:2d4f287f9900:
#include "mbed.h" #include "TextLCD.h" PinName pin_CDS = PB_0; AnalogIn adc_CDS(pin_CDS); // rs, rw, e, d0-d3 TextLCD lcd(PB_12, PB_13, PB_14, PB_15, PA_9, PA_10, PA_11); int main() { int ADC_Data; lcd.printf(" CDS Program\n"); lcd.printf(" ADC Data : "); while(1) { ADC_Data = adc_CDS.read()*4095; lcd.locate(12, 1); lcd.printf("%4d", ADC_Data); wait(1); } }