AWOL:
You're simply defining new variables in your function that go out of scope almost immediately. To be of any use, you can simply assign the values to the global variables of the same names.
What happened to the code tags?
Here, I've got a spare pair you can have: [code][/code]
Oh.. I'm sorry... My mistake..
#include "LiquidCrystal.h"
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int cmd = 0;
byte a_1[8] = {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
};
byte a_2[8] = {
B00000,
B10001,
B00000,
B00000,
B10001,
B01110,
B00000,
};
void korean(int i)
{
if(i==1)
{
byte a_1[8] = {
B10101,
B11101,
B10101,
B11101,
B00000,
B01110,
B01110,
};
cmd = 1;
}
else
{
byte a_1[8] = {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
};
}
}
void setup() {
Serial.begin(115200);
korean(1);
lcd.createChar(0, a_1);
lcd.begin(16, 2);
lcd.write(byte(0));
}
void loop() {
}