- Mac (これ買いてる人はMacbook Air 2014 11インチという古いMac)
- bluepillっぽいボード
- ST-Linkっぽいもの
- ジャンパーケーブル (STLinkとSWD端子を繋ぐ。メスメスx4かな?今回つかうやつだと)
- Arduino IDE ※書いてる人は 1.8.5で試した
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
// XIAO-RP2040-CHICKEN example | |
// 2022 @tadfmac | |
/* | |
D0 : MIC (ADC) | |
D1 : VIB Sensor (DI) | |
*/ | |
#include <Arduino.h> | |
#include <Adafruit_TinyUSB.h> | |
#include <Adafruit_NeoPixel.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
// for Pro Micro | |
#include "MIDIUSB.h" | |
void setup() { | |
pinMode(11,OUTPUT); | |
} | |
void loop() { | |
midiEventPacket_t rx; | |
do { |
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
<!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の動作を覚えよう
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
// 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" |
CHIRIMENでadafruit製のADS2015搭載12bit4チャンネルADコンバータを使ってみます。
日本では下記で入手可能です。
NewerOlder