20 lines
		
	
	
		
			335 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			335 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <Wire.h>
 | 
						|
#include <LiquidCrystal_I2C.h>
 | 
						|
 | 
						|
const char surname[] = {'S', 'h', 'w', 'e', 'd'};
 | 
						|
 | 
						|
LiquidCrystal_I2C lcd(0x27, 16, 2);
 | 
						|
 | 
						|
void setup() {
 | 
						|
  lcd.init();
 | 
						|
  lcd.backlight();
 | 
						|
    for (int i = i; i < sizeof(surname) / sizeof(char); ++i) {
 | 
						|
      lcd.setCursor(i, i % 2);
 | 
						|
      lcd.print(surname[i]);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void loop() {
 | 
						|
 | 
						|
}
 |