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 |
|---|---|---|---|---|---|---|---|---|---|
80524b45ce551c4883b7aaeb14a3e86763b4d6c3 | ComboKeypad/Keypad.ino | ComboKeypad/Keypad.ino | //
//
//
//USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); /... | //
//
//
//USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const bool useFiveVoltpin = false; //Change this if you want to use the... | Update Keypad.ino | Update Keypad.ino | Arduino | mit | TeodorLys/Arduino_Projects |
30228c364166ec6e1bad674c12410b56de4a1580 | 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... | Edit SD Server example to use the new Write(Stream) method | Edit SD Server example to use the new Write(Stream) method
| Arduino | lgpl-2.1 | martinayotte/ESP8266-Arduino,Links2004/Arduino,Cloudino/Cloudino-Arduino-IDE,jes/Arduino,jes/Arduino,NullMedia/Arduino,Lan-Hekary/Arduino,Links2004/Arduino,hallard/Arduino,chrisfraser/Arduino,Cloudino/Arduino,edog1973/Arduino,gguuss/Arduino,sticilface/Arduino,sticilface/Arduino,martinayotte/ESP8266-Arduino,quertenmont/... |
34e29401a27220667feec74582076312b3cf8e5d | src/sketch.ino | src/sketch.ino |
#define LED_PIN 13
void setup()
{
pinMode(LED_PIN, OUTPUT);
}
void loop()
{
digitalWrite(LED_PIN, HIGH);
delay(100);
digitalWrite(LED_PIN, LOW);
delay(900);
}
| #define LED_PIN 13
void setup()
{
delay(2000);
int i = 0;
for (i; i < 3; i++) {
blink();
}
ledOn();
delay(2000);
}
void loop()
{
ledOff();
delay(125);
ledOn();
delay(125);
}
void ledOn() {
digitalWrite(LED_PIN, HIGH);
}
void ledOff() {
digitalWrite(LED_PIN, LOW);
}
void blink() {
l... | update sketch to have a startup sequence to make it easier to program | update sketch to have a startup sequence to make it easier to program
| Arduino | mit | tonyc/kx3_vfo_arduino,tonyc/kx3_vfo_arduino |
15dd05f05bbe9b75cdac748abc330b2fb39a5f87 | src/wolves.ino | src/wolves.ino | #include <Arduino.h>
#include <Streaming.h>
#include "App.h"
#include "LED.h"
#include "RGBLED.h"
#include "RFIDSensor.h"
#include "Solenoid.h"
#define N_OF_QUESTIONS 3
#define HEARTBEAT_COUNTER 10000
#define HEARTBEAT_WIDTH 100
LED leds[N_OF_QUESTIONS] = {
LED(23,24),
LED(33,34),
LED(43,44)
};
RFIDS... | /****************************************************************************
* Copyright 2016 BlueMasters
*
* 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... | move self check to libs | move self check to libs
| Arduino | apache-2.0 | BlueMasters/arduino-wolves,BlueMasters/arduino-wolves,BlueMasters/arduino-wolves |
9e43adf78aaef148f39d3bffed852412826e2a67 | examples/clock_sevenseg_gps/clock_sevenseg_gps.ino | examples/clock_sevenseg_gps/clock_sevenseg_gps.ino | // Clock example using a seven segment display & GPS for time.
//
// Must have the Adafruit GPS library installed too! See:
// https://github.com/adafruit/Adafruit-GPS-Library
//
// Designed specifically to work with the Adafruit LED 7-Segment backpacks
// and ultimate GPS breakout/shield:
// ----> http://www.adafru... | // Clock example using a seven segment display & GPS for time.
//
// Must have the Adafruit GPS library installed too! See:
// https://github.com/adafruit/Adafruit-GPS-Library
//
// Designed specifically to work with the Adafruit LED 7-Segment backpacks
// and ultimate GPS breakout/shield:
// ----> http://www.adafru... | fix 12 hour mode | fix 12 hour mode | Arduino | mit | adafruit/Adafruit-LED-Backpack-Library,adafruit/Adafruit_LED_Backpack |
fcdddb5044281cf3d4ce913b79de93c97e3c32c3 | examples/Car/PidControllerMonitor/PidControllerMonitor.ino | examples/Car/PidControllerMonitor/PidControllerMonitor.ino | /* Print out the current speed as detected by the odometers, as well as the set point of the pid controller, so to observe its behavior */
#include <Smartcar.h>
const unsigned long PRINTOUT_INTERVAL = 100;
const unsigned short LEFT_ODOMETER_PIN = 2;
const unsigned short RIGHT_ODOMETER_PIN = 3;
unsigned long previousP... | /**
Print out the current speed as detected by the odometers, as well as the set
point of the pid controller, so to observe its behavior
*/
#include <Smartcar.h>
const unsigned long PRINTOUT_INTERVAL = 100;
const unsigned short LEFT_ODOMETER_PIN = 2;
const unsigned short RIGHT_ODOMETER_PIN = 3;
unsigned long previo... | Fix indentation | Fix indentation
| Arduino | mit | platisd/smartcar_shield,platisd/smartcar_shield |
57a120723a635d7a5b03f04d80c98355f5ef7f9f | examples/direct_draw/custom_font_unicode/custom_font_unicode.ino | examples/direct_draw/custom_font_unicode/custom_font_unicode.ino | /*
MIT License
Copyright (c) 2018, Alexey Dynda
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 limitation the rights
to use, copy, ... | /*
MIT License
Copyright (c) 2018, Alexey Dynda
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 limitation the rights
to use, copy, ... | Update custom_font_unicode.ino | Update custom_font_unicode.ino | Arduino | mit | lexus2k/ssd1306,lexus2k/ssd1306,lexus2k/ssd1306,lexus2k/ssd1306 |
8476b43e4d9410f50d56b9c77fe2127b99fdcea7 | examples/FirebaseRoom_ESP8266/FirebaseRoom_ESP8266.ino | examples/FirebaseRoom_ESP8266/FirebaseRoom_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 ... | add delay | examples/FirebaseRoom: add delay
| Arduino | apache-2.0 | aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino |
bec0def5d734331e5c39e4c453c151460368d170 | examples/Touchscreen_GUI_Demo/Touchscreen_GUI_Demo.ino | examples/Touchscreen_GUI_Demo/Touchscreen_GUI_Demo.ino | /*
* The demo showcases the following features:
* Display widgets used to show a text
* Buttons and Round Buttons
* Multiple Screens
* Use of the Numkey widget as a password entry
* Dial indicator
* Terminal widget useful for on-screen information
*
* Created by: Jose Rullan
* Date: February 16, 2019
*/
#... | /*
* The demo showcases the following features:
* Display widgets used to show a text
* Buttons and Round Buttons
* Multiple Screens
* Use of the Numkey widget as a password entry
* Dial indicator
* Terminal widget useful for on-screen information
*
* Created by: Jose Rullan
* Date: February 16, 2019
*/
#... | Update Touchscreen_GUI_Demo.ino | Update Touchscreen_GUI_Demo.ino
Demo uses now a slider for the Dial demo.
| Arduino | mit | jrullan/Touchscreen_GUI,jrullan/Touchscreen_GUI |
615a623eb124eb048d99ade58566b2f1ac8747b7 | Firmeware/EnsembleEight/EnsembleEight.ino | Firmeware/EnsembleEight/EnsembleEight.ino | /* PHOBOS - EnsembleEight firmware v.0.2 (27.05.2017)
*
* using:
* Arduino v1.8.0
* MIDI_Library v.4.3.1 by fortyseveneffects
*
* plays:
* A - 3 motors
* B - 3 fans
* C - 3 relays controlling aquarium motors
*/
#include <MIDI.h>
#define MIDICH 8
// MOTORS' PINS
#define A1 10
#define A2 9
#define A3 8
... | /* PHOBOS - EnsembleEight firmware v.0.2 (27.05.2017)
*
* using:
* Arduino v1.8.0
* MIDI_Library v.4.3.1 by fortyseveneffects
*
* plays:
* A - 3 motors
* B - 3 fans
* C - 3 relays controlling aquarium motors
*/
#include <MIDI.h>
#define MIDICH 8
// MOTORS' PINS
#define A1 8
#define A2 9
#define A3 10
... | correct pin output according to datasheet | correct pin output according to datasheet
| Arduino | mit | Sonoscopia/Phobos,Sonoscopia/Phobos,Sonoscopia/Phobos |
17bed57fe43d249a3a8e1605877bcafdc151887f | monitoring-temp-arduino-code/monitoring/monitoring.ino | monitoring-temp-arduino-code/monitoring/monitoring.ino |
/**************************************************************/
/* define pin setup, what sensor/fan is connected to what pin */
/**************************************************************/
int LM35_1_PIN = A0;
int LM35_2_PIN = A1;
int FAN_PWM_PIN = 9;
#define SEND_TEMP_VALUES_TO_HOST true
#define SEND_TO_HOST... |
/**************************************************************/
/* define pin setup, what sensor/fan is connected to what pin */
/**************************************************************/
int LM35_1_PIN = A0;
int LM35_2_PIN = A1;
int FAN_PWM_PIN = 9;
// only needed when measuring temperature time series valu... | improve variable naming | improve variable naming
| Arduino | mit | nitram509/temperature-based-fan-control-for-time-capsule |
2be4fc8fdbfc8a46f801304132037c5098a601f3 | ArduCAM/examples/mini/ArduCAM_Mini_2MP_Plus_Multi_Capture2SD/ArduCAM_Mini_2MP_Plus_Multi_Capture2SD.ino | ArduCAM/examples/mini/ArduCAM_Mini_2MP_Plus_Multi_Capture2SD/ArduCAM_Mini_2MP_Plus_Multi_Capture2SD.ino | // ArduCAM Mini demo (C)2018 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use the enhanced functions
// This demo was made for ArduCAM_Mini_2MP_Plus.
// It can continue shooting and store it into the SD card in JPEG format
// The demo sketch will do the following tasks
// 1. Set the camera t... | // ArduCAM Mini demo (C)2018 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use the enhanced functions
// This demo was made for ArduCAM_Mini_2MP_Plus.
// It can continue shooting and store it into the SD card in JPEG format
// The demo sketch will do the following tasks
// 1. Set the camera t... | Update ArduCAM_Mini_2MP_Plus_Multi_Capture2SD.ino | Update ArduCAM_Mini_2MP_Plus_Multi_Capture2SD.ino | Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino |
2760b28deeaee2a01d04557b6bd8ea936a159cb9 | examples/esp8266/esp8266.ino | examples/esp8266/esp8266.ino | /**
* Example that connects an Adafruit Feather Huzzah to the Losant
* IoT platform. This example reports state to Losant whenever a button is
* pressed. It also listens for the "toggle" command to turn the LED on and off.
*
* This example assumes the following connections:
* Button connected to pin 14.
* LED co... | /**
* Example that connects an Adafruit Feather Huzzah to the Losant
* IoT platform. This example reports state to Losant whenever a button is
* pressed. It also listens for the "toggle" command to turn the LED on and off.
*
* This example assumes the following connections:
* Button connected to pin 14.
* LED co... | secure connect example | secure connect example
| Arduino | mit | Losant/losant-mqtt-arduino,Losant/losant-mqtt-arduino,Losant/losant-sdk-arduino,Losant/losant-sdk-arduino |
d41964e89f57b6774adf02faa3227d4752fe1a2b | arduino/magsensor/magsensor.ino | arduino/magsensor/magsensor.ino | #include <EEPROM.h>
#include <RCSwitch.h>
#include <LowPower.h>
#include "limits.h"
#include "protocol.h"
#include "sensor_types.h"
#include "voltmeter.h"
#include "diagnostic.h"
RCSwitch rfDevice = RCSwitch();
int SERIAL_COMMUNICATION_SPEED = 9600;
// How long do we sleep. The longer, the better for the battery but ... | #include <EEPROM.h>
#include <RCSwitch.h>
#include <LowPower.h>
#include "limits.h"
#include "protocol.h"
#include "sensor_types.h"
#include "voltmeter.h"
#include "diagnostic.h"
RCSwitch rfDevice = RCSwitch();
int SERIAL_COMMUNICATION_SPEED = 9600;
// How long do we sleep. The longer, the better for the battery but ... | Fix bug in magsensor code following fr protocol revamp. | Fix bug in magsensor code following fr protocol revamp.
| Arduino | apache-2.0 | jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos |
ca126f53650fe076942fd198809f93cf7c2e23e6 | Dremelfuge.ino | Dremelfuge.ino | class Button
{
protected:
const uint8_t pin;
const bool isToggleButton;
uint16_t debounceDelay;
bool defaultState; // not const because the state of the button on begin() is assumed to be the defaultState
bool currentState;
unsigned long lastTimePressed;
public:
// combination of Button... | #include "Button.h"
class LEDButton : public Button
{
private:
const uint8_t ledOutPin;
bool ledState;
public:
// call Button(int, int) constructor using constructor initialization list, setting inherited member data for you
LEDButton(const uint8_t pin, const uint8_t ledOutPin, uint16_t deboun... | Set up custom base class Button library (class) | Set up custom base class Button library (class)
| Arduino | mit | karinassuni/dremelfuge |
805494923231720a4c404d27ef5d7fa847007bf3 | examples/Buttons/Buttons.ino | examples/Buttons/Buttons.ino | /*
Buttons example
June 11, 2015
Copyright (C) 2015 David Martinez
All rights reserved.
This code is the most basic barebones code for showing how to use buttons in
Arduboy.
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 ... | /*
Buttons example
June 11, 2015
Copyright (C) 2015 David Martinez
All rights reserved.
This code is the most basic barebones code for showing how to use buttons in
Arduboy.
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 ... | Fix bug created when AbPrinter class was added | Fix bug created when AbPrinter class was added
| Arduino | bsd-3-clause | Arduboy/Arduboy,Arduboy/Arduboy,yyyc514/ArduboyLib,yyyc514/ArduboyLib |
b4368308ca96d76f4d41859e83537108b5cc7599 | examples/NonBlocking/AutoConnectNonBlocking/AutoConnectNonBlocking.ino | examples/NonBlocking/AutoConnectNonBlocking/AutoConnectNonBlocking.ino | #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
WiFiManager wm;
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once:
Serial.begin(115200);
//reset settings - wipe credentials for testing
//wm.resetSett... | #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
WiFiManager wm;
void setup() {
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
// put your setup code here, to run once:
Serial.begin(115200);
//reset settings - wipe credentials for testing
//wm.resetSett... | remove bad example | remove bad example
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
e015e245427429177ff26193fe3d9f7e530ae1e0 | Wild_Thumper_Controller/Wild_Thumper_Controller.ino | Wild_Thumper_Controller/Wild_Thumper_Controller.ino | #include "IOpins.h"
#include "Constants.h"
//
// define global variables
//
unsigned int batteryVoltage;
unsigned int LeftAmps;
unsigned int RightAmps;
unsigned long lastCommandTime;
unsigned long chargeStart;
unsigned long chargeTimer;
unsigned long reportTimer;
unsigned long leftoverload;
unsigned long rightoverload... | #include "IOpins.h"
#include "Constants.h"
//
// define global variables
//
unsigned int batteryVoltage;
unsigned int LeftAmps;
unsigned int RightAmps;
unsigned long lastCommandTime;
unsigned long chargeStart;
unsigned long chargeTimer;
unsigned long reportTimer;
unsigned long leftoverload;
unsigned long rightoverload... | Fix reporting of charge time | Fix reporting of charge time
| Arduino | bsd-2-clause | lazd/dilBot-arduino,lazd/dilBot-arduino |
4c505a29d4a156afd1660482144e37cb6d725617 | pentair_driver_v2/pentair_driver_v2.ino | pentair_driver_v2/pentair_driver_v2.ino | #include "Pentair.h"
// Create our pentair instance
Pentair pentair(6, 7); // RX, TX pins for RS-485 (shield)
void setup() {
// Initialize some debug output
Serial.begin(115200);
// set a callback method for when a pump status changes
pentair.SetCallback(PumpChanged);
// indicate to do some debug logging on t... | #include "Pentair.h"
// Create our pentair instance
Pentair pentair(6, 7); // RX, TX pins for RS-485 (shield)
void setup() {
// Initialize some debug output
Serial.begin(115200);
// set a callback method for when a pump status changes
pentair.SetCallback(PumpChanged);
// indicate to do some debug logging on t... | Update pentair_driver_v2.ino | Update pentair_driver_v2.ino | Arduino | mit | Zuntara/Arduino.Pentair |
f93b9a416dfa0f6a89afd01dc9029776b678166c | examples/threshold/threshold.ino | examples/threshold/threshold.ino | #include <Helper2.h>
// #include <Wire.h>
// #include <TimerOne.h>
void setup() {
Serial.begin(9600);
initialize();
led1.on();
led2.color(0);
led2.off();
led2.color(0.5);
}
void loop() {
if (accel.tap()) {
led1.randomcolor();
}
if (accel.doubletap()) {
led2.flip();
}
accel.debug_print();
wait(200... | #include <Helper2.h>
// #include <Wire.h>
// #include <TimerOne.h>
void setup() {
Serial.begin(9600);
initialize();
led1.on();
led2.color(0);
led2.off();
led2.color(0.5);
}
void loop() {
if (accel.tap()) {
led1.randomcolor();
}
if (accel.doubletap()) {
led2.flip();
}
accel.debug_threshold();
wait... | update examples of threshold | update examples of threshold
| Arduino | mit | UEC-VBSeminar/Helper2.h |
d177c91eabec80dedf2cf7689d47ab73883900a0 | ArduinoSketches/PressureSensor-BMP280/PressureSensor-BMP280.ino | ArduinoSketches/PressureSensor-BMP280/PressureSensor-BMP280.ino | /**
This Sketch is based on the MySensors Pressure Sensor Sketch which uses an older version of the Sensor (BMP085).
https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/PressureSensor
Original Headers:
Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
Copyright (C) 2013-2015 ... | /**
This Sketch is based on the MySensors Pressure Sensor Sketch which uses an older version of the Sensor (BMP085).
https://github.com/mysensors/MySensorsArduinoExamples/tree/master/examples/PressureSensor
Original Headers:
Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
Copyright (C) 2013-2015 ... | Send Voltage | Send Voltage
| Arduino | apache-2.0 | deveth0/MySensors |
aeac8703d2a73f71b4d668314d5222c853903d17 | examples/error_correction/error_correction.ino | examples/error_correction/error_correction.ino | /*
* PID Controller Implementation in C for Arduino - Usage example
*
* This example shows how to use the library to calculate error correction according to PID algorithm.
*/
#include "pid.h"
// initialise blank PID_Calibration struct and blank PID_State struct
PID_Calibration calibration;
PID_State state;
vo... | /*
* PID Controller Implementation in C for Arduino - Usage example
*
* This example shows how to use the library to calculate error correction according to PID algorithm.
*/
#include "pid.h"
// initialise blank PID_Calibration struct and blank PID_State struct
PID_Calibration calibration;
PID_State state;
vo... | Update example | Update example
Only print out calculation results if data has been input | Arduino | mit | saxbophone/pid |
ffd0a380897343875241ad11d7e2349549ba4004 | volvo_hid.ino | volvo_hid.ino | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | Remove serial comments | Remove serial comments
| Arduino | mit | laurynas/volvo_hid |
d198bb14ca7ade0bdf62abb398135e3d0ff96f43 | jarbas.ino | jarbas.ino | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#define RELAY D1
const int HTTPS_PORT = 443;
const char* WIFI = "WIFI";
const char* PASSWORD = "PASSWORD";
const char* HOST = "hooks.slack.com";
const char* URL = "URL";
String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_... | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#define RELAY D1
const int HTTPS_PORT = 443;
const char* WIFI = "WIFI";
const char* PASSWORD = "PASSWORD";
const char* HOST = "hooks.slack.com";
const char* URL = "URL";
String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_... | Revert "Add fixed gif to message" | Revert "Add fixed gif to message"
| Arduino | mit | fablabjoinville/jarbas |
bf3cfa623748795dc7421efdb0d546e9f273aa9a | 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 reference to INTERVAL | Fix reference to INTERVAL
| Arduino | lgpl-2.1 | bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets |
e19db8f568617cfb92ab842b6735b6209f75e1c3 | examples/ds18b20_SingleDrop/ds18b20_SingleDrop.ino | examples/ds18b20_SingleDrop/ds18b20_SingleDrop.ino | #include <DS18B20.h>
#include <math.h>
DS18B20 ds18b20(D2, true); //Sets Pin D2 for Water Temp Sensor and
// this is the only sensor on bus
char szInfo[64];
double celsius;
double fahrenheit;
unsigned int Metric_Publish_Rate = 30000;
unsigned int MetricLastPublishTime;
unsigned int DS18B20l... | #include <DS18B20.h>
#include <math.h>
const int MAXRETRY = 4;
const uint32_t msSAMPLE_INTERVAL = 2500;
const uint32_t msMETRIC_PUBLISH = 30000;
DS18B20 ds18b20(D2, true); //Sets Pin D2 for Water Temp Sensor and
// this is the only sensor on bus
char szInfo[64];
double... | Migrate Libs2.0, add single drop option, destructor and single drop sample | Migrate Libs2.0, add single drop option, destructor and single drop sample
| Arduino | mit | LukeUSMC/ds18b20-photon |
e4898edec25dfd1e26088abe4245d5be5e4efc9d | 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 stream FirebaseObject usage | examples: fix stream FirebaseObject usage
| Arduino | apache-2.0 | aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino |
36e2811b9853a8ad00469bb8f5ddf68eab555376 | Caravan_Thermostat_TX/Caravan_Thermostat_TX.ino | Caravan_Thermostat_TX/Caravan_Thermostat_TX.ino | /*
Caravan Thermostat TX
Copyright 2016 Jon Burrows
*/
// Setup the includes
#include <SPI.h>
#include <TFT.h> // Arduino LCD library
#include <dht.h> // DHT11 Library
#include <TimeLib.h>
#include <DS1307RTC.h> // RTC Library
#include <IRremote.h> // IR Library
#include <SoftwareSerial.h>
// Define the pins.... | /*
Caravan Thermostat TX
Copyright 2016 Jon Burrows
*/
// Setup the includes
#include <SPI.h>
#include <TFT.h> // Arduino LCD library
#include <dht.h> // DHT11 Library
#include <TimeLib.h>
#include <DS1307RTC.h> // RTC Library
#include <IRremote.h> // IR Library
#include <SoftwareSerial.h>
// Define the pins.... | Change to use Pin defs | Change to use Pin defs
| Arduino | mit | fantawttw/Arduino-Caravan-Thermostat,fantawttw/Arduino-Caravan-Thermostat |
18daa675c602f2650ef9f2ce793a27dda5a3e519 | test/PoE-test/spacedeur-asis-2017/spacedeur-asis-2017.ino | test/PoE-test/spacedeur-asis-2017/spacedeur-asis-2017.ino | /*
This sketch shows the Ethernet event usage
First light Aart 10-12-2017
*/
#define ETH_PHY_ADDR 1
#define ETH_PHY_MDC 23
#define ETH_PHY_MDIO 18
#define ETH_PHY_POWER 17
#define ETH_PHY_TYPE ETH_PHY_LAN8720
// Labeleing as per `blue' RFID MFRC522 - MSL 1471 'fixed'
//
#define MFRC5... | /*
This sketch shows the Ethernet event usage
First light Aart 10-12-2017
*/
#define ETH_PHY_ADDR 1
#define ETH_PHY_MDC 23
#define ETH_PHY_MDIO 18
#define ETH_PHY_POWER 17
#define ETH_PHY_TYPE ETH_PHY_LAN8720
// Labeleing as per `blue' RFID MFRC522 - MSL 1471 'fixed'
//
#define MFRC5... | Clarify output a bit - count reconnects - quell channel profileration. | Clarify output a bit - count reconnects - quell channel profileration.
| Arduino | apache-2.0 | dirkx/AccesSystem,dirkx/AccesSystem,dirkx/AccesSystem,dirkx/AccesSystem |
2aeafd68fe27581fe8f91566e14576580d873b39 | dfrdb/dfrdb.ino | dfrdb/dfrdb.ino | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL: (hold pin 0 for this use)
ELE: (hold pin 1 for this use)
THR: 3
RUD: 2
power ... | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL: (hold pin 0 for this use)
ELE: (hold pin 1 for this use)
THR: 3
RUD: 2
power ... | change claw direction | change claw direction
| Arduino | mit | KFW/DF_Romeo_Drive_Bot |
cb5850c93703978f47ae6b1a4f62ec9b375824f2 | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | #include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A0, 4700, 1000 );
void setup () {
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add Function to list | Key to look for
K... | // Creator: Andrew Mascolo
#include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A0, 4700, 1000 );
void setup () {
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add Function t... | Update OnewireKeypad_EventKey.ino | Update OnewireKeypad_EventKey.ino | Arduino | mit | AndrewMascolo/OnewireKeypad |
8db9bc63fa98e8cc00937fb4e3cdbdb6f3b5e79a | GarHAge/GarHAge.ino | GarHAge/GarHAge.ino | /*
* GarHAge
* aka the Home-Assistant-friendly ESP8266-based MQTT Garage Door Controller
* Licensed under the MIT License, Copyright (c) 2017 marthoc
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "config.h"
// Mapping NodeMCU Ports to Arduino GPIO Pins
// Allows use of NodeMCU Port nomenclature... | /*
* GarHAge
* aka the Home-Assistant-friendly ESP8266-based MQTT Garage Door Controller
* Licensed under the MIT License, Copyright (c) 2017 marthoc
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "config.h"
// Mapping NodeMCU Ports to Arduino GPIO Pins
// Allows use of NodeMCU Port nomenclature... | Decrease debounceTime to 2s | Decrease debounceTime to 2s
Decreased debounceTime, as 2s achieved the same result as 5s, with the benefit of quicker reaction time on fast door status changes.
| Arduino | mit | marthoc/GarHAge |
f5445aaf820b49f774bde302389795bb4830c41a | robots/maproom_esp/maproom_esp.ino | robots/maproom_esp/maproom_esp.ino | /*
* This sketch shows the WiFi event usage
*
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
const char* ssid = "StLouisMaproom";
const char* password = "CreativeResearch";
const unsigned int localUdpPort = 5111;
IPAddress remIP(192, 168, 1, 20);
const int remPort = 5101;
char buf[255];
int bufLen = 0;
bo... | /*
* This sketch shows the WiFi event usage
*
*/
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
const char* ssid = "StLouisMaproom";
const char* password = "CreativeResearch";
const unsigned int localUdpPort = 5111;
IPAddress remIP(192, 168, 1, 20);
const int remPort = 5101;
char buf[255];
int bufLen = 0;
bo... | change wifi baud rate | change wifi baud rate
| Arduino | apache-2.0 | O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots |
1529af259fc72c92ea9ba13603801470983468b5 | Kleineswetter/Kleineswetter.ino | Kleineswetter/Kleineswetter.ino | /*
* Copyright (C) 2017 Lakoja on github.com
*
* 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... | /*
* Copyright (C) 2017 Lakoja on github.com
*
* 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... | Use better timeouts | Finetuning: Use better timeouts
| Arduino | apache-2.0 | Lakoja/Wetterwetter |
9152561bbd472629ebcfd083451a666a7f1f39c6 | 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 | Arduino | mit | sleemanj/JQ6500_Serial |
1a43933be11002f815c582d695565cf54fdf6f0b | SparkCode/SparkLedMatrix.ino | SparkCode/SparkLedMatrix.ino | #include "LedControl.h"
LedControl *led;
uint8_t data = A5;
uint8_t load = A4;
uint8_t myclock = A3;
byte spaceChar = 0;
uint8_t displayCount = 2;
uint8_t colsPerDisplay = 8;
uint8_t maxCols = displayCount * colsPerDisplay;
void setup() {
led = new LedControl(data, myclock, load, displayCount); //DIN,CLK,CS,Ho... | #include "LedControl.h"
LedControl *led;
uint8_t data = A5;
uint8_t load = A4;
uint8_t clk = A3;
uint8_t displayCount = 2;
uint8_t colsPerDisplay = 8;
uint8_t maxCols = displayCount * colsPerDisplay;
char message[64];
char recvBuffer[64];
int recvBufferLength = 0;
bool newMessage = false;
void setup() {
led = ... | handle space character. Add spark cloud API. | handle space character. Add spark cloud API.
| Arduino | mit | pierreca/SparkLedMatrix,pierreca/SparkLedMatrix,pierreca/SparkLedMatrix |
6cd46b7289ad820a8f746cd9ee6ac21f0c2eb752 | temptask.ino | temptask.ino | void tempTask( void * pvParameters )
{
while (1)
{
for ( byte thisSensor = 1; thisSensor <= numberOfFoundSensors; thisSensor++)
{
byte data[12];
ds.reset();
ds.select( sensor[thisSensor].addr );
ds.write( 0x44, 0); // start conversion, with parasite power off at the end
}... | void tempTask( void * pvParameters )
{
while (1)
{
for ( byte thisSensor = 1; thisSensor <= numberOfFoundSensors; thisSensor++)
{
ds.reset();
ds.select( sensor[thisSensor].addr );
ds.write( 0x44, 0); // start conversion, with parasite power off at the end
}
vTaskDelay( 750 ... | Remove unused var. | Remove unused var.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
fcb5f62037980d5cb80ee218700dfe1deeb68bb2 | plant-monitor/plant-monitor.ino | plant-monitor/plant-monitor.ino | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// BME280 sensor
Adafruit_BME280 bme;
double temperature = 0;
double pressure = 0;
double altitude = 0;
double humidity = 0;
// Sp... | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// BME280 sensor
Adafruit_BME280 bme;
double temperature = 0;
double pressure = 0;
double altitude = 0;
double humidity = 0;
// Sp... | fix json format | fix json format
| Arduino | apache-2.0 | mhaack/Particle-Photon-Apps |
e9982a608228cbaa7452989c2cf2f5b2f41f7953 | hello-world/hello.ino | hello-world/hello.ino |
#include "kriFram.h"
void setup() {
// initialize framework.
kriFramSetup();
Setting("call","Callibrate");
server.on ( "/home", handleRoot );
server.on ( "/", handleRoot );
server.begin();
}
// the loop function runs over and over again forever
void loop() {
//loop framework
kriFramLoop();
}
... | #include "kriFram.h"
void setup() {
// initialize framework.
kriFramSetup();
kriFramAddSettings("call","Callibrate");
server.on ( "/home", handleRoot );
server.on ( "/", handleRoot );
server.begin();
}
// the loop function runs over and over again forever
void loop() {
//loop framework
kriFramLoop()... | Update hello.ino | Update hello.ino | Arduino | mit | kritagyaAdhikari/kriFram |
d140bc27e88ed395f795d82d75ac7ffbca1d09d6 | XbmcSwitch.ino | XbmcSwitch.ino | int pushButton = 2;
int switchLed = 13;
int mainLed = 6;
int switchState = 1;
#define ON 49 // 1
#define OFF 48 // 0
void setup(){
// start serial connection
Serial.begin(9600);
// configure pin2 as an input
pinMode(pushButton, INPUT);
// turn on pullup resistor
digitalWrite(pushButton, HIGH);
// output LED... | int pushButton = 2;
int mainLed = 6;
int switchState = 1;
int noSerialCount = 0;
#define ON 49 // 1
#define OFF 48 // 0
void setup(){
// start serial connection
Serial.begin(9600);
// configure pin2 as an input
pinMode(pushButton, INPUT);
// turn on pullup resistor
digitalWrite(pushButton, HIGH);
// output ... | switch off LED if no serial for 1 sec | switch off LED if no serial for 1 sec
| Arduino | mit | mafrosis/XbmcSwitch |
374ff4cd55d6f9bd5c809f937302ffbdc1df8cdb | examples/Socket/CosaNRFclient/CosaNRFclient.ino | examples/Socket/CosaNRFclient/CosaNRFclient.ino | /**
* @file CosaNRFclient.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, 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 th... | /**
* @file CosaNRFclient.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, 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 th... | Improve NRF24L01P device driver; example sketch for client socket. | Improve NRF24L01P device driver; example sketch for client socket.
| Arduino | lgpl-2.1 | jeditekunum/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,kc9jud/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,SinishaDjukic/Meshwork,kc9jud/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,rrobinet/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cos... |
3a9d70f581ab2b09d53c5b60a62cf1c3938b2897 | examples/OnDemandConfigPortal/OnDemandConfigPortal.ino | examples/OnDemandConfigPortal/OnDemandConfigPortal.ino | /**
* OnDemandConfigPortal.ino
* example of running the configPortal AP manually, independantly from the captiveportal
* trigger pin will start a configPortal AP for 120 seconds then turn it off.
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
// select which pin will trigger the configurat... | /**
* OnDemandConfigPortal.ino
* example of running the configPortal AP manually, independantly from the captiveportal
* trigger pin will start a configPortal AP for 120 seconds then turn it off.
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
// select which pin will trigger the configurat... | fix example | fix example
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
d8b05988ea23b5d77c8aec08c9a5253cb38daf04 | net_th_meter/net_th_meter.ino | net_th_meter/net_th_meter.ino | /*
* Network Humidity Temperature Meter
*
* Consists of
* Arduino Nano,
* DHT22 - 1 unit,
* DS18B20 - 3 units,
* ENC28J60 based Ethernet controller.
*
* Communicates using Modbus TCP:
* Holding Registers (4x) 40001 - 40010
*
* (c) 2016, Mikhail Shiryaev
*/
#include <avr/wdt.h> // Watchdog... | /*
* Network Humidity Temperature Meter
*
* Consists of
* Arduino Nano,
* DHT22 - 1 unit,
* DS18B20 - 3 units,
* ENC28J60 based Ethernet controller.
*
* Communicates using Modbus TCP:
* Holding Registers (4x) 40001 - 40010
*
* (c) 2016, Mikhail Shiryaev
*/
#include <avr/wdt.h> // Watchdog... | Fix MAC again | Fix MAC again
| Arduino | mit | 2mik/arduino-2mik |
5ffa607322db725ad3d9ffd4940bf7f2dac4851c | PubSubClient/examples/mqtt_publish_in_callback/mqtt_publish_in_callback.ino | PubSubClient/examples/mqtt_publish_in_callback/mqtt_publish_in_callback.ino | /*
Publishing in the callback
- connects to an MQTT server
- subscribes to the topic "inTopic"
- when a message is received, republishes it to "outTopic"
This example shows how to publish messages within the
callback function. The callback function header needs to
be declared before the PubSubClient ... | /*
Publishing in the callback
- connects to an MQTT server
- subscribes to the topic "inTopic"
- when a message is received, republishes it to "outTopic"
This example shows how to publish messages within the
callback function. The callback function header needs to
be declared before the PubSubClient ... | Copy payload before republishing in mqtt_publish_in_callback example | Copy payload before republishing in mqtt_publish_in_callback example
| Arduino | mit | diegopx/pubsubclient,doebi/pubsubclient,CanTireInnovations/pubsubclient,knolleary/pubsubclient,rubenqba/pubsubclient,liquiddandruff/pubsubclient,knolleary/pubsubclient,mknjc/pubsubclient,mknjc/pubsubclient,diegopx/pubsubclient,vshymanskyy/pubsubclient,tectiv3/pubsubclient,rubensmachado/pubsubclient,tomn46037/pubsubclie... |
5f40629cdf2932d41c678d09427ebad5f2ca76d4 | 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... | Format Code (Remove Extra Whitespace) | Format Code (Remove Extra Whitespace)
| Arduino | mit | OceanographyforEveryone/OpenCTD |
79393df8a9b8f64aba6a728637e6159bafc8ba1e | 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 |
982662ce44507782f07b792515bf5c8a90e05b41 | SAMD_pins.ino | SAMD_pins.ino | #include <Wire.h>
#include <SPI.h>
#define mySerial SerialUSB
/*
* Pin multiplexer value names (PMUXn.PMUXE/O)
*/
const char *pinmux_names[8] = {
"EIC", // "A": External Interrupts
"ADC", // "B": REF, ADC, AC, PTC, DAC
"SERCOM", /* "C": SerCom */
"SERCOMALT", /* "D": Alternate SERCOM */
"TC/TCC",... | #include <Wire.h>
#include <SPI.h>
#define mySerial SerialUSB
#define ARRAYSIZE(a) (sizeof a/sizeof a[0])
void setup() {
mySerial.begin(9600);
while (!mySerial)
;
mySerial.println("SAMD Pin State Report");
mySerial.println();
// Set some pins up doing something different, so that the display will be
... | Add SERCOM and COM decoding. Add port/bit names (PA02, PB31, etc.) | Add SERCOM and COM decoding.
Add port/bit names (PA02, PB31, etc.)
| Arduino | mit | WestfW/ArduinoZero-PMUX-report,WestfW/ArduinoZero-PMUX-report |
b78065226a2cc301c0bbd6a4a2ae16c2f2e7d82c | arduino-test/arduino-test.ino | arduino-test/arduino-test.ino | #include <SPI.h>
#include "mx7219.h"
#include "pins.h"
byte spi_communicate(byte mxreg, byte mxval, byte key_out = 0) {
byte key_state;
SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
digitalWrite(DPYSS_BAR, LOW);
key_state = SPI.transfer(0);
SPI.transfer(key_out);
SPI.transfe... | #include <SPI.h>
#include "mx7219.h"
#include "pins.h"
byte spi_communicate(byte mxreg, byte mxval, byte key_out = 0) {
byte key_state;
SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
digitalWrite(DPYSS_BAR, LOW);
key_state = SPI.transfer(0);
SPI.transfer(key_out);
SPI.transfe... | make HALT do something in test firmware | make HALT do something in test firmware
| Arduino | mit | rjw57/buri-front-panel,rjw57/buri-front-panel |
4eb92cc3e203e93fbe5d24201e465c9cf6de344b | RouterReset_Yun/RouterReset_Yun.ino | RouterReset_Yun/RouterReset_Yun.ino | /* Router Reset for Arduino Yun
*
* red LED (internet down): pin 6
* green LED (internet up): pin 5
* yellow LED (testing): pin 3
* blue LED (router on): pin 8
* power switch tail: pin 9
* switch: pin 12
*
* needs ~/Python/pingGoogle.py on Yun Linino
*/
#include <Process.h>
cons... | /* Router Reset for Arduino Yun
*
* red LED (internet down): pin 6
* green LED (internet up): pin 5
* yellow LED (testing): pin 3
* blue LED (router on): pin 8
* power switch tail: pin 9
* switch: pin 12
*
* needs ~/Python/pingGoogle.py on Yun Linino
*/
#include <Process.h>
cons... | Revise indentation | Revise indentation
| Arduino | mit | karlduino/RouterReset,karlduino/RouterReset |
aa97cadbc1b95aed5ecd3c411c0506939634997e | src/monitor-firmware.ino | src/monitor-firmware.ino | // Firmware for monitor board
// Pin definitions
#define MISO 2
#define MOSI 3
#define SCLK 4
#define DLOAD 8
// MAX7219 registers. Note that these are bit-reversed since the MAX7219
// expects data to be shifted in MSB first.
#define MX7219_DPLY_TEST 0xF0
// Send a byte, LSB first, along the serial li... | // Firmware for monitor board
// Pin definitions
#define MISO 2 // NB: (1)
#define MOSI 3 // NB: (1)
#define SCLK 4
#define DLOAD 8
// (1) Since the monitor board is a slave device w.r.t. the processor board,
// MISO is an OUTPUT and MOSI is an INPUT.
// MAX7219 registers. Note that these are bit-reve... | add note on MISO/MOSI directions | add note on MISO/MOSI directions
| Arduino | mit | rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri |
979e199747c59d77667515eda25a8c6fb7278075 | firmware/examples/Transports/SparkCore/SparkCore.ino | firmware/examples/Transports/SparkCore/SparkCore.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... | Update SparkCore.ino | Update SparkCore.ino | Arduino | mit | vshymanskyy/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark |
9aab00e9fae089645ad69930c8409c8fd74e2195 | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <Bot.h>
#include <CommandQueue.h>
#include <LogobotText.h>
#include <Servo.h>
Bot bot(MOTOR_L_PIN_1, MOTOR_L_PIN_2, MOTOR_L_PIN_3, MOTOR_L_PIN_4, MOTOR_R_PIN_1, MOTOR_R_PIN_2, MOTOR_R_PIN_3, MOTOR_R_PIN_4);
CommandQueue cmdQ(20);
String text = ""; //... | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <Bot.h>
#include <CommandQueue.h>
#include <LogobotText.h>
#include <Servo.h>
Bot bot(MOTOR_L_PIN_1, MOTOR_L_PIN_2, MOTOR_L_PIN_3, MOTOR_L_PIN_4, MOTOR_R_PIN_1, MOTOR_R_PIN_2, MOTOR_R_PIN_3, MOTOR_R_PIN_4);
CommandQueue cmdQ(20);
String text = ""; //... | Clear text string on emergency stop | Clear text string on emergency stop
| Arduino | mit | snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot |
24bf71f36db73cd46aaad0aac2e1e56427a4fc65 | arduino/scetch/scetch.ino | arduino/scetch/scetch.ino | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte powerLevel = 50;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte latchToEeMillis = 100;
const byte eeToEmMillis = 100;
c... | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;
const byte powerLevel = 50;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte latchToEeMillis = 100;
const by... | Add serial control | Add serial control
| Arduino | mit | antego/laser_control |
99591edc162ecc1b558ddc5b485caa36c83aff83 | hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino | hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino | /*
Udp NTP Client
Get the time from a Network Time Protocol (NTP) time server
Demonstrates use of UDP sendPacket and ReceivePacket
For more on NTP time servers and the messages needed to communicate with them,
see http://en.wikipedia.org/wiki/Network_Time_Protocol
created 4 Sep 2010
by Michael Margolis
modif... | /*
Udp NTP Client
Get the time from a Network Time Protocol (NTP) time server
Demonstrates use of UDP sendPacket and ReceivePacket
For more on NTP time servers and the messages needed to communicate with them,
see http://en.wikipedia.org/wiki/Network_Time_Protocol
created 4 Sep 2010
by Michael Margolis
modif... | Update NTPClient.ino | Update NTPClient.ino
Instead of hardwiring the IP address of one server into the program, look-up an IP address from the host name. This way you get a random server from the pool each time.
| Arduino | lgpl-2.1 | probonopd/Arduino,SmartArduino/Arduino-1,SmartArduino/Arduino-1,SmartArduino/Arduino-1,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,SmartArduino/Arduino-1,SmartArduino/Arduino-1,SmartArduino/Arduino-1,probonopd/Arduino,SmartArduino/Arduino-1,probonopd/Arduino |
28b1cc848addc86495d9f9c812499bc344dc5351 | examples/Boards_Ethernet/Arduino_Ethernet2/Arduino_Ethernet2.ino | examples/Boards_Ethernet/Arduino_Ethernet2/Arduino_Ethernet2.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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... | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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... | Remove Arduino.ORG reference | Remove Arduino.ORG reference
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
1b302a2a91dd03991c316ad34b0b5089cfe3d9f4 | software/arduino/iota-ifttt/iota-ifttt.ino | software/arduino/iota-ifttt/iota-ifttt.ino | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include "OneButton.h"
#define WIFI_SSID "My Wifi"
#define WIFI_PASSWORD "My Password"
#define IFTTT_URL "http://maker.ifttt.com"
#define IFTTT_KEY "IFTTT KEY";
#define IFTTT_EVENT "IFTTT EVENT NAME";
#define BUTTON_P... | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include "OneButton.h"
#define WIFI_SSID "My Wifi"
#define WIFI_PASSWORD "My Password"
#define IFTTT_URL "http://maker.ifttt.com"
#define IFTTT_KEY "IFTTT KEY";
#define IFTTT_EVENT "IFTTT EVENT NAME";
#define BUTTON_P... | Update comment | Update comment
| Arduino | mit | topicusonderwijs/iota |
52b7e678775a90752f4516c6f826bf59f5fb8140 | projects/ask/stm32f1init/stm32f1init.ino | projects/ask/stm32f1init/stm32f1init.ino | // Initialise an STM32F103 with a boot loader, embedded in this code.
// MIT license, see https://github.com/jeelabs/embello -jcw, 2015-11-10
#include <Arduino.h>
#ifdef __AVR_ATmega328P__ // use a modified SoftwareSerial implementation
#define USE_SOFT_PARITY 1
#endif
#if USE_SOFT_PARITY
#include "ParitySerial.h"
... | // Initialise an STM32F103 with a boot loader, embedded in this code.
// MIT license, see https://github.com/jeelabs/embello -jcw, 2015-11-10
#include <Arduino.h>
#ifdef __AVR_ATmega328P__ // use a modified SoftwareSerial implementation
#define USE_SOFT_PARITY 1
#endif
#if USE_SOFT_PARITY
#include "ParitySerial.h"
... | deal with mixed-up Nucleo serial port order | deal with mixed-up Nucleo serial port order
| Arduino | unlicense | tve/embello,jeelabs/embello,smurfix/embello,tve/embello,jeelabs/embello,jeelabs/embello,smurfix/embello,tve/embello,jeelabs/embello,jeelabs/embello,smurfix/embello |
a27604f59ea66be31a52e2c775d9c488aa73f22b | libraries/Ethernet/examples/ChatServer/ChatServer.ino | libraries/Ethernet/examples/ChatServer/ChatServer.ino | /*
Chat Server
A simple server that distributes any incoming messages to all
connected clients but the client the message comes from.
To use telnet to your device's IP address and type.
You can see the client's input in the serial monitor as well.
Using an Arduino Wiznet Ethernet shield.
Circuit:
* Ether... | /*
Chat Server
A simple server that distributes any incoming messages to all
connected clients but the client the message comes from.
To use telnet to your device's IP address and type.
You can see the client's input in the serial monitor as well.
Using an Arduino Wiznet Ethernet shield.
Circuit:
* Ether... | add some lines of comment to ChatServer.ino, remove redundant assignment of Client-instance | add some lines of comment to ChatServer.ino, remove redundant assignment of Client-instance
| Arduino | lgpl-2.1 | leftbrainstrain/Arduino-ESP8266,Protoneer/Arduino,mateuszdw/Arduino,myrtleTree33/Arduino,chaveiro/Arduino,eddyst/Arduino-SourceCode,ektor5/Arduino,ntruchsess/Arduino-1,pdNor/Arduino,eddyst/Arduino-SourceCode,jmgonzalez00449/Arduino,eggfly/arduino,piersoft/esp8266-Arduino,tannewt/Arduino,Cloudino/Arduino,nandojve/Arduin... |
410aaf31604a55105d3e88c58980b8ffb814d025 | examples/StanBox/StanBox.ino | examples/StanBox/StanBox.ino | //
// Robotics PWM Motor Controller
//
// Copyright (C) 2016-2020 Lennie Araki. All rights reserved
//
// 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/LICEN... | //
// Robotics PWM Motor Controller
//
// Copyright (C) 2016-2020 Lennie Araki. All rights reserved
//
// 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/LICEN... | Update documentation/comments | Update documentation/comments
| Arduino | mit | lenniea/LED7Seg |
c7cda3f332f68015da30d5a2a8949ac83fd42a39 | examples/lcd_nav/lcd_nav.ino | examples/lcd_nav/lcd_nav.ino | /*
* lcd_nav.ino - Example code using the menu system library
*
* This example shows using the menu system with a 16x2 LCD display
* (controled over serial).
*
* Copyright (c) 2015 arduino-menusystem
* Licensed under the MIT license (see LICENSE)
*/
#include <MenuSystem.h>
#include <LiquidCrystal.h>
// render... | /*
* lcd_nav.ino - Example code using the menu system library
*
* This example shows using the menu system with a 16x2 LCD display
* (controled over serial).
*
* Copyright (c) 2015 arduino-menusystem
* Licensed under the MIT license (see LICENSE)
*/
#include <MenuSystem.h>
#include <LiquidCrystal.h>
// render... | Fix issue with lcd_nav example | Fix issue with lcd_nav example
| Arduino | mit | jonblack/arduino-menusystem |
476fe5b1788ea4ee3b947478763b9af0d9dc5fa8 | arduino_pico/arduino_pico.ino | arduino_pico/arduino_pico.ino | #include "OneWire.h"
#include "DallasTemperature.h"
#include "TimerOne.h"
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 7
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS)... | #include "OneWire.h"
#include "DallasTemperature.h"
#include "TimerOne.h"
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS A0
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS... | clean in interrupted mode for 1-wire devices | clean in interrupted mode for 1-wire devices
| Arduino | apache-2.0 | flagos/arduino-pico,flagos/arduino-pico |
7cbc1b2e4fba1e8215ef50fc28bfce0e381fb0e9 | firmata/deadbolt/deadbolt.ino | firmata/deadbolt/deadbolt.ino | #include <Adafruit_PN532.h>
#include <Wire.h>
#include <SPI.h>
#include <Servo.h>
#include "authorized-ids.h"
#define IRQ 6
#define RESET 8
Servo servo;
const int LOCKED_POS = 45;
const int UNLOCKED_POS = -10;
const int BUTTON_PIN = 7;
const int ALERT_PIN = 1;
const int LED_PIN = 13;
int buttonState = 0;
bool lock... | #include <Adafruit_PN532.h>
#include <Wire.h>
#include <SPI.h>
#include <Servo.h>
#include "authorized-ids.h"
#define IRQ 6
#define RESET 8
Servo servo;
const int LOCKED_POS = 45;
const int UNLOCKED_POS = -10;
const int BUTTON_PIN = 7;
const int ALERT_PIN = 1;
const int LED_PIN = 13;
int buttonState = 0;
bool lock... | Update deadbolt firmata | Update deadbolt firmata
| Arduino | mit | Nase00/pantheon,Nase00/moirai,Nase00/moirai,Nase00/moirai,Nase00/pantheon |
ab785c6af7b5aedd7d7adb69a1d2d4e4ef63aee2 | examples/1-Calibration/AutomatedTesting/AutomatedTesting.ino | examples/1-Calibration/AutomatedTesting/AutomatedTesting.ino | #include "SPI.h"
#include "Wire.h"
#include "Servo.h"
#include "MINDSi.h"
#include <EEPROM.h>
#include "pins_arduino.h"
/***************************************************
/ Example provided by MINDS-i
/ Try checking out our arduino resource guide at
/ http://mindsieducation.com/programming-resources
/ Q... | #include "SPI.h"
#include "Wire.h"
#include "Servo.h"
#include "MINDSi.h"
#include <EEPROM.h>
#include "pins_arduino.h"
/*******************************************************
/ Example provided by MINDS-i
/ Try checking out our arduino resource guide at
/ http://mindsieducation.com/programming-resources
... | Add wait section for arduino Leonardo serial port | Add wait section for arduino Leonardo serial port
| Arduino | apache-2.0 | MINDS-i/MINDS-i |
7f2755a7e466e37cab7ae9ba616640db0b360bd0 | src/rf24remotetemp.ino | src/rf24remotetemp.ino | /*
RF24 Remote Temperature Node for Arduino Pro Mini + NRF24
Daniel Epperson, 2014
*/
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <SPI.h>
#include <Narcoleptic.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// this gets transmitted
typedef struct {
int addr;
float temp;
} Readi... | /*
RF24 Remote Temperature Node for Arduino Pro Mini + NRF24
Daniel Epperson, 2014
*/
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <SPI.h>
#include <Narcoleptic.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// this gets transmitted
typedef struct {
int addr;
float temp;
} Readi... | fix broken function | fix broken function | Arduino | mit | depperson/ghpi,depperson/ghpi,depperson/ghpi,depperson/ghpi,depperson/ghpi |
b356495ed811ff775ffe3f48c94812a51f87d1c6 | dremelfuge.ino | dremelfuge.ino | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
Uploaded to an Arduino UNO, with MCU ATmega328P-PU.
Arduino UNO specs: https://www.arduino.cc/en/Main/ArduinoBoardUno
ATmega328P-PU datasheet: http://www.atmel.com/Images... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
Uploaded to an Arduino UNO, with MCU ATmega328P-PU.
Arduino UNO specs: https://www.arduino.cc/en/Main/ArduinoBoardUno
ATmega328P-PU datasheet: http://www.atmel.com/Images... | Remove finished agenda item | Remove finished agenda item
| Arduino | mit | karinassuni/dremelfuge |
8806107a1b9619b5173da99a78e777313da3e4c0 | angu/angu.ino | angu/angu.ino | #include <CurieBLE.h>
const int ledPin = 3; // set ledPin to on-board LED
// V
//ID IS A TEST. IT WAS 19B10010-E8F2-537E-4F6C-D104768A1214<<<<<
BLEService ledService("19B10010-E8F2-537E-4F6C-D104768A1214"); // create service
// create switch characteristic and a... | #include <CurieBLE.h>
const int ledPin = 3; // set ledPin to on-board LED
// V
//ID IS A TEST. IT WAS 19B10010-E8F2-537E-4F6C-D104768A1214<<<<<
BLEService ledService("19B10010-E8F2-537E-4F6C-D104768A1215"); // create service
// create switch characteristic and a... | fix to the angu ino | fix to the angu ino
| Arduino | mit | janunezc/robotics,janunezc/robotics,janunezc/robotics,janunezc/robotics |
2d4dc7d3b235d202ea781e96b5dc0327b5f8e90c | temperature-relay.ino | temperature-relay.ino | #include "OneWire.h"
#include "WebServer.h"
#include "elapsedMillis.h"
#include <list>
#include "Sensors.h"
using namespace std;
#define SCAN_INTERVAL 60000
#define TEMP_INTERVAL 10000
#define BLINK_INTERVAL 5000
#define POWER_INTERVAL 120000
#define PREFIX ""
template<class T>
inline Print &operator <<(Print &obj, ... | #include "OneWire.h"
#include "WebServer.h"
#include "elapsedMillis.h"
#include <list>
#include "Sensors.h"
using namespace std;
#define SCAN_INTERVAL 60000
#define TEMP_INTERVAL 10000
#define BLINK_INTERVAL 5000
#define POWER_INTERVAL 120000
#define PREFIX ""
template<class T>
inline Print &operator <<(Print &obj, ... | Include timestamps in metrics | Include timestamps in metrics
| Arduino | mit | jeffutter/temperature-relay |
c1e950c4cfce6bcff0167566cc8f72d7df1a9e7b | Finalproject.ino | Finalproject.ino | /*Copyright (c) 2010 bildr community
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 limitation the rights
to use, copy, modify, merge, publish, distribut... | /*Copyright (c) 2010 bildr community
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 limitation the rights
to use, copy, modify, merge, publish, distribu... | include mpr121.h | include mpr121.h | Arduino | apache-2.0 | RoadrunnersRus/t1a02-app-robbie,RoadrunnersRus/t1a02-app-robbie |
57dc3b8a4dc87b2059d4bf71571a04c81cbe2b3b | ArduinoPondArea/ArduinoPondArea.ino | ArduinoPondArea/ArduinoPondArea.ino | int pinA = 3; // Connected to CLK on KY-040
int pinB = 4; // Connected to DT on KY-040
int rotaryTicks = 0;
int lastRotaryTicks = 0;
int lastRotaryValue; // 1/0 read from rotary
boolean rotatingClockwise;
// set on init so we know what the orientation "0" is
int initialPotentiometerReading = -1;
int lastPotentio... | // ############################################
// CONFIG SECTION
bool veryVerboseDebug = true;
int pinA = 3; // Connected to CLK on KY-040
int pinB = 4; // Connected to DT on KY-040
int rotaryTicks = 0;
int lastRotaryTicks = 0;
const String usbFileName = "PONDS.PD";
// every n writes we manually close the file a... | Write data to a USB stick. | Write data to a USB stick.
| Arduino | mit | lynchcb/ssupond |
82f2dfbfecd4240cb21cd5823599daf6a763131f | Calibration/liveCode/overclockAccel/overclockAccel.ino | Calibration/liveCode/overclockAccel/overclockAccel.ino | /*
* Accelerometer skeleton code
*/
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <URP_LSM303.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <String.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_10DOF.h>
/* Assign a unique ID to the sensors */
Adafruit_10DOF ... | /*
* Accelerometer skeleton code
*/
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <URP_LSM303.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <String.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_10DOF.h>
/* Assign a unique ID to the sensors */
Adafruit_10DOF ... | Write speed increased to 11.5 Hz | Write speed increased to 11.5 Hz
| Arduino | mit | karikawa/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,karikawa/2014-2015,karikawa/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015 |
5927d8576cddf587490333af803ca57595c0db87 | ArduinoSensorBoard/ArduinoSensorBoard.ino | ArduinoSensorBoard/ArduinoSensorBoard.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "DHT.h"
//#include "printf.h"
#define DHTPIN 2
#define DHTTYPE DHT11
RF24 radio(8,9);
DHT dht(DHTPIN, DHTTYPE);
const uint64_t pipes[2] = {
0xF0F0F0F001LL, 0xF0F0F0F002LL };
const byte shortAddr = 0x02;
int switchsPins[] = {
3};
int switchesByt... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "DHT.h"
#include "printf.h"
#define DHTPIN 2
#define DHTTYPE DHT11
RF24 radio(8,9);
DHT dht(DHTPIN, DHTTYPE);
byte incomingByte = 0;
const uint64_t pipes[2] = {
0xF0F0F0F001LL, 0xF0F0F0F002LL };
const byte shortAddr = 0x02;
int switchsPins[] = {
... | Add AutoAck,USBInterface Prototype | Add AutoAck,USBInterface Prototype
| Arduino | apache-2.0 | Ertinfagor/RCHome,Ertinfagor/RCHome,Ertinfagor/RCHome |
7502435328d0cb965c666bd5abdca4d274329800 | RouterReset.ino | RouterReset.ino | /*** RouterReset: test if internet is working; if not, reset router
*
* Karlduino, Dec 2013
*
* Parts taken from Arduino wifi examples:
* WifiWebClient by dlf, srl, and Tom Igoe
* WifiUdpNtpClient by Michael Margolis and Tom Igoe
* SD/Datalogger by Tom Igoe
*
***/
#include <stdio.h>
#include <SPI.h>
#in... | /*** RouterReset: test if internet is working; if not, reset router
*
* Karlduino, Dec 2013
*
* Parts taken from Arduino wifi examples:
* WifiWebClient by dlf, srl, and Tom Igoe
* WifiUdpNtpClient by Michael Margolis and Tom Igoe
* SD/Datalogger by Tom Igoe
*
***/
#include <stdio.h>
#include <SPI.h>
#in... | Move SD card setup out of functions | Move SD card setup out of functions
| Arduino | mit | karlduino/RouterReset,karlduino/RouterReset |
b0cfe778a368306d77ffe5921a0f797505e3c372 | examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.ino | examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.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... | Update comments and default baud rate | Update comments and default baud rate
| Arduino | mit | ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
604dd00b9c87c2f1741d8383d35defe507a8763e | b_Main_Loop.ino | b_Main_Loop.ino | void loop() {
// === DELETE THIS! JUST FOR TESTING!!! =====
//PSARJ=millis()*.0005;
//PSARJ = 90 * sin(0.0005 * millis() * 0.001 * 180 / 3.14159);
// === DELETE THIS! JUST FOR TESTING!!! =====
LoopStartMillis = millis();
delta_t_millis = max(LoopStartMillis - previousMillis, 1); // ensure always equal ... | void loop() {
if(Serial1.available())
{
checkSerial();
}
// === DELETE THIS! JUST FOR TESTING!!! =====
//PSARJ=millis()*.0005;
//PSARJ = 90 * sin(0.0005 * millis() * 0.001 * 180 / 3.14159);
// === DELETE THIS! JUST FOR TESTING!!! =====
LoopStartMillis = millis();
delta_t_millis = m... | Update b_Main_Loop.ino | Update b_Main_Loop.ino
Change to use serial input | Arduino | mit | ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic |
1e8b2c2aae18f2dbcba80c61140961238c086caf | 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 (updated June 2021 for BLE)
* 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 defa... | /*
* BasicGain_wApp
*
* Created: Chip Audette, June 2020 (updated June 2021 for BLE)
* 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 defa... | Change USE_REV_E(false) to USE_REV_E(true) for 06-AppTutorial example | Change USE_REV_E(false) to USE_REV_E(true) for 06-AppTutorial example
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
0e4af48d549fa67f191ab886610e9fd2016d9cc9 | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | /**
* This is a kind of unit test for DEV for now
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#define TRIGGER_PIN 0
const char* modes[] = { "NULL", "STA", "AP", "STA+AP" };
WiFiManager wm;
char ssid[] = "*************"; // your network SSID (name)
char pass[] = "********"; // your n... | /**
* This is a kind of unit test for DEV for now
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#define TRIGGER_PIN 0
const char* modes[] = { "NULL", "STA", "AP", "STA+AP" };
WiFiManager wm;
char ssid[] = "*************"; // your network SSID (name)
char pass[] = "********"; // your n... | fix example | fix example
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
22e5295f3ac22b39091841337e92db79bcc12362 | Wikiduino/Wikiduino.ino | Wikiduino/Wikiduino.ino |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// Ethernet Configuration
byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ... |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// Ethernet Configuration
byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ... | disable wifi to save power | disable wifi to save power | Arduino | mit | WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki |
f134bd4d4909b88982c2e0b986cc58cb2ab05fcc | jacket.ino | jacket.ino | #include "FastLED.h"
#include "plasma.cpp"
#include "stripes.cpp"
#include "fire.cpp"
#include "descent.cpp"
#include "solid.cpp"
#include "noise.cpp"
// These are my specific LED strings
#define LED_PIN 6
#define CHIPSET WS2812B
#define COLOR_ORDER GRB
#define NUM_LEDS 400
// Reasonable for battery-power... | #include "FastLED.h"
#include "buttons.h"
#include "plasma.cpp"
#include "stripes.cpp"
#include "fire.cpp"
#include "descent.cpp"
#include "solid.cpp"
#include "noise.cpp"
// These are my specific LED strings
#define LED_PIN 6
#define CHIPSET WS2812B
#define COLOR_ORDER GRB
#define NUM_LEDS 400
// Reason... | Add button press detection for cycling | Add button press detection for cycling
| Arduino | mit | SteveEisner/jacket |
974f9971b19bb2c0119561b1ca344cc35dc113cb | Arduino/Arduino.ino | Arduino/Arduino.ino | /*
* Author: flofriday
* Date: 28.07.2017
* License: MIT
*
* This file is the code for the Arduino.
* Supported are Arduino Uno and Arduino Mega however, alomost every Arduino
* should work.
*/
/*
* Configure the Prameters below to fit your application.
*/
#define MATRIX_DATA_PIN 6 // The Pin where the matrix i... | /*
* Author: flofriday
* Date: 28.07.2017
* License: MIT
*
* This file is the code for the Arduino.
* Supported are Arduino Uno and Arduino Mega however, alomost every Arduino
* should work.
*/
/*
* Configure the Prameters below to fit your application.
*/
#define MATRIX_DATA_PIN 6 // The Pin where the matrix i... | Fix buffer overflow | Fix buffer overflow
| Arduino | mit | flofriday/pixelFlow,flofriday/pixelFlow,flofriday/pixelFlow |
ea67dc22c0e58fe8023018b72638e3ec77287507 | examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino | examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino | // LED will blink when in config mode
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
//for LED status
#include <Ticker.h>
Ticker ticker;
int LED = BUILTIN_LED;
void tick()
{
//toggle state
digitalWrite(LED, !digitalRead(LED)); // set pin to the opposite state
}
//gets called when WiFiManag... | // LED will blink when in config mode
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
//for LED status
#include <Ticker.h>
Ticker ticker;
int LED = BUILTIN_LED;
void tick()
{
//toggle state
digitalWrite(LED, !digitalRead(LED)); // set pin to the opposite state
}
//gets called when WiFiManag... | remove resetsettings | remove resetsettings
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
71eff8532795a7866957baae95f15a31bcd1cc0f | csarc/csarc.ino | csarc/csarc.ino | /* we'd like to be able to do a couple things with newline-terminated commands.
*
* set a constant color value: "V#FFFFFF"
* make gradient pulses between two colors: "G#000000:#FFFFFF:pulseTime"
* ???
*/
#include "RGBdriver.h"
#define CLK 2 //pin definitions for the driver
#define DIO 3
RGBdriver D... | /* we'd like to be able to do a couple things with newline-terminated commands.
*
* set a constant color value: "V#FFFFFF"
* make gradient pulses between two colors: "G#000000:#FFFFFF:pulseTime"
* ???
*/
static boolean DEBUG = true;
#include "RGBdriver.h"
#define CLK 2 //pin definitions for the driver ... | Debug option, timeout | .51: Debug option, timeout
Added debug mode; outputs colors in (0,255) ranges. Still need to fix
leading zeroes problem. Added timeout; after 5m of no input, flashes
random colors.
| Arduino | mit | gabrielkrell/csarc |
b89b0f4c33509894bb192d5f73785e14f6958872 | examples/UbidotsSaveValueWithContext/UbidotsSaveValueWithContext.ino | examples/UbidotsSaveValueWithContext/UbidotsSaveValueWithContext.ino | // This example retrieves last value of a variable from the Ubidots API
// using TCP protocol.
/****************************************
* Include Libraries
****************************************/
#include <Ubidots.h>
/****************************************
* Define Constants
*********************************... | // This example retrieves last value of a variable from the Ubidots API
// using TCP protocol.
/****************************************
* Include Libraries
****************************************/
#include <Ubidots.h>
/****************************************
* Define Constants
*********************************... | Debug message | Debug message | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
cdd1aa4b33de522207f80bab471cbdeaf695d57b | anavi-miracle-controller/anavi-miracle-controller-gestures/anavi-miracle-controller-gestures.ino | anavi-miracle-controller/anavi-miracle-controller-gestures/anavi-miracle-controller-gestures.ino | #include <FS.h>
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include "Adafruit_APDS9960.h"
// For FastLED
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include <FastLED.h>
#define LED_PIN1 12
#define LED_PIN2 14
#define NUM_LEDS 15
#define BRIGHTNESS 64
#define LED_TYPE WS2812
#defin... | #include <FS.h>
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include "Adafruit_APDS9960.h"
// For FastLED
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include <FastLED.h>
#define LED_PIN1 12
#define LED_PIN2 14
#define NUM_LEDS 10
#define BRIGHTNESS 64
#define LED_TYPE WS2812
#defin... | Use 10 LEDs | anavi-miracle-controller-gestures.ino: Use 10 LEDs
Set the number of LEDs on the strips to 10.
Signed-off-by: Leon Anavi <be92910ae7bb6f58bb9b7c6f845bc30640119592@anavi.org>
| Arduino | mit | AnaviTech/anavi-examples,AnaviTech/anavi-examples |
0a95da25606431e499a0e7db7fa074887217c616 | dds_playground/src/sketch.ino | dds_playground/src/sketch.ino | #include <Streaming.h>
#include <MIDI.h>
#include <LiquidCrystal.h>
#include <avr/pgmspace.h>
#define u8 uint8_t
#define u16 uint16_t
#define clear_bit(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define set_bit(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#define EVERY(ms) if (millis() % ms == 0)
#define ISR_DBG_PIN_ON se... | #include <Streaming.h>
#include <MIDI.h>
#include <LiquidCrystal.h>
#include <avr/pgmspace.h>
#define u8 uint8_t
#define u16 uint16_t
#define clear_bit(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#define set_bit(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#define EVERY(ms) if (millis() % ms == 0)
#define _EVERY(ms) (millis... | Refactor LFO nested if into an && | Refactor LFO nested if into an &&
| Arduino | mit | ArchimedesPi/synths,ArchimedesPi/synths,ArchimedesPi/synths |
a9989376d88a05ad175a072603c337cfe45e6fba | 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 thread | add thread
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
ff04d5f88ccca548568f2882429a362525043250 | esp8266_160227_filesysLib.ino | esp8266_160227_filesysLib.ino |
// File System Library
// TODO: 0c > some problem including <FS.h>, which cause invisibility for other library functions
// instead, use EEPROM library (2016 Feb. 27)
//#include <FS.h>
#include <EEPROM.h>
/*
Fils sytem
Checked on staging 2.1.0-rc1 Arduino IDE 1.6.6 (2016 Feb. 27)
*/
/*
* v0.3 2016 Feb. 27
* - a... |
// File System Library
// TODO: 0c > some problem including <FS.h>, which cause invisibility for other library functions
// instead, use EEPROM library (2016 Feb. 27)
//#include <FS.h>
#include <EEPROM.h>
/*
Fils sytem
Checked on staging 2.1.0-rc1 Arduino IDE 1.6.6 (2016 Feb. 27)
*/
/*
* v0.4 2016 Feb. 27
* - a... | add read/write uint8_t() | filesysLib: add read/write uint8_t()
| Arduino | mit | yasokada/esp8266_160220_BYOP |
25b6763f7ef96fe2fdda2eb523178be9f1f42623 | thecantina.ino | thecantina.ino | // This #include statement was automatically added by the Particle IDE.
#include "RCSwitch/RCSwitch.h"
#include <string.h>
#define OFFICE_Light_1_Toggle 87489 //these are light bulb holders that use a toggle code instead of individual on/off codes
#define OFFICE_Light_2_Toggle 87345
#define OFFICE_Light_3_Toggle 87309... | // This #include statement was automatically added by the Particle IDE.
#include "RCSwitch/RCSwitch.h"
#include <string.h>
//CUSTOMIZE HERE: change the RF codes and their naming conventions here
#define OFFICE_Light_1_Toggle 87489 //these are light bulb holders that use a toggle code instead of individual outlet on/of... | Add some customize instructions | Add some customize instructions
| Arduino | mit | syardumi/trick-candles,syardumi/trick-candles,syardumi/trick-candles |
689b723200650369a35d28c7a5682815e4f76642 | Arduino/Thingamabot/Thingamabot.ino | Arduino/Thingamabot/Thingamabot.ino | // Arduino code for Thingamashop wheelchair robot.
//
// Accepts commands over serial or Bluetooth LE.
// Commands are two lower case letters, space, an integer value,
// then CR, LF.
//
// A fail-safe mode will shut down the robot if no commands
// are processed within a fail-safe interval. Once fail-safe mode
// is e... | // Arduino code for Thingamashop wheelchair robot.
//
// Accepts commands over serial or Bluetooth LE.
// Commands are two lower case letters, space, an integer value,
// then CR, LF.
//
// A fail-safe mode will shut down the robot if no commands
// are processed within a fail-safe interval. Once fail-safe mode
// is e... | rename reset_failsafe to reset_failsafe_timer | rename reset_failsafe to reset_failsafe_timer
| Arduino | mit | petergolde/wheelchair-robot,petergolde/wheelchair-robot,petergolde/wheelchair-robot,petergolde/wheelchair-robot |
7bb17ae2a199906000d130e215a08e0a56795639 | src/WiFiSensor/WiFiSensor.ino | src/WiFiSensor/WiFiSensor.ino | #include <Arduino.h>
#include <ArduinoJson.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>
#include <DHT.h>
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFi.h>
#include <FS.h>
#include "measurements.h"
//#include <GDBStub.h>
extern "C" {
#include "u... | #include <Arduino.h>
#include <ArduinoJson.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>
#include <DHT.h>
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFi.h>
#include <FS.h>
#include "measurements.h"
//#include <GDBStub.h>
extern "C" {
#include "u... | fix some brackets | fix some brackets
| Arduino | apache-2.0 | brickmen/WiFiSensor,brickmen/WiFiSensor |
053a62de7dd43c93f5d5aef3a5939664a96c66c3 | app/firmware/JS_Shield/JS_Shield.ino | app/firmware/JS_Shield/JS_Shield.ino | /**********************************************************************************
* The following software may be included in this software : orion_firmware.ino
* from http://www.makeblock.cc/
* This software contains the following license and notice below:
* CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-... | /**********************************************************************************
* The following software may be included in this software : orion_firmware.ino
* from http://www.makeblock.cc/
* This software contains the following license and notice below:
* CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-... | Update JS_Shield.ino | Update JS_Shield.ino
펌웨어 코드 수정 | Arduino | mit | entrylabs/entry-hw,entrylabs/entry-hw,kjsii123/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,kjsii123/entry-hw,songhagwon/entry-hw,entrylabs/entry-hw,songhagwon/entry-hw,songhagwon/entry-hw,entrylabs/entry-hw,songhagwon/entry-hw,kjsii123/entry-hw,kjsii123/entry-hw,songhagwon/entry-hw |
b3e7a358cbbddc49d4668a66fa985431a43936e4 | status.ino | status.ino | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define RED 2
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.function("update", han... | #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... | support yellow | support yellow
| Arduino | mit | heroku/sparoku-status,heroku/sparoku-status |
8be1f239492f6e3711ee61c7eec9538f592f29d0 | examples/Benchmarks/CosaBenchmarkUARTburst/CosaBenchmarkUARTburst.ino | examples/Benchmarks/CosaBenchmarkUARTburst/CosaBenchmarkUARTburst.ino | /**
* @file CosaBenchmarkUARTburst.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 CosaBenchmarkUARTburst.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 ... | Clean up documentation. | Clean up documentation.
| Arduino | lgpl-2.1 | jeditekunum/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa |
92a816a7e635cb319e53c0d5e5889c2d54654e20 | Sensors/xns.sensor.in-out-aux-temp/xns.sensor.in-out-aux-temp.ino | Sensors/xns.sensor.in-out-aux-temp/xns.sensor.in-out-aux-temp.ino | /*
Name: TempSensor.ino
Created: 10/26/2016 8:22:46 PM
Author: roarf
*/
#include <SPI.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
/*
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <WiFiUdp.h>
#include <WiFiServer.h>
#include <WiFiClientSecure.h>
#include <WiFiClient.h>
#include <E... | /*
MIT License
Copyright (c) 2017 xnsense as
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 limitation the rights
to use, copy, modify, merge, publish, dis... | Change to new version of xns.client | Change to new version of xns.client
Added hw_name, hw_revision_fw_revision and changed hw_name to
xns.sensor.in-out-aux-temp
| Arduino | mit | xnsense/xns-firmware,xnsense/xns-firmware |
70055cc8810cf3487268ff0863540048fa63756c | Arduino_code/Arduino_LidarLitePWM_rotaryEncoder_3D/Lidar_PWM_rotary_3D.ino | Arduino_code/Arduino_LidarLitePWM_rotaryEncoder_3D/Lidar_PWM_rotary_3D.ino |
//Micro: 0, 1, 2, 3, 7 Mega: 2, 3, 18, 19, 20, 21 Due: all
#define MYPIN1 2
#define MYPIN2 3
#define MYPIN3 0
#define MYPIN4 1
volatile int counter_tetha = 0; //This variable will increase or decrease depending on the rotation of encoder
volatile int counter_phi = 0; //This variable will increase or decrease d... |
//Micro: 0, 1, 2, 3, 7 Mega: 2, 3, 18, 19, 20, 21 Due: all
#define MYPIN1 2
#define MYPIN2 3
#define MYPIN3 0
#define MYPIN4 1
volatile int counter_tetha = 0; //This variable will increase or decrease depending on the rotation of encoder
volatile int counter_phi = 0; //This variable will increase or decrease d... | remove 1.8 factor for "phi" | remove 1.8 factor for "phi"
calculation in post processing | Arduino | mpl-2.0 | jlstanus/Open3DmapperLT,jlstanus/Open3DmapperLT,jlstanus/Open3DmapperLT |
4d166f3652bae636ba5d303a968e6c545cc39b4f | MatrixEffect/MatrixEffect.ino | MatrixEffect/MatrixEffect.ino | #include "FastSPI_LED2.h"
#define ROWS 10
#define COLS 10
#define NUM_LEDS (ROWS*COLS)
CRGB leds[NUM_LEDS];
// Keep the current colour available in HSV
CHSV colors[NUM_LEDS];
CHSV new_colors[NUM_LEDS];
#define LOOP_TIME 20
#define UPDATE_TIME 150
// Return 0-based led index for 0-based x and y grid co-ordinate va... | #include "FastLED.h"
#define ROWS 10
#define COLS 10
#define NUM_LEDS (ROWS*COLS)
CRGB leds[NUM_LEDS];
// Keep the current colour available in HSV
CHSV colors[NUM_LEDS];
CHSV new_colors[NUM_LEDS];
#define LOOP_TIME 20
#define UPDATE_TIME 150
// Return 0-based led index for 0-based x and y grid co-ordinate values
... | Use new library; increase brightness | Use new library; increase brightness
| Arduino | mit | padvinder95/ledtafel |
c8f232d2095060ee278fc9a6a03a5ebd909cefae | control-scheme/operator/operator.ino | control-scheme/operator/operator.ino | const int buttons[] = {2, 3, 4, 5, 6, 7}
void setup() {
for(int i=0; i < 6; i++)
{
pinMode(buttons[i], INPUT);
}
}
void loop() {
for(int i=0; i<6; i++)
{
s = digitalRead(buttons[i]);
// button is on
if(s == HIGH)
{
Serial.println(i+1);
delay(1000); // debounce
}
}
} | const int buttons[] = {2, 3, 4, 5, 6, 7};
void setup() {
for(int i=0; i < 6; i++)
{
pinMode(buttons[i], INPUT);
}
}
void loop() {
for(int i=0; i<6; i++)
{
int s = digitalRead(buttons[i]);
// button is on
if(s == HIGH)
{
Serial.println(i+1);
delay(1000); // debounce
}
... | make operator arduino code compile | make operator arduino code compile
| Arduino | mit | bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne |
01b770735c129fba664c00c48843fd44ee93c368 | Examples/CallBack/CallBack.ino | Examples/CallBack/CallBack.ino | #include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <ESPMetRED.h>
const char* MQTT_PUBLISH_TOPIC = "ESPMetRED/OUT";
const char* MQTT_SUBSCRIBE_TOPIC = "ESPMetRED/IN";
const char* CLIENT_ID = "ESPMetRED";
cons... | #include <ESPMetRED.h>
const char* MQTT_PUBLISH_TOPIC = "ESPMetRED/OUT";
const char* MQTT_SUBSCRIBE_TOPIC = "ESPMetRED/IN";
const char* CLIENT_ID = "ESPMetRED";
const char* WIFI_SSID = "Ahmed";
const char* WIFI_PASSWORD = "Password";
const char* MQTT_SERVER = "192.168.0.30";
const char* MQTT_USER = "User_Name"... | Update CallBack.ino | Update CallBack.ino | Arduino | mit | HobbytronicsPK/ESPMetRED |
0e3be6646b36873c0e2638f833164163b1ef3ede | tree/tree.ino | tree/tree.ino | #include <Adafruit_NeoPixel.h>
#include <Time.h>
#include <Wire.h>
#include <DS3232RTC.h>
#include "Button.h"
#define PIXEL_PIN 5 // Digital IO pin connected to the NeoPixels.
#define PIXEL_COUNT 22
#define BUTTON_PIN 4
class Nightlight
{
private:
byte brightness;
int8_t brightnessDelta;
public:
Nightl... | #include <Adafruit_NeoPixel.h>
#include <Time.h>
#include <Wire.h>
#include <DS3232RTC.h>
#include "Button.h"
#define PIXEL_PIN 5 // Digital IO pin connected to the NeoPixels.
#define PIXEL_COUNT 22
#define BUTTON_PIN 4
class Nightlight
{
private:
byte brightness;
int8_t brightnessDelta;
public:
Nightl... | Adjust bedtime to 7pm | Adjust bedtime to 7pm
| Arduino | mit | jondye/tree-lights,jondye/tree-lights |
232ebac53acb0794097fff930b16ba2c0aff0099 | esp8266_160220_BYOP.ino | esp8266_160220_BYOP.ino |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* v0.10 2016 Feb 20
* - move [kCmdList] and [CMD_e] to [dataStructure.h]
* - update proc_hello() to reply in Serial
* - add [message_t]
* v0.9 2016 Feb 20
* - move [g_owner] to da... |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* v0.10 2016 Feb 20
* - fix proc_bye() to use nickName
* - move [kCmdList] and [CMD_e] to [dataStructure.h]
* - update proc_hello() to reply in Serial
* - add [message_t]
* v0.9 2... | fix proc_bye() to use nickName | fix proc_bye() to use nickName
| Arduino | mit | yasokada/esp8266_160220_BYOP |
51156f35158d03aebcb9fddbf02d53e51eab335e | K_Nearest_Neighbors_Vending_Machine/K_Nearest_Neighbors_Vending_Machine.ino | K_Nearest_Neighbors_Vending_Machine/K_Nearest_Neighbors_Vending_Machine.ino | #include <Arduino.h>
#include <math.h>
#include <LiquidCrystal.h>
#include "Object.h"
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_LIS3DH.h>
#include <Adafruit_Sensor.h>
// LCD Screen
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
String lcd_current = "... | #include <Arduino.h>
#include <math.h>
#include <LiquidCrystal.h>
#include "Object.h"
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_LIS3DH.h>
#include <Adafruit_Sensor.h>
// LCD Screen
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
String lcd_current = "... | Update K_Nearest_Neighbors_Vending_Machine.ino | Update K_Nearest_Neighbors_Vending_Machine.ino | Arduino | mit | baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.