#!/usr/bin/env python # -*- coding: utf-8 -*- # https://raspberrytips.nl import sys import time import datetime import RPi.GPIO as GPIO import tm1637 from random import randint #CLK -> GPIO23 (Pin 16) #Di0 -> GPIO24 (Pin 18) Display = tm1637.TM1637(23,24,tm1637.BRIGHT_TYPICAL) Display.Clear() Display.SetBrightnes(1) Display.ShowDoublepoint(0) while(True): a = randint(0,15) b = randint(0,15) c = randint(0,15) d = randint(0,15) Display.Show([a,b,c,d]) time.sleep(0.1)