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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#if defined(__APPLE__) | |
#include <libkern/OSByteOrder.h> | |
#define bswap_16(x) OSSwapInt16(x) | |
#define bswap_32(x) OSSwapInt32(x) |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
#if defined(__APPLE__) | |
#include <libkern/OSByteOrder.h> | |
#define bswap_16(x) OSSwapInt16(x) | |
#define bswap_32(x) OSSwapInt32(x) | |
#define bswap_64(x) OSSwapInt64(x) |
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 array | |
import pulseio | |
import board | |
import adafruit_irremote | |
import time | |
#from adafruit_circuitplayground import playground | |
HEADER_VAL = 6000 | |
BLACK = (0, 0, 0) |
Set the contents of block 1 to control WS2812FX. Will revert to default after 5 minutes.
Prefix the block with WS2812FX
and then provide preferred options: 57 53 32 38 31 32 46 58 MM CC CC CC CC SS SS RR
I hereby claim:
- I am bettse on github.
- I am bettse (https://keybase.io/bettse) on keybase.
- I have a public key whose fingerprint is D49E 4267 F792 3D35 6358 9B21 3E92 C5A7 F643 56BD
To claim this, I am signing this object: