Last active
March 27, 2023 00:05
-
-
Save katsuyoshi/d135a33597adfab70bf2fbc1c9799c9e to your computer and use it in GitHub Desktop.
LoRaモジュール評価ボード E220-900T22S(JP)-EV1を使ったLoRa通信送信側 M5AtomS3使用
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 <Arduino.h> | |
#include <M5Unified.h> | |
#define LORA_RX_PIN 7 | |
#define LORA_TX_PIN 6 | |
void setup() { | |
M5.begin(); | |
USBSerial.begin(115200); | |
Serial2.begin(9600, SERIAL_8N1, LORA_RX_PIN, LORA_TX_PIN); | |
delay(1000); | |
} | |
void loop() { | |
Serial2.println("Hello, lora"); | |
USBSerial.println("sent 'Hello, lora'"); | |
delay(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
[env:ATOMS3] | |
platform = espressif32@5.2.0 | |
framework = arduino | |
platform_packages = platformio/framework-arduinoespressif32@^3.20005.220925 | |
board = esp32-s3-devkitc-1 | |
lib_ldf_mode = deep | |
monitor_speed = 115200 | |
upload_speed = 1500000 | |
board_build.f_cpu = 240000000L | |
board_build.f_flash = 80000000L | |
board_build.flash_mode = dio | |
build_flags = | |
-DCORE_DEBUG_LEVEL=3 | |
-Iinclude | |
lib_deps = | |
m5stack/M5Unified@^0.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment