Skip to content

Instantly share code, notes, and snippets.

View adammhaile's full-sized avatar

Adam Haile adammhaile

View GitHub Profile
@adammhaile
adammhaile / serial_test.py
Created April 23, 2017 18:33
serial_test
from bibliopixel import LEDStrip
from bibliopixel.drivers.channel_order import ChannelOrder
from bibliopixel.drivers.serial import DriverSerial, LEDTYPE
from bibliopixel.drivers.serial.devices import Devices
from bibliopixel.animation import StripChannelTest
import bibliopixel.log as log
import time
log.setLogLevel(log.DEBUG)
[Unit]
Description=PixelWeb Server
After=multi-user.target
[Service]
Type=idle
ExecStart=screen -dS pixelweb -m run-pixelweb
[Install]
WantedBy=multi-user.target
2016-09-26 23:50:25,652 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2016-09-26 23:50:26,594 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2016-09-26 23:50:26,621 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2016-09-26 23:50:26,627 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2016-09-26 23:50:26,865 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from http://plugins.octoprint.org/plugins.json
2016-09-26 23:50:26,960 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2016-09-26 23:50:27,193 - octoprint.plugins.announcements - INFO - Loaded channel _important from http://octoprint.org/feeds/important.xml in 0.22s
2016-09-26 23:50:27,967 - octoprint.server - INFO - Preemptively caching / for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.0.1.139/'}
2016-09-26 23:
w __deregister_frame_info
w __fini_array_end
w __fini_array_start
w __libc_fini
w __register_frame_info
U __stack
w _Jv_RegisterClasses
U hardware_init_hook
U software_init_hook
00000000 T _VectorsFlash
@adammhaile
adammhaile / .gitignore
Last active August 24, 2016 23:38
Embross
*.pyc
#include <SmartMatrix3.h>
#include <EEPROM.h>
#define FIRMWARE_VER 2
namespace CMDTYPE
{
enum CMDTYPE
{
SETUP_DATA = 1,
@adammhaile
adammhaile / WS281X.py
Created July 28, 2016 21:37
BP Testing
import time
from bibliopixel.drivers.driver_base import DriverBase, ChannelOrder
from bibliopixel import gamma
from neopixel import *
# Default LED strip configuration:
# num = 16 # Number of LED pixels.
# ledPin = 18 # GPIO pin connected to the pixels (must support PWM! pin 13 or 18 on RPi 3).
# ledFreqHz = 800000 # LED signal frequency in hertz (800khz or 400khz)
# ledDma = 5 # DMA channel to use for generating signal (Between 1 and 14)
from bibliopixel.animation import BaseAnimation
from threading import Lock
import time
class AnimationChooser(BaseAnimation):
def __init__(self, led):
super(AnimationChooser, self).__init__(led)
self.anims = {}
self.curAnim = None
from bibliopixel.animation import BaseCircleAnim
import bibliopixel.colors as colors
class DiskBloom(BaseCircleAnim):
def __init__(self, led, spread = 1):
super(DiskBloom, self).__init__(led)
self.spread = spread
def step(self, amt = 8):
from bibliopixel import LEDCircle
def genDisplayParams():
rings = [
#14,
[348,349],
#13
[342,343,344,345,346,347],
#12
[334, 335, 336, 337, 338, 339, 340, 341],