yasuyuki onodera
/
mbed_AQM1602
AQM1602 sample
See https://developer.mbed.org/users/yasuyuki/notebook/AQM1602/
main.cpp
- Committer:
- yasuyuki
- Date:
- 2015-03-06
- Revision:
- 0:f0581257a51a
File content as of revision 0:f0581257a51a:
//********************** // AQM1602 demo for mbed // // LPC1768 flash=512KB, ADC=12bits // LPC11U35 flash=64KB, ADC=10bits // Nucleo ADC=12bits // // (C)Copyright 2015 All rights reserved by Y.Onodera // http://einstlab.web.fc2.com //********************** #include "mbed.h" #include "AQM1602.h" #if defined(TARGET_LPC1768) I2C i2c(p28,p27); #endif // for TG-LPC11U35-501 #if defined(TARGET_LPC11U35_501) I2C i2c(P0_5,P0_4); #endif // for Nucleo #if defined(TARGET_NUCLEO_F401RE) I2C i2c(D14,D15); #endif AQM1602 lcd(i2c); int main() { lcd.locate(0,0); lcd.print("AQM1602"); lcd.locate(0,1); lcd.print("I2C LCD module"); while(1); }