User Tools

Site Tools


en-us_commands:reference:iclcdcreatechar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en-us_commands:reference:iclcdcreatechar [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:iclcdcreatechar [2026/09/14 20:30] (current) – external edit 127.0.0.1
Line 14: Line 14:
  
 ===== Example ===== ===== Example =====
 +
 +This example connects a 20×4 PCF8574 character LCD at address ''0x27'' to the MPAINO-8A8R(T) I2C port. Change the ''IclcdBegin()'' arguments if your LCD has a different address or size.
  
 <code cpp> <code cpp>
-const uint8_t heart[8] = { +const uint8_t heart[8] = {010313114400};
-  0b000000b010100b111110b11111, +
-  0b011100b001000b000000b00000 +
-};+
  
-IclcdCreateChar(0heart); +bool lcdReady = false; 
-IclcdSetCursor(0, 1); + 
-IclcdWrite(0);+void setup() { 
 +  lcdReady = IclcdBegin(0x2720, 4);  // Set the LCD address and display size. 
 +  if (lcdReady) { 
 +    IclcdCreateChar(0, heart);  // Store custom character 0. 
 +    IclcdWrite(0);  // Write one character to the LCD. 
 +  } 
 +
 + 
 +void loop() {}
 </code> </code>
  
Line 34: Line 41:
   * On MPAINO, using D20/D21 for external interrupts prevents simultaneous I²C use.   * On MPAINO, using D20/D21 for external interrupts prevents simultaneous I²C use.
   * ''IclcdCommand()'' can change the LCD state directly. Use it only if you understand HD44780 commands.   * ''IclcdCommand()'' can change the LCD state directly. Use it only if you understand HD44780 commands.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:iclcdbegin|IclcdBegin() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdclear|IclcdClear() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdhome|IclcdHome() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdsetcursor|IclcdSetCursor() View detailed description]]
 +  * [[:en-us_commands:reference:iclcddisplay|IclcdDisplay() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdcursor|IclcdCursor() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdblink|IclcdBlink() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdbacklight|IclcdBacklight() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdscrollleft|IclcdScrollLeft() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdscrollright|IclcdScrollRight() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdtextdirection|IclcdTextDirection() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdautoscroll|IclcdAutoscroll() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdwrite|IclcdWrite() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdcommand|IclcdCommand() View detailed description]]
 +  * [[:en-us_commands:reference:iclcdprint|IclcdPrint() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/iclcdcreatechar.1788785566.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki