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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include <Servo.h> //サーボモーター用ライブラリを読み込み | |
const char *ssid = "XXXXXXXXXXXXXXX"; | |
const char *password = "XXXXXXXXXXXXXXX"; | |
MDNSResponder mdns; |
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
# -*- coding: utf-8 -*- | |
# ライブラリ呼び出し部 | |
import RPi.GPIO as GPIO # GPIOライブラリを呼び出し | |
import time # 時間関連のライブラリを呼び出し | |
import requests | |
import signal | |
import sys |
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
#!/bin/sh | |
disk=$1 | |
interval=$2 | |
state=`grep " $disk " /proc/diskstats` | |
count=$interval | |
up=1 | |
while [ true ]; 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
# -*- coding: utf-8 -*- | |
# ライブラリ呼び出し部 | |
import RPi.GPIO as GPIO # GPIOライブラリを呼び出し | |
import time # 時間関連のライブラリを呼び出し | |
# 初期設定部 | |
GPIO.setmode( GPIO.BOARD ) # GPIOを端子番号で指定する | |
GPIO.setup( 40, GPIO.IN ) |
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
# -*- coding: utf-8 -*- | |
# | |
# ライブラリ呼び出し部 | |
import RPi.GPIO as GPIO # GPIOライブラリを呼び出し | |
import time # 時間関連のライブラリを呼び出し | |
# 初期設定部 | |
GPIO.setmode( GPIO.BOARD ) # GPIOを端子番号で指定する | |
GPIO.setup( 16, GPIO.OUT ) # 16番端子を出力に設定する |