Skip to content

Instantly share code, notes, and snippets.

View costyn's full-sized avatar

Costyn van Dongen costyn

  • Netherlands
View GitHub Profile
#include <stdint.h>
#include <Arduino.h>
#include "MPU6886.h"
static MPU6886 mpu;
void setup(void)
{
Serial.begin(115200);
Serial.println("\nHello World!");
#include <stdint.h>
#include <Arduino.h>
#include "MPU6886.h"
static MPU6886 mpu;
void setup(void)
{
Serial.begin(115200);
mpu.Init();
#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 <Arduino.h>
#include <FastLED.h>
#include "I2S.h"
#define BRIGHTNESS 204
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define ESP32DEVKITV1
#include <Arduino.h>
#include <FastLED.h>
#define BRIGHTNESS 200
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define ESP32DEVKITV1
#ifdef ESP32_THING
@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);
; 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 / 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: