This file contains hidden or 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 "M5Atom.h" | |
// #define ARDUINOOSC_DEBUGLOG_ENABLE | |
#include <ArduinoOSCWiFi.h> | |
// WiFi stuff | |
const char* ssid = "yourSSID"; | |
const char* pwd = "yourSSDIPassword"; |
This file contains hidden or 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
/* waaaaaa_forM5StickC_modv2.ino | |
2020.05.31 | |
オリジナルとの差分は以下の通りです。 | |
・起動時に心拍数を0として表示 | |
・Bluetooth経由で心拍数をPCに送信可能 | |
・低消費電力化 1時間くらいは動作します | |
・心拍数の更新が早くなるようにするために脈のサンプル数を10→3に変更(HEARTPLUSE_SAMPLE_Nで変更可能) | |
・心拍数に移動平均をかけるようにした(サンプル数はHEART_RATE_AVG_Nで変更可能) | |
・心拍を検知したときにドットを表示する機能を追加 | |
・簡易的なバッテリー残量表示機能を追加 |
This file contains hidden or 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 <WiFiClientSecure.h> | |
#include <string.h> | |
WiFiClientSecure client; | |
/**************************/ | |
//WiFi config | |
/**************************/ | |
const char* ssid = "XXXXXXXXXXXXX"; // your network SSID (name of wifi network) | |
const char* password = "XXXXXXXXXXXXX"; // your network password |
This file contains hidden or 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
####################################### | |
# FFT spectrum demo for Maixduino | |
# original:https://github.com/sipeed/MaixPy_scripts/blob/master/hardware/demo_fft_spectrum.py | |
# Maixduino sch:http://dl.sipeed.com/MAIX/HDK/Maixduino/Maixduino-4.30/Maixduino-4.30%28schematic%29.pdf | |
# mic data sheet:http://dl.sipeed.com/MAIX/HDK/Chip_DS/%E9%BA%A6%E5%85%8B_MSM261S4030H0%28%E4%BD%BF%E7%94%A8%E7%9A%84%29.pdf | |
####################################### | |
from Maix import GPIO, I2S, FFT | |
import image, lcd, math | |
from board import board_info |
This file contains hidden or 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
#! /bin/sh | |
getIden=$(echo $("$PROGDIR"../pushbullet-bash/pushbullet pushes recent) | grep -o -E '([A-Za-z0-9]{22})') | |
#iden表示 | |
#echo $getIden | |
if [ -z $getIden ]; then | |
#testコマンドオプション-z:文字列長が0ならば真 | |
echo "not pushes receved" | |
else |
This file contains hidden or 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
C:\Windows\system32>route print | |
=========================================================================== | |
インターフェイス一覧 | |
52...00 ff fd 91 93 7a ......TeamViewer VPN Adapter | |
18...00 22 cf e2 47 6f ......Microsoft Wi-Fi Direct Virtual Adapter | |
17...00 22 cf e2 47 6f ......GW-900D | |
3...00 1d 92 d8 65 60 ......Realtek PCIe GBE Family Controller | |
1...........................Software Loopback Interface 1 | |
4...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter | |
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 |
This file contains hidden or 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
C:\Windows\system32>route print | |
=========================================================================== | |
~設定前と同じなので省略~ | |
=========================================================================== | |
固定ルート: | |
ネットワーク アドレス ネットマスク ゲートウェイ アドレス メトリック | |
0.0.0.0 0.0.0.0 192.168.10.1 既定 | |
192.168.10.5 255.255.255.0 192.168.10.21 10 | |
=========================================================================== |
This file contains hidden or 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
@echo off | |
REM ↓の1行を環境に合わせて変更してください | |
set LPCXPRESSO_DIR=C:\nxp\LPCXpresso_7.8.0_426\lpcxpresso | |
set REDLINK=%LPCXPRESSO_DIR%\bin\crt_emu_cm_redlink.exe | |
set TARGET=LPC1114FN/102 | |
set FLASH_DRIVER=%LPCXPRESSO_DIR%\bin\Flash\LPC11_12_13_32K_4K.cfx | |
%REDLINK% -flash-load-exec %1 -g -2 -vendor=NXP -p%TARGET% -flash-driver=%FLASH_DRIVER% |
This file contains hidden or 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
@echo off | |
REM ↓の1行を環境に合わせて変更してください | |
set LPCXPRESSO_DIR=C:\nxp\LPCXpresso_7.8.0_426\lpcxpresso | |
set TOOL_PATH=\tools\arm-none-eabi\bin\objcopy.exe -I binary -O ihex | |
set OBJCOPY_PATH=%LPCXPRESSO_DIR%%TOOL_PATH% | |
set OUTPUT_FILENAME=%~fn1.hex | |
REM example↓ | |
REM "C:\nxp\LPCXpresso_7.8.0_426\lpcxpresso\tools\arm-none-eabi\bin\objcopy.exe" -I binary -O ihex "F:\UserLibrary\Desktop\mbed_blinky_LPC11U68.bin" "F:\UserLibrary\Desktop\mbed_blinky_LPC11U68.hex" |
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# http://www.nari64.com/?p=200 | |
import sys | |
import tweepy | |
from tweepy import Stream, TweepError | |
import logging | |
import urllib | |