arduino:m5stickc:03.lcd

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
arduino:m5stickc:03.lcd [2020/08/13 16:29] – [テキストの表示] babaarduino:m5stickc:03.lcd [2020/09/07 09:28] (現在) baba
行 6: 行 6:
  
 ===== テキストの表示 ===== ===== テキストの表示 =====
 +まずは最も単純なプログラムからスタートします.画面上にHello M5StickCを表示させるだけのプログラムを記述します.
 <html> <html>
-<a href="https://www.loom.com/share/1eaf561257d847329fb7a7ef7d23e7de"> <p>LcdにHello - Watch Video</p> <img style="max-width:300px;" src="https://cdn.loom.com/sessions/thumbnails/1eaf561257d847329fb7a7ef7d23e7de-with-play.gif"> </a>+<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%height100%;"></iframe></div>
 </html> </html>
 +<code>
 +#include <M5StickC.h>
  
-fillScreen()関数を利用して背景色描画を行います。Processingにおけるbackground()だと覚えておくとよいでしょう。新しく何かを画面上に描画したいときには必ずfillScreen()を利用して全画面の塗りつぶしを行います。+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/attic/arduino/m5stickc/03.lcd.1597303741.txt.gz
  • 最終更新: 2020/08/13 16:29
  • by baba