commit stringlengths 40 40 | old_file stringlengths 2 205 | new_file stringlengths 2 205 | old_contents stringlengths 0 32.9k | new_contents stringlengths 1 38.9k | subject stringlengths 3 9.4k | message stringlengths 6 9.84k | lang stringlengths 3 13 | license stringclasses 13
values | repos stringlengths 6 115k |
|---|---|---|---|---|---|---|---|---|---|
049b493c7d82f983245ce7b77c6d489cba359a95 | home-node/home-node.ino | home-node/home-node.ino |
#define MAX_HANDLERS 10
#define CONFIG_TOPIC_PREFIX "config/"
#include <MQTTClient.h>
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#endif
#include <ArduinoJson.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "ProfileHandler.h"
#include "DHT11Handler.h"
#include "Customize.h" //D... |
#define MAX_HANDLERS 10
#define CONFIG_TOPIC_PREFIX "config/"
#include <MQTTClient.h>
#if defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#endif
#include <ArduinoJson.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "ProfileHandler.h"
#include "DHT11Handler.h"
#include "Customize.h" //D... | Increase packet size | Increase packet size
| Arduino | mit | manzato/home-node |
566715407ab62bc6e45286353407123b176887c0 | Arduino/v0.2.0_with_conditioning/v0.2.0_with_conditioning.ino | Arduino/v0.2.0_with_conditioning/v0.2.0_with_conditioning.ino | #include "AES.h"
#include "CBC.h"
#define CHAIN_SIZE 2
#define BLOCK_SIZE 16
#define SAMPLE_SIZE (BLOCK_SIZE * CHAIN_SIZE)
byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F};
CBC<AES128> cbc;
byte sourcePool[SAMPLE_SIZE];
void setup... | /*
* Z1FFER
* OpenRandom.org
*
* 2015 Rob Seward
*
* Captures random data from Z1FFER v0.2.0 and conditions it using AES-CBC-MAC
*
* Requires Rhys Weatherley's crypto library: https://github.com/rweather/arduinolibs
*/
#include "AES.h"
#include "CBC.h"
#define CHAIN_SIZE 2
#define BLOCK_SIZE 16
#... | Add comments | Add comments
| Arduino | mit | robseward/Ziffer |
1eedceb095223d7bd0cc621454f5b809ebe84984 | little-switches/arduino/2_setup-pot/2_setup-pot.ino | little-switches/arduino/2_setup-pot/2_setup-pot.ino | void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("A0: ");
Serial.print(analogRead(A0));
Serial.print(" - A1: ");
Serial.print(analogRead(A1));
Serial.print(" - A2: ");
Serial.print(analogRead(A2));
Serial.print(" - A3: ");
Serial.print(analogRead(A3));
}
| void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("A3: ");
Serial.println(analogRead(A3));
delay(500);
}
| fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
098f6bb26f387aa2f4c637ca53f21e7ad6d27604 | examples/OPL2AudioBoard/MidiSynth/MidiSynth.ino | examples/OPL2AudioBoard/MidiSynth/MidiSynth.ino | /**
* This is an example sketch for the OPL2 Audio Board that shows how MIDI controls can be used to change the properties
* of an operator. In this example we assume that serial MIDI data is received from a MIDI shield connected to the Rx(1)
* pin of the Arduino.
*
* The carriers of all OPL2 channels will be set ... | /**
* This is an example sketch for the OPL2 Audio Board that shows how MIDI controls can be used to change the properties
* of an operator. In this example we assume that serial MIDI data is received from a MIDI shield connected to the Rx(1)
* pin of the Arduino.
*
* The carriers of all OPL2 channels will be set ... | Handle stopNote correctly in MidiSynth example | Handle stopNote correctly in MidiSynth example
| Arduino | mit | DhrBaksteen/ArduinoOPL2,DhrBaksteen/ArduinoOPL2,DhrBaksteen/ArduinoOPL2 |
0d4b03091217cb5734d152993cc515c3e1aab08f | status.ino | status.ino | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
SparkButton strip = SparkButton();
int current[12];
int desired[12];
void setup() {
strip.begin();
strip.allLedsOff();
for(int i=0; i<12; i++) {
current[i] = OFF;
desired[i] = OFF;
}
Spark.funct... | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
SparkButton strip = SparkButton();
int current[12];
int desired[12];
void setup() {
strip.begin();
strip.allLedsOff();
for(int i=0; i<12; i++) {
current[i] = OFF;
desired[i] = OFF;
}
Spark.funct... | reset current here too | reset current here too
| Arduino | mit | heroku/sparoku-status,heroku/sparoku-status |
e861f8c06bf72b057a28d4370f8f327eba222b47 | devices/cc3200_launchpad/example_energia/example_energia.ino | devices/cc3200_launchpad/example_energia/example_energia.ino | /**
This firmware is only for TI CC3200 Launchpad.
In order to test the COSSB system, we will support temporary open & public hardware platforms like TI Launchpad, Odroid, Raspberry Pi...
If you have any questions for this sample code, please contact us(bhhwang@nsynapse.com).
*/
#include <WiFi.h>
#include <WiFiUdp.h>
... | /**
This firmware is only for TI CC3200 Launchpad.
In order to test the COSSB system, we will support temporary open & public hardware platforms like TI Launchpad, Odroid, Raspberry Pi...
If you have any questions for this sample code, please contact us(bhhwang@nsynapse.com).
*/
#include <WiFi.h>
#include <WiFiUdp.h>
... | update cc3200 firmware, use udp multicast instead of mDNS | update cc3200 firmware, use udp multicast instead of mDNS | Arduino | mit | bhhwang/cossb,bhhwang/cossb,bhhwang/cossb |
8933ac711e608d12cce5798fe77b37d128cf908e | examples/ReadA0/ReadA0.ino | examples/ReadA0/ReadA0.ino | /*
* Simple demonstration of AsyncDelay to read the A0 analogue input
* every 50 ms.
*/
#include <AsyncDelay.h>
AsyncDelay samplingInterval;
void setup(void)
{
Serial.begin(115200);
samplingInterval.start(50, AsyncDelay::MILLIS);
}
void loop(void)
{
if (samplingInterval.isExpired()) {
uint16_t count ... | /*
* Simple demonstration of AsyncDelay to read the A0 analogue input
* every 50 ms.
*/
#include <AsyncDelay.h>
AsyncDelay samplingInterval;
void setup(void)
{
Serial.begin(115200);
samplingInterval.start(50, AsyncDelay::MILLIS);
}
void loop(void)
{
if (samplingInterval.isExpired()) {
uint16_t count ... | Simplify example | Simplify example
| Arduino | lgpl-2.1 | stevemarple/AsyncDelay |
f5003b5c41002212c359866b5dd714b2c31e84a1 | milkcarton-1.ino | milkcarton-1.ino | /* http://ikeyasu.com */
/* vim: set ts=2 sw=2 sts=2 et si: */
/* astyle --style=google --indent=spaces=2 --pad-oper carton-1.ino */
boolean DEBUG = true;
void setup() {
Serial.begin(9600);
}
void dpXTZ(int x, int y, int z) {
if (!DEBUG) return;
Serial.print("X=");
Serial.print(x);
Serial.print(" Y=");
... | /* http://ikeyasu.com */
/* vim: set ts=2 sw=2 sts=2 et si: */
/* astyle --style=google --indent=spaces=2 --pad-oper carton-1.ino */
boolean DEBUG = true;
void dpXTZ(int x, int y, int z) {
if (!DEBUG) return;
Serial.print("X=");
Serial.print(x);
Serial.print(" Y=");
Serial.print(y);
Serial.print(" Z=")... | change a position of setup(). | [Refactoring] change a position of setup().
| Arduino | mit | ikeyasu/switchdevice-milkcarton-1 |
47833b77ff066c16e051cb63a3eb2e7fe839a1b5 | arduino_src/src/sba/sba.ino | arduino_src/src/sba/sba.ino | // Adafruit_NeoMatrix example for single NeoPixel Shield.
// Scrolls 'Howdy' across the matrix in a portrait (vertical) orientation.
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <SPI.h>
#ifndef PSTR
#define PSTR // Make Arduino Due happy
#endif
#define PIN 6
// M... | // Adafruit_NeoMatrix example for single NeoPixel Shield.
// Scrolls 'Howdy' across the matrix in a portrait (vertical) orientation.
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <SPI.h>
#ifndef PSTR
#define PSTR // Make Arduino Due happy
#endif
#define PIN 6
// M... | Update display speed and position | Update display speed and position
set text position horizontal center when shot message.
increase scroll speed when long message.
| Arduino | mit | rambling/findmon-sba,rambling/findmon-sba,rambling/findmon-sba |
fba675a5571b8fba9af084923b338cb0653a4d50 | examples/ESP8266OccupancySensor/ESP8266OccupancySensor.ino | examples/ESP8266OccupancySensor/ESP8266OccupancySensor.ino | //*****************************************************************************
//
// ESP8266OccupancySensor - An example of how to use the Exosite library
// on the Sparkfun ESP8266 Thing with a PIR motion
// sensor to detect the occupancy status of a room
//
// Requir... | //*****************************************************************************
//
// ESP8266OccupancySensor - An example of how to use the Exosite library
// on the Sparkfun ESP8266 Thing with a PIR motion
// sensor to detect the occupancy status of a room
//
// Requir... | comment formatting | comment formatting
| Arduino | bsd-3-clause | exosite-garage/arduino_exosite_library |
eaf6e5852ef10352abc60fb7ed05c4f4c6b2831f | examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino | examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Fix streaming parsing | Fix streaming parsing
So my previous fix only fixed the first result in the stream. All of the others are of a different format. However if we ask for the /last value directly all results look the same.
Didn't see this before because the job updating the bitcoin database was down and it wasn't seeing any updates bu... | Arduino | apache-2.0 | FirebaseExtended/firebase-arduino,ed7coyne/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,proppy/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino |
e7172701009d3cc40be487e9441f0ba16cb10074 | InsidePlanetEarth.ino | InsidePlanetEarth.ino | #include "Ultrasonic.h"
#include "Loop.h"
#define SWITCH_PIN 53
#define SWITCH_POWER 51
#define STATUS_LED 48
#define ECHOPIN 35
#define TRIGPIN 33
/* Written by Owen Holloway [owen.holloway101@gmail.com]
* on behalf of Suzanne Crowley
*
* Controls the InsidePlanetEarth LED arrays
* http://github.com/Owen-Hollowa... | #include "Ultrasonic.h"
#include "Loop.h"
#define SWITCH_PIN 53
#define SWITCH_POWER 51
#define STATUS_LED 48
#define ECHOPIN 35
#define TRIGPIN 33
/* Written by Owen Holloway [owen.holloway101@gmail.com]
* on behalf of Suzanne Crowley
*
* Controls the InsidePlanetEarth LED arrays
* http://github.com/Owen-Hollowa... | Update InsidePlanetEarth.ino | Update InsidePlanetEarth.ino
changed from 100cm to 400cm | Arduino | mit | Owen-Holloway101/InsidePlanetEarth,Owen-Holloway101/InsidePlanetEarth |
b9451eb9a68bfd229e786a3f9ae4d33804b6b3a3 | code/code.ino | code/code.ino | #define BAUD_RATE 57600//general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#define SD_CARD_PIN 53
#define LED_PIN 50
#define MEGA 0
#define DUE 1
#define PLATFORM MEGA
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <mavlink.h>
#if (PLATFORM==MEGA)
#i... | #define BAUD_RATE 57600//general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#define SD_CARD_PIN 53
#define LED_PIN 50
#define MEGA 0
#define DUE 1
#define PLATFORM MEGA
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <mavlink.h>
#if (PLATFORM==MEGA)
#i... | Update code.ino | Update code.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
1f4917200654b5f0bad0dc682fa9c8b7b21956c9 | examples/Compiler/CosaDiff/CosaDiff.ino | examples/Compiler/CosaDiff/CosaDiff.ino | /**
* @file CosaDiff.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Lic... | /**
* @file CosaDiff.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Lic... | Improve CosaDiff print-out on error detect. | Improve CosaDiff print-out on error detect.
| Arduino | lgpl-2.1 | kc9jud/Cosa,dansut/Cosa,rrobinet/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,rrobinet/Cosa,kc9jud/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,kc9jud/Cosa |
22d5037b3d6c685530bbf6c9925505b9824feb2b | DanceFeather/DanceFeather.ino | DanceFeather/DanceFeather.ino | // SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries
//
// SPDX-License-Identifier: MIT
//
#include <Adafruit_APDS9960.h>
#include <Adafruit_BMP280.h>
#include <Adafruit_LIS3MDL.h>
#include <Adafruit_LSM6DS33.h>
#include <Adafruit_SHT31.h>
#include <Adafruit_Sensor.h>
#include <PDM.h>
#include <KickFFT... | // SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries
//
// SPDX-License-Identifier: MIT
//
#include <Adafruit_APDS9960.h>
#include <Adafruit_BMP280.h>
#include <Adafruit_LIS3MDL.h>
#include <Adafruit_LSM6DS33.h>
#include <Adafruit_SHT31.h>
#include <Adafruit_Sensor.h>
#include <PDM.h>
#include <KickFFT... | fix bug | fix bug
| Arduino | mit | crazypills/Dancetimes |
42b51f151f20ac3905ef41c4a7ae602dd9133189 | gigapanplus.ino | gigapanplus.ino | /*
* GigapanPlus for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
... | /*
* GigapanPlus for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
... | Adjust display rows based on height. Add invert mode. | Adjust display rows based on height. Add invert mode. | Arduino | mit | laurb9/pano-controller,laurb9/gigapanplus,laurb9/gigapanplus,laurb9/pano-controller |
515eba87957db84a3c252840476d8bff493da0cb | scratchpad/CC1101ScanRSSI__MODIFIED/CC1101ScanRSSI__MODIFIED.ino | scratchpad/CC1101ScanRSSI__MODIFIED/CC1101ScanRSSI__MODIFIED.ino | /*
Scans 33 cm band channels selected for appropriate Illinois Repeater Association
usage and for center frequency within about 2kHz of 12.5 kHz channels using CC1101
channel selection. Really should just program frequency directly, but the
calculation isn't too simple and wasn't included in this version.
*/
#... | /*
Scans 33 cm band channels selected for appropriate Illinois Repeater Association
usage and for center frequency within about 2kHz of 12.5 kHz channels using CC1101
channel selection. Really should just program frequency directly, but the
calculation isn't too simple and wasn't included in this version.
*/
#... | Mask & Shift | Mask & Shift
| Arduino | mit | AdlerFarHorizons/Transceiver,AdlerFarHorizons/Transceiver |
e4696ca6c036bd299eb403137a2c475b39c9cdfa | Mqtt/mqtt.ino | Mqtt/mqtt.ino | #include <ESP8266WiFi.h>
#include <DHT.h> // Humidity & Temperature sensor library
#include "Adafruit_MQTT.h" //
#include "Adafruit_MQTT_Client.h" // Mqtt library from adafruit
#define WLAN_SSID "Your ssid"
#define WLAN_PASS "Your password"
... | #include <ESP8266WiFi.h>
#include <DHT.h> // Humidity & Temperature sensor library
#include "Adafruit_MQTT.h" //
#include "Adafruit_MQTT_Client.h" // Mqtt library from adafruit
#define WLAN_SSID "Your ssid"
#define WLAN_PASS "Your password"
... | Update mqtt.ino | Update mqtt.ino | Arduino | mit | MRuniversee/Project_AC |
761b2d61adc25ada3129d61c6d36f496032bb1f9 | firmware/examples/coaptest.ino | firmware/examples/coaptest.ino | #include "coap/coap.h"
// CoAP server endpoint url callback
void callback_light(CoapPacket &packet, IPAddress ip, int port);
// CoAP client response callback
void callback_response(CoapPacket &packet, IPAddress ip, int port);
Coap coap;
// CoAP server endpoint URL
void callback_light(CoapPacket &packet, IPAddress ... | #include "coap/coap.h"
// CoAP server endpoint url callback
void callback_light(CoapPacket &packet, IPAddress ip, int port);
// CoAP client response callback
void callback_response(CoapPacket &packet, IPAddress ip, int port);
Coap coap;
// CoAP server endpoint URL
void callback_light(CoapPacket &packet, IPAddress ... | update example. | update example.
| Arduino | mit | hirotakaster/coap |
065121c74b0c51bf9879cf5e02c63d15540eaf96 | paperweight/Paperweight/Paperweight.ino | paperweight/Paperweight/Paperweight.ino | const int PIN_DATA = 4;
const int PIN_LATCH = 3;
const int PIN_CLOCK = 2;
void setup() {
//Initialize Shift register
pinMode(PIN_DATA, OUTPUT);
pinMode(PIN_CLOCK, OUTPUT);
pinMode(PIN_LATCH, OUTPUT);
//Initialize Serial Port
Serial.begin(9600);
}
void loop() {
//Wait for a single byte
... | #include <LiquidCrystal.h>
//Shift Register Pins
const int PIN_DATA = 4;
const int PIN_LATCH = 3;
const int PIN_CLOCK = 2;
//Set up the LCD
LiquidCrystal lcd(12, 11, 7, 8, 9, 10);
void setup() {
//Initialize Shift register
pinMode(PIN_DATA, OUTPUT);
pinMode(PIN_CLOCK, OUTPUT);
pinMode(PIN_LATCH, OUTP... | Add LCD Display | Add LCD Display
Add LCD Display to the project.
| Arduino | unlicense | PiJoules/PhillyCodeFest2016,PiJoules/PhillyCodeFest2016,PiJoules/PhillyCodeFest2016,PiJoules/PhillyCodeFest2016,PiJoules/Septa-Notifier,PiJoules/Septa-Notifier,PiJoules/Septa-Notifier,PiJoules/Septa-Notifier |
917a7614bcfb0205345490d3dbd7bb33a0914d6b | firmware/examples/mobicle.ino | firmware/examples/mobicle.ino | // This #include statement was automatically added by the Particle IDE.
#include "ncd_gateway/ncd_gateway.h"
// Data packet structure:
// [0] - Header: [188: i2c_read/i2c_write, 189: i2c_write_mask, 2: s3b]
//i2c_read - i2c_write
// [1] - Address: i2c chip address
// [2] - Write length: number of subsequent bytes to ... | // This #include statement was automatically added by the Particle IDE.
#include "ncd_gateway/ncd_gateway.h"
// Data packet structure:
// [0] - Header: [186: Bus scan, 187: packet of packets, 188: i2c_read/i2c_write, 189: i2c_write_mask, 190: delay]
//Bus Scan (186)
// [1] - chunk: 0=1-32, 1=33-64, 2=65-96, 3=97-127
... | Update mobicle.ino | Update mobicle.ino | Arduino | mit | ControlEverythingCom/ncd_gateway,ControlEverythingCom/ncd_gateway |
8a8217813e4e86a65935b4da83b9c5b3a397ff43 | autotop986.ino | autotop986.ino | /*
986 Auto-Top by Adam Robertson <oldskool73@gmail.com>
Based on : 986 Auto-Top by Alex Roy
This auto-presses the open or close buttons for the convertible top on a Porsche 986
for the specified open/close seconds automatically if you quickly tap the button.
If the button tap is longer (eg it is held down... | /*
986 Auto-Top by Adam Robertson <oldskool73@gmail.com>
Based on : 986 Auto-Top by Alex Roy
This auto-presses the open or close buttons for the convertible top on a Porsche 986
for the specified open/close seconds automatically if you quickly tap the button.
If the button tap is longer (eg it is held down... | Refactor to clean up timers | Refactor to clean up timers
| Arduino | mit | oldskool73/autotop986 |
d7055c93b823d27e7624e84b9e32600d94e772ff | examples/ESP_AsyncHTTPd/ESP_AsyncHTTPd.ino | examples/ESP_AsyncHTTPd/ESP_AsyncHTTPd.ino | // This demo requires a modified ESP8266 Arduino, found here:
// https://github.com/Adam5Wu/Arduino
// This demo requires ESPVFATFS library, found here:
// https://github.com/Adam5Wu/ESPVFATFS
// This demo requires ZWUtils-Arduino library, found here:
// https://github.com/Adam5Wu/ZWUtils-Arduino
// This demo requir... | // This demo requires a modified ESP8266 Arduino, found here:
// https://github.com/Adam5Wu/Arduino
// This demo requires ESPVFATFS library, found here:
// https://github.com/Adam5Wu/ESPVFATFS
// This demo requires ZWUtils-Arduino library, found here:
// https://github.com/Adam5Wu/ZWUtils-Arduino
// This demo requir... | Fix broken example code | Fix broken example code
| Arduino | lgpl-2.1 | Adam5Wu/ESPAsyncWebServer,Adam5Wu/ESPAsyncWebServer |
b56aafcb14e624b0843b8b4315c833f871edfa0c | sketch_yunba/sketch_yunba.ino | sketch_yunba/sketch_yunba.ino | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "office";
const char *g_devid = "plug_plc";
bool g_net_status = false;
char... | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
#if 0
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "office";
const char *g_devid = "plug_plc";
#else
const char *g_appkey... | Delete a unused function | Delete a unused function
| Arduino | mit | yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice |
828e781e137a52a49cba1f7185d5759d2035de7e | _70-homekit-accessories-light/_70-homekit-accessories-light.ino | _70-homekit-accessories-light/_70-homekit-accessories-light.ino | // Using Sonoff wifi switch, 80MHz, 1M
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Ticker.h>
#include "/usr/local/src/aptls_setting.h"
extern "C" {
#include "user_interface.h"
}... | // Using Sonoff wifi switch, 80MHz, 1M
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Ticker.h>
#include "/usr/local/src/aptls_setting.h"
extern "C" {
#include "user_interface.h"
}... | check mqtt reconnect | check mqtt reconnect
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
febd159c0d14c0bf5af2850aeaec53e9eb73f4b6 | mqtt_d1mini/mqtt_d1mini.ino | mqtt_d1mini/mqtt_d1mini.ino | /*
ESP8266 SMART LOCK MQTT
AUTHORS: ANDRE MARCOS PEREZ NUSP 8006891
LEONARDO NUNES PARENTE NUSP 7987352
SEL373 PROJETOS EM SISTEMAS DIGITAIS
It connects to an MQTT server then:
- publishes "c" to the topic "home/hallSensor" when the sensor state changes from HIGH to LOW (door closed)... | /*
ESP8266 SMART LOCK MQTT
AUTHORS: ANDRE MARCOS PEREZ NUSP 8006891
LEONARDO NUNES PARENTE NUSP 7987352
SEL373 PROJETOS EM SISTEMAS DIGITAIS
It connects to an MQTT server then:
- publishes "c" to the topic "home/hallSensor" when the sensor state changes from HIGH to LOW (door closed).
- pub... | Add files via upload | Add files via upload
novo | Arduino | mit | andreMarcosPerez/SEL0373_digitalSystemsProjects,andreMarcosPerez/SEL0373_digitalSystemsProjects,andreMarcosPerez/SEL0373_digitalSystemsProjects |
35a46ada5c94b8c2c7e21adfb7b33c53ce4ff3f5 | src/drivefw/drivefw.ino | src/drivefw/drivefw.ino | #define REVERSE_CONTROL_PIN 10
#define REVERSE_ENGAGE_PIN 11
#define DRIVE_CONTROL_PIN 12
#define DRIVE_MOTOR_PIN 13
void setup()
{
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIVE_CONTROL_PIN, INPUT_PULLUP);
pinMode(REVERSE_ENGAGE_PIN, OUTPUT);
pinMode(REVERSE_CONTROL_PIN, INPUT_PULLUP);
delay(5000); //Make... | #define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
void setup()
{
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIVE_CONTROL_PIN, INPUT_PULLUP);
pinMode(REVERSE_ENGAGE_PIN, OUTPUT);
pinMode(REVERSE_CONTROL_PIN, INPUT_PULLUP);
delay(5000); //Make sur... | Update drivefw.ino | Update drivefw.ino
Adjust pins for new Arduino Micro base | Arduino | mit | blakewford/wifiRC,blakewford/wifiRC,blakewford/wifiRC |
3038388daeb0faff0c14e51ce272e113989e97ea | src/drivefw/drivefw.ino | src/drivefw/drivefw.ino | #define RIGHT_CONTROL_PIN 11
#define RIGHT_ENGAGE_PIN 2
#define STEERING_CONTROL_PIN 3
#define STEERING_ENGAGE_PIN 4
#define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
#define LIGHTS_CONTROL_PIN 9
#define LIGHTS_ENABLE_PIN 10
void setup()
{
pinMode(LIGHTS... | #define RIGHT_CONTROL_PIN 11
#define RIGHT_ENGAGE_PIN 2
#define STEERING_CONTROL_PIN 3
#define STEERING_ENGAGE_PIN 4
#define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
#define LIGHTS_CONTROL_PIN 9
#define LIGHTS_ENABLE_PIN 10
void setup()
{
pinMode(LIGHTS... | Update drivefw.ino | Update drivefw.ino
Start merging main Edison application and drivefw | Arduino | mit | blakewford/wifiRC,blakewford/wifiRC,blakewford/wifiRC |
add39c01baf54c9a052c06a1ac6c7c29e9421970 | dee-oh-tee.ino | dee-oh-tee.ino | #include <Servo.h>
const int buttonPin = 10;
const int minServoAngle = 700;
const int maxServoAngle = 2300;
const int numberOfUsableDegrees = maxServoAngle - minServoAngle;
const int centerServoAngle = minServoAngle + numberOfUsableDegrees / 2;
Servo panServo;
Servo tiltServo;
void setup() {
Serial.begin(9600);
... | #include <Servo.h>
const int buttonPin = 10;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int SERVO_DELAY = 15; // millis
Servo panServo;
Servo tiltServo;... | Add moveToPoint() for easy cartesian movement | Add moveToPoint() for easy cartesian movement
| Arduino | apache-2.0 | acj/dee-oh-tee |
d474f087a5f022f0876444e5937c830160bfbdcc | examples/06-AppTutorial/01-BasicGain_wApp/01-BasicGain_wApp.ino | examples/06-AppTutorial/01-BasicGain_wApp/01-BasicGain_wApp.ino | /*
* BasicGain_wApp
*
* Created: Chip Audette, June 2020
* Purpose: Process audio using Tympan by applying gain.
* Also, illustrate how to change Tympan setting via the TympanRemote App.
*
* Blue potentiometer adjusts the digital gain applied to the audio signal.
*
* Uses default sample rate of 44100 Hz ... | /*
* BasicGain_wApp
*
* Created: Chip Audette, June 2020
* Purpose: Process audio using Tympan by applying gain.
* Also, illustrate how to change Tympan setting via the TympanRemote App.
*
* Blue potentiometer adjusts the digital gain applied to the audio signal.
*
* Uses default sample rate of 44100 Hz ... | Revert "TympanRemoteFormatter: update BasicGain_wApp to use TympanRemoteFormatter" | Revert "TympanRemoteFormatter: update BasicGain_wApp to use TympanRemoteFormatter"
This reverts commit a563ec85f28c7fd4bda800ffb73c09c5460de3a6.
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
2f45612bb8a1e88e39c8aca9d19b4ef338afe1db | libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | Revert "Edit SD Server example to use the new Write(Stream) method" | Revert "Edit SD Server example to use the new Write(Stream) method"
This reverts commit 4ae8a6d631d532409dde5ea35af03bccbb62974f.
| Arduino | lgpl-2.1 | Cloudino/Arduino,edog1973/Arduino,chrisfraser/Arduino,hallard/Arduino,CanTireInnovations/Arduino,NullMedia/Arduino,gguuss/Arduino,Cloudino/Cloudino-Arduino-IDE,toastedcode/esp8266-Arduino,quertenmont/Arduino,Cloudino/Arduino,martinayotte/ESP8266-Arduino,gguuss/Arduino,chrisfraser/Arduino,Cloudino/Cloudino-Arduino-IDE,e... |
cd1fc8cc76f3d44d4765e6312a6ba0ed32a7e696 | MASTER_crusher/MASTER_crusher.ino | MASTER_crusher/MASTER_crusher.ino | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <PLabBTSerial.h>
ZumoReflectanceSensorArray reflectanceSensors(QTR_NO_EMITTER_PIN);
ZumoMotors motors;
double lastDistance = 100;
unsigned int reflectanceValues[6];
Pushbutton button(12);
#defin... | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <PLabBTSerial.h>
ZumoReflectanceSensorArray reflectanceSensors(QTR_NO_EMITTER_PIN);
ZumoMotors motors;
double lastDistance = 100;
unsigned int reflectanceValues[6];
Pushbutton button(12);
#defin... | add pin debug | add pin debug
| Arduino | mit | tutturen/max_speed_backflip_robot |
c280f2132d5a6f4c49a75928c440ccfdadd6a00f | slider_test/slider_test.ino | slider_test/slider_test.ino |
#define DEBUG
#include "slider.h"
#define gsIDLE 0
#define gsPRESS 1
#define gsRELEASE 2
int softpotReading = 0;
int softpotInitV = 0;
int softpotPin = A0; //analog pin 0
int ledPin = 13;
bool released;
bool pressed;
unsigned long start_time;
unsigned long release_time;
unsigned long last_release_time;
int duratio... |
#define DEBUG
#include "slider.h"
#define gsIDLE 0
#define gsPRESS 1
#define gsRELEASE 2
int softpotReading = 0;
int softpotInitV = 0;
int softpotPin = A0; //analog pin 0
int ledPin = 13;
unsigned long start_time = 0;
unsigned long release_time = 0;
unsigned long last_release_time = 0;
int duration_threshold = 300... | remove unused lines | remove unused lines
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
5865105e97a2d25305b89f27d8c98b0f062b0aa8 | TeleInfo/TeleInfo_Node/TeleInfo_Node.ino | TeleInfo/TeleInfo_Node/TeleInfo_Node.ino | /*
* TX Node for Teleinformation EDF (compteur type A14C5)
*
* Info from http://blog.cquad.eu/2012/02/02/recuperer-la-teleinformation-avec-un-arduino/
* Doc from EDF http://norm.edf.fr/pdf/HN44S812emeeditionMars2007.pdf
*/
#include <Manchester.h>
#include <SoftwareSerial.h>
#include <avr/wdt.h>
#include <avr/power... | /*
* TX Node for Teleinformation EDF (compteur type A14C5)
*
* Info from http://blog.cquad.eu/2012/02/02/recuperer-la-teleinformation-avec-un-arduino/
* Doc from EDF http://norm.edf.fr/pdf/HN44S812emeeditionMars2007.pdf
*/
#include <Manchester.h>
#include <SoftwareSerial.h>
#include <avr/wdt.h>
#include <avr/power... | Add Watchdog timer | Add Watchdog timer
| Arduino | mit | totothekiller/weather-station,totothekiller/weather-station |
fc9c794842d0fcdc7db4404f7128e3e70f4119bd | client/client.ino | client/client.ino | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | change to auto ask for status when connected (instead of additional read msg sent) | change to auto ask for status when connected (instead of additional read msg sent)
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
23ba29051bd2714228fbb5582219b3da4abc6e84 | heartbeat_with_pulse.ino | heartbeat_with_pulse.ino | #include <Bounce2.h>
#include "FastLED.h"
/*
* Heartbeat simulator
*
* Shows a different hue and brightness based on accelerometer activity,
* with the idea that low movement means colder and less bright colours,
* with more movement turning it into warmer and brighter colours.
*
* Credit to Ben Nolan for the... | #include <Bounce2.h>
#include "FastLED.h"
#include <EEPROM.h>
/*
* Heartbeat simulator
*
* Shows a different hue and brightness based on accelerometer activity,
* with the idea that low movement means colder and less bright colours,
* with more movement turning it into warmer and brighter colours.
*
* Credit ... | Set mode from EEPROM rather than button | Set mode from EEPROM rather than button
| Arduino | bsd-3-clause | chillu/arduino-led-scarf |
29f13602b9d5baa415c22883ca7b9bcf62c7219a | MidiController.ino | MidiController.ino | #include <MIDI.h>
#ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ... | #include <MIDI.h>
#ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ... | Fix a variable initialization warning | Fix a variable initialization warning
The "value" variable was not initialized in some error cases.
| Arduino | mit | brianj29/MidiController,brianj29/MidiController |
590050dc2ffdb6312a2e0738904c1c4e3415e6c9 | src/du.ino | src/du.ino | #include <Servo.h>
bool debug = false;
int index = 0;
char messageBuffer[12];
char cmd[3];
char pin[3];
char val[4];
char aux[4];
Servo servo;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else... | #include <Servo.h>
bool debug = false;
int index = 0;
char messageBuffer[12];
char cmd[3];
char pin[3];
char val[4];
char aux[4];
Servo servo;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else i... | Implement arcuino io support for ping))) | Implement arcuino io support for ping)))
Signed-off-by: Rick Waldron dd8fdbe95c7f81f312b273ef8860922803e9ef16@gmail.com <dd8fdbe95c7f81f312b273ef8860922803e9ef16@gmail.com>
| Arduino | mit | rwaldron/duino |
687fdf1cfe37e2e085ac09c5e97e86a4348b9497 | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... | Update OpenCTD_master_m0.ino | Update OpenCTD_master_m0.ino
| Arduino | mit | OceanographyforEveryone/OpenCTD |
b5e5ff6b9736d065cee9c7e441e42a1f207221f4 | nes_controller_sd.ino | nes_controller_sd.ino | #include <SPI.h>
#include <SD.h>
#define BUFFER_SIZE 400
const int chipSelect = 9;
volatile int frame_cnt = 0;
volatile int clk_cnt = 0;
volatile uint8_t buttons_hold = 0;
volatile uint8_t buttons = 0;
uint8_t port_buffer = 0;
volatile uint8_t button_state_a[BUFFER_SIZE];
volatile uint8_t button_state_b[BUFFER_SIZE]... | /*
Copyright Bryan R. Craker 2017
Used to execute arbitrary controller input for an NES using an XLR8 board
Requires SD card on the SPI interface with CS on D09, NES clock on D02, NES latch on D03
Released without warranty, hoping people will find it useful
*/
#include <SPI.h>
#include <SD.h>
#d... | Update nes_controller_sd.ino | Update nes_controller_sd.ino
Adding header comments | Arduino | mit | BryGuy501/XLR8-TASBot,BryGuy501/XLR8-TASBot |
13ce95139be94a3fda42a02e0445934ca3fee269 | examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino | examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | update example to loop | example/FirebasePush: update example to loop
| Arduino | apache-2.0 | gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,ed7coyne/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino |
cd79fd135b7ef7efb12c35c8df588fa2b295db07 | examples/quadcopter/quadcopter.ino | examples/quadcopter/quadcopter.ino | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
using namespace Platform;
// Radio Channel Mapping
enum RadioChannel{ RADIO_PITCH = 0, RADIO_ROLL = 1, RADIO_THROTTLE = 2,
RADIO_YAW = 3, RADIO_GEAR = 4, RADIO_AUX = 5 };
const uint8_t CHANNEL_TRIG... | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
using namespace Platform;
// Radio Channel Mapping
enum RadioChannel{ RADIO_PITCH = 0, RADIO_ROLL = 1, RADIO_THROTTLE = 2,
RADIO_YAW = 3, RADIO_GEAR = 4, RADIO_AUX = 5 };
const uint8_t CHANNEL_TRIG... | Print interrupt profiler to dashboard | Print interrupt profiler to dashboard
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
9d2596e6bd4725f3030efc84fa5b96596347eeb6 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | add map function | add map function
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
bef9f5b1538c947adcb63b2d2029b858db4e1388 | Arduino/LightPlayer/LightPlayer.ino | Arduino/LightPlayer/LightPlayer.ino | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remote ... | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remote ... | Support pause, rewind, fast forward, prev video | Support pause, rewind, fast forward, prev video
| Arduino | mit | godlygeek/LightRender,MaddAddaM/LightRender |
b211670f9d69aa0ee94f1b66d59e985eadde403d | midicontroller.ino | midicontroller.ino | #include "Button.h"
#include "base64/Base64.h"
#include <Adafruit_GFX.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_SSD1306.h>
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
const int ledPin = 13;
const byte bpmLed = 22;
const byte channe... | #include "Button.h"
#include "base64/Base64.h"
#include <Adafruit_GFX.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_SSD1306.h>
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
const int ledPin = 13;
const byte bpmLed = 22;
const byte channe... | Put button debug into #ifdef | Put button debug into #ifdef
| Arduino | apache-2.0 | LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller |
8a0d1797e1eae948f4814a2ec786e57327a8683c | Arduino/Complete/src/src.ino | Arduino/Complete/src/src.ino | // Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC)
// for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See license.txt in the Sabertooth ard... | // Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC)
// for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See license.txt in the Sabertooth ard... | Add multiple comments Correct normalisations Get rid of 3.14 (pi) with a #define | Add multiple comments
Correct normalisations
Get rid of 3.14 (pi) with a #define
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
35ae91d501e5af3216db5ac0d2b89d7f89238105 | firmware/examples/InterleavedContinuous.ino | firmware/examples/InterleavedContinuous.ino | /* This example demonstrates how to use interleaved mode to
take continuous range and ambient light measurements. The
datasheet recommends using interleaved mode instead of
running "range and ALS continuous modes simultaneously (i.e.
asynchronously)".
In order to attain a faster update rate (10 Hz), the max
convergenc... | /* This example demonstrates how to use interleaved mode to
take continuous range and ambient light measurements. The
datasheet recommends using interleaved mode instead of
running "range and ALS continuous modes simultaneously (i.e.
asynchronously)".
In order to attain a faster update rate (10 Hz), the max
convergenc... | Update InterleavedContinuous.ino | Update InterleavedContinuous.ino | Arduino | mit | dcabanis/vl6180x_lib |
00b50b58b9bd1407112bad0c6e940f1073b62ae0 | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | #include <AccelStepper.h>
#include <Servo.h>
// Pin definitions
// Left motor driver
#define motorLPin1 2 // IN1 on the ULN2003 driver 1
#define motorLPin2 3 // IN2 on the ULN2003 driver 1
#define motorLPin3 4 // IN3 on the ULN2003 driver 1
#define motorLPin4 5 // IN4 on the ULN2003 driver 1
// R... | #include <AccelStepper.h>
#include <Servo.h>
// Pin definitions
// Left motor driver
#define motorLPin1 2 // IN1 on the ULN2003 driver 1
#define motorLPin2 3 // IN2 on the ULN2003 driver 1
#define motorLPin3 4 // IN3 on the ULN2003 driver 1
#define motorLPin4 5 // IN4 on the ULN2003 driver 1
// R... | Update LogoBotWifiScribbler.ino | Update LogoBotWifiScribbler.ino
Corrected bug in driveTo() | Arduino | mit | snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot |
25d7743969a93db7d3132a51fddabb92a6fb6372 | examples/Ticker01/Ticker01.ino | examples/Ticker01/Ticker01.ino | // Blink 4 leds in random intervals with the ticker class.
// Blinking starts with first press of the correspondig button
// and can be stopped and restarted by pressing this button.
// The blink frequency is determined at the first start.
#include <MobaTools.h>
const byte ledPins[] = {2,3,4,5};
const byte buttonPin... | // Blink 4 leds in random intervals with the ticker class.
// Blinking starts with first press of the correspondig button
// and can be stopped and restarted by pressing this button.
// The blink frequency is determined at the first start.
#include <MobaTools.h>
const byte ledPins[] = {2,3,4,5};
const byte buttonPin... | Update Ticker01.ino | Update Ticker01.ino
| Arduino | lgpl-2.1 | MicroBahner/MobaTools,MicroBahner/MobaTools |
c41cf9f360f5202ebd4ea1f0dd023aff8039245d | example/shadow.ino | example/shadow.ino | #include "mjson.h"
static int ledOn = 0; // Current LED status
static void reportState(void) {
jsonrpc_call("{\"method\":\"Shadow.Report\",\"params\":{\"on\":%s}}",
ledOn ? "true" : "false");
}
void setup() {
// Init RPC library. Pass a "sender" function that writes RPC reply frame.
jsonrpc_ini... | #include "mjson.h" // Sketch -> Add File -> Add mjson.h
static int ledOn = 0; // Current LED status
static void reportState(void) {
jsonrpc_call("{\"method\":\"Shadow.Report\",\"params\":{\"on\":%s}}",
ledOn ? "true" : "false");
}
void setup() {
// Init RPC library. Pass a "sender" function that... | Add more comments | Add more comments
| Arduino | mit | cesanta/mjson |
be3015601ae4a5547385b73853d3e536f97e251c | Event_Printer/Event_Printer.ino | Event_Printer/Event_Printer.ino |
#include <SPI.h>
#include <mcp_can.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 0
#define PRINT_STATUS_TO_TFT 1
/* Helper Macros */
#define... |
#include <SPI.h>
#include <mcp_can.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 0
#define PRINT_STATUS_TO_TFT 1
/* Helper Macros */
#define... | Fix TFT refresh issues | Fix TFT refresh issues
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
4955af8a7ed4a24afdb078e3795a1849e9a5817a | examples/GettingStarted/PushData/PushData.ino | examples/GettingStarted/PushData/PushData.ino | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | change event name | change event name
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library |
b94f844db189bea95a9e09110fc21a441261b685 | dragino/sketch.ino | dragino/sketch.ino | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | Update sketch.ino | Update sketch.ino | Arduino | apache-2.0 | redlibre/iot_platform |
85696aba7b48ae514428713cceb86e7857e73312 | example/GPRS_CallUp/GPRS_CallUp.ino | example/GPRS_CallUp/GPRS_CallUp.ino | /*
Sketch: GPRS Call Up
Function: This sketch is used to test seeeduino GPRS's callUp function.to make it
work, you should insert SIM card to Seeeduino GPRS and replace the phoneNumber,enjoy it!
*********************************************************************************
note: the following pins has been used a... | /*
Sketch: GPRS Call Up
Function: This sketch is used to test seeeduino GPRS's callUp function.to make it
work, you should insert SIM card to Seeeduino GPRS and replace the phoneNumber,enjoy it!
*********************************************************************************
note: the following pins has been used a... | Update GPRS_CallUp.ino | Update GPRS_CallUp.ino | Arduino | mit | Seeed-Studio/Seeeduino_GPRS |
09f6fccbf2931f6fda9483c2590159e792b25bbb | examples/Test_InputDebounce_Callbacks/Test_InputDebounce_Callbacks.ino | examples/Test_InputDebounce_Callbacks/Test_InputDebounce_Callbacks.ino | /*
Test InputDebounce Arduino Library, using callbacks
Mario Ban, 10.2015
https://github.com/Mokolea/InputDebounce
Copyright 2017 Mario Ban
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | /*
Test InputDebounce Arduino Library, using callbacks
Mario Ban, 10.2015
https://github.com/Mokolea/InputDebounce
Copyright 2017 Mario Ban
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | Test InputDebounce library, using callback functions | Enhanced: Test InputDebounce library, using callback functions
| Arduino | apache-2.0 | Mokolea/InputDebounce |
5605c9b95a347840de261370e080d19663942169 | Wemos/ATSDashboard.ino | Wemos/ATSDashboard.ino | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ESP8266WiFi.h>
// SCL GPIO5
// SDA GPIO4
#define OLED_RESET 0 // GPIO0
Adafruit_SSD1306 display(OLED_RESET);
#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2
const char* ssid = "WIFI_SSID_HERE... | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ESP8266WiFi.h>
// SCL GPIO5
// SDA GPIO4
#define OLED_RESET 0 // GPIO0
Adafruit_SSD1306 display(OLED_RESET);
#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2
const char* ssid = "WIFI_SSID_HERE... | Connect screen, engine off fix, delay fix. | Connect screen, engine off fix, delay fix. | Arduino | mit | ardaozkal/IoT_ATS_Dashboard |
a6ab6c41d8e4c9d55547cd77070585d66d8f979c | arduino/monitor/monitor.ino | arduino/monitor/monitor.ino | /*
Totally happy and ultra fluffy ESD safe weather tracker of doom.
Copyright (C) 2014 Greg Lincoln.
Released under the FreeBSD License.
Inspired by Nathan Seidle's WIMP. (https://github.com/sparkfun/Wimp_Weather_Station)
*/
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HTU21D.h>
#include <SFE_BMP180.h>
#i... | /*
Totally happy and ultra fluffy ESD safe weather tracker of doom.
Copyright (C) 2014 Greg Lincoln.
Released under the FreeBSD License.
Inspired by Nathan Seidle's WIMP. (https://github.com/sparkfun/Wimp_Weather_Station)
*/
#include <Wire.h>
#include <SoftwareSerial.h>
#include <HTU21D.h>
#include <SFE_BMP180.h>
#i... | Update pinout for new board. | Update pinout for new board.
| Arduino | bsd-2-clause | tetious/FluffyWeather,tetious/FluffyWeather,tetious/FluffyWeather |
9b2791eaa5389508a8655d09c65960a292cd83ef | examples/Benchmarks/CosaBenchmarkDataLogger/CosaBenchmarkDataLogger.ino | examples/Benchmarks/CosaBenchmarkDataLogger/CosaBenchmarkDataLogger.ino | /**
* @file CosaBenchmarkDataLogger.ino
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version... | /**
* @file CosaBenchmarkDataLogger.ino
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version... | Adjust for low power mode. | Adjust for low power mode.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,jeditekunum/Cosa |
edb7d3ca49028644140db542b3978975dca9f826 | Arduino/base_subscriber.ino | Arduino/base_subscriber.ino | #include <ros.h>
#include <std_msgs/String.h>
#include <Arduino.h>
// **********
// Variables
// **********
ros::NodeHandle rosNode;
uint8_t messageData[4];
uint8_t messageTTL = 100;
uint16_t messageTimestamp = 0;
// **********
// ROS Messages
// **********
void rosMessageCallback(const std_msgs::String& incoming... | #include <ros.h>
#include <std_msgs/String.h>
#include <Arduino.h>
// **********
// Variables
// **********
ros::NodeHandle rosNode;
uint8_t messageData[4];
uint8_t messageTTL = 100;
uint16_t messageTimestamp = 0;
// Speed Pin, Pin A, Pin B
uint8_t motor_0[] = {3, 4, 5};
uint8_t motor_1[] = {6, 7, 8};
uint8_t moto... | set speed + simplify | set speed + simplify
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
2f75d162305997a041cb8aa00229a641ee3bd193 | AzElSensor/AzElSensor.ino | AzElSensor/AzElSensor.ino | /*
* Base code for AzElSensor taken from:
*
* https://github.com/chrisspen/homebot/blob/master/src/test/MPU9250-test1/src/mpu9250_arduino.ino
*
* Attribution is not provided, but is apparently based on the
* Arduino Mega code (apparently) by Phillipe Lucidarme at:
*
* http://www.lucidarme.me/?p=5057
*
*/
... | /*
* Base code for AzElSensor taken from:
*
* https://github.com/chrisspen/homebot/blob/master/src/test/MPU9250-test1/src/mpu9250_arduino.ino
*
* Attribution is not provided, but is apparently based on the
* Arduino Mega code (apparently) by Phillipe Lucidarme at:
*
* http://www.lucidarme.me/?p=5057
*
*/
... | Add loop calls to subs; reformat output | Add loop calls to subs; reformat output
| Arduino | mit | AdlerFarHorizons/PortableAntennaRotorControl |
ef9e2faaccecd52c2b21c8cbfc9cb9f471a3c336 | _06-power_meter/_06-power_meter.ino | _06-power_meter/_06-power_meter.ino | #include <PubSubClient.h>
#include <ESP8266WiFi.h>
// https://github.com/openenergymonitor/EmonLib
#include "EmonLib.h" // Include Emon Library
#include <Average.h>
#define _IS_MY_HOME
// WIFI
#ifdef _IS_MY_HOME
//#include "/usr/local/src/ap_settingii.h"
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_settin... | #include <PubSubClient.h>
#include <ESP8266WiFi.h>
// https://github.com/openenergymonitor/EmonLib
#include "EmonLib.h" // Include Emon Library
#include <Average.h>
#define _IS_MY_HOME
// WIFI
#ifdef _IS_MY_HOME
//#include "/usr/local/src/ap_settingii.h"
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_settin... | remove revValue average | remove revValue average
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
19ba15c44b6368361c773e7a804d554f0e5a793c | nodeMCU/plant/functions.ino | nodeMCU/plant/functions.ino |
void connectWifi()
{
Serial.print("Connecting to "+*MY_SSID);
WiFi.begin(MY_SSID, MY_PWD);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.print(".");
}
Serial.println("");
Serial.println("Connected");
Serial.println("");
}//end connect
void sendRnd(int rnd)
{
WiFiClient client... |
void connectWifi()
{
Serial.print("Connecting to "+*MY_SSID);
WiFi.begin(MY_SSID, MY_PWD);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.print(".");
}
Serial.println("");
Serial.println("Connected");
Serial.println("");
}//end connect
void sendRnd(int rnd)
{
WiFiClient client... | modifica GET | modifica GET
| Arduino | agpl-3.0 | doceo/plant,doceo/plant,doceo/plant,doceo/plant |
8e8765586efc9c9b293148f882975710b8fbfbc5 | examples/Complete/Complete.ino | examples/Complete/Complete.ino | #include <SoftwareSerial.h>
#include "ESP8266.h"
SoftwareSerial esp8266Serial = SoftwareSerial(10, 11);
ESP8266 wifi = ESP8266();
void setup()
{
Serial.begin(9600);
// ESP8266
esp8266Serial.begin(9600);
wifi.begin(esp8266Serial);
wifi.setTimeout(1000);
/*************************************... | #include <SoftwareSerial.h>
#include "ESP8266.h"
SoftwareSerial esp8266Serial = SoftwareSerial(10, 11);
ESP8266 wifi = ESP8266();
void setup()
{
Serial.begin(9600);
// ESP8266
esp8266Serial.begin(9600);
wifi.begin(esp8266Serial);
wifi.setTimeout(1000);
/*************************************... | Fix typo in Complete.ino | Fix typo in Complete.ino
| Arduino | mit | joysfera/arduino-ESP8266,Diaoul/arduino-ESP8266,username115/arduino-ESP8266 |
83c19faf6f005d1626df17272c626f7514cbe135 | keypad/keypad.ino | keypad/keypad.ino | /* FROM http://playground.arduino.cc/Main/KeypadTutorial
*
* MORE EXAMPLES http://playground.arduino.cc/Code/Keypad#Example
*
* Keypadtest.pde
*
* Demonstrate the simplest use of the keypad library.
*
* The first step is to connect your keypad to the
* Arduino using the pin numbers listed below i... | /* FROM http://playground.arduino.cc/Main/KeypadTutorial
*
* MORE EXAMPLES http://playground.arduino.cc/Code/Keypad#Example
*
* Keypadtest.pde
*
* Demonstrate the simplest use of the keypad library.
*
* The first step is to connect your keypad to the
* Arduino using the pin numbers listed below i... | Add Mario themes | Add Mario themes
| Arduino | mit | tingyez/JunkDJ,tingyez/JunkDJ |
759dfbd13395c2967acfde77bc6a2020454220a6 | ArduCAM/examples/mini/ArduCAM_Mini_Capture2SD/ArduCAM_Mini_Capture2SD.ino | ArduCAM/examples/mini/ArduCAM_Mini_Capture2SD/ArduCAM_Mini_Capture2SD.ino | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules, and can run on any Arduino platform.
//
// This demo was made for Omnivision 2MP/5MP sensor.
// It will run the ArduCAM 2MP/5MP as a real 2MP/5MP di... | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules, and can run on any Arduino platform.
//
// This demo was made for Omnivision 2MP/5MP sensor.
// It will run the ArduCAM 2MP/5MP as a real 2MP/5MP di... | Update ArduCAM_Mini_Capture2SD.ino | Update ArduCAM_Mini_Capture2SD.ino | Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino |
51e545eea2b6b29f635db0064bbe6f28ab667da6 | roto.ino | roto.ino | /* Copyright (c) 2018 Peter Teichman */
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SerialFlash.h>
#include "amfm_audio.h"
#include "manual.h"
#include "monitor_audio.h"
#include "preamp_audio.h"
#include "tonewheel_osc_audio.h"
#include "vibrato_audio.h"
// Hammond B-3.
AudioMixer4 organOut;
Ton... | /* Copyright (c) 2018 Peter Teichman */
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SerialFlash.h>
#include "amfm_audio.h"
#include "manual.h"
#include "monitor_audio.h"
#include "preamp_audio.h"
#include "tonewheel_osc_audio.h"
#include "vibrato_audio.h"
// Hammond B-3.
AudioMixer4 organOut;
Ton... | Implement a minimal swell pedal | Implement a minimal swell pedal
| Arduino | mit | pteichman/roto,pteichman/roto |
daf8385c3cd53f334ad62f227e4271b36bbedcfe | sw/receiver/receiver.ino | sw/receiver/receiver.ino | #include <avr/wdt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
// -----------------------------------------
#define MOTOR_1 4
#define MOTOR_2 5
#define RF24_CE 10
#define RF24_CSN A0
#define RECEIVER_ID 0x01
#define RF24_PAYLOAD sizeo... | #include <avr/wdt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
// -----------------------------------------
#define MOTOR_1 4
#define MOTOR_2 5
#define RF24_CE 10
#define RF24_CSN A0
#define RECEIVER_ID 0x01
#define RF24_PAYLOAD sizeo... | Debug prints in receiver | Debug prints in receiver
| Arduino | bsd-3-clause | dancol90/garden-system,dancol90/garden-system |
69e4320ffe1b1dec56a60aab3be93ec996ae2b41 | examples/RandomPlay/RandomPlay.ino | examples/RandomPlay/RandomPlay.ino | /** Example sketch which plays files on the media in random order.
*
* @author James Sleeman, http://sparks.gogo.co.nz/
* @license MIT License
* @file
*/
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <JQ6500_Serial.h>
// Create the mp3 module object,
// Arduino Pin 8 is connected to TX of the JQ... | /** Example sketch which plays files on the media in random order.
*
* @author James Sleeman, http://sparks.gogo.co.nz/
* @license MIT License
* @file
*/
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <JQ6500_Serial.h>
// Create the mp3 module object,
// Arduino Pin 8 is connected to TX of the JQ... | Update RandomPlay.ino | Update RandomPlay.ino
play() is unnecessary here | Arduino | mit | sleemanj/JQ6500_Serial |
6ed250f175e95e44963d5adcd4934c2ed9a7ec08 | examples-ltc/2.Effects/2_CascadeDefault/DefaultCode-LightCascade.ino | examples-ltc/2.Effects/2_CascadeDefault/DefaultCode-LightCascade.ino | // Love to Code
// This is the default, out-of-box program loaded on the Chibi Chip:
// a cascade of fading LEDs, wiping from left to right
// The demo uses multi-threading to control every LED independently.
#include "ChibiOS.h"
int blink[6] = {0,0,0,0,0,0};
#define FADE_RATE 4
static THD_WORKING_AREA(blinky_are... | // Love to Code
// This is the default, out-of-box program loaded on the Chibi Chip:
// a cascade of fading LEDs, wiping from left to right
// The demo uses multi-threading and while loops to control every LED
// independently.
#include "ChibiOS.h"
#define HEAP_SIZE 32
static int blink[6] = {0,0,0,0,0,0};
#define ... | modify example to use while loop, so it's more compact | modify example to use while loop, so it's more compact
| Arduino | mit | chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer |
9f8adac7e292902613bc91eebceaf6086eeca8ba | Tuto1_DHT22WebserverESP8266_SPIFFS/Tuto1_DHT22WebserverESP8266_SPIFFS.ino | Tuto1_DHT22WebserverESP8266_SPIFFS/Tuto1_DHT22WebserverESP8266_SPIFFS.ino | /*
* ESP8266 + DHT22 + BMP180 + BOOTSTRAP + SPIFFS
*
* Step 1 - Start Project ESP8266 Web Server + SPIFFS + Bootstrap
* Full tutorial on http://www.diyprojects.io/esp8266-web-server-part-1-store-web-interface-spiffs-area-html-css-js/
*
* Etape 1 - Démarrage du projet ESP8266 Web Serveur + Bootstrap
* Tutoriel ... | /*
* ESP8266 + DHT22 + BMP180 + BOOTSTRAP + SPIFFS
*
* Part 1 - Start Project ESP8266 Web Server + SPIFFS + Bootstrap
* Full tutorial on http://www.diyprojects.io/esp8266-web-server-part-1-store-web-interface-spiffs-area-html-css-js/
*
* Partie 1 - Démarrage du projet ESP8266 Web Serveur + Bootstrap
* Tutoriel... | Update Tuto1_DHT22WebserverESP8266_SPIFFS.ino | Update Tuto1_DHT22WebserverESP8266_SPIFFS.ino | Arduino | mit | projetsdiy/ESP8266-Webserver-Tutorials,projetsdiy/ESP8266-Webserver-Tutorials |
df4a1c9273f9cb61fbafc848cf830ff2dfceb84a | moros/moros.ino | moros/moros.ino | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | Initialize tft to NULL | Initialize tft to NULL
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
c2ddd463984dbf1b77c1da3f4e8ca63b5860000a | dragino/sketch.ino | dragino/sketch.ino | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USERNAME "uuuuu"
#define TOPIC "redlibre/iot/"USERNAM... | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | Update sketch.ino | Update sketch.ino | Arduino | apache-2.0 | redlibre/iot_platform |
42fa299fa957510d24416f0e223fab794718e7ac | testing/arduino/self-driving-v6.ino | testing/arduino/self-driving-v6.ino | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
#include "NewPing.h"
// Base Date
const uint16_t initialDelay = 2500;
// Ranges and Data
const uint8_t rangeLimit_Warning1 = 50;
const uint8_t rangeLimit_Warning2 = 40;
const uint8_t rangeLimit_Warning3 = 25;
const uint8_t rangeLimit_Stop = 15;
c... | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
#include "NewPing.h"
// Base Date
const uint16_t initialDelay = 2500;
// Ranges and Data
const uint8_t rangeLimit_Warning1 = 50;
const uint8_t rangeLimit_Warning2 = 40;
const uint8_t rangeLimit_Warning3 = 25;
const uint8_t rangeLimit_Stop = 15;
c... | add tilt driving | add tilt driving
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
5823b35d0797a47f69481502d4b2269cf899972b | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define US... | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | Update UbidotsSaveMultiValues.ino | Update UbidotsSaveMultiValues.ino | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
968e902c660252c16367b6656f5232724049378b | lcd_temperature_display.ino | lcd_temperature_display.ino | // vim: sw=2 ts=2 et filetype=cpp
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* ... | // vim: sw=2 ts=2 et filetype=cpp
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* ... | Fix stupid bug | Fix stupid bug
I wondered why it never said anything other than "m"
| Arduino | mit | rtucker/lcd_temperature_display |
ce2f941496a9033287d285271c6812c1eb930cc0 | TesteMotor/TesteMotor.ino | TesteMotor/TesteMotor.ino | #include <Carrinho.h>
#include <Motor.h>
#include <Ultrasonic.h>
//Configuracoes do sensor frontal.
#define FrontalTriggerPin 8
#define FrontalEchoPin 9
//Configuracoes do sensor lateral.
#define LateralTriggerPin 11
#define LateralEchoPin 10
//Configuracoes motorA
#define IN1 2
#define IN2 3
#define PWMA 12 //Pi... | #include <Carrinho.h>
#include <Motor.h>
#include <Ultrasonic.h>
//Configuracoes do sensor frontal.
#define FrontalTriggerPin 8
#define FrontalEchoPin 9
//Configuracoes do sensor lateral.
#define LateralTriggerPin 11
#define LateralEchoPin 10
//Configuracoes motorA
#define IN1 2
#define IN2 ... | add novas funcoes | add novas funcoes
| Arduino | mit | autom2l/CarrinhoLab |
08f5ceb1d94c05047a16b8033a43e1ffd6893f3f | payload/payload.ino | payload/payload.ino | #include <Wire.h>
// RCR headers
#include "Setupable.h"
#include "Bmp180.h"
#include "sdcard.h"
SdFatSdio sd_card; // SD card manager
File file; // file manager
// To shorten RCR namespace, use namespace alias "custom".
namespace custom = rcr::level1payload;
custom::Bmp180 bmp;
// Array of pointers to Setupable-im... | #include <Wire.h>
// RCR headers
#include "Setupable.h"
#include "Bmp180.h"
#include "sdcard.h"
SdFatSdio sd_card; // SD card manager
File file; // file manager
// To shorten RCR namespace, use namespace alias "custom".
namespace custom = rcr::level1payload;
// Array of pointers to Setupable-implementing objects wh... | Remove old altimeter | Remove old altimeter
| Arduino | mit | nolanholden/geovis,nolanholden/geovis,nolanholden/payload-level1-rocket,nolanholden/geovis |
501d7f987b3e3c55f44504889689d29605e6b190 | arduino/arduino.ino | arduino/arduino.ino | #include <Servo.h>
Servo myservo;
int dataPin = 2;
int latchPin = 3;
int clockPin = 4;
int overflowPin = 5;
int servoPin = 11;
int wicketsPins[] = {
6, 7, 8, 9 };
int prevWickets = -1;
void setup()
{
pinMode(dataPin, OUTPUT);
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(overflowPin, OUT... | #include <Servo.h>
Servo myservo;
int dataPin = 2;
int latchPin = 3;
int clockPin = 4;
int runs9 = 5;
int runs10 = 10;
int servoPin = 11;
int wicketsPins[] = {
6, 7, 8, 9 };
int prevWickets = -1;
void setup()
{
pinMode(dataPin, OUTPUT);
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(runs9... | Add support for more than 512 runs | Add support for more than 512 runs
| Arduino | mit | cdonges/cricket |
f221e13dbcc3eabd1e9d8ba81e34068d3cab36a2 | arduino/src/src.ino | arduino/src/src.ino | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | /*
Prevyu source code
Prevyu is a project by Charly
Prevyu is an object connected to the cloud.
Prevyu get the rain forecast (with a raspberry), and relate it to the frequency
of drops of water in oil.
https://github.com/baptistelabat/prevyu/
The circuit:
- a water level sensor http://composants.e44.co... | Rename variables, make function to organize, add comments | Rename variables, make function to organize, add comments
| Arduino | mit | baptistelabat/prevyu,baptistelabat/prevyu,baptistelabat/prevyu |
7863b613268b7a73c54d8936bb3b1f15998f7488 | dragino/sketch.ino | dragino/sketch.ino | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | Update sketch.ino | Update sketch.ino | Arduino | apache-2.0 | redlibre/iot_platform |
0333b26592faeafd5261ad7d9735779efe4ebc53 | RotaryEncoder/examples/E01_KY-040_RotaryEncoder/E01_KY-040_RotaryEncoder.ino | RotaryEncoder/examples/E01_KY-040_RotaryEncoder/E01_KY-040_RotaryEncoder.ino | // Getting Started: E01 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | // Getting Started: E01 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | Update E01_KY-040_RotaryEncoder.ino | Update E01_KY-040_RotaryEncoder.ino | Arduino | mit | artkeller/RotaryEncoder |
317d8559f80ed91ea15c9c8b6e7bc2bd0b9a9979 | EthernetSend/EthernetSend.ino | EthernetSend/EthernetSend.ino | #include <SPI.h>
#include <Ethernet.h>
#include <Phant.h>
char server[] = "data.sparkfun.com";
Phant phant("data.sparkfun.com", "public_key", "private_key");
int randNumber;
int randNumber2;
int randNumber3;
int randNumber4;
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
// the dns server ip
IPAddress dnServer... | #include <SPI.h>
#include <Ethernet.h>
#include <Phant.h>
#include "HeaderKey.h"
const char public_key = PHANT_PUBLIC_KEY;
const char private_key = PHANT_PRIVATE_KEY;
char server[] = "data.sparkfun.com";
Phant phant("data.sparkfun.com", public_key, private_key);
int randNumber;
int randNumber2;
int randNumber3;
in... | Prepare Ethernet sketch for HeaderKey.h file | Prepare Ethernet sketch for HeaderKey.h file
| Arduino | mit | hailspuds/SensorProject---Receiver |
ce0b8013051d0118ee6257574455f8385fecc2cd | examples/full/full.ino | examples/full/full.ino | /*
Modbus slave example.
Control and Read Arduino I/Os using Modbus serial connection.
This sketch show how to use the callback vector for reading and
controleing Arduino I/Os.
* Control digital pins mode using holding registers 0 .. 13.
* Controls digital output pins as modbus coils.... | /*
Modbus slave example.
Control and Read Arduino I/Os using Modbus serial connection.
This sketch show how to use the callback vector for reading and
controleing Arduino I/Os.
* Control digital pins mode using holding registers 0 .. 13.
* Controls digital output pins as modbus coils.... | fix var to uint in examples | fix var to uint in examples
| Arduino | isc | yaacov/ArduinoModbusSlave |
7ce82acce981862bee0d9def62f8aa590baa8960 | aquacontrol32.ino | aquacontrol32.ino | #include <rom/rtc.h> /* should be installed together with ESP32 Arduino install */
#include <list> /* should be installed together with ESP32 Arduino install */
#include <SPI.h> /* should be installed together with ESP32 Arduino install */
#include <FFat.h> ... | #include <rom/rtc.h> /* should be installed together with ESP32 Arduino install */
#include <list> /* should be installed together with ESP32 Arduino install */
#include <SPI.h> /* should be installed together with ESP32 Arduino install */
#include <FFat.h> ... | Set TFT refresh rate to sane value. | Set TFT refresh rate to sane value.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
76b3e822d72517c427ef8e2bf84c363d69cdb73d | src/teensy_sketch/teensy_sketch.ino | src/teensy_sketch/teensy_sketch.ino | #include <Arduino.h>
/*
Metis-2 launch onboard sketch
This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card
for further analysis on landing. It also communicates basic data over the 433MHz radio band,
as well as 2.4GHz WiFi
This sketch is written for use on a Teensy 3.1... | #include <Arduino.h>
/*
Metis-2 launch onboard sketch
This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card
for further analysis on landing. It also communicates basic data over the 433MHz radio band,
as well as 2.4GHz WiFi
This sketch is written for use on a Teensy 3.1... | Add GPS locking and CSV logging functionality | Add GPS locking and CSV logging functionality
| Arduino | mit | team-rocket-vuw/metis-2-onboard |
0d9aa043f004352711509a5e684edba195b17b57 | examples/WebSocketClientSocketIO/WebSocketClientSocketIO.ino | examples/WebSocketClientSocketIO/WebSocketClientSocketIO.ino | /*
* WebSocketClientSocketIO.ino
*
* Created on: 06.06.2016
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsClient.h>
#include <Hash.h>
ESP8266WiFiMulti WiFiMulti;
WebSocketsClient webSocket;
#define USE_SERIAL Serial1
#define MESS... | /*
* WebSocketClientSocketIO.ino
*
* Created on: 06.06.2016
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsClient.h>
#include <Hash.h>
ESP8266WiFiMulti WiFiMulti;
WebSocketsClient webSocket;
#define USE_SERIAL Serial1
#define MESS... | fix WebSocketClientSocketIO example | fix WebSocketClientSocketIO example | Arduino | lgpl-2.1 | bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets |
4f1b836d172b3622ec6093811e6127748282ac2b | arduino/FinalArduiMonitor.ino | arduino/FinalArduiMonitor.ino | // Makhtar Final Arduino Project 2015-12-09
// Requires libraries from the Ardu-ez CD
// To be moved to a main.h header
#include "Humidity.h"
#include "RgbLed.h"
#include "Buzzer.h"
#include "Light.h"
#include "Sound.h"
#include "UltraSonic.h"
#include "RgbLcd.h"
#include "SPI.h"
#include "WiFly.h"
#include "WiFlyServ... | // Environment monitoring using an Arduino Board
// (C) 2015 - Makhtar Diouf
// Requires libraries from the Ardu-ez CD
// Files to be moved to a main.h header
#include "Humidity.h"
#include "RgbLed.h"
#include "Buzzer.h"
#include "Light.h"
#include "Sound.h"
#include "UltraSonic.h"
#include "RgbLcd.h"
#include "SPI.h... | Update FinalArduiMonitor.ino | Update FinalArduiMonitor.ino | Arduino | bsd-3-clause | makhtardiouf/ardui-webiface,makhtardiouf/ardui-webiface |
78e1284803422586af72c97b9542f8ce5094a5dc | webserver.ino | webserver.ino | //http://www.esp8266.com/viewtopic.php?f=29&t=2153
//holds the current upload
File fsUploadFile;
void setupWebServer() {
////////////////////////////////////////////////////////////////////////////////////
//the web interface pages alphabetically
//handle the index page
webServer.on( "/", []() {
webServ... | //http://www.esp8266.com/viewtopic.php?f=29&t=2153
//holds the current upload
File fsUploadFile;
void setupWebServer() {
////////////////////////////////////////////////////////////////////////////////////
//the web interface pages alphabetically
//handle the index page
if ( SPIFFS.exists( "/index.htm" ) ) ... | Make '/' and '/index.htm' webrequests point to 'index.htm'. | Make '/' and '/index.htm' webrequests point to 'index.htm'.
Added a message if 'index.htm' is not found at boot to web reply.
| Arduino | mit | CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2 |
de5e8e4679eacecff5e9bae5257045d7dfe6853a | src/src.ino | src/src.ino | #include <DigitalToggle.h>
//Pin definition
static int trigger = 9; // Pin HC-SR04
static int echo = 8; // Pin HC-SR04
static int led_HC = 10; // Pin HC-SR04
static int led_pulsed = 13; // Timed pulsed led
static int led_temperature = 12; // Led to temperature overflow
static int LM35_analogPin = 0; // analog pin for ... | //Pin definition
static int trigger = 9; // Pin HC-SR04
static int echo = 8; // Pin HC-SR04
static int led_HC = 10; // Pin HC-SR04
static int led_pulsed = 13; // Timed pulsed led
static int led_temperature = 12; // Led to temperature overflow
static int LM35_analogPin = 0; // analog pin for temperature sensor
// Vari... | delete line code for the import DigitalToggle library | delete line code for the import DigitalToggle library
| Arduino | mit | melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-mancini/Multitasking-RealTime-Arduino-System,melvin-m... |
9e41731d17305bc3a1675d335280772d8951b597 | Devices/DirectlyConnectedDevices/ParticleCore/Particle+DHT11/Particle+DHT11.ino | Devices/DirectlyConnectedDevices/ParticleCore/Particle+DHT11/Particle+DHT11.ino | // This #include statement was automatically added by the Spark IDE.
#include "Adafruit_DHT/Adafruit_DHT.h"
#define DHTPIN 2 // what pin we're connected to
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM23... | // This #include statement was automatically added by the Spark IDE.
#include "Adafruit_DHT/Adafruit_DHT.h"
#define DHTPIN 2 // what pin we're connected to
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM23... | Increase delay between publish to better support multiple devices | Increase delay between publish to better support multiple devices
| Arduino | mit | pietrobr/connectthedots,zack076/connectthedots,jmservera/connectthedots,Azure/connectthedots,jeffwilcox/connectthedots,beeva-marianmoldovan/connectthedots,jessejjohnson/connectthedots,HydAu/AzureConnectTheDots,Azure/connectthedots,HydAu/ConnectTheDots2,MSOpenTech/connectthedots,pietrobr/connectthedots,jessejjohnson/con... |
48947079597e7600181e15b847a95db26c730137 | water_heater_monitor/water_heater_monitor.ino | water_heater_monitor/water_heater_monitor.ino | /**
* Listens for serial data from an IMC Eagle solar water heater controller and
* uploads it to a waiting server.
*
* Assumes a Sparkfun ESP8266 Thing and a serial connection to an Eagle controller via hardware serial.
*/
#include <ESP8266WiFi.h>
#include <Phant.h>
#include <DHT.h>
#include "keys.h"
const int... | /**
* Listens for serial data from an IMC Eagle solar water heater controller and
* uploads it to a waiting server.
*
* Assumes a Sparkfun ESP8266 Thing and a serial connection to an Eagle controller via hardware serial.
*/
#include <ESP8266WiFi.h>
#include <Phant.h>
#include <DHT.h>
#include "keys.h"
const int... | Move the pointer into the if block. | Move the pointer into the if block.
| Arduino | isc | lectroidmarc/water-heater-monitor |
113a9bd7247cad6e34fd3da9490c5014bd2b84c9 | automatic_water_control_rev1/automatic_water_control_rev1.ino | automatic_water_control_rev1/automatic_water_control_rev1.ino | /*
Automatic Water Control System
========= ===== ======= ======
rev v.1
#test proram for water pump system
#turns on the pump when the input is high
#connects the input from the sensor to pin
#output from pin
#the output is connected to the relay drivring circuit
#the input value is send serially for monitoring
*/... | /*
Automatic Water Control System
========= ===== ======= ======
rev v.1
#test program for water pump system
#turns on the pump when the input is high
#connects the input from the sensor to pin
#output from pin
#the output is connected to the relay drivring circuit
#the input value is sent serially for monitoring
*... | Update automatic_water_control_rev1.ino | Update automatic_water_control_rev1.ino | Arduino | mit | rpihomeautomation/rpihomeautomation,rpihomeautomation/rpihomeautomation |
6573c9eb069a5548475edbdd88b7b2604dfaea5f | examples/ReadAll/ReadAll.ino | examples/ReadAll/ReadAll.ino | /* TeensyMAC library code is placed under the MIT license
* Copyright (c) 2017 Stefan Staub
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without li... | /* TeensyMAC library code is placed under the MIT license
* Copyright (c) 2017 Stefan Staub
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without li... | Update ReadAll.ino | Update ReadAll.ino | Arduino | mit | sstaub/TeensyID,sstaub/TeensyID |
7b16a7b660fb9dc41bb718bdb0e7118cb2ae0324 | examples/ReceiveInterrupt/ReceiveInterrupt.ino | examples/ReceiveInterrupt/ReceiveInterrupt.ino | /*
LoRaLib Receive with Inerrupts Example
This example listens for LoRa transmissions and tries to
receive them. Once a packet is received, an interrupt is
triggered. To successfully receive data, the following
settings have to be the same on both transmitter
and receiver:
- carrier frequency
... | /*
LoRaLib Receive with Inerrupts Example
This example listens for LoRa transmissions and tries to
receive them. Once a packet is received, an interrupt is
triggered. To successfully receive data, the following
settings have to be the same on both transmitter
and receiver:
- carrier frequency
... | Update ReceiveInterrupt.ino | Update ReceiveInterrupt.ino | Arduino | mit | jgromes/LoRaLib |
5aebe40d09b363ecf6e949545adb2791bff0a586 | Arduino/McLighting/version_info.ino | Arduino/McLighting/version_info.ino | /*
* 07 May 2018 v 2.1.0
* - Start of versioning v2.1, added version support
* - '/esp_status' returns lot more info
*
* 11 May 2018 v 2.1.1
* - Use ArduinoJSON to send JSON replies
* - Add strip.trigger()
*
* 17 Jun 2018 v 2.1.2
* - Upgrade to ArduinoJSON 6.xx from ArduinoJSON 5.xx
* - Added example for s... | /*
* 07 May 2018 v 2.1.0
* - Start of versioning v2.1, added version support
* - '/esp_status' returns lot more info
*
* 11 May 2018 v 2.1.1
* - Use ArduinoJSON to send JSON replies
* - Add strip.trigger()
*
* 17 Jun 2018 v 2.1.2
* - Upgrade to ArduinoJSON 6.xx from ArduinoJSON 5.xx
* - Added example for s... | Update version_info.ino | Update version_info.ino
| Arduino | mit | toblum/McLighting,toblum/McLighting,toblum/McLighting,toblum/McLighting |
d24716adf16e924f5c931358feb32d8af486f514 | module/module.ino | module/module.ino | #include <SoftwareSerial.h>
#include "RFID.h"
#define monitorBaud 9600
#define moduleBaud 9600
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMod... | #include <SoftwareSerial.h>
#include "RFID.h"
#define monitorBaud 9600
#define moduleBaud 9600
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMod... | Clean up functions | Clean up functions
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
045911128b88a15fa7988cb2b0c3a64d3ec91ceb | MidiController.ino | MidiController.ino | #include <MIDI.h>
#ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ... | #include <MIDI.h>
#ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ... | Fix math bug on 16-bit processors | Fix math bug on 16-bit processors
When scaling analog input values, cast the state variable to uint32_t
to avoid truncating the multiplication. This avoids problems on
processors where an int is smaller than 32 bits.
| Arduino | mit | brianj29/MidiController,brianj29/MidiController |
70f3185d412627b3c5bcdcb4b99d216536ec06f4 | arduino/arduino.ino | arduino/arduino.ino | #define IR_DATA_SIZE 768
byte ir_data[IR_DATA_SIZE];
unsigned int ir_index;
#define PIN_LED 13
#define PIN_IR_IN 3
#define PIN_IR_OUT 12
#define READ 0
#define WRITE 1
byte mode;
void setup(){
Serial.begin(57600);
pinMode(PIN_IR_IN, INPUT);
pinMode(PIN_IR_OUT, OUTPUT);
pinMode(PIN_LED, OUTPUT);
}
void loop(){... | #define IR_DATA_SIZE 768
byte ir_data[IR_DATA_SIZE];
unsigned int ir_index;
#define PIN_LED 13
#define PIN_IR_IN 3
#define PIN_IR_OUT 12
void setup(){
Serial.begin(57600);
pinMode(PIN_IR_IN, INPUT);
pinMode(PIN_IR_OUT, OUTPUT);
pinMode(PIN_LED, OUTPUT);
}
void loop(){
if(Serial.available()){
char recv =... | fix arduino | fix arduino
| Arduino | mit | shokai/arduino_ir_remote |
a7d833fb8f08486605ededbd750c85acd7c5ed5b | arduino/serial_protocol/serial_protocol.ino | arduino/serial_protocol/serial_protocol.ino | // Initializing pins, numbers on board
const int pin_forward = 7;
const int pin_reverse = 8;
const int pin_left = 5;
const int pin_right = 6;
// Initializing bit masks
const int forward_mask = 1 << 3; // 1000
const int reverse_mask = 1 << 2; // 0100
const int left_mask = 1 << 1; // 0010
const int right_mask ... | // Initializing pins, numbers on board
const int pin_forward = 7;
const int pin_reverse = 8;
const int pin_left = 5;
const int pin_right = 6;
// Initializing bit masks
const int forward_mask = 8; // 1000
const int reverse_mask = 4; // 0100
const int left_mask = 2; // 0010
const int right_mask = 1; // 0001
i... | Revert "Fixes delay of serial input when using parseInt (#7)" | Revert "Fixes delay of serial input when using parseInt (#7)"
This reverts commit 440675814c7acddded0066cdc88f473d5ad12e3f.
| Arduino | mit | PeskyBee/racing_car |
83a0f4a4ab5e73d94f0fe2e16fe8f003b6b7e12d | examples/GPRS_SendSMS/GPRS_SendSMS.ino | examples/GPRS_SendSMS/GPRS_SendSMS.ino | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// номер на который будем отправлять сообщение
#define PHONE_NUMBER "+79263995140"
// текст сообщения, которое буде... | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// номер на который будем отправлять сообщение
#define PHONE_NUMBER "+79263995140"
// текст сообщения, которое буде... | Update GPRS_SendSMS.ino | Update GPRS_SendSMS.ino | Arduino | mit | amperka/gprs-shield,amperka/gprs-shield |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.