LiquidCrystal_I2C_Hangul.ino 1.1 KB

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