Would you mind looking at the following.
Although my code (that I post below) does not crash - I notice that I get some warning by my python builder.
I d like to verify with you if this might show that I am doing stuff wrong in the set up and software installation that I did in the beginning.
Code:
Code: Select all
import time
# Import all board pins.
import board
import busio
# Import the HT16K33 LED segment module.
#from adafruit_ht16k33 import segments
import segments
import ht16k33
# Create the I2C interface.
i2c = busio.I2C(board.SCL, board.SDA)
display = segments.BigSeg7x4(i2c)
# Clear the display.
display.fill(0)
time.sleep(2)
display.fill(1)
time.sleep(2)
# Can just print a number
display.fill(0)
time.sleep(2)
# Or, print the time
display.print(":")
time.sleep(2)
print("ready")