Skip to content

Instantly share code, notes, and snippets.

@gboone
gboone / display.py
Last active February 3, 2023 16:35
Script to display some basic info from a pihole on an adafruit 1.14" tft display. Buttons control pihole and display a qr code for the wifi network
#! /usr/bin/python3
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# -*- coding: utf-8 -*-
# to test, edit /etc/rc.local then reboot
import time
import subprocess
import digitalio