ハンズオンは10分くらいしかないので、事前準備として下記設定をお願いします。
対象者:Mac / Win10 / Win11
Proxyを介さずインターネット接続できる環境をご準備ください。
| // XIAO-RP2040-CHICKEN example | |
| // 2022 @tadfmac | |
| /* | |
| D0 : MIC (ADC) | |
| D1 : VIB Sensor (DI) | |
| */ | |
| #include <Arduino.h> | |
| #include <Adafruit_TinyUSB.h> | |
| #include <Adafruit_NeoPixel.h> |
| // for Pro Micro | |
| #include "MIDIUSB.h" | |
| void setup() { | |
| pinMode(11,OUTPUT); | |
| } | |
| void loop() { | |
| midiEventPacket_t rx; | |
| do { |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1"> | |
| <title>MIDI Receiver (Distance) </title> | |
| <script src="https://mz4u.net/libs/posnd/pomidi.js"></script> | |
| <style> | |
| p{ | |
| color:blue; |
下記サンプルを書き換えてみて、JavaScriptの動作を覚えよう
| // Dependencies: | |
| // https://github.com/MLXXXp/Arduboy2 | |
| // https://github.com/MLXXXp/ArduboyTones | |
| // https://github.com/arduino-libraries/MIDIUSB | |
| // For Testing | |
| // https://mz4u.net/cans-simulator/ | |
| #include "Arduboy2.h" | |
| #include <ArduboyTones.h> | |
| #include "MIDIUSB.h" |