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 noble = require('noble') | |
var player = require('play-sound')(opts = {}) | |
var serviceUuid = '713d0000503e4c75ba943148f18d941e'; | |
var characteristicUuid = '713d0002503e4c75ba943148f18d941e'; | |
var service = null; | |
var rxCharacteristic = null; | |
var lastSoundAt = null; |
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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
const char *ssid = ""; | |
const char *password = ""; | |
ESP8266WebServer server ( 80 ); |
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
/** | |
* BasicHTTPClient.ino | |
* | |
* Created on: 24.05.2015 | |
* | |
*/ | |
#include <Arduino.h> | |
#include <ESP8266WiFi.h> |
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 <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 | |
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 <Servo.h> | |
Servo myservo; | |
int potpin = 0; | |
int val; | |
void setup() { | |
pinMode(6, INPUT); | |
myservo.attach(3); |
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
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; |
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
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; |
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
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; |
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
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; |
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
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) |