オリジナル: https://github.com/lessu/open_dp100/blob/master/DP100_Protocol.md
デバイス: Alientek DP100
私は主にmacOSを使用し、次にlinux、Windowsを使用することはあまりありません。
Alientekは、唯一Windows用の.net Dllを提供するため、二次開発には非常に不便です。
| /* | |
| * SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD | |
| * | |
| * SPDX-License-Identifier: Unlicense OR CC0-1.0 | |
| */ | |
| #include <string.h> | |
| #include <math.h> | |
| #include "freertos/FreeRTOS.h" | |
| #include "freertos/task.h" | |
| #include "esp_log.h" |
| #include <M5Unified.h> | |
| extern "C" void app_main(void) { | |
| auto cfg = M5.config(); | |
| cfg.internal_spk = false; | |
| cfg.internal_mic = false; | |
| M5.begin(cfg); | |
| M5.Lcd.clear(TFT_BLUE); | |
| M5.Lcd.setTextSize(2); |
| // Alientek DP100 Control Test | |
| // @GOROman | |
| // for MacOS | |
| // > brew install hidapi | |
| // > gcc -o dp100 dp100.c -I/opt/homebrew/include/ -L/opt/homebrew/lib -lhidapi | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> |
オリジナル: https://github.com/lessu/open_dp100/blob/master/DP100_Protocol.md
デバイス: Alientek DP100
私は主にmacOSを使用し、次にlinux、Windowsを使用することはあまりありません。
Alientekは、唯一Windows用の.net Dllを提供するため、二次開発には非常に不便です。
| // 米粒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") |
| // | |
| // 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
| #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アドレス |
| // 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> |