import tm1637
from machine import Pin
from utime import sleep

# Initialize the display with the correct pins
mydisplay = tm1637.TM1637(clk=Pin(0), dio=Pin(1))

while True:
    # Show a word (4 characters max for tm1637 displays)
    mydisplay.show('COOL')
    sleep(1)  # Corrected the sleep duration
    
    # Clear the display (to blank the screen)
    mydisplay.show('    ')
    sleep(1)
    
    # Example scrolling text (manually handle scrolling if needed)
    # This feature needs more manual implementation, as 'show' method might not support scrolling directly
    mydisplay.show('SG31')
    sleep(2)
    
    # Display a temperature (this assumes your library has this method)
    mydisplay.temperature(34)
    sleep(1)
    
    # Adjust the brightness to make it lower
    for x in range(8):
        mydisplay.brightness(x)
        print(x)
        sleep(0.5)  # Adjust sleep to see brightness change gradually
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
4-Digit Display