Skip to content

v1.8.0 - Add begin() for Initialization

Compare
Choose a tag to compare
@jasonacox jasonacox released this 20 Feb 03:04
· 26 commits to master since this release

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

Full Changelog: v1.7.1...v1.8.0