参考資料
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
// 米粒Tiny (ATtiny10)で無理やりMIDI信号を送信する | |
// 8MHz | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#define MIDI_TX_PIN PB2 | |
#define MIDI_BAUD_RATE 31250 // 32us | |
#define NOP asm volatile("nop\n\t") |
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
// | |
// ESP32(M5Stack Core 2など) を ArduinoISP として、ATTiny13A などのライターにする | |
// | |
#include <Arduino.h> | |
#define PIN_RESET 0 // Core2: G0 | |
#define PIN_MOSI MOSI// Core2: G23 | |
#define PIN_MISO MISO// Core2: G38 | |
#define PIN_SCK SCK // Core2: G18 |
INPUT SIGNAL PATH The two analogue inputs LlNPUT1/2 RlNPUT1/2 can be selected by a switch, and then followed by a PGA gain boost. The inputs can be individually selected or a differential input of either (LlNPUT1 RlNPUT1) or (LlNPUT2 RlNPUT2) may also be selected. These Inputs can be configured as microphone or line level. The
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 <Wire.h> | |
#include "driver_joy.h" | |
#define I2C_SDA_PIN 38 // M5 AtomS3 SDA | |
#define I2C_SCL_PIN 39 // M5 AtomS3 SCL | |
#define I2C_CLOCK 400000 | |
#define ATOM_JOYSTICK_ADDR 0x59 // I2Cアドレス |
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 モジュールとの接続ピン(半二重) | |
NewerOlder