Advertisement
MUstar

IoT 아두이노 0609 - LCD No.1-1

Jun 9th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <LiquidCrystal.h>
  2.  
  3. int pin_LCD_DATA[8] = {A8,A9,A10,A11,A12,A13,A14,A15};
  4. int pin_LCD_CTRL[3] = {A5,A6,A7};
  5. LiquidCrystal lcd(A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15);
  6.  
  7. void setup() {
  8.   lcd.begin(16,2);
  9. }
  10.  
  11. void loop() {
  12.   lcd.print("  I OKCHEON YOU. by CJ Korea Express");
  13.   while(1){
  14.     lcd.scrollDisplayLeft();
  15.     delay(500);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement