1
anonymous No title
PlainText
100: (5) ["100.svg", "500.svg", "100", "晴", "CLEAR"]
101: (5) ["101.svg", "501.svg", "100", "晴時々曇", "PARTLY CLOUDY"]
102: (5) ["102.svg", "502.svg", "300", "晴一時雨", "CLEAR, OCCASIONAL SCATTERED SHOWERS"]
103: (5) ["102.svg", "502.svg", "300", "晴時々雨", "CLEAR, FREQUENT SCATTERED SHOWERS"]
104: (5) ["104.svg", "504.svg", "400", "晴一時雪", "CLEAR, SNOW FLURRIES"]
105: (5) ["104.svg", "504.svg", "400", "晴時々雪", "CLEAR, FREQUENT SNOW FLURRIES"]
106: (5) ["102.svg", "502.svg", "300", "晴一時雨か雪", "CLEAR, OCCASIONAL SCATTERED SHOWERS OR SNOW FLURRIES"]
107: (5) ["102.svg", "502.svg", "300", "晴時々雨か雪", "CLEAR, FREQUENT SCATTERED SHOWERS OR SNOW FLURRIES"]
108: (5) ["102.svg", "502.svg", "300", "晴一時雨か雷雨", "CLEAR, OCCASIONAL SCATTERED SHOWERS AND/OR THUNDER"]
110: (5) ["110.svg", "510.svg", "100", "晴後時々曇", "CLEAR, PARTLY CLOUDY LATER"]
111: (5) ["110.svg", "510.svg", "100", "晴後曇", "CLEAR, CLOUDY LATER"]
112: (5) ["112.svg", "512.svg", "300", "晴後一時雨", "CLEAR, OCCASIONAL SCATTERED SHOWERS LATER"]
113: (5) ["112.svg", "512.svg", "300", "晴後時々雨", "CLEAR, FREQUENT SCATTERED SHOWERS LATER"]
114: (5) ["112.svg", "512.svg", "300", "晴後雨", "CLEAR,RAIN LATER"]
115: (5) ["115.svg", "515.svg", "400", "晴後一時雪", "CLEAR, OCCASIONAL SNOW FLURRIES LATER"]
116: (5) ["115.svg", "515.svg", "400", "晴後時々雪", "CLEAR, FREQUENT SNOW FLURRIES LATER"]
117: (5) ["115.svg", "515.svg", "400", "晴後雪", "CLEAR,SNOW LATER"]
118: (5) ["112.svg", "512.svg", "300", "晴後雨か雪", "CLEAR, RAIN OR SNOW LATER"]
119: (5) ["112.svg", "512.svg", "300", "晴後雨か雷雨", "CLEAR, RAIN AND/OR THUNDER LATER"]
120: (5) ["102.svg", "502.svg", "300", "晴朝夕一時雨", "OCCASIONAL SCATTERED SHOWERS IN THE MORNING AND EVENING, CLEAR DURING THE DAY"]
121: (5) ["102.svg", "502.svg", "300", "晴朝の内一時雨", "OCCASIONAL SCATTERED SHOWERS IN THE MORNING, CLEAR DURING THE DAY"]
122: (5) ["112.svg", "512.svg", "300", "晴夕方一時雨", "CLEAR, OCCASIONAL SCATTERED SHOWERS IN THE EVENING"]
123: (5) ["100.svg", "500.svg", "100", "晴山沿い雷雨", "CLEAR IN THE PLAINS, RAIN AND THUNDER NEAR MOUTAINOUS AREAS"]
124: (5) ["100.svg", "500.svg", "100", "晴山沿い雪", "CLEAR IN THE PLAINS, SNOW NEAR MOUTAINOUS AREAS"]
125: (5) ["112.svg", "512.svg", "300", "晴午後は雷雨", "CLEAR, RAIN AND THUNDER IN THE AFTERNOON"]
126: (5) ["112.svg", "512.svg", "300", "晴昼頃から雨", "CLEAR, RAIN IN THE AFTERNOON"]
127: (5) ["112.svg", "512.svg", "300", "晴夕方から雨", "CLEAR, RAIN IN THE EVENING"]
128: (5) ["112.svg", "512.svg", "300", "晴夜は雨", "CLEAR, RAIN IN THE NIGHT"]
130: (5) ["100.svg", "500.svg", "100", "朝の内霧後晴", "FOG IN THE MORNING, CLEAR LATER"]
131: (5) ["100.svg", "500.svg", "100", "晴明け方霧", "FOG AROUND DAWN, CLEAR LATER"]
132: (5) ["101.svg", "501.svg", "100", "晴朝夕曇", "CLOUDY IN THE MORNING AND EVENING, CLEAR DURING THE DAY"]
140: (5) ["102.svg", "502.svg", "300", "晴時々雨で雷を伴う", "CLEAR, FREQUENT SCATTERED SHOWERS AND THUNDER"]
160: (5) ["104.svg", "504.svg", "400", "晴一時雪か雨", "CLEAR, SNOW FLURRIES OR OCCASIONAL SCATTERED SHOWERS"]
170: (5) ["104.svg", "504.svg", "400", "晴時々雪か雨", "CLEAR, FREQUENT SNOW FLURRIES OR SCATTERED SHOWERS"]
181: (5) ["115.svg", "515.svg", "400", "晴後雪か雨", "CLEAR, SNOW OR RAIN LATER"]
200: (5) ["200.svg", "200.svg", "200", "曇", "CLOUDY"]
201: (5) ["201.svg", "601.svg", "200", "曇時々晴", "MOSTLY CLOUDY"]
202: (5) ["202.svg", "202.svg", "300", "曇一時雨", "CLOUDY, OCCASIONAL SCATTERED SHOWERS"]
203: (5) ["202.svg", "202.svg", "300", "曇時々雨", "CLOUDY, FREQUENT SCATTERED SHOWERS"]
204: (5) ["204.svg", "204.svg", "400", "曇一時雪", "CLOUDY, OCCASIONAL SNOW FLURRIES"]
205: (5) ["204.svg", "204.svg", "400", "曇時々雪", "CLOUDY FREQUENT SNOW FLURRIES"]
206: (5) ["202.svg", "202.svg", "300", "曇一時雨か雪", "CLOUDY, OCCASIONAL SCATTERED SHOWERS OR SNOW FLURRIES"]
207: (5) ["202.svg", "202.svg", "300", "曇時々雨か雪", "CLOUDY, FREQUENT SCCATERED SHOWERS OR SNOW FLURRIES"]
208: (5) ["202.svg", "202.svg", "300", "曇一時雨か雷雨", "CLOUDY, OCCASIONAL SCATTERED SHOWERS AND/OR THUNDER"]
209: (5) ["200.svg", "200.svg", "200", "霧", "FOG"]
210: (5) ["210.svg", "610.svg", "200", "曇後時々晴", "CLOUDY, PARTLY CLOUDY LATER"]
211: (5) ["210.svg", "610.svg", "200", "曇後晴", "CLOUDY, CLEAR LATER"]
212: (5) ["212.svg", "212.svg", "300", "曇後一時雨", "CLOUDY, OCCASIONAL SCATTERED SHOWERS LATER"]
213: (5) ["212.svg", "212.svg", "300", "曇後時々雨", "CLOUDY, FREQUENT SCATTERED SHOWERS LATER"]
214: (5) ["212.svg", "212.svg", "300", "曇後雨", "CLOUDY, RAIN LATER"]
215: (5) ["215.svg", "215.svg", "400", "曇後一時雪", "CLOUDY, SNOW FLURRIES LATER"]
216: (5) ["215.svg", "215.svg", "400", "曇後時々雪", "CLOUDY, FREQUENT SNOW FLURRIES LATER"]
217: (5) ["215.svg", "215.svg", "400", "曇後雪", "CLOUDY, SNOW LATER"]
218: (5) ["212.svg", "212.svg", "300", "曇後雨か雪", "CLOUDY, RAIN OR SNOW LATER"]
219: (5) ["212.svg", "212.svg", "300", "曇後雨か雷雨", "CLOUDY, RAIN AND/OR THUNDER LATER"]
220: (5) ["202.svg", "202.svg", "300", "曇朝夕一時雨", "OCCASIONAL SCCATERED SHOWERS IN THE MORNING AND EVENING, CLOUDY DURING THE DAY"]
221: (5) ["202.svg", "202.svg", "300", "曇朝の内一時雨", "CLOUDY OCCASIONAL SCCATERED SHOWERS IN THE MORNING"]
222: (5) ["212.svg", "212.svg", "300", "曇夕方一時雨", "CLOUDY, OCCASIONAL SCCATERED SHOWERS IN THE EVENING"]
223: (5) ["201.svg", "601.svg", "200", "曇日中時々晴", "CLOUDY IN THE MORNING AND EVENING, PARTLY CLOUDY DURING THE DAY,"]
224: (5) ["212.svg", "212.svg", "300", "曇昼頃から雨", "CLOUDY, RAIN IN THE AFTERNOON"]
225: (5) ["212.svg", "212.svg", "300", "曇夕方から雨", "CLOUDY, RAIN IN THE EVENING"]
226: (5) ["212.svg", "212.svg", "300", "曇夜は雨", "CLOUDY, RAIN IN THE NIGHT"]
228: (5) ["215.svg", "215.svg", "400", "曇昼頃から雪", "CLOUDY, SNOW IN THE AFTERNOON"]
229: (5) ["215.svg", "215.svg", "400", "曇夕方から雪", "CLOUDY, SNOW IN THE EVENING"]
230: (5) ["215.svg", "215.svg", "400", "曇夜は雪", "CLOUDY, SNOW IN THE NIGHT"]
231: (5) ["200.svg", "200.svg", "200", "曇海上海岸は霧か霧雨", "CLOUDY, FOG OR DRIZZLING ON THE SEA AND NEAR SEASHORE"]
240: (5) ["202.svg", "202.svg", "300", "曇時々雨で雷を伴う", "CLOUDY, FREQUENT SCCATERED SHOWERS AND THUNDER"]
250: (5) ["204.svg", "204.svg", "400", "曇時々雪で雷を伴う", "CLOUDY, FREQUENT SNOW AND THUNDER"]
260: (5) ["204.svg", "204.svg", "400", "曇一時雪か雨", "CLOUDY, SNOW FLURRIES OR OCCASIONAL SCATTERED SHOWERS"]
270: (5) ["204.svg", "204.svg", "400", "曇時々雪か雨", "CLOUDY, FREQUENT SNOW FLURRIES OR SCATTERED SHOWERS"]
281: (5) ["215.svg", "215.svg", "400", "曇後雪か雨", "CLOUDY, SNOW OR RAIN LATER"]
300: (5) ["300.svg", "300.svg", "300", "雨", "RAIN"]
301: (5) ["301.svg", "701.svg", "300", "雨時々晴", "RAIN, PARTLY CLOUDY"]
302: (5) ["302.svg", "302.svg", "300", "雨時々止む", "SHOWERS THROUGHOUT THE DAY"]
303: (5) ["303.svg", "303.svg", "400", "雨時々雪", "RAIN,FREQUENT SNOW FLURRIES"]
304: (5) ["300.svg", "300.svg", "300", "雨か雪", "RAINORSNOW"]
306: (5) ["300.svg", "300.svg", "300", "大雨", "HEAVYRAIN"]
308: (5) ["308.svg", "308.svg", "300", "雨で暴風を伴う", "RAINSTORM"]
309: (5) ["303.svg", "303.svg", "400", "雨一時雪", "RAIN,OCCASIONAL SNOW"]
311: (5) ["311.svg", "711.svg", "300", "雨後晴", "RAIN,CLEAR LATER"]
313: (5) ["313.svg", "313.svg", "300", "雨後曇", "RAIN,CLOUDY LATER"]
314: (5) ["314.svg", "314.svg", "400", "雨後時々雪", "RAIN, FREQUENT SNOW FLURRIES LATER"]
315: (5) ["314.svg", "314.svg", "400", "雨後雪", "RAIN,SNOW LATER"]
316: (5) ["311.svg", "711.svg", "300", "雨か雪後晴", "RAIN OR SNOW, CLEAR LATER"]
317: (5) ["313.svg", "313.svg", "300", "雨か雪後曇", "RAIN OR SNOW, CLOUDY LATER"]
320: (5) ["311.svg", "711.svg", "300", "朝の内雨後晴", "RAIN IN THE MORNING, CLEAR LATER"]
321: (5) ["313.svg", "313.svg", "300", "朝の内雨後曇", "RAIN IN THE MORNING, CLOUDY LATER"]
322: (5) ["303.svg", "303.svg", "400", "雨朝晩一時雪", "OCCASIONAL SNOW IN THE MORNING AND EVENING, RAIN DURING THE DAY"]
323: (5) ["311.svg", "711.svg", "300", "雨昼頃から晴", "RAIN, CLEAR IN THE AFTERNOON"]
324: (5) ["311.svg", "711.svg", "300", "雨夕方から晴", "RAIN, CLEAR IN THE EVENING"]
325: (5) ["311.svg", "711.svg", "300", "雨夜は晴", "RAIN, CLEAR IN THE NIGHT"]
326: (5) ["314.svg", "314.svg", "400", "雨夕方から雪", "RAIN, SNOW IN THE EVENING"]
327: (5) ["314.svg", "314.svg", "400", "雨夜は雪", "RAIN,SNOW IN THE NIGHT"]
328: (5) ["300.svg", "300.svg", "300", "雨一時強く降る", "RAIN, EXPECT OCCASIONAL HEAVY RAINFALL"]
329: (5) ["300.svg", "300.svg", "300", "雨一時みぞれ", "RAIN, OCCASIONAL SLEET"]
340: (5) ["400.svg", "400.svg", "400", "雪か雨", "SNOWORRAIN"]
350: (5) ["300.svg", "300.svg", "300", "雨で雷を伴う", "RAIN AND THUNDER"]
361: (5) ["411.svg", "811.svg", "400", "雪か雨後晴", "SNOW OR RAIN, CLEAR LATER"]
371: (5) ["413.svg", "413.svg", "400", "雪か雨後曇", "SNOW OR RAIN, CLOUDY LATER"]
400: (5) ["400.svg", "400.svg", "400", "雪", "SNOW"]
401: (5) ["401.svg", "801.svg", "400", "雪時々晴", "SNOW, FREQUENT CLEAR"]
402: (5) ["402.svg", "402.svg", "400", "雪時々止む", "SNOWTHROUGHOUT THE DAY"]
403: (5) ["403.svg", "403.svg", "400", "雪時々雨", "SNOW,FREQUENT SCCATERED SHOWERS"]
405: (5) ["400.svg", "400.svg", "400", "大雪", "HEAVYSNOW"]
406: (5) ["406.svg", "406.svg", "400", "風雪強い", "SNOWSTORM"]
407: (5) ["406.svg", "406.svg", "400", "暴風雪", "HEAVYSNOWSTORM"]
409: (5) ["403.svg", "403.svg", "400", "雪一時雨", "SNOW, OCCASIONAL SCCATERED SHOWERS"]
411: (5) ["411.svg", "811.svg", "400", "雪後晴", "SNOW,CLEAR LATER"]
413: (5) ["413.svg", "413.svg", "400", "雪後曇", "SNOW,CLOUDY LATER"]
414: (5) ["414.svg", "414.svg", "400", "雪後雨", "SNOW,RAIN LATER"]
420: (5) ["411.svg", "811.svg", "400", "朝の内雪後晴", "SNOW IN THE MORNING, CLEAR LATER"]
421: (5) ["413.svg", "413.svg", "400", "朝の内雪後曇", "SNOW IN THE MORNING, CLOUDY LATER"]
422: (5) ["414.svg", "414.svg", "400", "雪昼頃から雨", "SNOW, RAIN IN THE AFTERNOON"]
423: (5) ["414.svg", "414.svg", "400", "雪夕方から雨", "SNOW, RAIN IN THE EVENING"]
425: (5) ["400.svg", "400.svg", "400", "雪一時強く降る", "SNOW, EXPECT OCCASIONAL HEAVY SNOWFALL"]
426: (5) ["400.svg", "400.svg", "400", "雪後みぞれ", "SNOW, SLEET LATER"]
427: (5) ["400.svg", "400.svg", "400", "雪一時みぞれ", "SNOW, OCCASIONAL SLEET"]
450: (5) ["400.svg", "400.svg", "400", "雪で雷を伴う", "SNOW AND THUNDER"]
anonymous No title
PlainText
#1
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order?symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=1&price=9000&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&signature= 3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'


#2
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order' -d 'symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=1&price=9000&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&signature= 3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'


#3
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order?symbol=BTCUSDT&side=BUY&type=LIMIT&timeInForce=GTC' -d 'quantity=1&price=9000&recvWindow=5000&timestamp=1591702613943&signature=3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'
  
anonymous No title
PlainText
// UWSC スクリプト
// JWW の文字入力の初期状態を半角にする
WHILE 1
  FLG=0
  ID=GETID(GET_ACTIVE_WIN)
  FUKIDASI(STATUS(ID,ST_TITLE))
  SLEEP(0.5)
  WHILE POS("文字入力",STATUS(ID,ST_TITLE)) //文字入力
    IF FLG=0 
      IF GETKEYSTATE(TGL_IME) THEN KBD(VK_KANJI, CLICK) //全角なら半角に
    ELSE
      IF GETKEYSTATE(TGL_IME) THEN FUKIDASI("全角") ELSE FUKIDASI("半角")
      SLEEP(0.5)
    ENDIF
    FLG=FLG+1
  WEND
  WHILE POS("文字変更",STATUS(ID,ST_TITLE)) //文字変更
    IF FLG=0 
      IF GETKEYSTATE(TGL_IME) THEN KBD(VK_KANJI, CLICK) //全角なら半角に
    ELSE
      IF GETKEYSTATE(TGL_IME) THEN FUKIDASI("全角") ELSE FUKIDASI("半角")
      SLEEP(0.5)
    ENDIF
    FLG=FLG+1
  WEND
WEND
anonymous No title
PlainText
//UWSC Script
//吹き出しが下から噴き出すプログラム

PUBLIC RZZ=0
While true
    FKIDSI()
    Fukidasi(RZZ,1200,10,0,3,,,$AAAAAA)
Wend
procedure FKIDSI()
    IF RZZ<64
        Thread FKDSSUB()
    ENDIF
fend
procedure FKDSSUB()
    RZZ = RZZ + 1
    Xinc = ((random(6)+1) * (random(2)*2 -1)) /1.9
    Yinc = (random(8)/10+0.2) /4
    z=random($FFFFFF)
    X=640
    Y=1010
    for i=-100 TO 100
        Fukidasi(" ", X, Y, 0, ,,,Z)
        SLEEP(0.01)
        Ymov = Yinc * i
        X = X + Xinc
        Y = Y + Ymov
    next
    RZZ = RZZ - 1
fend
anonymous boards.local.txt
PlainText
m5stack-atom.name=M5Stack-ATOM

m5stack-atom.upload.tool=esptool_py
m5stack-atom.upload.maximum_size=1310720
m5stack-atom.upload.maximum_data_size=327680
m5stack-atom.upload.wait_for_upload_port=true

m5stack-atom.serial.disableDTR=true
m5stack-atom.serial.disableRTS=true

m5stack-atom.build.mcu=esp32
m5stack-atom.build.core=esp32
m5stack-atom.build.variant=m5stack_atom
m5stack-atom.build.board=M5Stack_ATOM

m5stack-atom.build.f_cpu=240000000L
m5stack-atom.build.flash_size=4MB
m5stack-atom.build.flash_freq=80m
m5stack-atom.build.flash_mode=dio
m5stack-atom.build.boot=dio
m5stack-atom.build.partitions=default
m5stack-atom.build.defines=

m5stack-atom.menu.PartitionScheme.default=Default
m5stack-atom.menu.PartitionScheme.default.build.partitions=default
m5stack-atom.menu.PartitionScheme.no_ota=No OTA (Large APP)
m5stack-atom.menu.PartitionScheme.no_ota.build.partitions=no_ota
m5stack-atom.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
m5stack-atom.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
m5stack-atom.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
m5stack-atom.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080


m5stack-atom.menu.UploadSpeed.1500000=1500000
m5stack-atom.menu.UploadSpeed.1500000.upload.speed=1500000
m5stack-atom.menu.UploadSpeed.750000=750000
m5stack-atom.menu.UploadSpeed.750000.upload.speed=750000
m5stack-atom.menu.UploadSpeed.500000=500000
m5stack-atom.menu.UploadSpeed.500000.upload.speed=500000
m5stack-atom.menu.UploadSpeed.250000=250000
m5stack-atom.menu.UploadSpeed.250000.upload.speed=250000
m5stack-atom.menu.UploadSpeed.115200=115200
m5stack-atom.menu.UploadSpeed.115200.upload.speed=115200



m5stack-atom.menu.DebugLevel.none=None
m5stack-atom.menu.DebugLevel.none.build.code_debug=0
m5stack-atom.menu.DebugLevel.error=Error
m5stack-atom.menu.DebugLevel.error.build.code_debug=1
m5stack-atom.menu.DebugLevel.warn=Warn
m5stack-atom.menu.DebugLevel.warn.build.code_debug=2
m5stack-atom.menu.DebugLevel.info=Info
m5stack-atom.menu.DebugLevel.info.build.code_debug=3
m5stack-atom.menu.DebugLevel.debug=Debug
m5stack-atom.menu.DebugLevel.debug.build.code_debug=4
m5stack-atom.menu.DebugLevel.verbose=Verbose
m5stack-atom.menu.DebugLevel.verbose.build.code_debug=5
anonymous No title
PlainText
; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = m5stack-core-esp32

[common_env_data]

[env:m5stack-core-esp32]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
lib_deps =
  M5Stack

build_flags =
  -DARDUINO_M5Stack_Core_ESP32

[env:m5stack-fire]
platform = espressif32
board = m5stack-fire
framework = arduino
lib_deps =
  M5Stack

build_flags =
  -DARDUINO_M5STACK_FIRE

[env:m5stick-c]
platform = espressif32
board = m5stick-c
framework = arduino
lib_deps =
  M5StickC

build_flags =
  -DARDUINO_M5Stick_C
anonymous Adruino IDE経由でDigiSparkのパリピセッションベース
PlainText
#include <Adafruit_NeoPixel.h>
#define BUTTON_PIN   2
#define PIXEL_PIN    0    //セッションベースに仕込んだGRB LED接続ピン
#define PIXEL_COUNT 12    //LEDの数=12個
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800);    //NeoPoxelの諸処理

bool oldState = HIGH;  //直前のボタン状態保持
int showType = 0; //ボタン押下回数カウンタ
int x = 0;

void setup() {
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  strip.begin();  //必須
  strip.show();   // Initialize all pixels to 'off'
  //↓↓↓起動後の(割とどうでもいい)演出↓↓↓
  colorWipe(strip.Color(0, 0, 255), 0);//青
  for(int i=0;i<3;i++){
    colorWipe(strip.Color(0, 0, 0), 50);//黒(off)でワイプ
    delay(500);
    colorWipe(strip.Color(32, 64, 0), 50);//赤橙でワイプ
    delay(500);
  }
  colorWipe(strip.Color(0, 0, 0), 50);//黒(off)でワイプ
  delay(500);
  colorWipe(strip.Color(3, 2, 5), 0);//弱い白でワイプ
}

void loop() {
  bool newState = digitalRead(BUTTON_PIN);  //ボタン状態の取得

  if (newState == LOW && oldState == HIGH) {//ボタン押下によるHighからLowへの変化検知
    delay(20);  //押して離す僅かな間の時間稼ぎ
    newState = digitalRead(BUTTON_PIN);   //delayを経てなおLowなら「押された」とみなす
    if (newState == LOW) {
      showType++;                         //「押された」ならshowType変数を増やす
    }
      if (showType == 1){
        for(int i =0;i<5;i++){rainbowCycle(0);}
        for(int i =0;i<1;i){
        rainbow(50);
        if(digitalRead(BUTTON_PIN) == LOW){
          showType++;i++;
          colorWipe(strip.Color(127, 0, 0), 0);//緑でワイプ
          colorWipe(strip.Color(1, 1, 1), 50);
          continue;
          }
        }
       }
      if (showType >= 2){
        showType=0;                       //showType変数が一定値以上なら0にリセット
    }
  }

  // Set the last button state to the old state.
  oldState = newState;
}

//LED点灯スイッチ関数================================================================
//switchで制御しているためパターン毎にループがなされない問題あり
void startShow(int i) {
  switch(i){
    case 0: colorWipe(strip.Color(255, 255, 255), 50);    // White
            break;
    case 1: colorWipe(strip.Color(255, 0, 0), 50);  // Green
            break;
    case 2: colorWipe(strip.Color(0, 255, 0), 50);  // Red
            break;
    case 3: colorWipe(strip.Color(0, 0, 255), 50);  // Blue
            break;
    case 4: theaterChase(strip.Color(127, 127, 127), 50); // White
            break;
    case 5: theaterChase(strip.Color(127,   0,   0), 50); // Green
            break;
    case 6: theaterChase(strip.Color(  0, 127,   0), 50); // Red
            break;
    case 7: theaterChase(strip.Color(  0,   0, 127), 50); // Blue
            //rainbow(20);
            break;
    case 8: colorWipe(strip.Color(  0,   0,   0), 50);
            //rainbowCycle(5);
            break;
    case 9: theaterChaseRainbow(1);
            break;
  }
}
//LED点灯パターン関数郡==================================================================================
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
      strip.show();
      delay(wait);
  }
}
void rainbow(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel((i+j) & 255));
    }
    strip.show();
    delay(wait);
  }
}
void rainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i< strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
    }
    strip.show();
    delay(wait);
  }
}
void theaterChase(uint32_t c, uint8_t wait) {
  for (int j=0; j<10; j++) {  //do 10 cycles of chasing
    for (int q=0; q < 3; q++) {
      for (int i=0; i < strip.numPixels(); i=i+3) {
        strip.setPixelColor(i+q, c);    //turn every third pixel on
      }
      strip.show();
     
      delay(wait);
     
      for (int i=0; i < strip.numPixels(); i=i+3) {
        strip.setPixelColor(i+q, 0);        //turn every third pixel off
      }
    }
  }
}
void theaterChaseRainbow(uint8_t wait) {
  for (int j=0; j < 256; j++) {     // cycle all 256 colors in the wheel
    for (int q=0; q < 3; q++) {
        for (int i=0; i < strip.numPixels(); i=i+3) {
          strip.setPixelColor(i+q, Wheel( (i+j) % 255));    //turn every third pixel on
        }
        strip.show();
       
        delay(wait);
       
        for (int i=0; i < strip.numPixels(); i=i+3) {
          strip.setPixelColor(i+q, 0);        //turn every third pixel off
        }
    }
  }
}

uint32_t Wheel(byte WheelPos) { //rainbow関数で使用
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else if(WheelPos < 170) {
    WheelPos -= 85;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  }
}
anonymous testH.264
PlainText
ffmpeg -i ./input.h264 -ss 0 -t 10 -f image2 -vcodec png -r 100 "./test/%05d.png"
anonymous No title
PlainText
💩
anonymous No title
PlainText
#!/bin/bash

#This script created by Midnight Express Ginga81(ginga81) 2019
#This script is Public Domain

#I checked this script on Ubuntu19.04 and Wine4.0.1 and winetricks 20190615-next

#This scrript creates to running environment with MikuMikuDance64 with MikuMikuEffect64 and PMXEditor64.
#適当なフォルダにこのスクリプトを用意し、実行すると自動的に準備を整えます。VCrun2008と2010は自動化できなかったので同意してインストールしてください。
#実行した後MikuMikuDance_v931x64.zipとPmxEditor_0254f.zip、MMEffect_x64_v037.zipをWindowsと同じ方法で
#~/.WineMMD64/drive_c/Program Files/以下に展開するだけです。
#実行は
#WINEPREFIX=~/.WineMMD64 wine ~/.WineMMD64/drive_c/Program\ Files/MikuMikuDance_v931x64/MikuMikuDance.exe
#WINEPREFIX=~/.WineMMD64 wine ~/.WineMMD64/drive_c/Program\ Files/PmxEditor_0254f/PmxEditor_x64.exe
#アンインストールは~/.WineMMD64をまるごと消せば終わりで、設定ファイルは残らず綺麗に消えます。

WINEPREFIX=~/.WineMMD64 wineboot
WINEPREFIX=~/.WineMMD64 winetricks -q vcrun2005 vcrun2008 vcrun2010 d3dx9 d3dxof d3dx9_43 fakejapanese_ipamona dotnet40 vcrun2013 devenum quartz qcap qedit win7 quartz gdiplus
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v msvcr90 /t reg_sz /d "builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3d9 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dx9_43 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dxof /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dx9 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v devenum /t reg_sz /d "native"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v quartz /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v qcap /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v qedit /t reg_sz /d "native,builtin"

#vcrun2008 https://www.microsoft.com/ja-jp/download/details.aspx?id=15336
wget -c https://download.microsoft.com/download/f/0/c/f0cf29d7-442e-49cd-98aa-eba28c2f8ab6/vcredist_x64.exe
mv ./vcredist_x64.exe ./vcredist_x64-2008.exe
WINEPREFIX=~/.WineMMD64 wine ./vcredist_x64-2008.exe

#vcrun2010 https://www.microsoft.com/ja-jp/download/details.aspx?id=14632
wget -c https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe
mv ./vcredist_x64.exe ./vcredist_x64-2010.exe
WINEPREFIX=~/.WineMMD64 wine ./vcredist_x64-2010.exe

#d3dcompiler_43だけは必ず最後に入れなければならない。
WINEPREFIX=~/.WineMMD64 winetricks -q d3dcompiler_43
Don't you submit code?
Submit
1