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
// | |
// Neopixelの制御 by たま吉さん 2018/05/20 | |
// | |
//*************** | |
// 定数 | |
//*************** | |
#define PIXCELNUM 16 // Neopixel ピクセル数(LED数) | |
#define PIN 2 // Neopixel 制御用ピン番号 |
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
// | |
// Neopixelの制御 SPIバージョン by たま吉さん 2018/05/22 | |
// | |
#include <SPI.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
// | |
// Neopixel 8x8ドットマトリックス 制御 SPIバージョン by たま吉さん 2018/05/30 | |
// | |
#include <SPI.h> | |
#include <misakiUTF16.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
// | |
// Neopixel 16x16ドットマトリックス 制御 SPIバージョン by たま吉さん 2020/01/9 | |
// | |
#include <SPI.h> | |
#include <misakiUTF16.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
.blob-num { | |
display: none; | |
} | |
.gist-meta { | |
//display: none; | |
padding: 1px !important; | |
} | |
.gist-file { |
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
/* | |
Blink | |
*/ | |
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); |
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
// max7219_test3a.ino | |
// MAX7179ドライバーライブラリ動作チェック 32x16ドットバージョン | |
// 改良版 2019/07/09 たま吉さん | |
#include <string.h> | |
#include <sdfonts.h> | |
#include "MAX7219_matrix.h" | |
#include "libmatrix.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
// | |
// MML演奏サンプル | |
// | |
#include "MML.h" | |
#include "TimerEvent.h" | |
#include "src/LIB/sound.h" | |
TimerEvent ticker; // タイマー割り込み管理 | |
MML mml; // MML文演奏管理 |
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 <Adafruit_NeoPixel.h> | |
#include <SoftwareSerial.h> | |
#include <ps2dev.h> | |
#define KB_CLK A4 // PS/2 CLK IchigoJamのKBD1に接続 | |
#define KB_DATA A5 // PS/2 DATA IchigoJamのKBD2に接続 | |
#define PIN 13 | |
#define NUMPIXELS 1 | |
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
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
10 'サーボ―モータの制御 | |
20 'TOWER PRO SG90を使ったデモ | |
30 'PWM 50Hz 0.5ms:-90°~ 2.4ms:+90° | |
40 '配線 VCC(赤) => 5V | |
50 'GND(茶) => GND | |
60 'PWM(橙) => PA8 | |
70 ' | |
80 GPIO PA8,PWM:'PWM(5Vトレラントピン) | |
90 INPUT "角度(-90 ~ 90):",D | |
100 IF (D<-90) OR (D>90) ?"正しい数値を入力して下さい":GOTO 90 |