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
Hola |
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
var sensors = require("snsr"); | |
const Influx = require('influxdb-nodejs'); | |
const client = new Influx('http://localhost:8086/physicalHost'); | |
var tempSensors = [ | |
'Package id 0', | |
'Core 0', | |
'Core 1', | |
'Core 2', | |
'Core 3' |
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
// Copyright (c) Sandeep Mistry. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
// TimerOne library: https://code.google.com/p/arduino-timerone/ | |
// DHT library: https://github.com/adafruit/DHT-sensor-library | |
#include <SPI.h> | |
#include <BLEPeripheral.h> | |
#include <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_BMP280.h> |
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 <WiFi.h> | |
#include <PubSubClient.h> | |
#include "DHTesp.h" | |
const char* ssid = ""; | |
const char* password = ""; | |
const char* mqtt_server = ""; | |
const int dhtPin = 16; |
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 <Servo.h> | |
/* Set these to your desired credentials. */ | |
const char *ssid = "MissileLauncher"; | |
const char *password = "12345678"; | |
ESP8266WebServer server(80); |
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 <Adafruit_ADS1015.h> | |
#include "RestClient.h" | |
RestClient client = RestClient("192.168.2.1", 3000); | |
Adafruit_ADS1115 ads; | |
int buttonState = 0; | |
void setup(void) | |
{ | |
Serial.begin(115200); |
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 <IRLibDecodeBase.h> | |
#include <IRLib_P01_NEC.h> | |
#include <IRLib_P02_Sony.h> | |
#include <IRLib_HashRaw.h> | |
#include <IRLibCombo.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#include <Wire.h> |
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 <Servo.h> | |
String inputString = ""; // a string to hold incoming data | |
boolean stringComplete = false; // whether the string is complete | |
Servo servoX; | |
int posX = 0; | |
void setup() { | |
// initialize serial: |
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
// ArduCAM Mini demo (C)2015 Lee | |
// web: http://www.ArduCAM.com | |
// This program is a demo for ESP8266 arduino board. | |
// Publish captured image to a webpage. | |
// | |
// This demo was made for ArduCAM Mini OV2640 2MP Camera. | |
// It needs to be used in combination with html webpage. | |
// | |
// This program requires the ArduCAM V3.4.3 (or later) and ESP8266-Websocket libraries |
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
var incAge = function incAge(incValue) { | |
return this.age + incValue; | |
} | |
var BirthDayBoy = function BirthDayBoy(){ | |
this.age = 12; | |
}; | |
var boy = new BirthDayBoy(); |
NewerOlder