123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- I am using the LiquidCrystal_I2C.h lib which points to
- https://www.arduino.cc/reference/en/libraries/liquidcrystal_i2c_hangul/
- To use Servos at the same time is a better library as it has no conflict like
- it is the case of the one from Frank de Brabander
- The library it is authored by
- Junwha Hong, Dohun Kim, HyungHo Kim
- /* Note:
- i2c, unlike the Serial Port Protocol allowd for
- multiple clock speeds to be used so, we have an extra wire
- to set the clock. Thus we need two GPIOs:
- one for data (SDA) and another for the clock (SCL)
- in Arduino UNO the GPIOs are
- A4 for SDA
- A5 for SCL
- so we need to connect these to the i2c controller
- behind the LCD display
- */
- #include <LiquidCrystal_I2C_Hangul.h>
- // initialize the library
- LiquidCrystal_I2C_Hangul lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
- void setup()
- {
- lcd.init(); // initialize the lcd
- // Print a message to the LCD.
- lcd.backlight();
- lcd.setCursor(0,0);
- lcd.print("Hola, welcome to");
- lcd.setCursor(3,1);
- lcd.print("X-Institute!");
- }
- void loop()
- {
- // nothing
- }
|