Instantly share code, notes, and snippets.

View buzz.pru0c
/*
* Copyright (C) 2018 Jason Kridner <jdk@ti.com>, Texas Instruments Incorporated
*
* Source Modified by Zubeen Tolani < ZeekHuge - zeekhuge@gmail.com >
* Based on the examples distributed by TI
*
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
View gist:72b230c6f457527490aece08c00c005d
root@beaglebone:~# i2cset -y 2 0x1c 0x2a 0x01
root@beaglebone:~# watch -n0 i2cdump -y 2 0x1c
View PixelOverlay-Countdown.pl
#!/usr/bin/perl
#############################################################################
# PixelOverlay-Countdown.pl - Scroll a Christmas Countdown across a matrix
#############################################################################
# Set our library path to find the FPP Perl modules
use lib "/opt/fpp/lib/perl/";
# Use the FPP Memory Map module to talk to the daemon
use FPP::MemoryMap;
View code.py
import time
import pulseio
import board
import adafruit_irremote
import digitalio
import neopixel
import busio
import adafruit_lis3dh
i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
View stepper.js
var b = require('bonescript');
var step = (function() {
var M1 = 1;
var M2 = 4;
var state = 0;
var enabled = 0;
return function(direction) {
if(!enabled) {
View gist:e64c42fb24cfb2d0d27ecb0cbd0cdc99
/* Work in Progress */
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
/dts-v1/;
/plugin/;
/ {
View Kconfig
config SND_PWMSP
tristate "PWM Speaker driver (PCM)"
depends on HIGH_RES_TIMERS
select SND_PCM
select PWM
help
View PocketBeagle-BaconBits-Dashboard-nodered.json
[{"id":"72060cb.70219f4","type":"inject","z":"d2b85346.b08ca","name":"","topic":"","payload":"","payloadType":"date","repeat":".1","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":260,"wires":[["feeb5c12.fd1d7"]]}]