Since PWM is a little fraught with gotchas, this is mostly a message to future me-
(Note to self, rtfm - https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf)
pin | a0 | a3 |
---|---|---|
GPIO19 | PWM0_CHAN3 | |
GPIO18 | PWM0_CHAN2 |
import rp2 | |
import time | |
import uctypes | |
from array import array | |
from machine import Pin | |
PIN_LED_DATA = 8 | |
PIN_LED_CLOCK = 9 | |
PIN_LED_LATCH = 10 | |
PIN_LED_BLANK = 11 |
Since PWM is a little fraught with gotchas, this is mostly a message to future me-
(Note to self, rtfm - https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf)
pin | a0 | a3 |
---|---|---|
GPIO19 | PWM0_CHAN3 | |
GPIO18 | PWM0_CHAN2 |
CFLAGS_ALL=-I../libusbgx/build/include -I../bcm2835-1.68/build/include -L../bcm2835-1.68/build/lib -I../lua-5.4.0/src -L../libusbgx/build/lib -L../libserialport/build/lib -L../lua-5.4.0/src -lpng -lz -lpthread -llua -lm -lbcm2835 -ldl | |
pi400: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig -DPI400_USB | |
pi400: pi400.c gadget-hid.c | |
$(CC) $^ $(CFLAGS) -o $@ | |
pi400test: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig | |
pi400test: pi400.c gadget-hid.c | |
$(CC) $^ $(CFLAGS) -o $@ |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="500a", MODE="0660", GROUP="dialout" |
......................................................................... | |
.U....................................................................... | |
....W.U.................................................................. | |
.S....................................................................... | |
......................................................................... | |
......................................................................... | |
......................................................................... | |
.....NYNYNYNYNYNYNYNYNYNYNYNYNYNYNYNYNYN11G0............................. | |
......Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.01G1............................. | |
.S.......J...........J...........J...J.J..0....................2V1....... |
#!/usr/bin/env python | |
import json | |
import cv2 | |
import os | |
import imutils | |
import buttonshim | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from SocketServer import ThreadingMixIn | |
from ChangeDetector import ChangeDetector | |
import time |
import unicornhathd | |
import time | |
from threading import Thread | |
import colorsys | |
MIDI_NOTE_OFF = 0x80 | |
MIDI_NOTE_ON = 0x90 | |
MIDI_AFTERTOUCH = 0xA0 | |
MIDI_CC = 0xB0 | |
MIDI_PATCH = 0xC0 |
#!/usr/bin/env python | |
import colorsys | |
import time | |
import RPi.GPIO as GPIO | |
try: | |
import numpy | |
except ImportError: |
#!/usr/bin/env python | |
import scrollphathd | |
from scrollphathd.fonts import font5x7 | |
from flask import Flask, request | |
import threading | |
import queue | |
import signal | |
import time | |
from zeroconf import ServiceInfo, Zeroconf |