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 "Keyboard.h" | |
#include "Mouse.h" | |
const int KeyNum = 8; | |
int threshold[KeyNum] = { | |
//しなぷすのハード製作記 https://synapse.kyoto/calc/ResDiv/page001.html にて算出 | |
46, 161, 296, 437, 585, 728, 857, 974 | |
// R1 : 1kΩ 1k | |
// R2 : 110Ω 120 |
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 <M5Stack.h> | |
#include <WiFi.h> | |
#include <IRremote.h> | |
#include <WiFiClient.h> | |
String wifi_ssid = "*****"; //wifiのssid | |
String wifi_password = "*****"; //wifiのパスワード | |
int sendPin = 26; | |
boolean settingMode; |
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 <ESP8266WiFi.h> | |
#include <IRremoteESP8266.h> | |
#include <IRsend.h> | |
const char* ssid = "*****"; //wifiのssid | |
const char* password = "*****"; //wifiのパスワード | |
const char* host = "xxx.xxx.xxx.xxx"; //Scratchの入っているPCのIPアドレス | |
const int Port = 42001; |
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
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please click on the following link | |
to open the list of Firmata client libraries in your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
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
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please click on the following link | |
to open the list of Firmata client libraries in your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
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 <IOXhop_FirebaseESP32.h> | |
// Set these to run example. | |
#define WIFI_SSID "xxxxxxxx" | |
#define WIFI_PASSWORD "xxxxxxxx" | |
#define FIREBASE_DB_URL "home-messenger-xxxxx.firebaseio.com" | |
#define FIREBASE_DB_DATA_PATH "/messages" | |
#define FIREBASE_DB_DATA_KEY "/mobile1ToHome" | |
#include <ESP32_SD_ShinonomeFNT.h> | |
#include <ESP32_SD_UTF8toSJIS.h> |