Skip to main content

Simulates Pimoroni's Blinkt! using pygame.

Project description

Simulates Pimoroni’s Blinkt! allowing Blinkt! code to developed and tested on any computer.


    import blinkt
except ImportError:
    import blinkt_sim as blinkt

Example Application

import time
import sys

    import blinkt
    print("Blinkt! detected")
except ImportError:
    from blinkt_sim import blinkt_sim as blinkt
    print("Using Blinkt! simulator")

print("Press Ctrl+C to exit")

    while True:
        for i in range(8):
            blinkt.set_pixel(i, 255, 0, 0, 0.75)

except KeyboardInterrupt:  # Handle Ctrl+C gracefully


Thanks to Jannis Hermanns for creating the unicorn-hat-sim which was the inspiration for this project.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
blinkt_sim-1.0.0-py3-none-any.whl (4.4 kB) Copy SHA256 hash SHA256 Wheel py3
blinkt-sim-1.0.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page