AKJ7 / TM1637

TM1637 Library Driver for Microcontrollers
GNU General Public License v3.0
33 stars 11 forks source link

How to flash dots? #14

Closed IvSatel closed 2 years ago

IvSatel commented 2 years ago

I get the temperature, the separator is a colon. how do they blink?

IvSatel commented 2 years ago

`#include

include

include

define ONE_WIRE_BUS 8

define CLK 2

define DIO 3

TM1637 tm1637(2, 3); OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire);

void setup(void){

Serial.begin(9600); sensors.begin(); tm1637.init(); tm1637.setBrightness(1); }

void loop(void){

sensors.requestTemperatures(); String a = String(sensors.getTempCByIndex(0));

tm1637.display(a); delay(1000); tm1637.clearScreen(); a.replace(".", ""); tm1637.display(a); }`

AKJ7 commented 2 years ago

Some of those displays supports turning the dots on, some can only turn the colon on. It seems that yours can only turn the colon on.