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
/** | |
* 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 | |
*/ |
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
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") |
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
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") |
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 <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); | |
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 <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 |