User Tools

Site Tools


en-us_commands:reference:iclcdbegin

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:iclcdbegin [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:iclcdbegin [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1
Line 17: Line 17:
 <code cpp> <code cpp>
 void setup() { void setup() {
-  bool lcd1 = IclcdBegin(0x27, 20, 4, true, 0); +  Serial.begin(115200);
-  bool lcd2 = IclcdBegin(0x26, 16, 2, true, 1);+
  
-  if (lcd1IclcdPrint("MAIN", 0); +  if (!IclcdBegin(0x27, 20, 4)) {  // Set the address and dimensions of the PCF8574 character LCD. 
-  if (lcd2) IclcdPrint("SUB", 1);+    Serial.println(F("CLCD connection failed")); 
 +    return
 +  
 + 
 +  IclcdSetCursor(0, 0);  // Move the cursor to the specified column and row. 
 +  IclcdPrint(F("ILOGICS Iclcd"));  // Print a string or number to the LCD. 
 +  IclcdSetCursor(0, 1);  // Move the cursor to the specified column and row. 
 +  IclcdPrint(1234);  // Print a string or number to the LCD. 
 +  IclcdSetCursor(6, 1);  // Move the cursor to the specified column and row. 
 +  IclcdPrint(12.34, 2);  // Print a string or number to the LCD.
 } }
  
Line 36: Line 44:
   * 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: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:iclcdcreatechar|IclcdCreateChar() 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/iclcdbegin.1788785566.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki