Skip to content

Instantly share code, notes, and snippets.

/**
* Example for controlling toio core cube
* Based on BLE_client example
* author unknown
* updated by chegewara
* modified by R.Suzuki(@JA1TYE)
* License:Apache-2.0 License
* Please see https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/LICENSE for the details
*/
@JA1TYE
JA1TYE / pitch_shift_resample.py
Last active December 18, 2022 11:49
Resample type Pitch Shift Effect
from pydub import AudioSegment
import numpy as np
from pydub.playback import play
buflen = 2000
crossfadelen = 100
rate = 2.0
buf = np.zeros(buflen)
sound = AudioSegment.from_file("input.wav", "wav")
@JA1TYE
JA1TYE / pitch_shift_resample_wo_crossfade.py
Created December 18, 2022 11:41
Resample type Pitch Shift Effect without crossfading
from pydub import AudioSegment
import numpy as np
from pydub.playback import play
buflen = 2000
rate = 2.0
buf = np.zeros(buflen)
sound = AudioSegment.from_file("input.wav", "wav")
@JA1TYE
JA1TYE / Core2Commander.ino
Created October 30, 2022 06:22
Core2 Commander example for WiFi-Enabled HDMI Switcher
#include <M5Core2.h>
#include <WiFi.h>
ButtonColors colorNormal = { BLACK, WHITE, 0x8410};
ButtonColors colorPressed = { WHITE, BLACK, 0x8410};
Button HDMIIn1 = Button(0, 0, 160, 120, false, "IN 1", colorPressed,colorNormal,MC_DATUM,0,0,10);
Button HDMIIn2 = Button(160, 0, 160, 120, false, "IN 2",colorPressed, colorNormal,MC_DATUM,0,0,10);
@JA1TYE
JA1TYE / HDMISwitcher.ino
Created September 18, 2022 21:43
Arduino Sourcecode for HDMI Switcher Hack
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
//WiFi Settings
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
//MDNS Host Name