{"id":21853585,"url":"https://github.com/lupin3000/hyperpixel-4.0-square","last_synced_at":"2025-10-08T11:31:51.340Z","repository":{"id":50968016,"uuid":"520165764","full_name":"Lupin3000/HyperPixel-4.0-Square","owner":"Lupin3000","description":"Python3 examples for Pimoroni HyperPixel 4.0 Square ","archived":false,"fork":false,"pushed_at":"2022-10-15T09:50:15.000Z","size":9105,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T05:11:18.865Z","etag":null,"topics":["hyperpixel","hyperpixel-square","hyperpixel4","kivy","opencv","pimoroni-hyperpixel","pimoroni-hyperpixel4","python","python3","raspberry","raspberry-pi","raspberrypi","tkinter"],"latest_commit_sha":null,"homepage":"https://softwaretester.info","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lupin3000.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-01T15:31:10.000Z","updated_at":"2025-02-12T22:48:39.000Z","dependencies_parsed_at":"2023-01-20T02:30:13.836Z","dependency_job_id":null,"html_url":"https://github.com/Lupin3000/HyperPixel-4.0-Square","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lupin3000/HyperPixel-4.0-Square","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lupin3000%2FHyperPixel-4.0-Square","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lupin3000%2FHyperPixel-4.0-Square/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lupin3000%2FHyperPixel-4.0-Square/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lupin3000%2FHyperPixel-4.0-Square/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lupin3000","download_url":"https://codeload.github.com/Lupin3000/HyperPixel-4.0-Square/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lupin3000%2FHyperPixel-4.0-Square/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278934169,"owners_count":26071365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hyperpixel","hyperpixel-square","hyperpixel4","kivy","opencv","pimoroni-hyperpixel","pimoroni-hyperpixel4","python","python3","raspberry","raspberry-pi","raspberrypi","tkinter"],"created_at":"2024-11-28T01:25:47.820Z","updated_at":"2025-10-08T11:31:48.602Z","avatar_url":"https://github.com/Lupin3000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HyperPixel 4.0 Square\n\nExamples for Pimoroni's [HyperPixel 4.0 Square](https://shop.pimoroni.com/products/hyperpixel-4-square) high-resolution, \nhigh-speed, 4.0\" display with optional touchscreen for Raspberry Pi written in Python 3.\n\n| Python | Description                  |\n|--------|------------------------------|\n| 3.7    | development on macos         |\n| 3.9    | testing on Raspberry Pi Zero |\n| 3.9    | testing on Raspberry Pi 4    |\n\n## Table of contents/examples\n\n- Tkinter\n  - [HyperClock](tk_modules/hyperclock.py)\n  - [HyperCoin](tk_modules/duinocoin.py)\n  - [HyperStream](tk_modules/hyperstream.py) *Raspberry PI 4 only*\n  - [HyperWeather](tk_modules/hyperweather.py) *API Key from openweathermap.org needed*\n  - [HyperHolidays](tk_modules/hyperholidays.py)\n  - [HyperTimeWeather](tk_modules/hypertimeweather.py) *API Key from openweathermap.org needed*\n  - [HyperText](tk_modules/hypertext.py)\n- Kivy\n  - [HyperCarousel](kv_modules/hypercarousel.py)\n  - [HyperVideoCarousel](kv_modules/hypervideocarousel.py) *Raspberry PI 4 only*\n\n## Note\n\n\u003e You can adapt, improve and use the code for your projects as you wish. The author of this repository take no responsibility for your use or misuse or any damage on your devices!\n\n## Usage\n\n### Run application form terminal\n\n\u003e You can run all examples in this form.\n\n```shell\n# change into HOME\n$ cd ~\n\n# clone repository\n$ git clone https://github.com/Lupin3000/HyperPixel-4.0-Square.git\n\n# change into example (eq. clock)\n$ cd ~/HyperPixel-4.0-Square/tk_modules/\n\n# execute (stop with \u003cESCAPE\u003e)\n$ python3 hyperclock.py\n```\n\n### Install fonts\n\n\u003e Please note that the fonts are only available for private use _(see [www.1001freefonts.com](https://www.1001freefonts.com))_!\n\n```shell\n# create directory\n$ mkdir ~/.fonts\n\n# copy all fonts\n$ cp ~/HyperPixel-4.0-Square/*.ttf ~/.fonts/\n```\n\n### Autostart application\n\n```shell\n# create directory\n$ mkdir -p ~/.config/autostart\n\n# create desktop file\n$ touch ~/.config/autostart/display.desktop\n```\n\nExample for display.desktop\n\n```\n[Desktop Entry]\nType=Application\nName=HyperWeather\nExec=/usr/bin/python3 ~/HyperPixel-4.0-Square/tk_modules/hyperweather.py\n```\n\n### Raspberry Bullseye\n\nOn bullseye you don't need to install any library/package for Hyperpixel! Also, i2c don't need to be enabled. \nThe only thing you need to do, is to add one line in `/boot/config.txt`.\n\n```shell\n# start editor\n$ sudo vim /boot/config.txt\n```\n\nExample of `/boot/config.txt` to enable hyperpixel display:\n\n```\n# Enable DRM VC4 V3D driver\ndtoverlay=vc4-kms-v3d\ndtoverlay=vc4-kms-dpi-hyperpixel4sq\n```\n\nRestart the device and the display should work!\n\n### Install python dependencies\n\n```shell\n# install via pip from file\n$ pip3 install -r requirements.txt\n\n# verify installed pip packages (optional)\n$ pip3 freeze\n```\n\n### Install packages for speach recognition\n\n\u003e Depend on API you like to use!!!\n\n```shell\n# minimum needed packages\n$ sudo apt install espeak python3-pyaudio\n\n# optional or if issues (sphinx)\n$ sudo apt install flac pavucontrol libportaudio2 libportaudiocpp0 portaudio19-dev\n$ sudo apt install swig libpulse-dev bison libasound2-dev alsa-utils gcc python3-pocketsphinx\n```\n\n```shell\n# list playback hardware devices\n$ aplay -l\n\n# list capture hardware devices\n$ arecord -l\n```\n\n## Error\n\nIf you failed and see error like \"No module named cv2\"\n\n```shell\n# update apt and install needed apt packages\n$ sudo apt update \u0026\u0026 sudo apt install python3-opencv\n\n# verify installation (optional)\n$ python3 -c \"import cv2\"\n```\n\nIf you failed and see error like \"cannot import name ImageTk from PIL\"\n\n```shell\n# update apt and install needed apt packages\n$ sudo apt update \u0026\u0026 sudo apt install python3-pil python3-pil.imagetk\n\n# verify installation (optional)\n$ python3 -c \"from PIL import ImageTk\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupin3000%2Fhyperpixel-4.0-square","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupin3000%2Fhyperpixel-4.0-square","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupin3000%2Fhyperpixel-4.0-square/lists"}