Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UIT2_VariableFIR_LPFHPF UIT2_VariableFIR_LPF UIT2_InputSW_LCD ADDA_Prototype_PollingSW ... more
Revision 6:b911485a6f4d, committed 2014-12-14
- Comitter:
- MikamiUitOpen
- Date:
- Sun Dec 14 07:43:01 2014 +0000
- Parent:
- 5:b4f73f5851fb
- Child:
- 7:fd23d2941f36
- Commit message:
- 7
Changed in this revision
| ACM1602NI.cpp | Show annotated file Show diff for this revision Revisions of this file |
| ACM1602NI.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
}
+
--- a/ACM1602NI.hpp Tue Dec 09 04:27:10 2014 +0000 +++ b/ACM1602NI.hpp Sun Dec 14 07:43:01 2014 +0000 @@ -11,7 +11,7 @@ // I2C2 PB_3(D3) PB_10(D6) // I2C3 PB_4(D5) or PC_9 PA_8(D7) // -// 2014/12/09, Copyright (c) 2014 MIKAMI, Naoki +// 2014/12/14, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------- // I2C_TypeDef: See stm32f401xe.h on following URL // http://mbed.org/users/mbed_official/code/mbed/file/