# createChar in i2c protocol.

**URL:** <https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399>\
**Category:** Displays\
**Created:** [February 27, 2015, 1:35pm UTC](https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399 "2015-02-27T13:35:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 27, 2015, 1:35pm UTC](https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399/1 "2015-02-27T13:35:54Z")

</div>

so recently i got this lcd [here](http://www.ebay.com/itm/310565065847?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT), and after checking the code for this [here](http://forum.arduino.cc/index.php?topic=128635.0) i was wondering how to make a custom char like the normal creatChar() command.

this is my code ill be glad if youill help me.

```plaintext
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>

#define I2C_ADDR    0x27 // <<----- Add your address here.  Find it from I2C Scanner
#define BACKLIGHT_PIN    3
#define En_pin  2
#define Rw_pin  1
#define Rs_pin  0
#define D4_pin  4
#define D5_pin  5
#define D6_pin  6
#define D7_pin  7

int n = 1;

byte smiley[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
};

LiquidCrystal_I2C	lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);

void setup()
{
 lcd.begin (16,2); //  <<----- My LCD was 16x2

 
// Switch on the backlight
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
lcd.setBacklight(HIGH);
lcd.setCursor(0,1);
  lcd.createChar(0, smiley);
  lcd.print(byte(0));
 
}

void loop()
{
}

```

---

<div class="post-metadata">

**Author:** ![floresta](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/floresta/32/213547_2.png) [@floresta](https://forum.arduino.cc/u/floresta)\
**Post date:** [February 27, 2015, 2:28pm UTC](https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399/2 "2015-02-27T14:28:43Z")

</div>

First things first. Are you able to display ordinary text on your display?

> ... and after checking the code for this here ...

That's a three page thread with 37 replies. To what part are you referring?

Don

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 27, 2015, 3:43pm UTC](https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399/3 "2015-02-27T15:43:15Z")

</div>

> floresta:  
> First things first. Are you able to display ordinary text on your display?
> 
> That's a three page thread with 37 replies. To what part are you referring?
> 
> Don

yes i was able to run other code.  
and i reffered to the last code of the writer of the post (sorry for my english)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 3:36am UTC](https://forum.arduino.cc/t/createchar-in-i2c-protocol/293399/4 "2021-05-06T03:36:52Z")

</div>

Closed on May 6, 2021, 3:36am UTC


