Advertisement
placek

Untitled

Jan 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <Wire.h>
  2. #include <LiquidCrystal_I2C.h>
  3.  
  4. int data;
  5. #define BACKLIGHT_PIN 3
  6. LiquidCrystal_I2C lcd(0x27, 2,1,0,4,5,6,7);
  7.  
  8. void setup(){
  9. Serial1.begin(9600);
  10. lcd.begin(16,2);
  11. lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);
  12. lcd.setBacklight(HIGH);
  13. lcd.home();
  14. }
  15.  
  16. void loop(){
  17. data=Serial1.read();
  18. lcd.print(data);
  19. delay(200);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement