文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== LCD ====== M5StickCには最初から小さなLCDディスプレイが搭載されています。背面の情報に記載されているとおりですが、80x160[px]の解像度です。詳しい情報は * https://lang-ship.com/reference/unofficial/M5StickC/Class/M5Display/ を参照するとよいでしょう。このページでは基本的な使い方を紹介します。 ===== テキストの表示 ===== まずは最も単純なプログラムからスタートします.画面上にHello M5StickCを表示させるだけのプログラムを記述します. <html> <div style="position: relative; padding-bottom: 62.5%; height: 0;"><iframe src="https://www.loom.com/embed/1eaf561257d847329fb7a7ef7d23e7de" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div> </html> <code> #include <M5StickC.h> void setup() { // put your setup code here, to run once: M5.begin(); M5.Lcd.setRotation(1); M5.Lcd.print("Hello M5StickC"); } void loop() { // put your main code here, to run repeatedly: } </code> ===== 詳しい情報 ===== <html> <div style="position: relative; padding-bottom: 62.5%; height: 0;"><iframe src="https://www.loom.com/embed/a0cb19c6281343ffa58489eda49772de" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div> </html> ---- {{indexmenu>:arduino:m5stickc#1|js#indextheme navbar}} /home/users/2/lolipop.jp-4404d470cd64c603/web/ws/data/pages/arduino/m5stickc/03.lcd.txt 最終更新: 2020/09/07 09:28by baba