v1.8.0 - Add begin() for Initialization
What's Changed
- Updated library operation to include an initializing method
begin()
to move hardware related calls outside the class constructor, as reported in #28 and submitted by @mgesteiro in PR #29
Example Best Practice
#include <TM1637TinyDisplay.h>
TM1637TinyDisplay display(CLK, DIO); // Instantiate TM1637TinyDisplay Class
void setup() {
display.begin(); // Initialize Display
display.setBrightness(BRIGHT_HIGH);
}
void loop() {
display.showString("HELLO");
delay(500);
}
New Contributors
- @mgesteiro made their first contribution in #29
Full Changelog: v1.7.1...v1.8.0