dzd
Revision 5:346d7c9dd1b2, committed 2020-10-01
- Comitter:
- kanope_benny
- Date:
- Thu Oct 01 12:07:32 2020 +0000
- Parent:
- 4:b2bbdc58967e
- Commit message:
- 2121
Changed in this revision
TM1638.cpp | Show annotated file Show diff for this revision Revisions of this file |
TM1638.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r b2bbdc58967e -r 346d7c9dd1b2 TM1638.cpp --- a/TM1638.cpp Sun Jan 31 12:11:06 2016 +0000 +++ b/TM1638.cpp Thu Oct 01 12:07:32 2020 +0000 @@ -32,7 +32,7 @@ */ TM1638::TM1638(PinName mosi, PinName miso, PinName sclk, PinName cs) : _spi(mosi,miso,sclk), _cs(cs) { - _init(); + //_init(); } /** Init the SPI interface and the controller
diff -r b2bbdc58967e -r 346d7c9dd1b2 TM1638.h --- a/TM1638.h Sun Jan 31 12:11:06 2016 +0000 +++ b/TM1638.h Thu Oct 01 12:07:32 2020 +0000 @@ -178,6 +178,8 @@ */ void setDisplay(bool on); + void _init(); + private: SPI _spi; DigitalOut _cs; @@ -188,7 +190,6 @@ * @param none * @return none */ - void _init(); /** Helper to reverse all command or databits. The TM1638 expects LSB first, whereas SPI is MSB first * @param char data