Pin | Desc. |
---|---|
G0 | Button |
G7 | Motor FL |
G1 | Motor FR |
G12 | Motor RL |
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
// Mac で WCH-LinkE を ARM モードから RISC-V モードに切り替える | |
// | |
// $ brew install libusb | |
// | |
// build: | |
// $ gcc -o wch_link_switch wch_link_switch.c -I/opt/homebrew/include -L /opt/homebrew/lib -lusb-1.0 | |
// | |
// 元ネタ https://github.com/wagiminator/MCU-Flash-Tools/blob/main/rvmode.py | |
#include <libusb-1.0/libusb.h> |
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 "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_task_wdt.h" | |
#include "driver/gpio.h" | |
TaskHandle_t loopTaskHandle = NULL; |
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 <M5Unified.h> | |
#include <Avatar.h> | |
using namespace m5avatar; | |
Avatar avatar; | |
#define SERVO_PIN_A 21 | |
#define SERVO_PIN_B 22 | |
void setup() |
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> | |
#define PACKED __attribute__((packed)) | |
#define SERIAL_BAUDRATE 420000 // ELRS モジュールの通信速度 | |
#define GPIO_PIN_RCSIGNAL_TX 21 // ELRS TX モジュールとの接続ピン(半二重) | |
#define GPIO_PIN_RCSIGNAL_RX 21 // ELRS 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
import urllib.request | |
import json | |
import base64 | |
import pprint | |
# Koeiro パラメータ | |
text = 'スロットルをオフにして' | |
speaker_x = 1.5 | |
speaker_y = 1.5 | |
style = 'talk' # 喜怒哀楽を指定できる |
Xcode など入っている前提
~~aqtinstall とは Another Qt installer(aqt)
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
// ELRS受信テスト | |
#include <Arduino.h> | |
#define ELRS_RX_PIN 21 | |
#define ELRS_TX_PIN 22 | |
#define ELRS_BAUD 420000 | |
#define CRSF_DEVICEADDR_FC 0xC8 | |
#define CRSF_FRAME_LENGTH 24 |
https://github.com/ExpressLRS/ExpressLRS/wiki/CRSF-Protocol
↑まずはコレを読む
- RX側: 全二重(Full Duplex) 42000 Baud / N81
- TX側: 半二重(Half Duplex)
NewerOlder