Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Epler jepler

View GitHub Profile
View fib4.py
#!/usr/bin/python3
import sys
import math
from dataclasses import dataclass
from multiprocessing.pool import ThreadPool as Pool
def add(x):
return x[0] + x[1]
def mul(x):
View code.py
from adafruit_led_animation.animation.rainbowcomet import RainbowComet
from adafruit_led_animation.animation.comet import Comet
from adafruit_led_animation.sequence import AnimationSequence
from adafruit_led_animation.helper import PixelMap
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation.color import colorwheel
from neopio import NeoPIO
import board
import random
import neopixel
View fib4.py
#!/usr/bin/python3
import sys
from dataclasses import dataclass
from multiprocessing.pool import ThreadPool as Pool
def add(x):
return x[0] + x[1]
def mul(x):
return x[0] * x[1]
View adafruit_piopixl8.py
# SPDX-FileCopyrightText: 2016 Damien P. George
# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Carter Nelson
# SPDX-FileCopyrightText: 2019 Roy Hooper
# SPDX-FileCopyrightText: 2020 Jeff Epler
#
# SPDX-License-Identifier: MIT
"""
`neopixel` - PioPixl8 strip driver
View piopixl8.py
# SPDX-FileCopyrightText: 2016 Damien P. George
# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Carter Nelson
# SPDX-FileCopyrightText: 2019 Roy Hooper
#
# SPDX-License-Identifier: MIT
"""
`neopixel` - PioPixl8 strip driver
====================================================
@jepler
jepler / 0000README.md
Last active Feb 17, 2021
piopixel WIP
View 0000README.md

Work in progress: Run 8 neopixel strips from one Raspberry Pi Pico and a '595 shift register.

View code_pixel.py
from adafruit_led_animation.animation.rainbow import Rainbow
from adafruit_led_animation.animation.rainbowchase import RainbowChase
from adafruit_led_animation.animation.rainbowcomet import RainbowComet
from adafruit_led_animation.animation.rainbowsparkle import RainbowSparkle
from adafruit_led_animation.helper import PixelMap
from adafruit_led_animation.group import AnimationGroup
from adafruit_led_animation.sequence import AnimationSequence
import piopixl8
import board
View piopixl8.py
import time
import random
import board
import busio
import digitalio
import gc
import rp2pio
import adafruit_pioasm
View piopixl8.py
import time
import random
import board
import busio
import digitalio
import gc
import rp2pio
import adafruit_pioasm
View piopixl8.py
import time
import random
import board
import busio
import digitalio
import gc
import rp2pio
import adafruit_pioasm