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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
#include <M5Core2.h> | |
void setup() { | |
// initialize both serial ports: | |
//Serial.begin(115200); | |
M5.begin();//この中でSerial(USB Serial)の115200宣言含む | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1,19, 27);//GPIO19:RX ,GPIO27:TX | |
} |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 19, 23);//GPIO19:RX=pin31,GPIO23:TX=pin37 | |
} | |
void loop() { |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 5, 18);//GPIO5:RX=pin29,GPIO18:TX=pin30 | |
} | |
void loop() { |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 0, 4);//GPIO0:RX=pin25,GPIO4:TX=pin26 | |
} | |
void loop() { |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 27, 2);//GPIO27:RX=pin12,GPIO2:TX=pin24 | |
} | |
void loop() { |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 25, 26);//GPIO25:RX=pin10,GPIO26:TX=pin11 | |
} | |
void loop() { |
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
//HardwareSerial Serial2(2);//これは不要でいれるとエラーになる | |
void setup() { | |
// initialize both serial ports: | |
Serial.begin(115200); | |
//Serial2.begin(115200); | |
Serial1.begin(115200, SERIAL_8N1, 32, 33);//RX,TX | |
} | |
void loop() { |
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 <WiFiUdp.h> | |
const char ssid[] = "ESP32_wifi"; // SSID | |
const char pass[] = "esp32pass"; // password | |
static WiFiUDP wifiUdp; | |
static const char *kRemoteIpadr = "192.168.4.1"; //送信先のIPアドレス | |
static const int kRmoteUdpPort = 10000; //送信先のポート | |
uint8_t tim[1000]; |
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 <WiFiUdp.h> | |
const char ssid[] = "ESP32_wifi"; // SSID | |
const char pass[] = "esp32pass"; // password | |
const int localPort = 10000; // ポート番号 | |
const IPAddress ip(192, 168, 4, 1); // IPアドレス(ゲートウェイも兼ねる) | |
const IPAddress subnet(255, 255, 255, 0); // サブネットマスク | |
uint8_t data[1000]; |
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
'**************************************************************************************************************** | |
'先端データを読んで切り取りXY座標を制御しながら先端固定モードで描画 | |
'**************************************************************************************************************** | |
Private Sub Bmp1_FixTrim(ByVal SlideVal As Integer, ByVal rNlin As Integer) | |
'------------------------------------------------------------------------------------------------ | |
'-----HscrollBar値で切り取り前進動画------------------------------------------------------------- | |
'------------------------------------------------------------------------------------------------ | |
Dim BP1 As New Pen(Color.Red, 1) | |
Dim BP2 As New Pen(Color.LawnGreen, 1) | |
Dim BP3 As New Pen(Color.Black) |