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 |
|---|---|---|---|---|---|---|---|---|---|
fee7e14253317d22b6f8b4e580b9138ea2daa0d8 | firmware/examples/TeleInfo_exemple.ino | firmware/examples/TeleInfo_exemple.ino | /*
Cet exemple de code montre l'utilisation de la bibliothèque teleinfo.
Vous devez connecter votre Spark Core à un compteur ERDF via la liaison TeleInformation.
Plus d'infos sur le principe d'interface TeleInfo >> Arduino sur http://domotique-info.fr/2014/05/recuperer-teleinformation-arduino/
On utilise la... | /*
Cet exemple de code montre l'utilisation de la bibliothèque teleinfo.
Vous devez connecter votre Spark Core à un compteur ERDF via la liaison TeleInformation.
Plus d'infos sur le principe d'interface TeleInfo >> Arduino sur http://domotique-info.fr/2014/05/recuperer-teleinformation-arduino/
On utilise la... | Update TeleInfo_exemple.ino | Update TeleInfo_exemple.ino | Arduino | mit | kri5/teleinfo,thibdct/teleinfo |
4067d5226143a6d7bbb536dc3da680e7a106b50a | BoilerReceive/BoilerReceive.ino | BoilerReceive/BoilerReceive.ino | /*
Simple example for receiving
http://code.google.com/p/rc-switch/
*/
#include <RCSwitch.h>
const int PIN_SWITCH = 4; // Relay Switch
const int BOILER_ON = 1001; // Boiler ON code
const int BOILER_OFF = 1000; // Boiler OFF code
RCSwitch mySwitch = RCSwitch();
boolean isBoilerOn = false;
void setBoile... | /*
Simple example for receiving
http://code.google.com/p/rc-switch/
*/
#include <RCSwitch.h>
const int PIN_SWITCH = 4; // Relay Switch
const int PIN_TOGGLE_BUTTON = 13;
const int BOILER_ON = 1001; // Boiler ON code
const int BOILER_OFF = 1000; // Boiler OFF code
RCSwitch mySwitch = RCSwitch();
boolean i... | add toggle button (PIN 13) | add toggle button (PIN 13)
| Arduino | mit | entercritical/SwanHomeAuto,entercritical/SwanHomeAuto,entercritical/SwanHomeAuto |
7664e56cc561ceab042330e167a764a59d331689 | arduino/AP_Utils/examples/calibration/calibration.ino | arduino/AP_Utils/examples/calibration/calibration.ino | /*
* ArduPod calibration sketch
*
* Used to calibrate servo offsets so the servos 90 degrees position corresponds with the true middle position.
* It is highly recommended to run this example and calibrate the servos you will be using.
*
* Calibration guide:
* The 'offsets' array stores the offsets (in degrees... | /*
* ArduPod calibration sketch
*
* Used to calibrate servo offsets so the servos 90 degrees position corresponds with the true middle position.
* It is highly recommended to run this example and calibrate the servos you will be using.
*
* Calibration guide:
* The 'offsets' array stores the offsets (in ... | Update calibration.ino | Update calibration.ino | Arduino | mit | Gipsonek/ArduPod |
05a3d850e73daadd976bd069259b4ce26bdfc45b | arduino/CVP_JoystickController/CVP_JoystickController.ino | arduino/CVP_JoystickController/CVP_JoystickController.ino | /*
Mega2560 R3, digitalPin 22~ 37 used as row0 ~ row 15,
digital pin 38~53 used as column 0 ~ 15,
it's a 16 * 16 matrix,
row 0, 1, 2 ,3 will be used to support 32 rotary encoder
row 4, 5 will be used to support 16 On - off - On toggle switches,
note: this application will make the On-off-on toggle switch g... | /*
Mega2560 R3, digitalPin 22~ 37 used as row0 ~ row 15,
digital pin 38~53 used as column 0 ~ 15,
it's a 16 * 16 matrix,
row 0, 1, 2 ,3 will be used to support 32 rotary encoder
row 4, 5 will be used to support 16 On - off - On toggle switches,
note: this application will make the On-off-on toggle switch g... | update the comment, no code change | update the comment, no code change | Arduino | unlicense | calltherain/ArduinoUSBJoystick,calltherain/ArduinoUSBJoystick |
d34f7464c1e6ec3ac551e78c8cbdf82dfd759f7f | TinyScreenClockAndDisplay/TinyScreenClockAndDisplay.ino | TinyScreenClockAndDisplay/TinyScreenClockAndDisplay.ino | #define BLACK 0x00
#define BLUE 0xE0
#define RED 0x03
#define GREEN 0x1C
#define DGREEN 0x0C
#define YELLOW 0x1F
#define WHITE 0xFF
#define ALPHA 0xFE
#define BROWN 0x32
#include "SSD1331.h"
#include <SPI.h>
#include <Wire.h... | #define BLACK 0x00
#define BLUE 0xE0
#define RED 0x03
#define GREEN 0x1C
#define DGREEN 0x0C
#define YELLOW 0x1F
#define WHITE 0xFF
#define ALPHA 0xFE
#define BROWN 0x32
#include "SSD1331.h"
#include <SPI.h>
#include <Wire.h... | Remove comments | Remove comments | Arduino | apache-2.0 | SammyDuino/Watch-2.0,SammyDuino/watchOS |
19b432bc7d9694c926a970efe56628a57eb98ac7 | arduino/vehicle/vehicle.ino | arduino/vehicle/vehicle.ino | #include <stdint.h>
#include <SPI.h>
#include <RH_RF69.h>
#include "cmdproc.h"
#include "radio.h"
// Singleton instance of the radio driver
static RH_RF69 rf69;
void setup()
{
// TODO get address from EEPROM
uint8_t address = 1;
radio_init(&rf69, address);
Serial.begin(9600);
}
static bool sen... | #include <stdint.h>
#include <EEPROM.h>
#include <SPI.h>
#include <RH_RF69.h>
#include "cmdproc.h"
#include "radio.h"
// EEPROM address of node id
#define EE_ADDR_ID 0
// Singleton instance of the radio driver
static RH_RF69 rf69;
static uint8_t id_read(void)
{
return EEPROM.read(EE_ADDR_ID);
}
static void i... | Add reading/setting of the radio node id | Add reading/setting of the radio node id
| Arduino | mit | bertrik/rflink,bertrik/rflink |
ffdd967d3ec685557aec4c1ce1a4ff31ac160906 | examples/Modules/GSM_M6315/GSM_M6315.ino | examples/Modules/GSM_M6315/GSM_M6315.ino | /*
Description: Send AT command to get current signal quality.
*/
#include <M5Stack.h>
void IotWriteCommand(char cmd[],char date[]){
char buf[256] = {0};
if(cmd == NULL)
sprintf(buf,"AT\r\n");
else if(date == NULL)
sprintf(buf,"AT+%s\r\n",cmd);
else
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
Serial2... | /*
Description: Send AT command to get current signal quality.
*/
#include <M5Stack.h>
void IotWriteCommand(char cmd[],char date[]){
char buf[256] = {0};
if(cmd == NULL)
sprintf(buf,"AT\r\n");
else if(date == NULL)
sprintf(buf,"AT+%s\r\n",cmd);
else
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
Serial2... | Update GSM_M6315.ino | Update GSM_M6315.ino | Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
528d68c416e6e565323bb1ef1e832646418cabdc | examples/PubNubJson/PubNubJson.ino | examples/PubNubJson/PubNubJson.ino | /*
PubNub sample JSON-parsing client
This sample client will properly parse JSON-encoded PubNub subscription
replies using the aJson library. It will send a simple message, then
properly parsing and inspecting a subscription message received back.
This is achieved by integration with the aJson library. You ... | /*
PubNub sample JSON-parsing client
This sample client will properly parse JSON-encoded PubNub subscription
replies using the aJson library. It will send a simple message, then
properly parsing and inspecting a subscription message received back.
This is achieved by integration with the aJson library. You ... | Mark some of the variables as static const | examples/PubNubJson: Mark some of the variables as static const
| Arduino | mit | pubnub/sparkCore |
05671a7efe5f72dd2e5e56c7dc5cf3f76589e251 | firmware/examples/enroll/enroll.ino | firmware/examples/enroll/enroll.ino | /***************************************************
This is an example sketch for our optical Fingerprint sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> http://www.adafruit.com/products/751
These displays use TTL Serial to communicate, 2 pins are required to
interface
Ada... | /***************************************************
This is an example sketch for our optical Fingerprint sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> http://www.adafruit.com/products/751
These displays use TTL Serial to communicate, 2 pins are required to
interface
Ada... | Update enroll.ino | Update enroll.ino
Fix for SPARK compiler directive | Arduino | bsd-3-clause | pkourany/Adafruit_Fingerprint_Library |
334dc98af41fbe1aaa4e8f8da364843ed95c61cd | src/arduino/thermocoupleReader/thermocoupleReader.ino | src/arduino/thermocoupleReader/thermocoupleReader.ino | /**
* Medida de Temperatura usando LM35 e Termopar MTK-01
*
* @authors Rafael, Camila, Pamella
* @version 0.9 'Filtros Implementados'
*/
// Bibliotecas ---------------------------------------------------------------------------------
#include <math.h>
// Constantes ----------------------------------------------... | /**
* Medida de Temperatura usando LM35 e Termopar MTK-01
*
* @authors Rafael, Camila, Pamella
* @version 0.9 'Filtros Implementados'
*/
// Bibliotecas ---------------------------------------------------------------------------------
#include <math.h>
// Constantes ----------------------------------------------... | Update thermocoupleReader.ino | Update thermocoupleReader.ino | Arduino | mit | akafael/sismed_termopar |
af7b5e5de812d365e968ea5214ccfe367d8f24cb | NRF24L01/Remote/NRF24L01-Remote.ino | NRF24L01/Remote/NRF24L01-Remote.ino | /* Wrench Mask Remote - NRF24L01 Version
*
* by Brandon C. Allen
*
* Hardware Used:
* Adafruit Feather M0 Proto
* https://www.adafruit.com/product/2772
* Eight Adafruit DotStar High Density 8x8 Grid - 64 RGB LED Pixel Matrices
* https://www.adafruit.com/product/3444
* NRF24L01 2.4GHz Transciever
* ... | /* Wrench Mask Remote - NRF24L01 Version
*
* by Brandon C. Allen
*
* Hardware Used:
* Adafruit Feather M0 Proto
* https://www.adafruit.com/product/2772
* Eight Adafruit DotStar High Density 8x8 Grid - 64 RGB LED Pixel Matrices
* https://www.adafruit.com/product/3444
* NRF24L01 2.4GHz Transciever
* ... | Create NRF24L01-Remote.ino | Create NRF24L01-Remote.ino | Arduino | mit | Arudinne/RGB-Wrench-Mask |
ae94e7a948018fb3eb4d0bffb3f4bc23158f6447 | examples/adc_sample/adc_sample.ino | examples/adc_sample/adc_sample.ino | /**
* Basic ADC reading example.
* - connects to ADC
* - reads value from channel
* - converts value to analog voltage
*/
#include <SPI.h>
#include <Mcp3208.h>
#define SPI_CS 2 // SPI slave select
#define ADC_VREF 3300 // 3.3V Vref
#define ADC_CLK 1600000 // SPI clock 1.6MHz
Mcp3208 adc(AD... | /**
* Basic ADC reading example.
* - connects to ADC
* - reads value from channel
* - converts value to analog voltage
*/
#include <SPI.h>
#include <Mcp3208.h>
#define SPI_CS 2 // SPI slave select
#define ADC_VREF 3300 // 3.3V Vref
#define ADC_CLK 1600000 // SPI clock 1.6MHz
MCP3208 adc(AD... | fix adc example | fix adc example
| Arduino | mit | labfruits/mcp3208 |
5ccd0793da6d9689b0d3a9836e31f8ea05b506f4 | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | Update UbidotsSaveMultiValues.ino | Update UbidotsSaveMultiValues.ino | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
c18e00adcf97b325a30c7feae6d23177ba694d93 | examples/mbino-example-analogin/mbino-example-analogin.ino | examples/mbino-example-analogin/mbino-example-analogin.ino | #include "mbed.h"
AnalogIn ain(A0);
DigitalOut dout(LED1);
RawSerial pc(USBTX, USBRX);
void setup() {
}
void loop() {
// test the voltage on the initialized analog pin and if greater
// than 0.3 * VCC set the digital pin to a logic 1 otherwise a
// logic 0
if (ain > 0.3f) {
dout = 1;
} el... | #include "mbed.h"
AnalogIn ain(A0);
DigitalOut dout(LED1);
RawSerial pc(USBTX, USBRX);
void setup() {
}
void loop() {
// test the voltage on the initialized analog pin and if greater
// than 0.3 * VCC set the digital pin to a logic 1 otherwise a
// logic 0
if (ain > 0.3f) {
dout = 1;
} el... | Improve AnalogIn example. | Improve AnalogIn example.
| Arduino | apache-2.0 | tkem/mbino,tkem/mbino,tkem/mbino |
5e98c5e625075d62ae27956ab8dc3ea9dec4a29e | arduino-plantmoisture.ino | arduino-plantmoisture.ino | #include <SPI.h>
#include <MySensor.h>
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define N_ELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
#define CHILD_ID_MOISTURE 0
#define CHILD_ID_BATTERY 1
#define SLEEP_TIME 3600000 // Sleep time between reads (in milliseconds)
#define STABILIZATION_TIME 1000 ... | #include <SPI.h>
#include <MySensor.h>
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define N_ELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
#define CHILD_ID_MOISTURE 0
#define CHILD_ID_BATTERY 1
#define SLEEP_TIME 1800000 // Sleep time between reads (in milliseconds)
#define STABILIZATION_TIME 1000 ... | Add rolling average calculation for moistureLevel | Add rolling average calculation for moistureLevel
This gets rid of the "ripple" produced by different resistance in
the internal pull-up resistors. See
http://forum.mysensors.org/topic/2147/office-plant-monitoring/55
for more information.
| Arduino | bsd-2-clause | mfalkvidd/arduino-plantmoisture |
10195712da7582acd979841323cd7058361c39f7 | source/MSP430/ServoEvent/ServoEvent.ino | source/MSP430/ServoEvent/ServoEvent.ino | #include <Servo.h>
/*
Servo Event :
When new serial data arrives, the data is parsed and the servo is moved accordingly.
*/
// set pin numbers:
const int buttonPin = PUSH2; // the number of the pushbutton pin
const int ledPin = GREEN_LED; // the number of the LED pin
Servo myservo; // create servo o... | #include <Servo.h>
/*
Servo Event :
When new serial data arrives, the data is parsed and the servo is moved accordingly.
*/
// set pin numbers:
const int buttonPin = PUSH2; // the number of the pushbutton pin
const int ledPin = GREEN_LED; // the number of the LED pin
Servo myservo; // create servo o... | improve string to int function | improve string to int function
removed the stupid if else workarond, direct integer conversion
| Arduino | mit | rulonder/CymbalMonkey,rulonder/CymbalMonkey |
46bc0ab3689cc76da52e1920f789400e13381351 | ableton-midi-foot-controller.ino | ableton-midi-foot-controller.ino | #include "Button.h"
#include "base64/Base64.h"
//#define DEBUG_BUTTONS true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
// LEDs
const byte ledPin = 13;
const byte bpmLed = 17;
const byte ledPins[] = {10, 11, 12, 14, 15, 16};
const byte bankDownLed =... | #include "Button.h"
#include "base64/Base64.h"
//#define DEBUG_BUTTONS true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
// LEDs
const byte ledPin = 13;
const byte bpmLed = 17;
const byte ledPins[] = {10, 11, 12, 14, 15, 16};
const byte bankDownLed =... | Change start message | Change start message
| Arduino | apache-2.0 | LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller |
bb380e14fbf57bda868ec8b759585a100fe32951 | controller/controller.ino | controller/controller.ino | /*
Differential controller
Wiring:
pump_pin through 1K resistor to LED (simulates pump)
A0 to middle pin of tank thermometer
A1 to middle pin of collector thermometer
5V to left pin of both thermometers
Ground to right pin of both thermometers
Desirable features:
- Customizable target tank temperature
-... | /*
Differential controller
Wiring:
pump_pin through 1K resistor to LED (simulates pump)
A0 to middle pin of tank thermometer
A1 to middle pin of collector thermometer
5V to left pin of both thermometers
Ground to right pin of both thermometers
Desirable features:
- Customizable target tank temperature
-... | Adjust thresholds, remove broken timestamps | Adjust thresholds, remove broken timestamps
| Arduino | mit | wapcaplet/ardiff |
600e10fc0add859b3a8b5dd38b49949ef21a8064 | MqttLEDs/MqttLEDs.ino | MqttLEDs/MqttLEDs.ino | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | add support for cycle command | src: add support for cycle command
add command that allows you to cycle through a squence of colors
| Arduino | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
9cc29e3bf8694df752b68871d36ac8856228fb51 | interduino/src/sketch.ino | interduino/src/sketch.ino | // Interduino is the physical manifestation of cigtee - an arduino sketch designed to take serial commands to make stuff happen IRL
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}
int pinState[6];
void loop()
{
if(Serial.available()){
int ledState = Serial.read();
if(ledState == 65){
digitalWri... | // Interduino is the physical manifestation of cigtee - an arduino sketch designed to take serial commands to make stuff happen IRL
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}
int pinState[6];
void loop()
{
if(Serial.available()){
int ledState = Serial.read();
if(ledState == 65){
digitalWri... | Restructure control logic | Restructure control logic
| Arduino | agpl-3.0 | NegativeK/telehack,NegativeK/telehack |
f4bb13747d1aea1a01c2d7d8fc59cd70080e7b09 | mech/mech.ino | mech/mech.ino | // Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor
// Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold"
// Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot"
// Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear).
// Measured 2964 steps 360 degrees rev... | // Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor
// Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold"
// Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot"
// Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear).
// Measured 2964 steps 360 degrees rev... | Update mech.ino | Update mech.ino | Arduino | mit | dkaukov/ratu,dkaukov/ratu |
66e35ac8d9e736e007237364602075c9746d7f93 | examples/Boards_USB_Serial/Blue_Pill_STM32F103C8/Blue_Pill_STM32F103C8.ino | examples/Boards_USB_Serial/Blue_Pill_STM32F103C8/Blue_Pill_STM32F103C8.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 example | Update example
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
73d31d7031cb04fc0e0e22ddbc5dcc0284a81b2d | mouse_rat.ino | mouse_rat.ino | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM9DS0.h>
/* This driver uses the Adafruit unified sensor library (Adafruit_Sensor),
which provides a common 'type' for sensor data and some helper functions.
To use this driver you will also need to download the Adafruit_Sensor... | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM9DS0.h>
/* This driver uses the Adafruit unified sensor library (Adafruit_Sensor),
which provides a common 'type' for sensor data and some helper functions.
To use this driver you will also need to download the Adafruit_Sensor... | Fix array | Fix array
| Arduino | bsd-3-clause | dropofwill/mouse-rat |
ff568a88c9743bb7ab6e18d179176b236c580d42 | KSPboard.ino | KSPboard.ino | //////////////////////////////////////////
/// Justin Lee <justin at kitten dot pink>
//
// Arduino driver for the KSPboard game
// controller. See LICENSE and README
// for more information.
/////////////
/// libraries
//
#include <Wire.h>
////////////////////////////////////
/// pin configurations and constan... | //////////////////////////////////////////
/// Justin Lee <justin at kitten dot pink>
//
// Arduino driver for the KSPboard game
// controller. See LICENSE and README
// for more information.
/////////////
/// libraries
//
#include <Wire.h>
////////////////////////////////////
/// pin configurations and constan... | format fix | format fix
| Arduino | agpl-3.0 | justinnamilee/KSPboard,justinnamilee/KSPboard |
24aaf54492957ad28454b774f9af89a6bf99a63f | alarm.ino | alarm.ino | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define BUTTON_PULLUP true
#define BUTTON_INVERT true
#define BUTTON_DEBOUNCE 1
#define BUTTON_MARGIN 10
#d... | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define DEFAULT_TIME 1420070400UL // 1/1/2015 00:00:00 GMT
#define BUTTON_PULLUP true
#define BUTTON_INVERT... | Remove unused define | Remove unused define
| Arduino | mit | jtwalters/arduino-alarm,jtwalters/arduino-alarm,jtwalters/arduino-alarm |
2d6eb4deb8c10dd6ce8052723dffa8a240eb1b87 | otto/otto.ino | otto/otto.ino | #include <Servo.h>
#define DELAY 3
struct Joint
{
const unsigned int pin;
const unsigned int posMin;
const unsigned int posMiddle;
const unsigned int posMax;
const unsigned int distMinToMiddle;
const unsigned int distMaxToMiddle;
Servo servo;
unsigned int currentPos;
Joint(
... | #include <limits.h>
#include <Servo.h>
#define DELAY 2
struct Joint
{
enum Position
{
POS_MIN,
POS_MIDDLE,
POS_MAX
};
const int pin;
const int posMin;
const int posMiddle;
const int posMax;
Servo servo;
Joint(
const int pin,
const int ... | Rewrite to actually use the calibrated joint positions | Rewrite to actually use the calibrated joint positions
| Arduino | bsd-3-clause | mprochnow/arduino_sketchbook |
8bac1e7800e6bd4b9d7ada50604e8477110182b2 | ptw-wheel.ino | ptw-wheel.ino | #include <Adafruit_NeoPixel.h>
// Arduino Nano v2.x, v3.x
#define TOTAL_PIXELS 99 // 大人用バスケ(緑・シルバー・黄), 展示大人用テニス
// #define TOTAL_PIXELS 94 // 大人用バスケ(無塗装)
// #define TOTAL_PIXELS 72 // 子供用バスケ(黃)
// #define TOTAL_PIXELS 85 // 子供用スポーツ(青)
// common settings :::::::::
#define MAX_VAL 64 // 0 to 255 for brightness 多くのLED... | #include <Adafruit_NeoPixel.h>
// Arduino Nano v2.x, v3.x
#define TOTAL_PIXELS 99 // 大人用バスケ(緑・シルバー・黄), 展示大人用テニス
// #define TOTAL_PIXELS 94 // 大人用バスケ(無塗装)
// #define TOTAL_PIXELS 72 // 子供用バスケ(黃)
// #define TOTAL_PIXELS 85 // 子供用スポーツ(青)
// common settings :::::::::
#define MAX_VAL 64 // 0 to 255 for brightness 多くのLED... | use map function | use map function
| Arduino | mit | karappo/ptw-wheel |
9d48f2500a92edb6f4197353f13de4c5ae4dd363 | examples/BasicMQTT/BasicMQTT.ino | examples/BasicMQTT/BasicMQTT.ino | /*
* This example is meant to be used as a starting point
* for working with MQTT publish and subscribe
*
* 2017/02/07
* by Anto.io team
*
*/
#include <AntoIO.h>
const char *ssid = "your access point SSID";
const char *pass = "access point password";
const char *user = "your username";
const char *token = "you... | /*
* This example is meant to be used as a starting point
* for working with MQTT publish and subscribe
*
* 2017/02/07
* by Anto.io team
*
*/
#include <AntoIO.h>
const char *ssid = "your access point SSID";
const char *pass = "access point password";
const char *user = "your username";
const char *token = "you... | add onData() to BasicMQTT.ino | add onData() to BasicMQTT.ino
| Arduino | mit | AntoIOT/Arduino-Lib,AntoIOT/anto-esp8266-arduino,AntoIOT/anto-esp8266-arduino,AntoIOT/Arduino-Lib,AntoIOT/AntoIO,AntoIOT/AntoIO |
98da92e60d0a05126d9680c9ef829fa00ec6c9e0 | examples/StockPlus/StockPlus.ino | examples/StockPlus/StockPlus.ino | // StockPlus: A Sunday afternoon's worth of work duplicating the stock G-35
// controller programs, plus a couple extra thrown in for fun. Some are
// intentionally done a little differently from the originals because I thought
// they looked better.
//
// By Mike Tsao <http://github.com/sowbug>
//
// See http://www.yo... | // StockPlus: A Sunday afternoon's worth of work duplicating the stock G-35
// controller programs, plus a couple extra thrown in for fun. Some are
// intentionally done a little differently from the originals because I thought
// they looked better.
//
// By Mike Tsao <http://github.com/sowbug>
//
// See http://www.yo... | Add Cylon, fix Pulse (which wasn't put into program set). | Add Cylon, fix Pulse (which wasn't put into program set).
| Arduino | bsd-2-clause | sowbug/G35Arduino |
24cbd6352bc998832b11ef658bd826f0b0192702 | examples/TB6612FNG/TB6612FNG.ino | examples/TB6612FNG/TB6612FNG.ino | // This example was cuccessfully tested on an Sparkfun Pro Micro in 8MHz version
// It also works on a Pro Mini, but only, if you don't change the PWM frequency
//
// =======================================================================================================
// INCLUDE LIRBARIES
// ========================... | Update TB6612FNG.ino | Update TB6612FNG.ino | Arduino | mit | TheDIYGuy999/TB6612FNG | |
b426aba468605d3802b50aec77e0b902f514cb5c | firmware/examples/basic-cwop.ino | firmware/examples/basic-cwop.ino | #include "cwop-particle.h"
#define CWOP_ID "FWxxxx"
#define CWOP_LAT_DEG 00
#define CWOP_LAT_MIN 00.00
#define CWOP_LAT_HEMISPHERE 'N'
#define CWOP_LON_DEG 000
#define CWOP_LON_MIN 00.00
#define CWOP_LON_HEMISPHERE 'W'
TCPClient cwopclient;
volatile bool cwopSend;
Timer tCWOPSend(1000 * 60 * 5, cbCWOPSend); // five ... | #include "cwop-particle.h"
#define CWOP_ID "FWxxxx"
#define CWOP_LAT_DEG 00
#define CWOP_LAT_MIN 00.00
#define CWOP_LAT_HEMISPHERE 'N'
#define CWOP_LON_DEG 000
#define CWOP_LON_MIN 00.00
#define CWOP_LON_HEMISPHERE 'W'
TCPClient cwopclient;
volatile bool cwopSend;
Timer tCWOPSend(1000 * 60 * 5, cbCWOPSend); // five ... | Correct unclosed comment | Correct unclosed comment
| Arduino | cc0-1.0 | legoadk/cwop-particle |
b25909c715df6eafc082e173e33fd4557d8a17b8 | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 37... | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 37... | Fix crashes if the deadline >= millis() | Fix crashes if the deadline >= millis()
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
4d1997dfc580e4f983febbde9ed45f7469f4cb0e | automatic_water_control_rev1/automatic_water_control_rev1.ino | automatic_water_control_rev1/automatic_water_control_rev1.ino | /*
Automatic Water Control System
========= ===== ======= ======
rev v.1
#test program for water pump system
#turns on the pump when the input is high
#connects the input from the sensor to pin
#output from pin
#the output is connected to the relay drivring circuit
#the input value is sent serially for monitoring
*... | /*
Automatic Water Control System
========= ===== ======= ======
rev v.1
#test program for water pump system
#turns on the pump when the input is high
#connects the input from the sensor to pin
#output from pin
#the output is connected to the relay drivring circuit
#the input value is sent serially for monitoring
*... | Update automatic_water_control_rev1.ino | Update automatic_water_control_rev1.ino | Arduino | mit | rpihomeautomation/rpihomeautomation,rpihomeautomation/rpihomeautomation |
77ca62b1511039db9a35544fdb9b7c3c2ec776b1 | firmware/firmware.ino | firmware/firmware.ino | #include "ReadingSync.h"
#include "RgbLedControl.h"
#include "HttpClient.h"
#include "SimpleEeprom.h"
#include "idDHT22.h"
#include "TGS2602.h"
#include "MQ131.h"
#include "ShinyeiPPD42NS.h"
#include "function_pulseIn.h"
#define INTERVAL_MINS 10
#define PRE_HEAT_SECS 100
#define CALIBRATION_SAMPLE_FREQUENCY 50
#define... | #include "ReadingSync.h"
#include "RgbLedControl.h"
#include "HttpClient.h"
#include "SimpleEeprom.h"
#include "idDHT22.h"
#include "TGS2602.h"
#include "MQ131.h"
#include "ShinyeiPPD42NS.h"
#include "function_pulseIn.h"
#define INTERVAL_MINS 10
#define PRE_HEAT_SECS 100
#define CALIBRATION_SAMPLE_FREQUENCY 50
#define... | Move sampling variables into a struct | Move sampling variables into a struct
| Arduino | mit | Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard,Rockvole/indoor-air-quality-dashboard |
7662a945fe24cc038c44c9e5a502264762c17c5a | riptide_serial/firmware/thruster_control_sketch/thruster_control_sketch.ino | riptide_serial/firmware/thruster_control_sketch/thruster_control_sketch.ino | #include <ros.h>
ros::NodeHandle nh;
std_msgs::Float64 state;
void callback(const std_msgs::Float64 cmd);
{
}
ros::Publisher state_pub("state", &state);
ros::Subscriber<std_msgs::Float64> cmd_sub("command", &callback);
void setup()
{
nh.initNode();
nh.advertise(state_pub);
}
void loop()
{
nh.spinOnce();
... | #include <Wire.h>
#include <ros.h>
#include <std_msgs/Int8.h>
ros::NodeHandle nh;
std_msgs::Int8 state;
ros::Publisher state_pub("state", &state);
void callback(const std_msgs::Int8 &cmd)
{
state.data = 0;
state_pub.publish(&state);
Wire.beginTransmission(3);
Wire.write(0x10);
Wire.write(0x10);
Wire.w... | Add i2c to thruster control sketch. | Add i2c to thruster control sketch.
| Arduino | bsd-2-clause | tsender/riptide_software,osu-uwrt/riptide-ros,tsender/riptide_software,osu-uwrt/riptide-ros,JustBenj/riptide_software,dmae1600/riptide-ros,JustBenj/riptide_software,dmae1600/riptide-ros,dmae1600/riptide-ros,tsender/riptide_software,JustBenj/riptide_software,dmae1600/riptide-ros,JustBenj/riptide_software,tsender/riptide... |
fbd2abb1bba686a7dd8a4daaa621255990d9528f | Vertex/Vertex.ino | Vertex/Vertex.ino | #include <Servo.h>
#include <Wire.h>
#include <PID_v1.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <Adafruit_10DOF.h>
#include "Config.h"
Servo ESC1;
Servo ESC2;
Servo ESC3;
Servo ESC4;
/*
Motor setup
4 1
\ /
\___... | #include <Servo.h>
#include <Wire.h>
#include <PID_v1.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <Adafruit_10DOF.h>
#include "Config.h"
Servo ESC1;
Servo ESC2;
Servo ESC3;
Servo ESC4;
/*
Motor setup
4 1
\ /
\___... | Simplify fatalError() | Simplify fatalError()
| Arduino | mit | petschekr/Vertex,petschekr/Vertex |
8a4a2b590211ce22ff258104499722ec901a200f | src/esp8266_thingspeak_homeautomation/esp8266_thingspeak_homeautomation.ino | src/esp8266_thingspeak_homeautomation/esp8266_thingspeak_homeautomation.ino | #include <ESP8266WiFi.h>
#include "thingspeak_custom.h"
#define COMP 1
#define HOME 0
#define DEBUG_SERIAL 1
#define D0 16 // GPIO16
#define D1 5 // GPIO5
#define D2 4 // GPIO4
#define D3 0 // GPIO0
#define D4 2 // GPIO2
#define D5 14 // GPIO14
#define D6 12 // GPIO1... | #include <ESP8266WiFi.h>
#include "thingspeak_custom.h"
#define COMP 1
#define HOME 0
#define DEBUG_SERIAL 1
#define D0 16 // GPIO16
#define D1 5 // GPIO5
#define D2 4 // GPIO4
#define D3 0 // GPIO0
#define D4 2 // GPIO2
#define D5 14 // GPIO14
#define D6 12 // GPIO1... | Complete demo of controlling LED via web-based service. | Complete demo of controlling LED via web-based service.
| Arduino | unlicense | thanglenguyen/esp8266_thingspeak_homeautomation |
1ba996c4d0d5f256213f8c623353f1dc363c24f2 | examples/SONOFF/SONOFF.ino | examples/SONOFF/SONOFF.ino | #include <EEPROM.h>
#include "MqttConnection.h"
#include <ESP8266WebServer.h>
MqttConnection * myMqtt;
ESP8266WebServer server(80);
#define BOOT_MODE_CONFIG 1
#define BOOT_MODE_MQTT 2
#define BOOT_MODE_DEFAULT 3
#define RELAY_STATE_OFF '1'
#define RELAY_STATE_ON '2'
int bootMode = BOOT_MODE_DEFAULT;
bool sta... | #include "MqttConnection.h"
#include "ConfigServer.h"
#include <ESP8266WebServer.h>
MqttConnection * myMqtt;
ConfigServer * myConfigServer;
ESP8266WebServer server(80);
#define BOOT_MODE_CONFIG 1
#define BOOT_MODE_MQTT 2
#define BOOT_MODE_DEFAULT 3
#define RELAY_STATE_OFF '1'
#define RELAY_STATE_ON '2'
int ... | refactor to use the configserver class | refactor to use the configserver class
| Arduino | bsd-3-clause | scentelles/iot,scentelles/iot,scentelles/iot |
7e80b8c698685ecb77049348a3204710c401a825 | RobotAnimations/RobotAnimations.ino | RobotAnimations/RobotAnimations.ino | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <Adafruit_CircuitPlayground.h>
#include "stlhelper.h"
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "LatchButton.h"
#include "PeriodicDebug.h"
#include "ServoController.h"
#include "ShiftSharedLedButtonArray.h"
#inc... | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <Adafruit_CircuitPlayground.h>
#include "stlhelper.h"
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "LatchButton.h"
#include "PeriodicDebug.h"
#include "ServoController.h"
#include "ShiftSharedLedButtonArray.h"
#inc... | adjust idle timeout | adjust idle timeout
| Arduino | mit | AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering |
f6334f5b4ae6e3ebdaf545125efbf71fbb83aa32 | src/drivefw/drivefw.ino | src/drivefw/drivefw.ino | #define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
void setup()
{
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIVE_CONTROL_PIN, INPUT_PULLUP);
pinMode(REVERSE_ENGAGE_PIN, OUTPUT);
pinMode(REVERSE_CONTROL_PIN, INPUT_PULLUP);
delay(5000); //Make sur... | #define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
#define LIGHTS_CONTROL_PIN 9
#define LIGHTS_ENABLE_PIN 10
void setup()
{
pinMode(LIGHTS_ENABLE_PIN, OUTPUT);
pinMode(LIGHTS_CONTROL_PIN, INPUT_PULLUP);
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIV... | Update drivefw.ino | Update drivefw.ino
Add light control | Arduino | mit | blakewford/wifiRC,blakewford/wifiRC,blakewford/wifiRC |
dba19360abbcbb0d6d74ccb4365628e3e16a3148 | Arduino/RobotClient/RobotClient.ino | Arduino/RobotClient/RobotClient.ino | #include "CarController.h"
#include "Wire.h"
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_MS_PWMServoDriver.h"
CarController carController(4, 1, 3, 2);
int loopCounter;
//boolean readyForNewCommand;
void setup() {
// put your setup code here, to run once:
Serial.begin(57600);
Serial1.begin(576... | #include "CarController.h"
#include "Wire.h"
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_MS_PWMServoDriver.h"
CarController carController(4, 1, 3, 2);
int loopCounter;
//boolean readyForNewCommand;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(5760... | update code of Arduino for testing Bleapp | update code of Arduino for testing Bleapp
| Arduino | mit | giomurru/ble-framework,giomurru/ble-framework,giomurru/ble-framework,giomurru/ble-framework,giomurru/ble-framework |
4b7230846a1d6fb89ce8ab9747dbb47a6ea855f4 | examples/ESP8266-OTA/ESP8266-OTA.ino | examples/ESP8266-OTA/ESP8266-OTA.ino | /*
* Test/demonstration of over-the-air update of an ESP8266 using MQTT.
*
* This sketch connects to an MQTT broker and subscribes to a specific topic
* to receive OTA updates on.
* Send the message using the mosquitto tool:
$ mosquitto_pub -h 192.168.1.1 -t 'ota/192.168.1.13' -f /tmp/build*.tmp/sensor-node.cpp.b... | /*
* Test/demonstration of over-the-air update of an ESP8266 using MQTT.
*
* This sketch connects to an MQTT broker and subscribes to a specific topic
* to receive OTA updates on.
* Send the message using the mosquitto tool:
$ mosquitto_pub -h 192.168.1.1 -t 'ota/192.168.1.13' -r -f /tmp/build*.tmp/sensor-node.cp... | Set the retain flag when pushing an OTA update | Set the retain flag when pushing an OTA update
Sometimes when it fails it will reboot, and this allows the update to be retried.
If it doesn't reboot, we're stuck :(
| Arduino | mit | vshymanskyy/pubsubclient,Protoneer/pubsubclient,doebi/pubsubclient,vshymanskyy/pubsubclient,Protoneer/pubsubclient,koltegirish/pubsubclient,liquiddandruff/pubsubclient,Imroy/pubsubclient,Imroy/pubsubclient,doebi/pubsubclient,hemantsangwan/Arduino-PubSubClient,hemantsangwan/Arduino-PubSubClient,liquiddandruff/pubsubclie... |
611fa55f105c3388d13668fed7541b6ef9c3e9b8 | examples/SmartMatrix/SmartMatrix.ino | examples/SmartMatrix/SmartMatrix.ino | /* This example demos a rectangular LED matrix with moving noise.
It requires the SmartMatrix library in addition to FastLED. This is only available on Teensyy boards at the moment.
*/
#include <SmartMatrix.h>
#include <FastLED.h>
#define kMatrixWidth 32
#define kMatrixHeight 32
const bool kMatrixSerpentineLay... | /* This example demos a rectangular LED matrix with moving noise.
It requires the SmartMatrix library in addition to FastLED.
This SmartMatrix library is only available on Teensy boards at the moment.
It can be found at https://github.com/pixelmatix/SmartMatrix
*/
#include <SmartMatrix.h>
#include <FastLED.h... | Update SmartMatrix.ino | Update SmartMatrix.ino | Arduino | mit | FastLED/FastLED,FastLED/FastLED,FastLED/FastLED,FastLED/FastLED |
7f23c4615da796ef010faf4df1d4439580e5010f | examples/hdc1010demo/hdc1010demo.ino | examples/hdc1010demo/hdc1010demo.ino | /**************************************************************************************
This is example for ClosedCube HDC1010 Humidity and Temperature Sensor breakout booard
Initial Date: 20-Oct-2016
Hardware connections for Arduino Uno:
VDD to 3.3V DC
SCL to A5
SDA to A4
GND to common ground
Written by AA for Clo... | /**************************************************************************************
This is example for ClosedCube HDC1010 Humidity and Temperature Sensor breakout booard
Initial Date: 20-Oct-2016
Hardware connections for Arduino Uno:
VDD to 3.3V DC
SCL to A5
SDA to A4
GND to common ground
Written by AA for Clo... | Update hdc1010demo.ino | Update hdc1010demo.ino | Arduino | mit | closedcube/ClosedCube_HDC1010_Arduino |
5ce7d656a848c33b633361d8102bd48112e0a387 | Micro_Temp/Micro_Temp.ino | Micro_Temp/Micro_Temp.ino | //----------------------------------------------------------------------------------------------------------------
// Micro_Temp.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers will require extensive tweaking.
//
// Handles deep sleep, waking, reading temp & humidity via DHT22, and send... | //----------------------------------------------------------------------------------------------------------------
// Micro_Temp.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers will require extensive tweaking.
//
// Handles deep sleep, waking, reading temp & humidity via DHT22, and send... | Enable deep sleep | Enable deep sleep
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
d91dc87f427c66921ef0b08f9c52e337ec48f3bc | CAA-NMC-2019/Code/strandtest_attiny/strandtest_attiny.ino | CAA-NMC-2019/Code/strandtest_attiny/strandtest_attiny.ino | /*
* This is a modified version of the "strandtest" sketch from the Adafruit
* Neopixel library, for use in the BADGECULTURE project. To run this demo
* as intended, you need:
* Arduino IDE (with neopixel library installed: https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-installation)
* ... | /*
* This is a modified version of the "strandtest" sketch from the Adafruit
* Neopixel library, for use in the BADGECULTURE project. To run this demo
* as intended, you need:
* Arduino IDE (with neopixel library installed: https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-installation)
* ... | Update strandtest_attiny.ino | Update strandtest_attiny.ino
| Arduino | mit | TaylorHokanson/CAAint |
569e63738ed355022f58df1cb01c28797de78828 | eliot-demo-gr1/eliot_gr1/examples/eliot_gr1/eliot_gr1.ino | eliot-demo-gr1/eliot_gr1/examples/eliot_gr1/eliot_gr1.ino | /*
Main program used to connect a sensor to eliot using GR-1 extension
*/
#include <TheAirBoard.h>
// Supported sensors: uncomment the one you want to use
//#define TEMP 0x01 // Temperature & humidity grove sensor
#define BAROMETER 0x02 // Barometer grove sensor
//#define WATER 0x03 // Water level ... | /*
Main program used to connect a sensor to eliot using GR-1 extension
*/
#include <TheAirBoard.h>
// Supported sensors: uncomment the one you want to use
//#define TEMP 0x01 // Temperature & humidity grove sensor
#define BAROMETER 0x02 // Barometer grove sensor
//#define WATER 0x03 // Water level ... | Update eliot_gr1.ino | Update eliot_gr1.ino | Arduino | mit | fieldcloud/eliot-demo-gr1 |
25543a2d66e38f4041c275b71069a2a2e44007c0 | ws_bm_rtc.ino | ws_bm_rtc.ino | #include <Wire.h>
#include <avr/power.h>
#include "Adafruit_INA219.h"
#include "RTClib.h"
RTC_DS1307 rtc;
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x44);
/* 16Mhz */
#define ws_baud 57600
#define ws_one_second 1000
#define ws_short_delay 200
/* 8Mhz */
//#define ws_baud 115200
//#define ws_one_second 500
/... | #include <Wire.h>
#include <avr/power.h>
#include "Adafruit_INA219.h"
#include "RTClib.h"
RTC_DS1307 rtc;
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x44);
/* 16Mhz */
#define ws_baud 57600
#define ws_one_second 1000
#define ws_short_delay 200
/* 8Mhz */
//#define ws_baud 115200
//#define ws_one_second 500
/... | add temp sensor, and xbee wakeup | add temp sensor, and xbee wakeup
Signed-off-by: Robert Nelson <d6c41255011d14bfa93d8562b946ca186cfa0c7b@gmail.com>
| Arduino | mit | eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/ws_bm_rtc |
69c451330e43d6903a8f08687464a8e9d3c4a41b | status.ino | status.ino | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
SparkButton strip = SparkButton();
int current[12];
int desired[12];
void setup() {
strip.begin();
strip.allLedsOff();
for(int i=0; i<12; i++) {
current[i] = OFF;
desired[i] = OFF;
}
Spark.funct... | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
#define BLUE 4
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;
}
... | support for blue | support for blue
| Arduino | mit | heroku/sparoku-status,heroku/sparoku-status |
448492285a0e692385fe5eb581506aef9552ee3c | frontdesk/frontdesk.ino | frontdesk/frontdesk.ino | #include <SoftwareSerial.h>
#include <LPD8806.h>
#include "RFID.h"
#define FRONTDESK
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
int j = 0;
// nLEDs, dataPin, clockPin
LPD8806 LED = LPD8806(4, dataPin, clockPin);
int pollCounter, scannedID = 0;
unsigned char readData[bufferSize];
v... | #include <SoftwareSerial.h>
#include <LPD8806.h>
#include "RFID.h"
#define FRONTDESK
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
int j = 0;
// nLEDs, dataPin, clockPin
LPD8806 LED = LPD8806(4, dataPin, clockPin);
int pollCounter, scannedID = 0;
unsigned char readData[bufferSize];
v... | Clean up | Clean up
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
095b8eeae9c92fd20ecf4d49aa5b969d82039d56 | Lifter/Lifter.ino | Lifter/Lifter.ino | #include <AccelStepper.h>
#include <Servo.h>
// #defines are macros for faster pin access than built-in digitalWrite().
// *http://masteringarduino.blogspot.com/2013/10/fastest-and-smallest-digitalread-and.html
#define portOfPin(P)\
(((P)>=0&&(P)<8)?&PORTD:(((P)>7&&(P)<14)?&PORTB:&PORTC))
#define ddrOfPin(P)\
((... | #include <AccelStepper.h>
#include <Servo.h>
// #defines are macros for faster pin access than built-in digitalWrite().
// *http://masteringarduino.blogspot.com/2013/10/fastest-and-smallest-digitalread-and.html
#define portOfPin(P)\
(((P)>=0&&(P)<8)?&PORTD:(((P)>7&&(P)<14)?&PORTB:&PORTC))
#define ddrOfPin(P)\
((... | make holdms on servo a constant, lowered it to 800 from 900 | make holdms on servo a constant, lowered it to 800 from 900
| Arduino | mit | JoeSuber/CardLifter |
464eeb293905bb406fc496020aacc264049e018f | testing/arduino/self-driving-v4.ino | testing/arduino/self-driving-v4.ino | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
// defines pins numbers
const uint8_t trigPin = 9;
const uint8_t echoPin = 10;
const uint8_t ledPin = 11;
const bool ledBatterySaving = true;
Adafruit_NeoPixel LEDStrip = Adafruit_NeoPixel(26, ledPin, NEO_GRB + NEO_KHZ800);
const uint8_t motorPi... | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
// defines pins numbers
const uint8_t trigPin = 9;
const uint8_t echoPin = 10;
const uint8_t ledPin = 11;
const bool ledBatterySaving = true;
Adafruit_NeoPixel LEDStrip = Adafruit_NeoPixel(26, ledPin, NEO_GRB + NEO_KHZ800);
const uint8_t motorPi... | split out function for better reading | split out function for better reading
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
295b1c9fb41baa4a6552226166b7e58a4cf66930 | examples/RF12/RF12tune/RF12tune.ino | examples/RF12/RF12tune/RF12tune.ino | /// @dir RF12tune
/// Import RF12Demo eeprom string and save to eeprom
/// typically used with a Jeenode Micro to store a configuration
/// this sketch then enters a frequency scanning mode to find the
/// centre of frequency offset from its partner ack'ing Jeenode.
/// 2013-09-13 <john<AT>o-hare<DOT>net> http://opens... | /// @dir RF12tune
/// Import RF12Demo eeprom string and save to eeprom
/// typically used with a Jeenode Micro to store a configuration
/// this sketch then enters a frequency scanning mode to find the
/// centre of frequency offset from its partner ack'ing Jeenode.
/// 2013-09-13 <john<AT>o-hare<DOT>net> http://opens... | Correct bug when nobody is acking, loop instead | Correct bug when nobody is acking, loop instead
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
4f06d9196109f3ccc7f7cc9fad4c072b68e5b64d | software/Arduino/ServoController/ServoController.ino | software/Arduino/ServoController/ServoController.ino | /***********************************************************************
* Description: Counteracts a change in angle by reading a gyro sensor *
* and rotating a stepper motor. Accepts correction factors via serial *
* at 115200 baud. *
* Project: Eclipse Tracking... | /***********************************************************************
* Description: Counteracts a change in angle by reading a gyro sensor *
* and rotating a stepper motor. Accepts correction factors via serial *
* at 115200 baud. *
* Project: Eclipse Tracking... | Set Speed of stepper motor in RPM. | Set Speed of stepper motor in RPM.
This could be the cause of the stepper motor problems we were having yesterday. I will test the motor to find out. | Arduino | mit | AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking |
1be1de022b88c9dcf4b65911196697a8ababa459 | examples/AstronomyDemo/AstronomyDemo.ino | examples/AstronomyDemo/AstronomyDemo.ino | /**The MIT License (MIT)
Copyright (c) 2018 by ThingPulse
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,... | /**The MIT License (MIT)
Copyright (c) 2018 by ThingPulse
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,... | Add Arduino.h header file to fix build issues | Add Arduino.h header file to fix build issues
| Arduino | mit | squix78/esp8266-weather-station |
19c167fb117fe12d99490f4fbc5263deb776026f | examples/PatternPlayer/PatternPlayer.ino | examples/PatternPlayer/PatternPlayer.ino | #include <FastSPI_LED2.h>
#include <avr/pgmspace.h>
#include <Animation.h>
#include "pov.h"
#define LED_COUNT 60
struct CRGB leds[LED_COUNT];
#ifdef REVB // RevB boards have a slightly different pinout.
#define LED_OUT 5
#define BUTTON_IN 13
#define ANALOG_INPUT A11
#define IO_A 15
#else
#define LE... | #include <FastSPI_LED2.h>
#include <avr/pgmspace.h>
#include <Animation.h>
#include "pov.h"
#define LED_COUNT 60
struct CRGB leds[LED_COUNT];
#ifdef REVB // RevB boards have a slightly different pinout.
#define LED_OUT 5
#define BUTTON_IN 13
#define ANALOG_INPUT A11
#define IO_A 15
#else
#define LE... | Use defined LED_OUT pin in PatternPlayer | Use defined LED_OUT pin in PatternPlayer
| Arduino | mit | Blinkinlabs/BlinkyTape_Arduino |
4909ad98bf2d269bc07dde0f0d6adc60d9bc7815 | client/client.ino | client/client.ino | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | handle hex id | handle hex id
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
9df9e381616e91a3cf895b7806e887bf786b49be | ArduCAM/examples/Shield_V2/ArduCAM_Shield_V2_Capture2SD/ArduCAM_Shield_V2_Capture2SD.ino | ArduCAM/examples/Shield_V2/ArduCAM_Shield_V2_Capture2SD/ArduCAM_Shield_V2_Capture2SD.ino | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules, and can run on any Arduino platform.
//
// This demo was made for ARDUCAM_SHIELD_REVC.
// It will run the ArduCAM ESP8266 2MP/3MP/5MP as a real 2MP/... | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules, and can run on any Arduino platform.
//
// This demo was made for ARDUCAM_SHIELD_REVC.
// It will run the ArduCAM ESP8266 2MP/3MP/5MP as a real 2MP/... | Update ArduCAM_Shield_V2_Capture2SD.ino | Update ArduCAM_Shield_V2_Capture2SD.ino | Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino |
7be35ee4e30a556e4a912700a38536a3fd8b4845 | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | #include <IRremote.h>
#include <Wire.h>
/*
Standalone Sketch to use with a Arduino UNO and a
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ... | #include <IRremote.h>
#include <Wire.h>
/*
Standalone Sketch to use with a Arduino UNO and a
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ... | Update _04-mqtt-lcd-dust-sensor-nano.ino | Update _04-mqtt-lcd-dust-sensor-nano.ino | Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
0037f4bd0c5823c917c8b0ba6fc32b164084bf47 | spark-as-client/spark-as-client.ino | spark-as-client/spark-as-client.ino | TCPClient client;
byte server[] = { 74, 125, 224, 72 }; // Google
void setup()
{
pinMode(D7, OUTPUT); // output means information out of the spark device
// Make sure your Serial Terminal app is closed before powering your Core
// Serial.begin(9600);
// Now open your Serial Terminal, and hit any key to c... | TCPClient client;
byte server[] = { 74, 125, 224, 72 }; // Google
// found somewhere IPAddress server(192, 168, 1, 122); instead of the above line
void setup()
{
pinMode(D7, OUTPUT); // output means information out of the spark device
// Make sure your Serial Terminal app is closed before powering your ... | Update spark-as-client.ino | Update spark-as-client.ino | Arduino | mit | hpssjellis/spark-core-socket-client-or-server |
14b270e1d267ae51277ed056a6f215a59a8efa69 | servometer/servometer.ino | servometer/servometer.ino | /*
Servometer - an analog meter display using Arduino and the Servo library
Recieves data over serial connection from a NodeJS application pulling data from APIs
@author Jacob Quatier
Additional Libraries: Adafruit Industries for example code and libraries for controlling LED displays
https://github.com/ad... | /*
Servometer - an analog meter display using Arduino and the Servo library
Recieves data over serial connection from a NodeJS application pulling data from APIs
@author Jacob Quatier
Additional Libraries: Adafruit Industries for example code and libraries for controlling LED displays
https://github.com/ad... | move the servo gradually | move the servo gradually | Arduino | mit | jquatier/servometer,jquatier/servometer |
f7019a5bdf116ad8b1afd1a429f350d2a2715588 | arduino/blinkytape_orb.ino | arduino/blinkytape_orb.ino | #include <EEPROM.h>
#include <FastLED.h>
#include "visuals.h"
#include "state.h"
// hardware
#define NUM_LEDS 12
#define LED_CORRECTION TypicalSMD5050
#define COLOR_TEMPERATURE OvercastSky
#define DATA_PIN 13
#define BUTTON_IN 10
#define ANALOG_INPUT A9
#define EXTRA_PIN_A 7
#define EXTRA_PIN_B 11
#define EEPROM_ST... | #include <EEPROM.h>
#include <FastLED.h>
#include "visuals.h"
#include "state.h"
// hardware
#define NUM_LEDS 12
#define LED_CORRECTION TypicalSMD5050
#define COLOR_TEMPERATURE OvercastSky
#define DATA_PIN 13
#define BUTTON_IN 10
#define ANALOG_INPUT A9
#define EXTRA_PIN_A 7
#define EXTRA_PIN_B 11
#define EEPROM_ST... | Select color once instead of once per LED | Select color once instead of once per LED
| Arduino | mit | jtai/blinkytape-orb,jtai/blinkytape-orb |
a09aa8730e1a610bdfcea1aa495d8b7e92411553 | Examples/KP_Password/KP_Password.ino | Examples/KP_Password/KP_Password.ino | #include <OnewireKeypad.h>
#include <Password.h>
char KEYS[] = {
'1', '2', '3', //'A',
'4', '5', '6', //'B',
'7', '8', '9', //'C',
'*', '0', '#', //'D'
};
OnewireKeypad <Print, 12 > KP(Serial, KEYS, 4, 3, A0, 4700, 1000, ExtremePrec );
Password password = Password( "1234" );
void setup () {
Serial.begin(11... | #include <OnewireKeypad.h>
#include <Password.h>
char KEYS[] = {
'1', '2', '3', //'A',
'4', '5', '6', //'B',
'7', '8', '9', //'C',
'*', '0', '#', //'D'
};
OnewireKeypad <Print, 12 > KP(Serial, KEYS, 4, 3, A0, 4700, 1000 );
Password password = Password( "1234" );
void setup () {
Serial.begin(115200);
KP.... | Update KP_Password.ino | Update KP_Password.ino
Removed Precision | Arduino | mit | AndrewMascolo/OnewireKeypad |
a6e6515176819308bf51ace907d1a09de938320c | example/Bluetooth_AT_Command/Bluetooth_AT_Command.ino | example/Bluetooth_AT_Command/Bluetooth_AT_Command.ino | /*
Sketch: Bluetooth AT Command
Function: This sketch is used to test SIM800's Bluetooth function,you can connect
your mobile phone with SIM800 module in SPP profile. then you can send AT command
to control SIM800' Bluetooth.
*********************************************************************************
note: the ... | /*
Sketch: Bluetooth AT Command
Function: This sketch is used to test SIM800's Bluetooth function,you can connect
your mobile phone with SIM800 module in SPP profile. then you can send AT command
to control SIM800' Bluetooth.
*********************************************************************************
note: the ... | Update Bluetooth_AT_Command.ino | Update Bluetooth_AT_Command.ino | Arduino | mit | Seeed-Studio/Seeeduino_GPRS |
393af2a396ba1e2c757eb35cff94856a3b99bd53 | HBridgePWM/Sabertooth/Sabertooth.ino | HBridgePWM/Sabertooth/Sabertooth.ino |
// Copyright (c) 2013 Nautilabs. All rights reserved.
// http://code.google.com/p/robokite/source/checkout
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See licen... |
// Copyright (c) 2013 Nautilabs. All rights reserved.
// http://code.google.com/p/robokite/source/checkout
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See licen... | Add a flush to avoid delay when relaunching server | Add a flush to avoid delay when relaunching server
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
0726187d4fcb808c2ace6e358f04b4a86180e7c9 | teensy/teensy.ino | teensy/teensy.ino | #define BUFLEN 16
#define PIN_TURNTABLE_SERVO 3
#define PIN_KCUP_LOADER 2
#define PIN_KCUP_EJECTOR 11
#define PIN_TRAY_PISTON 12
#define PIN_BREW_BUTTON 6
const int ERR_UNKNOWN = -1;
const int ERR_NYI = -2;
const int ERR_KCUP_UNKNOWN = -10;
const int ERR_KCUP_EMPTY = -11;
const int ERR_KCUP_TRAY_FULL = -12;
const in... | #define BUFLEN 16
#define PIN_TURNTABLE_SERVO 3
#define PIN_KCUP_LOADER 2
#define PIN_KCUP_EJECTOR 11
#define PIN_TRAY_PISTON 12
#define PIN_BREW_BUTTON 6
const int ERR_UNKNOWN = -1;
const int ERR_NYI = -2;
const int ERR_KCUP_UNKNOWN = -10;
const int ERR_KCUP_EMPTY = -11;
const int ERR_KCUP_TRAY_FULL = -12;
const in... | make it wooork | make it wooork
| Arduino | apache-2.0 | umbc-hackafe/htcpcp,umbc-hackafe/htcpcp,umbc-hackafe/htcpcp,umbc-hackafe/htcpcp |
cf93cc6fa1a2ccec1ab1a9060e0298b357cf0044 | ableton-midi-foot-controller.ino | ableton-midi-foot-controller.ino | #include "Button.h"
#include "base64/Base64.h"
//#define DEBUG_BUTTONS true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
// LEDs
const byte ledPin = 13;
const byte bpmLed = 17;
const byte ledPins[] = {10, 11, 12, 14, 15, 16};
const byte bankDownLed =... | #include "Button.h"
#include "base64/Base64.h"
//#define DEBUG_BUTTONS true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE = 251;
const byte STOP = 252;
// LEDs
const byte ledPin = 13;
const byte bpmLed = 17;
const byte ledPins[] = {10, 11, 12, 14, 15, 16};
const byte bankDownLed =... | Use constant array | Use constant array
| Arduino | apache-2.0 | LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac |
5a5ce76125ac14913f074b6147bd1295d61d32d6 | arduino/tank_control/tank_control.ino | arduino/tank_control/tank_control.ino | #include <Servo.h>
// Motors
#define E1 6 // M1 Speed Control
#define E2 5 // M2 Speed Control
#define M1 8 // M1 Direction Control
#define M2 7 // M2 Direction Control
// Servo
#define MIN_ANGLE 100
#define MAX_ANGLE 180
#define SERVO_MOVE_INCREMENT 5
#define SERVO_PIN 13
Servo servo;
int currentServoAngle = 100;
... | #include <Servo.h>
#include <FastLED.h>
FASTLED_USING_NAMESPACE
// Motors
#define E1 6 // M1 Speed Control
#define E2 5 // M2 Speed Control
#define M1 8 // M1 Direction Control
#define M2 7 // M2 Direction Control
// Servo
#define MIN_ANGLE 100
#define MAX_ANGLE 180
#define SERVO_MOVE_INCREMENT 5
#define SERVO_PIN 1... | Add blinky lights to the tank | Add blinky lights to the tank
| Arduino | apache-2.0 | crashlytics/18thScale,crashlytics/18thScale,crashlytics/18thScale |
01c503a7dfd422bb1fffbc62a027f4348758488c | examples/raw-feather/raw-feather.ino | examples/raw-feather/raw-feather.ino | /* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2
Copyright notice:
This file copyright (C) 2017, 2018 by
MCCI Corporation
3520 Krums Corners... | /* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2
Copyright notice:
This file copyright (C) 2017, 2018 by
MCCI Corporation
3520 Krums Corners... | Change to test of downlink channel 3 and DR4 | Change to test of downlink channel 3 and DR4
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
4f81538d62fc73fb3f7430fe3e683bbff4d7d5d2 | arduino/bridgehead/bridgehead.ino | arduino/bridgehead/bridgehead.ino | // fancontrol.ino
//
// Intentionally left simple and stupid so that all intelligent code can reside on the host side.
#include <SoftPWM.h>
// pins to which the fans are connected physically
// connector index 0 1 2 3 4 5 6 7
int PINS_PWM[] = {2, 6, 9, 4, A3, 15, 10, A1};
int PINS_PULSE[] = {3, 7, 8, 5,... | // fancontrol.ino
//
// Intentionally left simple and stupid so that all intelligent code can reside on the host side.
#include <SoftPWM.h>
// pins to which the fans are connected physically
// connector index 0 1 2 3 4 5 6 7
int PINS_PWM[] = {2, 6, 9, 4, A3, 15, 10, A1};
int PINS_PULSE[] = {3, 7, 8, 5,... | add more presets based on experimental results | add more presets based on experimental results
| Arduino | mit | Bengt/AL-FanControl,Bengt/AL-FanControl,Bengt/AL-FanControl |
a788455c8365c63b6202591cfacd02846d7ae6cc | attiny85/transmitter/transmitter.ino | attiny85/transmitter/transmitter.ino |
#include <util/delay.h>
#include <VirtualWire.h>
#define LED_DEBUG 4
#define PIN_TX 3
byte ledState = HIGH; // ledState used to set the LED
byte msgId = 0;
volatile byte wd_check = 0; // A number for the watchdog timerer to check
ISR(WDT_vect)
{
// Check that there have been about 4 seconds, sinc... |
#include <util/delay.h>
#include <avr/wdt.h>
#include <VirtualWire.h>
#define LED_DEBUG 4
#define PIN_TX 3
byte ledState = HIGH; // ledState used to set the LED
byte msgId = 0;
byte wd_check = 0;
long readVcc() {
// Read 1.1V reference against AVcc
// set the reference to Vcc and the measurement t... | Use wdt_reset(); every loop | Use wdt_reset(); every loop
| Arduino | mit | theapi/solar,theapi/solar,theapi/solar,theapi/solar,theapi/solar |
25de189d4ff94fe644ebb9e09ee9a5b8b8a09502 | Arduino/sketches/Relay/Relay.ino | Arduino/sketches/Relay/Relay.ino | #include <IRremote.h>
#include <LazerTagIr.h>
int RECEIVE_PIN = 11;
#define SERIAL_BUFFER_SIZE 64
char serialBuffer[SERIAL_BUFFER_SIZE];
int serialBufferPosition = 0;
LazerTagIrReceive lazerTagReceive(RECEIVE_PIN);
LazerTagIrSend lazerTagSend;
decode_results results;
void setup();
void loop();
void processSignature... | #include <IRremote.h>
#include <LazerTagIr.h>
int RECEIVE_PIN = 11;
#define SERIAL_BUFFER_SIZE 64
char serialBuffer[SERIAL_BUFFER_SIZE];
int serialBufferPosition = 0;
LazerTagIrReceive lazerTagReceive(RECEIVE_PIN);
LazerTagIrSend lazerTagSend;
decode_results results;
void setup();
void loop();
void processSignature... | Fix uninitialized variable | Fix uninitialized variable
| Arduino | mit | rmcardle/LazerTagHost,rmcardle/LazerTagHost |
663161c7b1e1512cb7f9d1445be8f087c2e47ace | firmware/examples/VCNL4010-tester.ino | firmware/examples/VCNL4010-tester.ino | // This #include statement was automatically added by the Particle IDE.
#include "application.h"
#include "vcnl4010.h"
vcnl4010 vcnl;
void setup() {
Serial.begin(9600);
Serial.println("VCNL4010 test");
if (! vcnl.begin()){
Serial.println("Sensor not found :(");
while (1);
}
Serial.println("Found VC... | // This #include statement was automatically added by the Particle IDE.
#include "application.h"
#include "ParticleVCNL4010/vcnl4010.h"
vcnl4010 vcnl;
void setup() {
Serial.begin(9600);
Serial.println("VCNL4010 test");
if (! vcnl.begin()){
Serial.println("Sensor not found :(");
while (1);
}
Serial.... | Update VCNL4010-tester.ino | Update VCNL4010-tester.ino | Arduino | bsd-3-clause | hl68fx/ParticleVCNL4010 |
7e5190e047ea5f2285ab5b950614d89923347da9 | examples/BasicNode/BasicNode.ino | examples/BasicNode/BasicNode.ino | #include <SPI.h>
#include <Ethernet.h>
#include <ArtNode.h>
#define VERSION_HI 0
#define VERSION_LO 1
////////////////////////////////////////////////////////////
ArtConfig config = {
.mac = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}, // MAC
.ip = {2, 3, 4, 5}, // IP
.mask = {255, 0, 0, 0},... | #include <SPI.h>
#include <Ethernet.h>
#include <ArtNode.h>
#define VERSION_HI 0
#define VERSION_LO 1
////////////////////////////////////////////////////////////
ArtConfig config = {
.mac = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}, // MAC
.ip = {2, 3, 4, 5}, // IP
.mask = {255, 0, 0, 0},... | Fix Ethernet.begin(). Closes #7 | Fix Ethernet.begin(). Closes #7 | Arduino | apache-2.0 | tobiasebsen/ArtNode,tobiasebsen/ArtNode |
fec98206f26e12966f6c4f2579520c84535d10fc | examples/basic-esp32/basic-esp32.ino | examples/basic-esp32/basic-esp32.ino | /*
This example defines three datapoints.
The first two are DPTemp type datapoints and have their own callback.
When no specific callback is attached to a datapoint, it uses the global callback.
Note the difference in return value between the callbacks:
for tempCallback uses value.getFloat() as DPTemp datapoints retu... | /*
This example defines three datapoints.
The first two are DPTemp type datapoints and have their own callback.
When no specific callback is attached to a datapoint, it uses the global callback.
Note the difference in return value between the callbacks:
for tempCallback uses value.getFloat() as DPTemp datapoints retu... | Update basic-esp32.ino | Update basic-esp32.ino
Serial1 doesn't need declaration anymore | Arduino | mit | bertmelis/VitoWifi,bertmelis/VitoWifi |
e77357b68e5cba11648627a11840f3685d86d749 | serial_com_test/arduinio/serial_blink_test/serial_blink_test.ino | serial_com_test/arduinio/serial_blink_test/serial_blink_test.ino | #define LEDPIN 13
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
if (Serial.available()) {
char key = Serial.read();
if (key == 'h') {
Serial.println("High");
digitalWrite(LEDPIN, HIGH);
} else if (key == 'l') {
Serial.println("Low");
digitalWrit... | #define LEDPIN 13
void setup() {
Serial.begin(9600);
pinMode(LEDPIN, OUTPUT);
}
void loop() {
if (Serial.available()) {
char key = Serial.read();
if (key == 'h') {
Serial.println("High");
digitalWrite(LEDPIN, HIGH);
} else if (key == 'l') {
Serial.println("Low");
digital... | Use LEDPIN | Use LEDPIN | Arduino | mit | zacharylawrence/ENEE408I-Team-9,zacharylawrence/ENEE408I-Team-9,zacharylawrence/ENEE408I-Team-9 |
166c56e1dab627f12fa5fd60b00439501020c82b | tests/loopback/EchoEsp8266_standalone/EchoEsp8266_standalone.ino | tests/loopback/EchoEsp8266_standalone/EchoEsp8266_standalone.ino | #include <ESP8266WiFi.h>
#define WLAN_SSID "ssid"
#define WLAN_PASS "pass"
IPAddress ip(192, 168, 0, 105);
uint16_t port = 8888;
void setup(void)
{
Serial.begin(115200);
delay(10);
Serial.print("\nConnecting to ");
Serial.println(WLAN_SSID);
WiFi.begin(WLAN_SSID, WLAN_PASS);
while (WiFi.sta... | #include <ESP8266WiFi.h>
#define WLAN_SSID "ssid"
#define WLAN_PASS "pass"
IPAddress ip(192, 168, 0, 105);
uint16_t port = 8888;
void setup(void)
{
Serial.begin(115200);
delay(10);
Serial.print("\nConnecting to ");
Serial.println(WLAN_SSID);
WiFi.begin(WLAN_SSID, WLAN_PASS);
while (WiFi.sta... | Make same as in library impl | Make same as in library impl
| Arduino | mit | CedricFinance/blynk-library,johan--/blynk-library,blynkkk/blynk-library,sstocker46/blynk-library,radut/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,CedricFinance/blynk-library,blynkkk/blynk-library,flashvnn/blynk-library,csicar/blynk-library,radut/blynk-library,al1271/blynk-library,sstocker46/blynk-lib... |
d3e173a33345a16034b393cd9c95ee307bc5d6e7 | Examples/KP_Password/KP_Password.ino | Examples/KP_Password/KP_Password.ino | #include <OnewireKeypad.h>
#include <Password.h>
char KEYS[] = {
'1', '2', '3', //'A',
'4', '5', '6', //'B',
'7', '8', '9', //'C',
'*', '0', '#', //'D'
};
OnewireKeypad <Print, 12 > KP(Serial, KEYS, 4, 3, A0, 4700, 1000 );
Password password = Password( "1234" );
void setup () {
Serial.begin(115200);
KP.... | // Creator: Andrew Mascolo
#include <OnewireKeypad.h>
#include <Password.h>
char KEYS[] = {
'1', '2', '3', //'A',
'4', '5', '6', //'B',
'7', '8', '9', //'C',
'*', '0', '#', //'D'
};
OnewireKeypad <Print, 12 > KP(Serial, KEYS, 4, 3, A0, 4700, 1000 );
Password password = Password( "1234" );
void setup () {
... | Update KP_Password.ino | Update KP_Password.ino | Arduino | mit | AndrewMascolo/OnewireKeypad |
234be3afcd411e0d79e1b34fb1d7c5bb4b2e06c3 | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | Update Firmware.ino | Update Firmware.ino | Arduino | bsd-3-clause | UCHIC/WaterMonitor |
3504644592125885b659e46b9fd24385b0f384dd | cauldron/cauldron.ino | cauldron/cauldron.ino | #include <TimerOne.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include "cauldron_core.h"
#include "cauldron.h"
void setup() {
#ifdef DEBUG
Serial.begin(SERIAL_BAUD);
printf_begin();
printf("TIMER1_INTERVAL: %u us\r\n", TIMER1_INTERVAL);
#endif
// Timer needs to be init... | #include <TimerOne.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include "cauldron_core.h"
#include "cauldron.h"
void setup() {
#ifdef DEBUG
Serial.begin(SERIAL_BAUD);
printf_begin();
printf("TIMER1_INTERVAL: %u us\r\n", TIMER1_INTERVAL);
#endif
// Timer needs to be init... | Make fire more realistic | Make fire more realistic
| Arduino | mit | oobayly/abm-glowworm,oobayly/abm-glowworm |
4864f74cc013137eb691fa77d1b3cd76bb5b19b1 | sketches/EnerginoPOE/EnerginoPOE.ino | sketches/EnerginoPOE/EnerginoPOE.ino | /*
* Energino
*
* Energino POE is a energy consumption meter for DC loads
*
* Circuit:
* Analog inputs attached to pins A2 (Current), A1 (Voltage)
* Digital output attached to pin D4 (Relay)
* Green led attached to pin D3
* Yellow led attached to pin D2
* Red led attached to pin D5
*
* Supported comman... | /*
* Energino
*
* Energino POE is a energy consumption meter for DC loads
*
* Circuit:
* Analog inputs attached to pins A2 (Current), A1 (Voltage)
* Digital output attached to pin D4 (Relay)
* Green led attached to pin D3
* Yellow led attached to pin D2
* Red led attached to pin D5
*
* Supported comman... | use period constant | use period constant
| Arduino | bsd-3-clause | rriggio/energino,rriggio/energino,rriggio/energino,rriggio/energino |
a4797817ca66d1cec0c9b9675b1b352ac636b1fa | firmware/examples/RangeSingleShot.ino | firmware/examples/RangeSingleShot.ino | /* This minimal example shows how to get single-shot range
measurements from the VL6180X.
The range readings are in units of mm. */
#include <vl6180x_lib.h>
VL6180X sensor;
void setup()
{
Wire.begin();
sensor.init();
sensor.configureDefault();
sensor.setTimeout(500);
}
void loop()
{
Serial.print(se... | /* This minimal example shows how to get single-shot range
measurements from the VL6180X.
The range readings are in units of mm. */
#include "vl6180x_lib/vl6180x_lib.h"
VL6180X sensor;
void setup()
{
Wire.begin();
sensor.init();
sensor.configureDefault();
sensor.setTimeout(500);
}
void loop()
{
Ser... | Update RangeSingleShot.ino | Update RangeSingleShot.ino | Arduino | mit | dcabanis/vl6180x_lib |
3caf6daccab25b39ff7345964bfb3bc9e042cb71 | ksp-gegi/ksp-gegi.ino | ksp-gegi/ksp-gegi.ino |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// dł kabelków 15-20cm
// diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu
// potencjometr: niebieski z cza... |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// dł kabelków 15-20cm
// diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu
// potencjometr: niebieski z cza... | replace last for loop by ranged-for | replace last for loop by ranged-for
| Arduino | mit | ytmytm/ksp-gegi |
606098ce5697724453cb25e21032fa0c22a63eef | examples/threshold/threshold.ino | examples/threshold/threshold.ino | #include <Helper2.h>
#include <Wire.h>
#include <TimerOne.h>
int incomingByte = 0;
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_pr... | #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... | update example | update example
| Arduino | mit | UEC-VBSeminar/Helper2.h |
2c65615bec6840177a096f6ceaa2317b9a340e49 | examples/PassThrough/PassThrough.ino | examples/PassThrough/PassThrough.ino | /**
* Use this sketch to talk directly to the LoRa module.
*
* In Serial Monitor, select "Both NL & CR" and "9600 baud" in
* the bottom right dropdowns and send command a command like:
*
* mac get deveui
* sys reset
*/
#define loraSerial Serial1
#define debugSerial Serial
void setup() {
loraSerial.begin(57... | /**
* Use this sketch to talk directly to the LoRa module.
*
* In Serial Monitor, select "Both NL & CR" and "115200 baud" in
* the bottom right dropdowns and send command a command like:
*
* mac get deveui
* sys reset
*/
#define loraSerial Serial1
#define debugSerial Serial
void setup() {
while(!debugSeria... | Update pass through to work with Node | Update pass through to work with Node
| Arduino | mit | TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib |
7cf88243160226bb91e2a877960379bccecefade | monitor_client/monitor_client.ino | monitor_client/monitor_client.ino | #include "GPRS_Shield_Arduino.h"
#include <SoftwareSerial.h>
#include <Wire.h>
#include "Suli.h"
//DHT11
#include "DHT11.h"
#define DHT11PIN 2
dht11 DHT11;
//DSM
int pin = 3;
unsigned long duration;
unsigned long starttime;
unsigned long sampletime_ms = 30000;
unsigned long lowpulseoccupancy = 0;
float ratio = 0;
flo... | #include "GPRS_Shield_Arduino.h"
#include <SoftwareSerial.h>
#include <Wire.h>
#include "Suli.h"
//I2C Port expander and LCDs
#include "LiquidCrystal_I2C.h"
LiquidCrystal_I2C lcd(0x20, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display
//LCD address can be read in the program I2CScanner
/*
--- ... | Add I2C LCD 1602. | Add I2C LCD 1602.
| Arduino | apache-2.0 | lincanbin/Arduino-Location-Based-Environment-Detector-Client,lincanbin/Arduino-Location-Based-Environment-Detector-Client |
47989647f0236e057928bd28debb2d66b090f0d0 | pi_interrupt_mouse/pi_interrupt_mouse.ino | pi_interrupt_mouse/pi_interrupt_mouse.ino | #include "HID-Project.h"
#include <SoftwareSerial.h> //a dependancy to allow us to differentiate input from the pi and from the mega
#include <AltSoftSerial.h>
// See HID Project documentation for more infos
// https://github.com/NicoHood/HID/wiki/Mouse-API
// https://github.com/NicoHood/HID/wiki/AbsoluteMouse-API
... | #include "HID-Project.h"
#include <AltSoftSerial.h>
// See HID Project documentation for more infos
// https://github.com/NicoHood/HID/wiki/Mouse-API
// https://github.com/NicoHood/HID/wiki/AbsoluteMouse-API
// See AltSoftSerial for more info
// http://www.pjrc.com/teensy/td_libs_AltSoftSerial.html
// https://gith... | Fix substring error | Fix substring error
| Arduino | mit | rit-sse/holo-desk,rit-sse/holo-desk,rit-sse/holo-desk,rit-sse/holo-desk |
7149c26b66af0f75f44270b6d2276dcce9329a8a | tiny_scope.ino | tiny_scope.ino | /*
* tiny_scope.ino - main application
* Tiny Scope for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#if 0 /* add all necessary libs here or t... | /*
* tiny_scope.ino - main application
* Tiny Scope for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#if 0 /* add all necessary libs here or t... | Use D7 button to cycle through all available ADC modes (time scales) | Use D7 button to cycle through all available ADC modes (time scales) | Arduino | mit | laurb9/tiny_scope |
145483a1be245e44e577512dbe10d91e3b6781aa | WirelessTrigger.ino | WirelessTrigger.ino | #define ROLE_GROUND 0
#define ROLE_SKY 1
// SET THE TARGET ROLE HERE -------------------------------
#define ROLE ROLE_SKY
// Standard libraries
#include <Arduino.h>
#include <printf.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
#if ROLE == ROLE_GROUND
// Displ... | #define ROLE_GROUND 0
#define ROLE_SKY 1
// SET THE TARGET ROLE HERE -------------------------------
#define ROLE ROLE_SKY
// Standard libraries
#include <Arduino.h>
#include <printf.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
#if ROLE == ROLE_GROUND
// Displ... | Add smoothing and decrease heartbeat time | Add smoothing and decrease heartbeat time
| Arduino | mit | WasabiFan/aerial-release-system,WasabiFan/aerial-release-system |
be76949b405f8257b548527474391aff25877a6c | arduino/tank_control/tank_control.ino | arduino/tank_control/tank_control.ino | #include <Servo.h>
int E1 = 6; //M1 Speed Control
int E2 = 5; //M2 Speed Control
int M1 = 8; //M1 Direction Control
int M2 = 7; //M2 Direction Control
#define MIN_ANGLE 100
#define MAX_ANGLE 180
#define SERVO_PIN 13
Servo servo;
int currentServoAngle = 100;
void setup(void)
{
int i;
for(i=5;i<=8;i++)
pinMode(... | #include <Servo.h>
// Motors
#define E1 6 // M1 Speed Control
#define E2 5 // M2 Speed Control
#define M1 8 // M1 Direction Control
#define M2 7 // M2 Direction Control
// Servo
#define MIN_ANGLE 100
#define MAX_ANGLE 180
#define SERVO_PIN 13
Servo servo;
int currentServoAngle = 100;
void setup(void)
{
for(int i=... | Make copy-pasted code look more profesh :) | Make copy-pasted code look more profesh :)
| Arduino | apache-2.0 | crashlytics/18thScale,crashlytics/18thScale,crashlytics/18thScale |
cd94579c3f7e7a8290ae49c913aa5956ef684967 | examples/selftest/selftest.ino | examples/selftest/selftest.ino | #include <avr/boot.h>
#include <SPI.h>
#include <tsunami.h>
#define LED_PIN 13
#define RUN_REPEATEDLY false
char err[255];
typedef bool (*testfunction)(void);
typedef struct {
char *name;
testfunction func;
} test_t;
void log_value(char *name, int32_t value) {
char buf[32];
sprintf(buf, "# %s = %ld", name,... | #include <avr/boot.h>
#include <SPI.h>
#include <tsunami.h>
#define LED_PIN 13
#define RUN_REPEATEDLY false
char err[255];
typedef bool (*testfunction)(void);
typedef struct {
char *name;
testfunction func;
} test_t;
void log_value(char *name, int32_t value) {
char buf[32];
sprintf(buf, "# %s = %ld", name,... | Update selftest for observed figures | Update selftest for observed figures
| Arduino | bsd-3-clause | arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino |
f1b313c38094b104ea370653e450c9e4c079cd40 | examples/Basics/PowerOFF/PowerOFF.ino | examples/Basics/PowerOFF/PowerOFF.ino | #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// initialize the M5Stack object
M5.begin();
// Lcd display
M5.Lcd.println("This is software power off demo");
M5.Lcd.println("Press the button A to power off.");
// Set the wakeup button
M5.Power.setWakeupButto... | #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// initialize the M5Stack object
M5.begin();
// Lcd display
M5.Lcd.println("This is software power off demo");
M5.Lcd.println("Press the button A to power off.");
// Set the wakeup button
M5.Power.setWakeupButto... | Use powerOFF on powerOFF example | Use powerOFF on powerOFF example | Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
3eccd66692fd61436dc501640032453a8bc42cc2 | 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... | Write log to SD card; delete Serial.prints to make space. | Write log to SD card; delete Serial.prints to make space.
| Arduino | mit | karlduino/RouterReset,karlduino/RouterReset |
bf54ebb036777fbc64628749de0b1f2fc221627b | GarHAge.ino | 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>
/*
* Start of user-configurable parameters
*/
// Wifi details
const char* ssid = "your-ssid-name";
const... | /*
* 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>
/*
* Start of user-configurable parameters
*/
// Wifi details
const char* ssid = "your-ssid-name";
const... | Fix typo | Fix typo
| Arduino | mit | marthoc/GarHAge |
2987db71c36263c69f2100a9cd23b0b2dd17bf5e | SBR/SBR.ino | SBR/SBR.ino | #include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
#include <utility/Adafruit_MCP23017.h>
#include "RTClib.h"
RTC_DS3231 rtc;
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();
#define RED 0x1
#define YELLOW 0x3
#define GREEN 0x2
#define TEAL 0x6
#define BLUE 0x4
#define VIOLET 0x5
#define WHITE 0x7
int en1 = 2; //... | #include <Wire.h>
#include <Adafruit_RGBLCDShield.h>
#include <utility/Adafruit_MCP23017.h>
#include "RTClib.h"
RTC_DS3231 rtc;
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();
#define RED 0x1
#define YELLOW 0x3
#define GREEN 0x2
#define TEAL 0x6
#define BLUE 0x4
#define VIOLET 0x5
#define WHITE 0x7
int en1 = 2; //... | Update SBR.ino | Update SBR.ino | Arduino | mit | dotsonlab/awsc,dotsonlab/awsc |
c37fa93c88fbdb8cd3ec32440928cf84731f1947 | IHM595/exemples/Cock_HEX/Cock_HEX.ino | IHM595/exemples/Cock_HEX/Cock_HEX.ino | /*
* Marcelo H Moraes
* marceloh220@hotmail.com
*
* A simple hexadecimal display clock.
* Well, not so simples.
* All the fancy is only for demonstration.
* You don't realy need of a String object to print something.
*/
#include <IHM595.h>
uint8_t s,m,h;
uint64_t mil;
IHM595 board(2,3,4);
void setup() {
... | /*
* Marcelo H Moraes
* marceloh220@hotmail.com
*
* A simple hexadecimal display clock.
* Well, not so simples.
* All the fancy is only for demonstration.
* You don't realy need of a String object to print something.
*/
#include <IHM595.h>
uint8_t s,m,h;
uint64_t mil;
IHM595 board(2,3,4);
void setup() {
... | Update Cock_HEX.ino | Update Cock_HEX.ino | Arduino | mit | marceloh220/Arduino,marceloh220/Arduino |
ca58aae0943ea378add91ace6ec8475a5ff14881 | MyCode/NQRoS/NQRoS.ino | MyCode/NQRoS/NQRoS.ino | #include <ZumoBuzzer.h>
#include <ZumoMotors.h>
#include <Pushbutton.h>
#include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <avr/pgmspace.h>
#include <Wire.h>
#include <LSM303.h>
/* NQRoS Sumo Bot code
Lachlan Robinson
*/
#define LED 13
Pushbutton button(ZUMO_BUTTON); // pushbutton on pin 12
... | #include <ZumoBuzzer.h>
#include <ZumoMotors.h>
#include <Pushbutton.h>
#include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <avr/pgmspace.h>
#include <Wire.h>
#include <LSM303.h>
/* NQRoS Sumo Bot code
Lachlan Robinson
*/
#define LED 13
Pushbutton button(ZUMO_BUTTON); // pushbutton on pin 12
... | Update for sensors | Update for sensors
2 pins only for line detection, remember to cut traces to middle four sensors. | Arduino | mit | LachlanNXT/zumo-shield |
bf37383456ea248ad322c46d9b36e1d393b4b176 | Pingduino/Pingduino.ino | Pingduino/Pingduino.ino | #define P1PIN 8
#define P1LIGHTPIN 12
#define P2PIN 9
#define P2LIGHTPIN 13
#define SPEAKERPIN 6
#define LONGPRESS_TIME 25
#define LATCH 4
#define CLK 3
#define DATA 2
#define INACTIVEMILLIS 1200000 // 20 minutes
// Seven Segment Display Handling
byte DigitBytes[10]= {0x3F, 0x06, 0x... | #define P1PIN 0 // Interrupts
#define P2PIN 1
#define BUTTONLIGHTPIN 4
#define SPEAKERPIN 9
#define LONGPRESS_TIME 25
#define LATCH 7
#define CLK 6
#define DATA 5
#define INACTIVEMILLIS 1200000 // 20 minutes
// Seven Segment Display Handling
byte DigitBytes[10... | Convert the code to the current schematic, use of hardware interrupts | Convert the code to the current schematic, use of hardware interrupts
| Arduino | mit | rubyist/pingduino,rubyist/pingduino |
2c3c232ccc73310d6cf222aee07ea2e40c05d0f8 | Sequencer/Sequencer.ino | Sequencer/Sequencer.ino | /*
KidModular - SEQUENCER - V.0.1.1
by Tiago Angelo (aka p1nho)
Built with:
Arduino 1.0.5 (on Arduino MEGA2560)
Stripped out version of UTFT Library v.2.82 (12 Jul 2016) by Henning Karlsen
Sequencer code based on Rui Penha's "Polissonos" ()
*/
/*
TO DO:
...to increase efficiency, performance and playability:
... | /*
KidModular - SEQUENCER - V.0.1.1
by Tiago Angelo (aka p1nho)
Built with:
Arduino 1.0.5 (on Arduino MEGA2560)
Stripped out version of UTFT Library v.2.82 (12 Jul 2016) by Henning Karlsen
Sequencer code based on Rui Penha's "Polissonos" ()
*/
/*
TO DO:
...to increase efficiency, performance and playability:
... | fix pitch output to conform to 1V/oct fro 0 to 5V | fix pitch output to conform to 1V/oct fro 0 to 5V
| Arduino | mit | Sonoscopia/KidModular,Sonoscopia/KidModular |
56b90cafb4efe5d37c767c5607e3ad2a3f9d6c9f | src/src.ino | src/src.ino | #include "ILI9341_t3.h"
#include "SPI.h"
#include "Average.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical lo... | #include "ILI9341_t3.h"
#include "SPI.h"
#include "Average.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical lo... | remove println | debug: remove println
| Arduino | mit | mplewis/sternidae |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.