Skip to content

Instantly share code, notes, and snippets.

mount -t vboxsf -o uid=501,gid=501,dmode=0777,fmode=0777 共有名 マウント先ディレクトリ
@sp-ice
sp-ice / remoteHome.ino
Last active August 2, 2020 07:28
Arduinoで室温取得+エアコン操作
#include <avr/pgmspace.h>
//通信
char serial_recv;
//LED
char led_pin = 13;
//気温
int Analog_in = 0; // アナログ入力ピン番号
@sp-ice
sp-ice / home.html
Created August 31, 2014 16:12
JavaScriptでArduinoとシリアル通信
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
@sp-ice
sp-ice / sample01.html
Last active August 29, 2015 14:05
File APIとCanvasで画像をリサイズしてアップロード
<form>
<input type="file" id="form_photo_pre" name="photo" value="">
<input type="hidden" required="required" id="form_photo" name="photo" value="" />
<canvas id="canvas"></canvas>
</form>
<script>
$('#form_photo_pre').change(callbackFunc);
$("#form_submit").click(function(){
//formにbase64エンコード値セット
var resCanvas1 = document.getElementById('canvas');
@sp-ice
sp-ice / remoconRecieve.ino
Created October 19, 2014 13:26
Arduinoでリモコン信号取得
#define READ_PIN 7
#define LOW_STATE 0
#define HIGH_STATE 1
void setup(){
Serial.begin(57600);
pinMode(READ_PIN,INPUT);
Serial.println("Ready to receive");
}