差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| arduino:m5stickc:03.lcd [2020/08/13 08:59] – ↷ arduino:m5stick:03.lcd から arduino:m5stickc:03.lcd へページを移動しました。 baba | arduino:m5stickc:03.lcd [2020/09/07 09:28] (現在) – baba | ||
|---|---|---|---|
| 行 6: | 行 6: | ||
| ===== テキストの表示 ===== | ===== テキストの表示 ===== | ||
| - | fillScreen()関数を利用して背景色描画を行います。Processingにおけるbackground()だと覚えておくとよいでしょう。新しく何かを画面上に描画したいときには必ずfillScreen()を利用して全画面の塗りつぶしを行います。 | + | まずは最も単純なプログラムからスタートします.画面上にHello M5StickCを表示させるだけのプログラムを記述します. |
| + | < | ||
| + | <div style=" | ||
| + | </ | ||
| + | < | ||
| + | #include < | ||
| + | void setup() { | ||
| + | // put your setup code here, to run once: | ||
| + | M5.begin(); | ||
| + | M5.Lcd.setRotation(1); | ||
| + | M5.Lcd.print(" | ||
| + | } | ||
| + | void loop() { | ||
| + | // put your main code here, to run repeatedly: | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 詳しい情報 ===== | ||
| + | < | ||
| + | <div style=" | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | {{indexmenu>: | ||