1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Arduino用 touch displayのサンプル実行まで

Last updated at Posted at 2019-10-09

タッチディスプレイを複数使いたかったのでテスト。
使い倒す以前に視野角が狭くて、用を成さなかったので、別の用途を考える。

環境

Windows 8
Arduino IDE 1.8.4
KEYESTUDIO UNO R3 (Arduino Uno互換品)
Kuman Arduino用ディスプレイ タッチスクリーン 2.8 inch 320*240ピクセル LCD 16bit Arduino Nano Mega2560適用ディスプレイ K60

準備

添付の8cm CDの
Arduino Demo_UNO&Mega2560\Install libraries
の中の
Adafruit_GFX
Adafruit_TFTLCD
TouchScreen
3フォルダを
C:\Users??????\Documents\Arduino\libraries
にコピーする。
または、ネットからダウンロードする。
※ダウンロードは、右端の緑のボタンから行う。
https://github.com/adafruit/Adafruit-GFX-Library
https://github.com/adafruit/TFTLCD-Library
https://github.com/adafruit/Adafruit_TouchScreen
※ライブラリを追加後に、arduinoを起動しないと認識しない。

実行

8cm CDの中のArduino Demo_UNO&Mega2560のサンプルを実行する。

Example01-Simple test

赤緑青のワイプで塗りつぶされる。
1686A789-467C-4DEB-90E7-447ECDA9100E.jpeg

Example02-DisplayString

ABC文字と数字がサイズ違いで表示される。040EB4AD-7511-4AA8-AC04-1CF8D91DB25D.jpeg

Example03-graphicstest

線とか円でグラッフィクが描かれる。
2D4C20EF-8750-476C-87D9-E4C5C997B13C.jpeg

Example04-Touch

6色のパレットがあり、タッチ(圧力)で色選択とペンでの描画が出来る。
812D1809-655B-4341-8410-7F7C89A382E7.jpeg

Example05-ShowBMP

microSDにBMP画像を入れておき、スライドショー表示が出来る。
PICフォルダに
サンプル画像が4つあり、240x320 24bit 225KBである。
8cm CDの
Tools-Image2Lcd 2.9\Image2Lcd 2.9(Crack version)
に変換ツールっぽいのがあるけど、なんだろう?
ccc.png
E92802EB-225D-4ABD-BFF6-9A9A66D6CF98.jpeg

Example06-Phonecal

電話のプッシュボタンみたいな表示が出て入力が出来る。
もちろんこれで電話をかけることはできない。
89E1EB0B-E60E-4034-80B9-C08ED6B8292C.jpeg

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?