目次

IclcdPrint()

IclcdPrint()は文字列または数値をLCDに出力します。

IclcdPrint コマンドの動作フロー

bool IclcdPrint(const char value[], uint8_t device = 0)
bool IclcdPrint(const String& value, uint8_t device = 0)
bool IclcdPrint(const __FlashStringHelper* value, uint8_t device = 0)
bool IclcdPrint(char value, uint8_t device = 0)
bool IclcdPrint(unsigned char value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(int value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(unsigned int value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(long value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(unsigned long value, int base = DEC, uint8_t device = 0)
bool IclcdPrint(double value, int digits = 2, uint8_t device = 0)

コマンド

コマンド 引数 戻り値 動作
IclcdPrint(value, device) const char value[]
uint8_t device = 0
bool 文字列または数値をLCDに出力します。

使用例

void setup() {
  Serial.begin(115200);
 
  if (!IclcdBegin(0x27, 20, 4)) {  // PCF8574文字LCDのアドレスと画面サイズを設定します。
    Serial.println(F("CLCD connection failed"));
    return;
  }
 
  IclcdSetCursor(0, 0);  // カーソルを指定の列と行に移動します。
  IclcdPrint(F("ILOGICS Iclcd"));  // 文字列または数値をLCDに出力します。
  IclcdSetCursor(0, 1);  // カーソルを指定の列と行に移動します。
  IclcdPrint(1234);  // 文字列または数値をLCDに出力します。
  IclcdSetCursor(6, 1);  // カーソルを指定の列と行に移動します。
  IclcdPrint(12.34, 2);  // 文字列または数値をLCDに出力します。
}
 
void loop() {
}

注意事項

同じカテゴリの内蔵コマンド

← 内蔵コマンド一覧