Skip to content

Instantly share code, notes, and snippets.

View tnoborio's full-sized avatar

Tokusei Noborio tnoborio

  • 19:29 (UTC +09:00)
View GitHub Profile
var noble = require('noble')
var player = require('play-sound')(opts = {})
var serviceUuid = '713d0000503e4c75ba943148f18d941e';
var characteristicUuid = '713d0002503e4c75ba943148f18d941e';
var service = null;
var rxCharacteristic = null;
var lastSoundAt = null;
@tnoborio
tnoborio / ウェブサーバー
Last active July 9, 2016 23:38
LEDやシャボン玉のウェブサーバを操作
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char *ssid = "";
const char *password = "";
ESP8266WebServer server ( 80 );
/**
* BasicHTTPClient.ino
*
* Created on: 24.05.2015
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Wire.h>
#define MPU9250_ADDRESS 0x69
#define MAG_ADDRESS 0x0C
#define GYRO_FULL_SCALE_250_DPS 0x00
#define GYRO_FULL_SCALE_500_DPS 0x08
#define GYRO_FULL_SCALE_1000_DPS 0x10
#define GYRO_FULL_SCALE_2000_DPS 0x18
#include <Servo.h>
Servo myservo;
int potpin = 0;
int val;
void setup() {
pinMode(6, INPUT);
myservo.attach(3);
const int a = 12;
const int b = 11;
const int c = 3;
const int d = 8;
const int e = 2;
const int f = 9;
const int g = 7;
const int p = 5;
const int d1 = 1;
const int a = ;
const int b = ;
const int c = ;
const int d = ;
const int e = ;
const int f = ;
const int g = ;
const int p = ;
const int d1 = 1;
const int a = 11;
const int b = 7;
const int c = 4;
const int d = 2;
const int e = 1;
const int f = 10;
const int g = 5;
const int p = 3;
const int d1 = 12;
const int a = 11;
const int b = 7;
const int c = 4;
const int d = 2;
const int e = 1;
const int f = 10;
const int g = 5;
const int p = 3;
const int d1 = 12;
ledPin = 4
ledValue = false
gpio.mode(ledPin, gpio.OUTPUT)
srv=net.createServer(net.TCP)
srv:listen(80,
function(conn)
conn:on("receive",
function(conn, payload)