From c92f6a46d13ff64e113a4d7680ce76f5113e71f0 Mon Sep 17 00:00:00 2001 From: downeyboy Date: Thu, 11 Jul 2019 10:05:30 +0800 Subject: [PATCH] fix : compatible with WIO W600 --- HT16K33_driver.cpp | 5 +++++ HT16K33_driver.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HT16K33_driver.cpp b/HT16K33_driver.cpp index 8563db3..a67b72b 100644 --- a/HT16K33_driver.cpp +++ b/HT16K33_driver.cpp @@ -71,3 +71,8 @@ void HT16K33::setBlinkRate(blink_type_t blink_type) writeBytes(_addr, (0x80 | 0x01 | (blink_type << 1)), 0, (uint8_t *)NULL); } +void HT16K33::clear() +{ + +} + diff --git a/HT16K33_driver.h b/HT16K33_driver.h index b585a22..63ec506 100644 --- a/HT16K33_driver.h +++ b/HT16K33_driver.h @@ -70,7 +70,8 @@ enum blink_type_t class HT16K33 { public: - HT16K33(){} + HT16K33(){}; + void init(uint8_t addr); void setBlinkRate(blink_type_t blink_type);