Skip to content

Commit 7c1ef4f

Browse files
committed
1.0.0
1 parent 320aa79 commit 7c1ef4f

15 files changed

+189
-472
lines changed

LiquidCrystal_I2C_Hangul.zip

-7.26 KB
Binary file not shown.

examples/CustomChars/CustomChars.pde

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
//YWROBOT
2+
//Compatible with the Arduino IDE 1.0
3+
//Library version:1.1
4+
#include <Wire.h>
5+
#include <LiquidCrystal_I2C.h>
6+
7+
#if defined(ARDUINO) && ARDUINO >= 100
8+
#define printByte(args) write(args);
9+
#else
10+
#define printByte(args) print(args,BYTE);
11+
#endif
12+
13+
uint8_t bell[8] = {0x4,0xe,0xe,0xe,0x1f,0x0,0x4};
14+
uint8_t note[8] = {0x2,0x3,0x2,0xe,0x1e,0xc,0x0};
15+
uint8_t clock[8] = {0x0,0xe,0x15,0x17,0x11,0xe,0x0};
16+
uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0};
17+
uint8_t duck[8] = {0x0,0xc,0x1d,0xf,0xf,0x6,0x0};
18+
uint8_t check[8] = {0x0,0x1,0x3,0x16,0x1c,0x8,0x0};
19+
uint8_t cross[8] = {0x0,0x1b,0xe,0x4,0xe,0x1b,0x0};
20+
uint8_t retarrow[8] = { 0x1,0x1,0x5,0x9,0x1f,0x8,0x4};
21+
22+
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
23+
24+
void setup()
25+
{
26+
lcd.init(); // initialize the lcd
27+
lcd.backlight();
28+
29+
lcd.createChar(0, bell);
30+
lcd.createChar(1, note);
31+
lcd.createChar(2, clock);
32+
lcd.createChar(3, heart);
33+
lcd.createChar(4, duck);
34+
lcd.createChar(5, check);
35+
lcd.createChar(6, cross);
36+
lcd.createChar(7, retarrow);
37+
lcd.home();
38+
39+
lcd.print("Hello world...");
40+
lcd.setCursor(0, 1);
41+
lcd.print(" i ");
42+
lcd.printByte(3);
43+
lcd.print(" arduinos!");
44+
delay(5000);
45+
displayKeyCodes();
46+
47+
}
48+
49+
// display all keycodes
50+
void displayKeyCodes(void) {
51+
uint8_t i = 0;
52+
while (1) {
53+
lcd.clear();
54+
lcd.print("Codes 0x"); lcd.print(i, HEX);
55+
lcd.print("-0x"); lcd.print(i+16, HEX);
56+
lcd.setCursor(0, 1);
57+
for (int j=0; j<16; j++) {
58+
lcd.printByte(i+j);
59+
}
60+
i+=16;
61+
62+
delay(4000);
63+
}
64+
}
65+
66+
void loop()
67+
{
68+
69+
}
70+

examples/HelloWorld/HelloWorld.pde

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//YWROBOT
2+
//Compatible with the Arduino IDE 1.0
3+
//Library version:1.1
4+
#include <Wire.h>
5+
#include <LiquidCrystal_I2C.h>
6+
7+
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
8+
9+
void setup()
10+
{
11+
lcd.init(); // initialize the lcd
12+
lcd.init();
13+
// Print a message to the LCD.
14+
lcd.backlight();
15+
lcd.setCursor(3,0);
16+
lcd.print("Hello, world!");
17+
lcd.setCursor(2,1);
18+
lcd.print("Ywrobot Arduino!");
19+
lcd.setCursor(0,2);
20+
lcd.print("Arduino LCM IIC 2004");
21+
lcd.setCursor(2,3);
22+
lcd.print("Power By Ec-yuan!");
23+
}
24+
25+
26+
void loop()
27+
{
28+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Displays text sent over the serial port (e.g. from the Serial Monitor) on
3+
* an attached LCD.
4+
* YWROBOT
5+
*Compatible with the Arduino IDE 1.0
6+
*Library version:1.1
7+
*/
8+
#include <Wire.h>
9+
#include <LiquidCrystal_I2C.h>
10+
11+
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
12+
13+
void setup()
14+
{
15+
lcd.init(); // initialize the lcd
16+
lcd.backlight();
17+
Serial.begin(9600);
18+
}
19+
20+
void loop()
21+
{
22+
// when characters arrive over the serial port...
23+
if (Serial.available()) {
24+
// wait a bit for the entire message to arrive
25+
delay(100);
26+
// clear the screen
27+
lcd.clear();
28+
// read all the available characters
29+
while (Serial.available() > 0) {
30+
// display each character to the LCD
31+
lcd.write(Serial.read());
32+
}
33+
}
34+
}

keywords.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
###########################################
2+
# Syntax Coloring Map For LiquidCrystal_I2C_Hangul
3+
###########################################
4+
5+
###########################################
6+
# Datatypes (KEYWORD1)
7+
###########################################
8+
9+
LiquidCrystal_I2C_Hangul KEYWORD1
10+
11+
###########################################
12+
# Methods and Functions (KEYWORD2)
13+
###########################################
14+
init KEYWORD2
15+
begin KEYWORD2
16+
clear KEYWORD2
17+
home KEYWORD2
18+
noDisplay KEYWORD2
19+
display KEYWORD2
20+
noBlink KEYWORD2
21+
blink KEYWORD2
22+
noCursor KEYWORD2
23+
cursor KEYWORD2
24+
scrollDisplayLeft KEYWORD2
25+
scrollDisplayRight KEYWORD2
26+
leftToRight KEYWORD2
27+
rightToLeft KEYWORD2
28+
shiftIncrement KEYWORD2
29+
shiftDecrement KEYWORD2
30+
noBacklight KEYWORD2
31+
backlight KEYWORD2
32+
autoscroll KEYWORD2
33+
noAutoscroll KEYWORD2
34+
createChar KEYWORD2
35+
setCursor KEYWORD2
36+
print KEYWORD2
37+
blink_on KEYWORD2
38+
blink_off KEYWORD2
39+
cursor_on KEYWORD2
40+
cursor_off KEYWORD2
41+
setBacklight KEYWORD2
42+
load_custom_character KEYWORD2
43+
printstr KEYWORD2
44+
printHangul KEYWORD2
45+
setDelayTime KEYWORD2
46+
###########################################
47+
# Constants (LITERAL1)
48+
###########################################

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=LiquidCrystal_I2C_Hangul
2+
version=1.0.0
3+
author=Junwha Hong, Dohun Kim, HyungHo Kim
4+
maintainer=Junwha Hong <junwha@naver.com>
5+
sentence=A library for printing Hangul on I2C LCD displays.
6+
paragraph=The library allows to control I2C displays with functions extremely similar to LiquidCrystal library. This Library allows to print hangul on LCDs.
7+
category=Display, Hangul
8+
url=https://github.com/junwha0511/LiquidCrystal_I2C_Hangul
9+
architectures=avr

main/1_declaration.ino

Lines changed: 0 additions & 132 deletions
This file was deleted.

main/2_dictionary.ino

Lines changed: 0 additions & 24 deletions
This file was deleted.

main/3_processFunction.ino

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)