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
#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) |
#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) |
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:
To claim this, I am signing this object: