#include <TM1637Display.h>
const int CLK=13;
const int DIO=12;
int contador=20;
int ascendente=0;
TM1637Display display(CLK,DIO);
void setup() {
display.setBrightness(0x0a);//Establezca la pantalla al brillo máximo
}
void loop() {
///descendente/////
//if(contador>=0){
//display.showNumberDec(contador);
//contador=contador-1;
//delay(1000);
//}
////ascendente//////
if(ascendente<=30){
display.showNumberDec(ascendente);
ascendente=ascendente+1;
delay(1000);
}
}