Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Wire.h>
  2. #include <hd44780.h>
  3. #include <hd44780ioClass/hd44780_I2Cexp.h>
  4.  
  5. const int LCD_ROWS = 2;
  6. const int LCD_COLS = 16;
  7. hd44780_I2Cexp lcd(0x20, I2Cexp_MCP23008,7,6,5,4,3,2,1,HIGH);
  8.  
  9.  
  10. void setup() {
  11.   lcd.begin(LCD_COLS, LCD_ROWS);
  12.   lcd.setCursor(0, 0);
  13.   lcd.print("TME TESTER");
  14.   lcd.setCursor(0, 1);
  15.   lcd.print("DRUGA LINIA");
  16. }
  17.  
  18. void loop() {    
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement