Arduino/みんな試作機/LCD表示
をテンプレートにして作成
[
トップ
] [
新規
| |
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
** LCD 表示 [#v419071e]
-- 概要:~
16桁×2行の液晶パネル([[SC1602BS-B>http://akizukidenshi.co...
~
-- ポイント~
--- 簡単(例によって。)~
--- 安い(例によって。)~
~
-- 配線~
使いまわしすることになるので、ユニバーサル基板に LCD を固...
&ref(sany0146.jpg,,320x240); &ref(LCDsocket.jpg,,180x240);~
※ 図中手書きの数字は Arduino のデジタル入出力ピンの番号を...
~
※ 後で考えると、Liquid Cristal の初期化の時の引数の順番に...
~
~
-- プログラム~
/*
LiquidCrystal Library - Hello World
*/
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interf...
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting beg...
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
※ Liquid Crystal Library のサンプルプログラムのまま。
~
-- 動作の様子~
&ref(sany0159.jpg,,320x240);
--- [[USBタイプ>../../Arduino の自作/USBTYPE]]の場合、d7(...
USBasp デバイスとして動き出すので当たり前なのかも。
--- [[USBタイプ>../../Arduino の自作/USBTYPE]]の場合、LCD...
USB からの2本の信号線 (68Ωでつながれている部分)は外してお...
~
→ 結論としては、[[USBタイプ>../../Arduino の自作/USBTYPE]...
(PCからプログラムを送るときと、アプリケーションで使うとき...
ということだ。
~
*** 記録 [#j3120b86]
-- 参考URL
--- [[Arduion 日本語リファレンス>http://www.musashinodenp...
--- [[エレキジャックの連載記事その1>http://www.eleki-jack...
--- [[エレキジャックの連載記事その2>http://www.eleki-jack...
--- [[エレキジャックの連載記事その3>http://www.eleki-jack...
--- [[エレキジャックの連載記事その4>http://www.eleki-jack...
--- [[エレキジャックの連載記事その5>http://www.eleki-jack...
-- 履歴~
--- 2010-06-22 Webに掲載
--- 2010-06-21 動作確認
--- 2010-06-18 作りはじめ。LCD 周りの基板を作る
終了行:
#topicpath
** LCD 表示 [#v419071e]
-- 概要:~
16桁×2行の液晶パネル([[SC1602BS-B>http://akizukidenshi.co...
~
-- ポイント~
--- 簡単(例によって。)~
--- 安い(例によって。)~
~
-- 配線~
使いまわしすることになるので、ユニバーサル基板に LCD を固...
&ref(sany0146.jpg,,320x240); &ref(LCDsocket.jpg,,180x240);~
※ 図中手書きの数字は Arduino のデジタル入出力ピンの番号を...
~
※ 後で考えると、Liquid Cristal の初期化の時の引数の順番に...
~
~
-- プログラム~
/*
LiquidCrystal Library - Hello World
*/
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interf...
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting beg...
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
※ Liquid Crystal Library のサンプルプログラムのまま。
~
-- 動作の様子~
&ref(sany0159.jpg,,320x240);
--- [[USBタイプ>../../Arduino の自作/USBTYPE]]の場合、d7(...
USBasp デバイスとして動き出すので当たり前なのかも。
--- [[USBタイプ>../../Arduino の自作/USBTYPE]]の場合、LCD...
USB からの2本の信号線 (68Ωでつながれている部分)は外してお...
~
→ 結論としては、[[USBタイプ>../../Arduino の自作/USBTYPE]...
(PCからプログラムを送るときと、アプリケーションで使うとき...
ということだ。
~
*** 記録 [#j3120b86]
-- 参考URL
--- [[Arduion 日本語リファレンス>http://www.musashinodenp...
--- [[エレキジャックの連載記事その1>http://www.eleki-jack...
--- [[エレキジャックの連載記事その2>http://www.eleki-jack...
--- [[エレキジャックの連載記事その3>http://www.eleki-jack...
--- [[エレキジャックの連載記事その4>http://www.eleki-jack...
--- [[エレキジャックの連載記事その5>http://www.eleki-jack...
-- 履歴~
--- 2010-06-22 Webに掲載
--- 2010-06-21 動作確認
--- 2010-06-18 作りはじめ。LCD 周りの基板を作る
ページ名: