bower install --save nvd3
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
npm i -g typescript webpack webpack-cli |
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
var i = setInterval(function() { | |
var val = analogRead(B1); | |
console.log(val); //圧力センサーの値 | |
if(val < 0.5) { //値が0.5以下になるとLEDが点灯する | |
digitalWrite(A8, 1); | |
} else { | |
digitalWrite(A8, 0); | |
} | |
}, 100); |
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
# coding:utf-8 | |
import os | |
import gym | |
import random | |
import numpy as np | |
import tensorflow as tf | |
from collections import deque | |
from skimage.color import rgb2gray | |
from skimage.transform import resize |
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
/** | |
* | |
* Chirimenに装着するWifiドングルは Planex GW-USNano2 動作確認済み | |
* https://www.planex.co.jp/product/wireless/gw-usnano2/ | |
* | |
* WifiドングルをつけてChirimenを起動、SettingsでWifi設定を完了後、以下のソースを実行する | |
* | |
*/ | |
window.addEventListener("load", function() { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1"> | |
<title>Motion Sensor</title> | |
<!-- https://github.com/club-wot/WebGPIO --> | |
<script src="./bower_components/webgpio/dist/webgpio.js"></script> | |
<!-- https://github.com/mozilla/task.js/blob/master/lib/task.js --> |
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
var temp_message = null; | |
var ow = new OneWire(B1); | |
var sensor = require("DS18B20").connect(ow); | |
setInterval(function() { | |
console.log(sensor.getTemp()); | |
temp_message = sensor.getTemp(); | |
}, 1000); | |
var config = { |
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
/* | |
* BME280のほうは別電源で3V3入れた。(GND共有) picoのみだと足りないみたい。 | |
*/ | |
var pth_message = null; | |
I2C2.setup({scl:B10,sda:B3}); | |
var bme = require("BME280").connect(I2C2); | |
setInterval(function() { |
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
/* | |
* broker/subscriberは https://github.com/rockymanobi/espruino-mqtt-sample.git を利用した | |
* via http://qiita.com/rockymanobi/items/83cc39a4a75ea65747e3 | |
* Thank you rockymanobi ! | |
* DS18B20とESP8266への電源供給はpicoだけだと足りないので、DS18B20へ別電源から供給した(GND共有) | |
*/ | |
var config = { | |
wifiSSID: 'SSID', | |
wifiKey: '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
var ow = new OneWire(B1); | |
var sensor = require("DS18B20").connect(ow); | |
setInterval(function() { | |
console.log(sensor.getTemp()); | |
}, 1000); |