Skip to content

Instantly share code, notes, and snippets.

View costyn's full-sized avatar

Costyn van Dongen costyn

  • Netherlands
View GitHub Profile
@costyn
costyn / Mac pyaudio issues.txt
Created December 6, 2021 15:16
Mac OS X Big Sur (11.4) pyaudio issues.
During pip install ledfx, the pyaudio dependency failed:
➜ ~ pip install pyaudio
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
; https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-command
; https://stackoverflow.com/questions/9134003/binary-data-posting-with-curl
[env:uno]
platform = atmelavr
framework = arduino
board = uno
upload_protocol = custom
upload_flags =
--header "Content-Type: application/json"
@costyn
costyn / hd108
Created December 16, 2020 18:44
#include <SPI.h>
#include <FastLED.h>
// Clock and data pins are whatever are SPI defaults for your board (SCK, MOSI)
// Arduino Mega 2560, Clock 52, Data 51
struct CRGB16;
#define NUM_LEDS 30
void oneFrame(uint16_t r, uint16_t g, uint16_t b);
#include <Arduino.h>
#include <FastLED.h>
#define BRIGHTNESS 200
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define ESP32DEVKITV1
#ifdef ESP32_THING
#include <Arduino.h>
#include <FastLED.h>
#include "I2S.h"
#define BRIGHTNESS 204
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define ESP32DEVKITV1
#include <Arduino.h>
#define FASTLED_ESP32_I2S
#include <FastLED.h>
#define BRIGHTNESS 204
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define LED_PIN_1 13
#include <stdint.h>
#include <Arduino.h>
#include "MPU6886.h"
static MPU6886 mpu;
void setup(void)
{
Serial.begin(115200);
mpu.Init();
#include <stdint.h>
#include <Arduino.h>
#include "MPU6886.h"
static MPU6886 mpu;
void setup(void)
{
Serial.begin(115200);
Serial.println("\nHello World!");
@costyn
costyn / circularLoaderUsingEasing
Last active May 25, 2019 11:46
My attempt at creating a circular loader
void circularLoader2() {
fill_solid(leds, NUM_LEDS, CRGB::Black);
uint8_t uneased_startP = lerp8by8( 0, NUM_LEDS, beat8( 30, 5000 ) ); // start position, runs behind endP
uint8_t uneased_endP = lerp8by8( 0, NUM_LEDS, beat8( 30 ) ); // start position
uint8_t startP = QuadraticEaseIn8( uneased_startP );
uint8_t endP = CubicEaseIn8( uneased_endP );
DEBUG_PRINT(F("startP: ")) ;
DEBUG_PRINT(startP) ;
DEBUG_PRINT(F("\t")) ;
DEBUG_PRINT(F("endP: ")) ;
0x800 Calling esp_conn 7.
0x800 Calling esp_conn 7.
0x800 Calling esp_conn 7.
0x800 Calling esp_conn 8.
0x800 Calling esp_conn 8.
0x800 Calling esp_conn 1.
0x800 Calling esp_conn 7.
0x800 Calling esp_conn 7.
0x800 Calling esp_conn 1.
SLAVE 1910771666: BPM: 120 Pattern: 5