sample program using TextLCD_ostream

Dependencies:   TextLCD_ostream mbed

This is sample program using std::ostream with TextLCD
Because a large amount of memory is needed, it does not work in low memory MPU.
(It works fine on mbed LPC1768 and STM32 Nucleo-L476RG. But linker error occard on TG-LPC11U35-501)

Revision:
4:0e305f955741
Parent:
1:2775f5dc2099
Child:
5:4d1ddc9177b0
--- a/main.cpp	Sun Jun 19 01:15:02 2016 +0000
+++ b/main.cpp	Wed Jun 22 08:31:30 2016 +0000
@@ -3,12 +3,21 @@
 #include <iomanip>
  
 I2C i2c(p28,p27); // SDA, SCL
-TextLCD_I2C_N lcd(&i2c, ST7032_SA, TextLCD::LCD16x2, NC, TextLCD::ST7032_3V3);
+//マルツ MI2CLCD
+//TextLCD_I2C_N lcd(&i2c, ST7032_SA, TextLCD::LCD16x2, NC, TextLCD::ST7032_3V3);
+//const int LCDCONTRAST=32;
+//秋月8x2
+//TextLCD_I2C_N lcd(&i2c, ST7032_SA, TextLCD::LCD8x2);
+//const int LCDCONTRAST=20;
+//秋月16x2小型
+TextLCD_I2C_N lcd(&i2c);
+const int LCDCONTRAST=30;
+
 lcd_ostream lcds(&lcd);
 
 int main() {
     using namespace std;
-    lcd.setContrast(32);
+    lcd.setContrast(LCDCONTRAST);
     while(true) {
         // lcds.cls() は lcd_ostream& を返すので、そこにそのまま << 出来る
         // endl で次の行の先頭に行く