This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: Latin-1 | |
# Load library functions we want | |
from inputs import get_gamepad | |
import piconzero as pz | |
import time | |
import sys | |
import random | |
import colorsys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: Latin-1 | |
# Load library functions we want | |
from inputs import get_gamepad | |
from explorerhat import motor | |
import math | |
import time | |
from blinkt import set_clear_on_exit, set_pixel, show, set_brightness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import board | |
from adafruit_ht16k33.segments import BigSeg7x4 | |
import time | |
import touchio | |
# setup the 7 segment display | |
i2c = board.I2C() | |
display = BigSeg7x4(i2c) | |
display.brightness = 0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2021 REPLACE_WITH_YOUR_NAME | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Starting") | |
import board | |
import neopixel | |
from kmk.kmk_keyboard import KMKKeyboard | |
from kmk.keys import KC | |
from kmk.scanners import DiodeOrientation | |
from kmk.scanners import intify_coordinate as ic | |
from kmk.extensions.RGB import RGB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import adafruit_sgp40 | |
import pwmio | |
from adafruit_motor import servo | |
import adafruit_ahtx0 | |
import neopixel | |
### you may need to customize these ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Example for Pico. Blinks the built-in LED.""" | |
import board | |
import digitalio | |
import os | |
import neopixel | |
from digitalio import DigitalInOut, Direction, Pull | |
from adafruit_debouncer import Debouncer | |
from adafruit_led_animation.animation.rainbow import Rainbow | |
from adafruit_led_animation.animation.rainbowchase import RainbowChase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from galactic import GalacticUnicorn | |
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY | |
import network | |
import rp2 | |
from machine import Pin | |
import socket | |
import struct | |
import utime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
device_name: slimmelezer | |
device_description: "DIY P1 module to read your smart meter" | |
esphome: | |
name: ${device_name} | |
comment: "${device_description}" | |
platform: ESP8266 | |
esp8266_restore_from_flash: true | |
board: d1_mini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
from digitalio import DigitalInOut, Direction, Pull | |
import neopixel | |
# configure your timer | |
work_minutes = 20 | |
rest_minutes = 5 | |
# define colours |
OlderNewer