2

私の arduino uno と以下のデータシート リンクで表示できる LCD を使用して、単純なデータ文字列「ABCD」を出力しようとしています。指定した文字列ではなく、日本語の文字が LCD に出力されます。これをトラブルシューティングするためにいくつかの方法を試しましたが、まだ修正が見つかりません。データシートの文字チャートを見ると、上位ビットが間違っていることが明らかです。私がやろうとしていることについてのアイデア。

これが私のLCDのデータシートへのリンクです。

コードは次のとおりです。

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12,11,5,4,3,2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(20, 4);
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print("ABCD");
}

以下は、それが表示されているものの写真です。繰り返しますが、ABCD が出力されているはずです。

画像

4

1 に答える 1