Class library for LCD character display ACM1602NI using I2C on Nucleo. Nucleo 用 I2C 接続の LCD キャラクタ・ディスプレー ACM1602Ni 用のクラス・ライブラリ.
Dependents: UIT2_VariableFIR_LPFHPF UIT2_VariableFIR_LPF UIT2_InputSW_LCD ADDA_Prototype_PollingSW ... more
Diff: ACM1602NI.cpp
- Revision:
- 6:b911485a6f4d
- Parent:
- 5:b4f73f5851fb
- Child:
- 7:fd23d2941f36
--- a/ACM1602NI.cpp Tue Dec 09 04:27:10 2014 +0000 +++ b/ACM1602NI.cpp Sun Dec 14 07:43:01 2014 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------- // Class for LCD, ACM1602Ni // -// 2014/12/09, Copyright (c) 2014 MIKAMI, Naoki +// 2014/12/14, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------- #include "ACM1602NI.hpp" @@ -53,7 +53,7 @@ // Write string from specified position void Acm1602Ni::WriteStringXY(const char str[], - uint8_t x, uint8_t y) + uint8_t x, uint8_t y) { SetXY(x, y); WriteString(str); @@ -66,7 +66,7 @@ bool Acm1602Ni::LcdTx(uint8_t cmdData, uint8_t data) { if (!Start()) return false; - // defines king of "data" in next statement + // defines kind of "data" in next statement TxDR(cmdData); TxDR(data); wait_us(500); // indispensable @@ -78,7 +78,7 @@ // Preparation for send of command and data bool Acm1602Ni::Start() { - const uint8_t WAIT = 20; + const uint8_t WAIT = 30; const uint8_t LENGTH = 10; // wait for I2C not busy @@ -115,3 +115,4 @@ return true; } } +