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 |
|---|---|---|---|---|---|---|---|---|---|
48c25dc8bf1afe008673855280886474fb999d37 | arduino_control/arduino_control.ino | arduino_control/arduino_control.ino | //**************************************************************************
//------- Laboratorio de Biomecatronica @ Universidade de Sao Paulo --------
//
// Version: 1.0
// Date: 15.06.2017 [mm.dd.yyyy]
// Description
// CAN Communication between Arduino and EPOS2 for Exoskeleton Control
// Input files:
// (None)
/... | //**************************************************************************
//------- Laboratorio de Biomecatronica @ Universidade de Sao Paulo --------
//
// Version: 1.0
// Date: 15.06.2017 [mm.dd.yyyy]
// Description
// CAN Communication between Arduino and EPOS2 for Exoskeleton Control
// Input files:
// (None)
/... | interrupt setting | interrupt setting
| Arduino | mit | biopmr/ModExo,biopmr/ModExo |
294654c326b715ed26e8910b1429f26ec95af053 | examples/moving_average/moving_average.ino | examples/moving_average/moving_average.ino | // Moving Average Example
// Shows how to use an FIR filter as a moving average on a simple
// set of data that can be easily verified by hand.
#include <FIR.h>
// Make an instance of the FIR filter. In this example we'll use
// floating point values and an 8 element filter. For a moving average
// that means an 8 po... | // Moving Average Example
// Shows how to use an FIR filter as a moving average on a simple
// set of data that can be easily verified by hand.
#include <FIR.h>
// Make an instance of the FIR filter. In this example we'll use
// floating point values and an 8 element filter. For a moving average
// that means an 8 po... | Change to use automatic gain. | Change to use automatic gain.
| Arduino | mit | LeemanGeophysicalLLC/FIR_Filter_Arduino_Library |
2e9fe564c989d14fdf731cd93238905fe1e338d5 | receiver/receiver.ino | receiver/receiver.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// init... |
#include <SoftwareSerial.h>
#include <XBee.h>
SoftwareSerial XBee(2, 3); // RX, TX
void setup()
{
XBee.begin(9600);
Serial.begin(9600);
}
void loop()
{
if (XBee.available())
Serial.write(XBee.read());
}
}
| Add xbee instruction to receiver | Add xbee instruction to receiver
| Arduino | mit | robertojaguilar/ecat,robertojaguilar/ecat |
b39795b1914228876f2b174b7c7ae3a3661c1c68 | timer/timer.ino | timer/timer.ino |
#include "Constants.h"
#include "Display.h"
#include "Buttons.h"
Display display;
Buttons buttons;
#define STATE_WAITING 1
#define STATE_RUNNING 2
unsigned long countdown_ends;
unsigned long countdown_duration;
int current_state = STATE_WAITING;
void setup() {
Serial.begin(9600);
Serial.println("Starting up!"... |
#include "Constants.h"
#include "Display.h"
#include "Buttons.h"
Display display;
Buttons buttons;
#define STATE_WAITING 1
#define STATE_RUNNING 2
#define STATE_PULSING 3
#define STATE_BEEPING 4
#define STATE_ALARMING 5
#define STATE_MODE 6
unsigned long countdown_ends;
unsigned long countdown_duration;
in... | Handle buttons in waiting state, tidy up running state | Handle buttons in waiting state, tidy up running state
| Arduino | agpl-3.0 | OmniRose/watch-timer,OmniRose/watch-timer |
3f55e8d8eb79b89a4cac032b3d6805c44b9b244c | xy.ino | xy.ino | #include "Adafruit_WS2801.h"
#include "SPI.h" // Comment out this line if using Trinket or Gemma
#ifdef __AVR_ATtiny85__
#include <avr/power.h>
#endif
// ---------------------------------------------------------------------------------------------------------------------
// types
// ----------------------------------... | // Compile and run with:
// arduino --upload --board arduino:avr:uno --port /dev/ttyACM0 xy.ino
#include "Adafruit_WS2801.h"
#include "SPI.h" // Comment out this line if using Trinket or Gemma
#ifdef __AVR_ATtiny85__
#include <avr/power.h>
#endif
// --------------------------------------------------------------------... | Add command-line compile/run instructions to top of source code. | Add command-line compile/run instructions to top of source code.
| Arduino | mit | JohnL4/LEDStrand-WS2801-XY |
3da684918e51f9fa0bc4434622f32d7cad6d4572 | sensebox/sensebox.ino | sensebox/sensebox.ino | #include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <Digital_Light_TSL2561.h>
#include "Barometer.h"
#include "I2Cdev.h"
#include "MPU6050.h"
const int LED = 7;
const int chipSelect = 4;
const int soundSensor = A0;
//Barometer variables
float pressure;
float at... | #include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <Digital_Light_TSL2561.h>
#include "Barometer.h"
#include "I2Cdev.h"
#include "MPU6050.h"
const int LED = 7;
const int chipSelect = 4;
const int soundSensor = A0;
//Barometer variables
float pressure;
float at... | Add speed and improve vibration calc. | Add speed and improve vibration calc.
| Arduino | mit | mrunde/SenseBox-PerfectCyclingRoads,mrunde/SenseBox-PerfectCyclingRoads |
a474ac996835ea18482d21f41bc9e02a1ee42e3e | src/rx5808-pro-diversity/rx5808-pro-diversity.ino | src/rx5808-pro-diversity/rx5808-pro-diversity.ino | /*
* SPI driver based on fs_skyrf_58g-main.c Written by Simon Chambers
* TVOUT by Myles Metzel
* Scanner by Johan Hermen
* Inital 2 Button version by Peter (pete1990)
* Refactored and GUI reworked by Marko Hoepken
* Universal version my Marko Hoepken
* Diversity Receiver Mode and GUI improvements by Shea Ivey
*... | /*
* SPI driver based on fs_skyrf_58g-main.c Written by Simon Chambers
* TVOUT by Myles Metzel
* Scanner by Johan Hermen
* Inital 2 Button version by Peter (pete1990)
* Refactored and GUI reworked by Marko Hoepken
* Universal version my Marko Hoepken
* Diversity Receiver Mode and GUI improvements by Shea Ivey
*... | Fix broken pin mode settings + use RSSI pullup again | Fix broken pin mode settings + use RSSI pullup again
| Arduino | mit | RCDaddy/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity |
92d4d9e1f510a907005ef78657b71edd65dc8177 | PulseSensorAmped_Arduino_1dot4/Timer_Interrupt_Notes.ino | PulseSensorAmped_Arduino_1dot4/Timer_Interrupt_Notes.ino | /*
These notes put together by Joel Murphy for Pulse Sensor Amped, 2015
The code that this section is attached to uses a timer interrupt
to sample the Pulse Sensor with consistent and regular timing.
The code is setup to read Pulse Sensor signal at 500Hz (every 2mS).
The reasoning for this can be found here:... | /*
These notes put together by Joel Murphy for Pulse Sensor Amped, 2015
The code that this section is attached to uses a timer interrupt
to sample the Pulse Sensor with consistent and regular timing.
The code is setup to read Pulse Sensor signal at 500Hz (every 2mS).
The reasoning for this can be found here:... | Update Timer_Interrupt_Notes.ino | Update Timer_Interrupt_Notes.ino | Arduino | mit | WorldFamousElectronics/PulseSensor_Amped_Arduino |
7ebb0b33738cba263cd0fd28594fe60563ced055 | app/inTheDuck/LoverDuck.ino | app/inTheDuck/LoverDuck.ino | #include <Adafruit_NeoPixel.h>
//test
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303.h>
#include <Wire.h>
#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);
//RX/TX
#define tonePin 2
#define buttonPin 3
#define ledPinA 6 //6 leds here
#define ledNumA 6
#define ledPinB 7 //4 leds here
#define ledNumB 4
Adaf... | #include <Adafruit_NeoPixel.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303.h>
#include <Wire.h>
#include <SoftwareSerial.h>
SoftwareSerial BT(10,11);
//RX/TX
#define tonePin 2
#define buttonPin 3
#define ledPinA 6 //6 leds here
#define ledNumA 6
#define ledPinB 7 //4 leds here
#define ledNumB 4
Adafruit_N... | add long-push short-push recognition, flashing LED based on mode change | add long-push short-push recognition, flashing LED based on mode change
| Arduino | mit | Yasu31/TK_1720,Yasu31/TK_1720,Yasu31/TK_1720,Yasu31/TK_1720 |
094a3914a6f5aab2c07f9c6383523c19f499c231 | examples/simple_GET/simple_GET.ino | examples/simple_GET/simple_GET.ino | /* RestClient simple GET request
*
* by Chris Continanza (csquared)
*/
#include <WiFi.h>
#include <SPI.h>
#include "RestClient.h"
char ssid[] = "YOUR_SSID"; // your network SSID (name)
char pass[] = "YOUR_WIFI_PW"; // your network password
int status = WL_IDLE_STATUS; // the Wifi radio... | /* RestClient simple GET request
*
* by Rex St John
*/
#include <WiFi.h>
#include <SPI.h>
#include "RestClient.h"
char ssid[] = "YOUR_SSID"; // your network SSID (name)
char pass[] = "YOUR_WIFI_PW"; // your network password
char host[] = "www.google.com"; // target for your REST queries
in... | Update simple_GET.ino | Update simple_GET.ino | Arduino | mit | rexstjohn/arduino-restclient |
39b543877b9cbecfd14c2ed1783547459da21845 | examples/SSTV/SSTV.ino | examples/SSTV/SSTV.ino | /* Hamshield
* Example: SSTV
* This program will transmit a test pattern. You will need
* SSTV equipment to test the output.
* Connect the HamShield to your Arduino. Screw the antenna
* into the HamShield RF jack. Connect the Arduino to wall
* power and then to your computer via USB. After uploading
* this p... | /* Hamshield
* Example: SSTV
* This program will transmit a test pattern. You will need
* SSTV equipment to test the output.
* Connect the HamShield to your Arduino. Screw the antenna
* into the HamShield RF jack. Connect the Arduino to wall
* power and then to your computer via USB. After uploading
* this p... | Resolve SSTV example issues | Resolve SSTV example issues
| Arduino | agpl-3.0 | EnhancedRadioDevices/HamShield,EnhancedRadioDevices/HamShield |
de1e0f57320ba5463e3346f305775b543732e05c | examples/adsr/adsr.ino | examples/adsr/adsr.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Switch to exponential ADSR curves, move constants to defines, and remove gate display. | Switch to exponential ADSR curves, move constants to defines, and remove gate display.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
e90007b41aee07716219c2a337ca1715a250aa5e | examples/HelloWorld/HelloWorld.ino | examples/HelloWorld/HelloWorld.ino | /**
* Copyright (C) 2014 James Sleeman
*
* 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,... | /**
* Copyright (C) 2014 James Sleeman
*
* 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,... | Update HelloWorld.ino | Update HelloWorld.ino | Arduino | mit | koltegirish/ESP8266_Simple,Autonomi/ESP8266,sleemanj/ESP8266_Simple |
9ea83225fc212da3815256fc6c9117e1e1059ba5 | playground/ESP32/Blink/Blink.ino | playground/ESP32/Blink/Blink.ino | /*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to kn... | /*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want t... | add playground/ESP32/Blink/Blink.ino | add playground/ESP32/Blink/Blink.ino
| Arduino | mit | 473856/Lupinino,473856/Lupinino,473856/Lupinino,473856/Lupinino |
f9033c9fd70c1fd420daad0c6e8d83626e3971ae | Arduino/sem_v1.ino | Arduino/sem_v1.ino | #include <Bridge.h>
#include <HttpClient.h>
#include "DHT.h"
#define DHTPIN 2 // what pin we're connected to
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
double Light (int RawADC0){
double Vout=RawADC0*0.0048828125;
int lux=(2500/Vout-500)/10;
return lux;
}
String pass = "semcw2015";
int sendled = ... |
/*-------------------------------------------- LICENSE (MIT) -------------------------------------------------
Copyright (c) 2015 Conor Walsh
Website: http://www.conorwalsh.net
GitHub: https://github.com/con... | Update sem_v1.ino | Update sem_v1.ino | Arduino | mit | conorwalsh/SEM,conorwalsh/SEM |
14ff1f1537cb8bd198895d99997b7c87d74a84b6 | 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
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | Rename setTime to setDuration for clarity | Rename setTime to setDuration for clarity
| Arduino | mit | karinassuni/dremelfuge |
dbe11a98582e6a67e30d9d46ef74f647d6b9a4bd | 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
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | Add a clarifying comment | Add a clarifying comment
| Arduino | mit | karinassuni/dremelfuge |
384c7d9985efb96d34e6594aa8460413cabbb942 | Charger/WebSocketTest.ino | Charger/WebSocketTest.ino | // vim settings:
// vim: et ts=2 sw=2
#include "Config.h"
#include "MicroUtil.h"
#include "types.h"
#include <ESP8266WiFi.h>
#include <Hash.h>
TinyGsm modem(SerialAT);
TinyGsmClient client(modem);
DB database;
WebSocketsClient webSocket;
#define MESSAGE_INTERVAL 35000
#define HEARTBEAT_INTERVAL 28000
uint64_t me... | // vim settings:
// vim: et ts=2 sw=2
#include "Config.h"
#include "MicroUtil.h"
#include "types.h"
#include <ESP8266WiFi.h>
#include <Hash.h>
TinyGsm modem(SerialAT);
TinyGsmClient client(modem);
DB database;
WebSocketsClient webSocket;
#define MESSAGE_INTERVAL 35000
#define HEARTBEAT_INTERVAL 28000
uint64_t me... | change subscription targets to match the Service | change subscription targets to match the Service
| Arduino | bsd-3-clause | AaltoAsia/O-MI-reservations,AaltoAsia/O-MI-reservations,AaltoAsia/O-MI-reservations,AaltoAsia/O-MI-reservations |
b89e75168e44d6c1808ea67c9d7b0e432463c85f | conductor/conductor.ino | conductor/conductor.ino | #include "PianoRoll.h"
#include <Servo.h>
#include <SD.h>
#include <SPI.h>
#include "Adafruit_NeoPixel.h"
PianoRoll pianoRoll;
extern Musician *musician;
unsigned char *stateSet;
unsigned char pixelFlags;
uint32_t pixelColor = 0;
uint32_t colors[3];
int RED = 0;
int GREEN = 1;
int BLUE = 2;
String serialAction = ""... | #include "PianoRoll.h"
#include <Servo.h>
#include <SD.h>
#include <SPI.h>
#include "Adafruit_NeoPixel.h"
PianoRoll pianoRoll;
extern Musician *musician;
unsigned char *stateSet;
unsigned char pixelFlags;
uint32_t pixelColor = 0;
uint32_t colors[3];
int RED = 0;
int GREEN = 1;
int BLUE = 2;
String serialAction = ""... | Remove extra debug | TA: Remove extra debug
| Arduino | mit | toma/robotband,toma/robotband,toma/robotband,toma/robotband,toma/robotband |
990e4943452c580b0a90cc8def871b1baaa43153 | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "font/roboto_10.h"
#include "font/roboto_12.h"
#include "font/roboto_thin_20.h"
#include "images.h"
#define PULSES_PER_KWH 375
#define WH_PER_PULSE (1000.0F / P... | #include <Wire.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "font/roboto_10.h"
#include "font/roboto_12.h"
#include "font/roboto_thin_20.h"
#include "images.h"
#define PULSES_PER_KWH 375
#define WH_PER_PULSE (1000.0F / P... | Replace the digitalRead with interrupt-based triggers. | Replace the digitalRead with interrupt-based triggers.
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
d8aecc732aba6e146ed44420066e573d882ac8b2 | ED_BMSdiag/ED_BMSdiag.ino | ED_BMSdiag/ED_BMSdiag.ino | //--------------------------------------------------------------------------------
// ED BMSdiag, v1.0.5
// Retrieve battery diagnostic data from your smart electric drive EV.
//
// (c) 2015-2018 by MyLab-odyssey
//
// Licensed under "MIT License (MIT)", see license file for more information.
//
// THIS SOFTWARE IS PRO... | //--------------------------------------------------------------------------------
// ED BMSdiag, v1.0.5
// Retrieve battery diagnostic data from your smart electric drive EV.
//
// (c) 2015-2018 by MyLab-odyssey
//
// Licensed under "MIT License (MIT)", see license file for more information.
//
// THIS SOFTWARE IS PRO... | Fix typo in enum | Fix typo in enum
| Arduino | mit | MyLab-odyssey/ED_BMSdiag,MyLab-odyssey/ED_BMSdiag,MyLab-odyssey/ED_BMSdiag |
f8ca3fc327c4132376cc748cda60c41ede17b052 | MASTER_crusher/MASTER_crusher.ino | MASTER_crusher/MASTER_crusher.ino | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <PLabBTSerial.h>
ZumoReflectanceSensorArray reflectanceSensors(QTR_NO_EMITTER_PIN);
ZumoMotors motors;
double lastDistance = 100;
unsigned int reflectanceValues[6];
Pushbutton button(12);
#defin... | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <PLabBTSerial.h>
#include <EEPROM.h>
ZumoReflectanceSensorArray reflectanceSensors(QTR_NO_EMITTER_PIN);
ZumoMotors motors;
double lastDistance = 100;
unsigned int reflectanceValues[6];
Pushbutton... | save to storage, random was fucked | save to storage, random was fucked
| Arduino | mit | tutturen/max_speed_backflip_robot |
385e7176d62f717678a99946ecf9080f22e5ccf7 | _70-homekit-accessories-light/_70-homekit-accessories-light.ino | _70-homekit-accessories-light/_70-homekit-accessories-light.ino | // Using Sonoff wifi switch, 80MHz, 1M
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Ticker.h>
#include "/usr/local/src/rpi2_setting.h"
extern "C" {
#include "user_interface.h"
}
... | // Using Sonoff wifi switch, 80MHz, 1M
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <Ticker.h>
#include "/usr/local/src/rpi2_setting.h"
extern "C" {
#include "user_interface.h"
}
... | send update to subtopic | send update to subtopic
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
903b7f545d4337f3bdb0ca6ba77265b6e218393b | pug.ino | pug.ino | #include <Servo.h>
// debug mode
#define DEBUG_ULTRASON false
#define DEBUG false
// Pins
#define RIGHT_MOTOR_PIN_1 8
#define RIGHT_MOTOR_PIN_2 9
#define LEFT_MOTOR_PIN_1 11
#define LEFT_MOTOR_PIN_2 10
#define COLOR_ANALOG_PIN 1
#define POTARD_ANALOG_PIN 2
#define JUMPER_PIN 3
#define ENEMY_LED_PIN 13
#define GRE... | #include <Servo.h>
// debug mode
#define DEBUG_ULTRASON false
#define DEBUG false
// Pins
#define RIGHT_MOTOR_PIN_1 8
#define RIGHT_MOTOR_PIN_2 9
#define LEFT_MOTOR_PIN_1 11
#define LEFT_MOTOR_PIN_2 10
#define COLOR_ANALOG_PIN 1
#define POTARD_ANALOG_PIN 2
#define JUMPER_PIN 3
#define ENEMY_LED_PIN 13
#define GRE... | Adjust smoothSploch | Adjust smoothSploch
| Arduino | mit | gobgob/pug,gobgob/pug,gobgob/pug |
49e925821726d6ebbafa20a8389718a0b8584c46 | pug.ino | pug.ino | #include <Servo.h>
// debug mode
#define DEBUG_ULTRASON false
#define DEBUG false
// Pins
#define RIGHT_MOTOR_PIN_1 8
#define RIGHT_MOTOR_PIN_2 9
#define LEFT_MOTOR_PIN_1 11
#define LEFT_MOTOR_PIN_2 10
#define COLOR_ANALOG_PIN 1
#define POTARD_ANALOG_PIN 2
#define JUMPER_PIN 3
#define ENEMY_LED_PIN 13
#define GRE... | #include <Servo.h>
// debug mode
#define DEBUG_ULTRASON false
#define DEBUG false
// Pins
#define RIGHT_MOTOR_PIN_1 8
#define RIGHT_MOTOR_PIN_2 9
#define LEFT_MOTOR_PIN_1 11
#define LEFT_MOTOR_PIN_2 10
#define COLOR_ANALOG_PIN 1
#define POTARD_ANALOG_PIN 2
#define JUMPER_PIN 3
#define ENEMY_LED_PIN 13
#define GRE... | Add Start timer | Add Start timer
| Arduino | mit | gobgob/pug,gobgob/pug,gobgob/pug |
a576023f7d96636f41e648146a52368922403d83 | WeatherStation/WeatherStation.ino | WeatherStation/WeatherStation.ino | #include <Wire.h>
#include "Adafruit_Sensor.h"
#include "Adafruit_TSL2561_U.h"
#include "Adafruit_BMP085_U.h"
#include "DHT.h"
#include "Narcoleptic.h"
#define LEDPIN 13
//DHT Sensor Settings
#define DHTPIN 4 // what pin we're connected to
DHT dht;
#define XBEESLEEPPIN 2
Adafruit_BMP085_Unified bmp = Adafru... | #include <Wire.h>
#include "Adafruit_Sensor.h"
#include "Adafruit_TSL2561_U.h"
#include "Adafruit_BMP085_U.h"
#include "DHT.h"
#include "Narcoleptic.h"
#define LEDPIN 13
//DHT Sensor Settings
#define DHTPIN 4 // what pin we're connected to
DHT dht;
#define XBEESLEEPPIN 2
Adafruit_BMP085_Unified bmp = Adafru... | remove the cause of the association delay, drop pingin functionality on startup | remove the cause of the association delay, drop pingin functionality on startup
| Arduino | unlicense | valorekhov/ArduinoWeatherStation,valorekhov/ArduinoWeatherStation |
38193e14b4f998855882298e8f88b8aa64ffebc8 | Guzheng/Guzheng.ino | Guzheng/Guzheng.ino | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
/* Uncomment the define if you are using a wind instrument, such
* as a trumpet or flute. It will disable several things that
* are specific to string and percussion instruments. DO NOT
* uncomment it if you are usi... | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
/* Uncomment the define if you are using a wind instrument, such
* as a trumpet or flute. It will disable several things that
* are specific to string and percussion instruments. DO NOT
* uncomment it if you are usi... | Revert "Add note set switching capabilities" | Revert "Add note set switching capabilities"
This reverts commit 14bdc8510426fa06bfbe9dd548d83b6c2d706097.
| Arduino | mit | PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp |
abf092f7195cdaac64afb57b510b741f8c371a56 | SDPArduinoCode/SDPArduinoCode.ino | SDPArduinoCode/SDPArduinoCode.ino | #include "SDPArduino.h"
#include <Wire.h>
#include <stdlib.h>
#define TURNING_MOTOR 0
#define FRONT_LEFT_MOTOR 1
#define FRONT_RIGHT_MOTOR 2
#define ACTION_MOTOR 3
// Inbound message definitions
#define STOP 0
#define FORWARD 1
#define BACKWARD 2
#define LEFT 3
#define RIGHT 4
#define KICK 5
#define GRAB 6
// Outbo... | #include "SDPArduino.h"
#include <Wire.h>
#include <stdlib.h>
#define TURNING_MOTOR 0
#define FRONT_LEFT_MOTOR 1
#define FRONT_RIGHT_MOTOR 2
#define ACTION_MOTOR 3
// Inbound message definitions
#define STOP 0
#define FORWARD 1
#define BACKWARD 2
#define LEFT 3
#define RIGHT 4
#define KICK 5
#define GRAB 6
#define S... | Make files sendable bit by bit | Make files sendable bit by bit
| Arduino | mit | uoe-sdp-3b/sdp-project |
8794e452ce70407d3878f7bab50c8b21ad9f9bb8 | arduino_sketch/arduino_sketch.ino | arduino_sketch/arduino_sketch.ino | #include <Arduino.h>
#include <DHT.h> // For the DHT11 temperature and humidity sensor
#include <Time.h> // For timekeeping
#include <Wire.h> // For I2C
//Define LED pins (PWM pins: 3,5,6,9,10,11 on arduino UNO)
const int RED = 11;
const int GREEN = 10;
const int BLUE = 9;
const int PUMP = 2;
co... | #include <Arduino.h>
#include <DHT.h> // For the DHT11 temperature and humidity sensor
#include <Time.h> // For timekeeping
#include <Wire.h> // For I2C
// Define LED pins (PWM pins: 3,5,6,9,10,11 on arduino UNO)
const int RED = 11;
const int GREEN = 10;
const int BLUE = 9;
const int PUMP = 2;
c... | Update default settings | Update default settings
We now run the system with the same schedule and settings all the time.
When the microcontroller starts it assumes that the time is 20:00 and it
runs the pump. Then every 20min it sprays the roots for 2s.
Also make some style changes to the code and clean up a k = k++ wtf...
Signed-off-by: Ro... | Arduino | mit | rhagman/sustainable-green-plants |
299a4b273aee49b27a4cb3363574afec83ac2cd5 | 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 1800000 // 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 THRESHOLD 1.1 // Only ma... | Handle large moisture changes immediately | Handle large moisture changes immediately
This effectively bypasses the rolling average on large changes
by making two measurements, one for each direction/polarity.
Otherwise, the increase of moisture when watering will be smeared
out over two readings, which will make the graph look strange.
On small changes only ... | Arduino | bsd-2-clause | mfalkvidd/arduino-plantmoisture |
4bd78954bfe855cb821740637d93777f6b182f1c | gamecubecontroller.ino | gamecubecontroller.ino | // gamecube controller adapter
// This requires this branch of the Arduino STM32 board:
// https://github.com/arpruss/Arduino_STM32/tree/addMidiHID
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// ... | // gamecube controller adapter
// This requires this branch of the Arduino STM32 board:
// https://github.com/arpruss/Arduino_STM32/tree/addMidiHID
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// ... | check for disconnect | check for disconnect | Arduino | mit | arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter |
2f2a142cbd4af8846642ae64ce6c8b1a95183ed5 | examples/SimpleClock/SimpleClock.ino | examples/SimpleClock/SimpleClock.ino | /**
* @file SimpleClock.ino
* This a simple serial port clock application using the RTC Nanoshield.
*
* Copyright (c) 2013 Circuitar
* This software is released under the MIT license. See the attached LICENSE file for details.
*/
#include <Wire.h>
#include <stdio.h>
#include "Nanoshield_RTC.h"
Nanoshield_RTC r... | /**
* @file SimpleClock.ino
* This a simple serial port clock application using the RTC Nanoshield.
*
* Copyright (c) 2013 Circuitar
* This software is released under the MIT license. See the attached LICENSE file for details.
*/
#include <Wire.h>
#include <stdio.h>
#include "Nanoshield_RTC.h"
Nanoshield_RTC r... | Update SimpleClock.ino | Update SimpleClock.ino | Arduino | mit | circuitar/Nanoshield_RTC,circuitar/Nanoshield_RTC |
a9f6bca62be7581b3b2aaa61b8723803ee0628ea | SprayCan/SprayCanProject/SprayCanProject.ino | SprayCan/SprayCanProject/SprayCanProject.ino | /**
Sanjay Mistry
Copyright (C) 2017
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is dist... | /**
Sanjay Mistry
Copyright (C) 2017
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is dist... | add work function and count | add work function and count
| Arduino | mit | smistrydev/ESP8266_SprayCan,smistrydev/ESP8266_SprayCan |
c4bf5315ccf109f1a6cfddad32a84fd12e4ce403 | src/arduino/Triangula_Main/Triangula_Main.ino | src/arduino/Triangula_Main/Triangula_Main.ino |
//#define ENABLE_MOTOR_FUNCTIONS
/*
Simple sketch to directly control the Syren drivers. Send an I2C message containing 3 bytes, one
for each motor, these are converted to values in the range -128 to 127 and sent to the motor drivers.
Also handles lighting and reporting of encoder values in response to a bul... |
//#define ENABLE_MOTOR_FUNCTIONS
/*
Simple sketch to directly control the Syren drivers. Send an I2C message containing 3 bytes, one
for each motor, these are converted to values in the range -128 to 127 and sent to the motor drivers.
Also handles lighting and reporting of encoder values in response to a bul... | Fix for swapped encoder lines on the pink pylon | Fix for swapped encoder lines on the pink pylon
| Arduino | apache-2.0 | BaseBot/Triangula,BaseBot/Triangula,BaseBot/Triangula |
83f6d83db0d3bb29d913312811600db5bce78e85 | libraries/esp8266/examples/RTCUserMemory/RTCUserMemory.ino | libraries/esp8266/examples/RTCUserMemory/RTCUserMemory.ino | // Example: Storing struct data in RTC user rtcDataory
//
// Struct data with the maximum size of 512 bytes can be stored
// in the RTC user rtcDataory using the ESP-specifc APIs.
// The stored data can be retained between deep sleep cycles.
// However, the data might be lost after power cycling the ESP8266.
//
// This... | // Example: Storing struct data in RTC user rtcDataory
//
// Struct data with the maximum size of 512 bytes can be stored
// in the RTC user rtcDataory using the ESP-specifc APIs.
// The stored data can be retained between deep sleep cycles.
// However, the data might be lost after power cycling the ESP8266.
//
// This... | Fix RTCmem example buffer access past end (#4288) | Fix RTCmem example buffer access past end (#4288)
| Arduino | lgpl-2.1 | Adam5Wu/Arduino,wemos/Arduino,wemos/Arduino,lrmoreno007/Arduino,Adam5Wu/Arduino,sticilface/Arduino,Adam5Wu/Arduino,hallard/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,lrmoreno007/Arduino,wemos/Arduino,Lan-Hekary/Arduino,hallard/Arduino,Adam5Wu/Arduino,esp8266/Arduino,esp8266/Arduino... |
94131d5af1530e7ce8d744f5c6bf9d5ab14ce0dc | firmware/lm-wifilamp/x20_logic.ino | firmware/lm-wifilamp/x20_logic.ino |
uint8_t logicColorR;
uint8_t logicColorG;
uint8_t logicColorB;
float logicBrightness;
bool logicOn;
uint32_t logicButtonTaskTime;
uint32_t logicButtonTaskInterval;
uint8_t logicButtonCounter;
uint16_t logicTransitionTime;
void logicSetup() {
logicButtonCounter = 0;
logicColorR = 255;
logicColorG = 255;
... |
uint8_t logicColorR;
uint8_t logicColorG;
uint8_t logicColorB;
float logicBrightness;
bool logicOn;
uint32_t logicButtonTaskTime;
uint32_t logicButtonTaskInterval;
uint8_t logicButtonCounter;
uint16_t logicTransitionTime;
void logicSetup() {
logicButtonCounter = 0;
logicColorR = 255;
logicColorG = 255;
... | Set initial value to brightness and sync it | [Firmware] Set initial value to brightness and sync it
| Arduino | mit | TheCaveCz/letsmake-wifilamp,TheCaveCz/letsmake-wifilamp |
e72d950427b45d9a7bb2fc7f6c82c78fc2290505 | chessclock/chessclock.ino | chessclock/chessclock.ino | /*
Thanks to Rudi Imbrechts (http://arduinows.blogspot.nl/) for the initial example.
Aansturen FDS132 LED matrix bord m.b.v. SPI.
*/
#include <SPI.h> // Om snelheid te winnen maken we gebruik van SPI.
#include "fds132text.h"
fdsScreen mainScreen = fdsScreen("abcdefghijklmnopq rstuvwxyz123456 7... | /*
Thanks to Rudi Imbrechts (http://arduinows.blogspot.nl/) for the initial example.
Aansturen FDS132 LED matrix bord m.b.v. SPI.
*/
#include <SPI.h> // Om snelheid te winnen maken we gebruik van SPI.
#include "fds132text.h"
fdsScreen mainScreen = fdsScreen("abcdefghijklmnopq rstuvwxyz123456 789... | Remove setrow function, is now in fdsScreen class | Remove setrow function, is now in fdsScreen class
| Arduino | mit | BartDeWaal/FDS132-textdriver |
7b54b666639ce65a7aef79678f5656d4180ea738 | examples/SW01_Pressure_Measurement/SW01_Pressure_Measurement.ino | examples/SW01_Pressure_Measurement/SW01_Pressure_Measurement.ino | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/products/SW01
This example request a pressure meausrement to be
made by the SW01 and display the data over ... | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/products/SW01
This example request a pressure meausrement to be
made by the SW01 and display the data over ... | Update SW01_Pressure_Measurement.ino | Update SW01_Pressure_Measurement.ino | Arduino | mit | xinabox/xSW01 |
11ece942976e52f083121157c41c81f048c6a071 | examples/slight_RotaryEncoder_test/slight_RotaryEncoder_test.ino | examples/slight_RotaryEncoder_test/slight_RotaryEncoder_test.ino | /******************************************
slight_RotaryEncoder__minimal
testing example for slight_RotaryEncoder lib usage.
debugport: serial interface 115200baud
hardware:
Arduino board of any type.
A4 --> encoder pin A
A5 --> encoder pin B
libraries used:
... | /******************************************
slight_RotaryEncoder__minimal
testing example for slight_RotaryEncoder lib usage.
debugport: serial interface 115200baud
hardware:
Arduino board of any type.
A4 --> encoder pin A
A5 --> encoder pin B
libraries used:
... | add acceleration | [example] add acceleration
| Arduino | mit | s-light/slight_RotaryEncoder |
55d4b9bcf6198fbf0f74b0840a6223adb4e89f93 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/path/path.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/path/path.ino | #include <OMDynamixel.h>
#include <OMPath.h>
#include <vector>
#define DXL_SIZE 3
#define BAUD_RATE 57600
#define DEG2RAD (M_PI / 180.0)
#define RAD2DEG (180.0 / M_PI)
#define CONTROL_PERIOD 0.008f
#define MOVE_TIME 3.0f
JointTrajectory joint_trajectory(DXL_SIZE);
std::vector<Trajectory> start_trajectory;
std::vect... | update test code | update test code
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR | |
5bd787de4c62e7530d4c1336ad35b52693515856 | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.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 <EEPROM.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 3... | Move EEPROM include | Move EEPROM include
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
bf2ef65befbef667d82fe449fe22718d20460fec | ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_LowPowerMode/ArduCAM_Mini_5MP_Plus_LowPowerMode.ino | ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_LowPowerMode/ArduCAM_Mini_5MP_Plus_LowPowerMode.ino | // ArduCAM Mini demo (C)2017 Lee
// web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// This demo was made for ArduCAM_Mini_5MP_Plus.
// It needs to be used in combination with PC software.
// It can take photo continuously as video streaming.
// The demo support low power mode.... | // ArduCAM Mini demo (C)2017 Lee
// web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// This demo was made for ArduCAM_Mini_5MP_Plus.
// It needs to be used in combination with PC software.
// It can take photo continuously as video streaming.
// The demo support low power mode.... | Update ArduCAM_Mini_5MP_Plus_LowPowerMode.ino | Update ArduCAM_Mini_5MP_Plus_LowPowerMode.ino | Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino |
aa20a96bc78351b51d6f0c35498d50af06442db1 | Computer_Switch/Computer_Switch.ino | Computer_Switch/Computer_Switch.ino | //----------------------------------------------------------------------------------------------------------------
// Computer_Switch.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers may require extensive tweaking.
//
// This runs a small webserver hosting a tiny API to remotely power on... | //----------------------------------------------------------------------------------------------------------------
// Computer_Switch.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers may require extensive tweaking.
//
// This runs a small webserver hosting a tiny API to remotely power on... | Implement sending temps to server | Implement sending temps to server
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
780450f9d1fbe525b2388aa96a242f04a0c35606 | Cockroach/Cockroach.ino | Cockroach/Cockroach.ino | /*
Author: William Hogg
Description:
This is a program to emulate a cockroach that will follow walls and react to light.
*/
//included librarys
#include <SharpIR.h>
#include <NewPing.h>
#include <Servo.h>
//analog pin definitions
#define LDRLeft A0
#define LDRCenter A1
#define LDRRight ... | /*
Author: William Hogg
Description:
This is a program to emulate a cockroach that will follow walls and react to light.
*/
//included librarys
#include <SharpIR.h>
#include <NewPing.h>
#include <Servo.h>
//analog pin definitions
#define LDRLeft A0
#define LDRCenter A1
#define LDRRight ... | add wall avoidence behaviour, and routines to interface with the ultrasonic sensors | add wall avoidence behaviour, and routines to interface with the ultrasonic sensors
| Arduino | mit | naturesyouth/CS26410 |
f597bb487ac616b2901619e1f183900407e0429f | arduino/sketch_plug/sketch_plug.ino | arduino/sketch_plug/sketch_plug.ino | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
//#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
#if 0
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "office";
const char *g_devid = "plug_plc";
#else
const char *g_appk... | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
//#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
#if 0
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "smart_office";
const char *g_devid = "plug_0";
#else
const char *g_... | Modify topic and devid | Modify topic and devid
| Arduino | mit | shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice |
9add3309e65c8c9f5a5c31a1cd5aab68382b8f5e | AutoChime/AutoChime.ino | AutoChime/AutoChime.ino | #include "class.h"
#include "score_book.h"
#include "config.h"
#include <Ticker.h>
#include <TickerScheduler.h>
using namespace std;
TimeNTP ntp;
Chime chime(13, 5);
TickerScheduler ts(3);
void setup() {
Serial.begin(115200);
chime.SetChimeDirection(1460, 1570, 1680);
chime.SetHammerDirection(1070, 2050);
... | #include "class.h"
#include "score_book.h"
#include "config.h"
#include <Ticker.h>
#include <TickerScheduler.h>
using namespace std;
TimeNTP ntp;
Chime chime(13, 5);
TickerScheduler ts(3);
void setup() {
Serial.begin(115200);
chime.SetChimeDirection(1460, 1560, 1680);
chime.SetHammerDirection(985, 1510);
... | Adjust values for new base / Add delay for stability | Adjust values for new base / Add delay for stability
| Arduino | mit | puhitaku/AutoChime |
a661ce10a869c2a70613117261f13469e3f27f8c | src/esp8266_test.ino | src/esp8266_test.ino | #include "esp8266.h"
#include <SoftwareSerial.h>
#include <ArduinoUnit.h>
#include "HttpRequest.h"
SoftwareSerial mySerial(2,3); // RX, TX
Esp8266<SoftwareSerial> esp(mySerial);
test(basic_isOk_succeeds)
{
bool ret = esp.isOk();
assertTrue(ret);
}
test(basic_isOk_withInvalidBaudSettingsFails)
{
mySerial.begin(... | #include "esp8266.h"
#include <SoftwareSerial.h>
#include <ArduinoUnit.h>
#include "HttpRequest.h"
SoftwareSerial mySerial(2,3); // RX, TX
Esp8266<SoftwareSerial> esp(mySerial);
test(basic_isOk_succeeds)
{
bool ret = esp.isOk();
assertTrue(ret);
}
test(basic_isOk_withInvalidBaudSettingsFails)
{
mySerial.begin(... | Fix type | Fix type
- fix missing variable declaration
| Arduino | mit | hoffmannjoern/ESP8266,hoffmannjoern/ESP8266 |
c0b48fb05c6a9fc210ab9004faca19c0a86c57e9 | BlinkLed/BlinkLed/BlinkLed.ino | BlinkLed/BlinkLed/BlinkLed.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http:/... | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http:/... | Fix the readings.. | Fix the readings..
| Arduino | mit | BanaipePT/LedBlinking |
771bdd1cb79245f3bc715bac77cfb847e6490260 | main.ino | main.ino | /* Use the FastLED library instead of the Adafruit NeoPixel library. */
#include <FastLED.h>
/* This optional setting causes Encoder to use more optimized code,
* It must be defined before Encoder.h is included. */
#define ENCODER_OPTIMIZE_INTERRUPTS
#include <Encoder.h>
/* Digital IO pins. */
#define PIN_ROTARY_ONE... | /* Use the FastLED library instead of the Adafruit NeoPixel library. */
#include <FastLED.h>
/* This optional setting causes Encoder to use more optimized code,
* It must be defined before Encoder.h is included. */
#define ENCODER_OPTIMIZE_INTERRUPTS
#include <Encoder.h>
/* Digital IO pins. */
#define PIN_ROTARY_ONE... | Implement mode switching | Implement mode switching
| Arduino | mit | ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight |
83c5a5776bff92a05b0b8ebc0bbfc0c3dec5dd50 | BlinkenScreen.ino | BlinkenScreen.ino | #include <SPI.h>
SPISettings spi_settings(2000, LSBFIRST, SPI_MODE0);
#define BUFFER_SIZE 6 // Size of screen frame buffer
#define BUTTON_PIN 7 // Analog pin 7
#define BUTTON_THRESHOLD 5 // How many cycles before button considered pressed
// Buttons
#define BIDLE 10 // Nothing pressed
#define B1 5
#define B2 4... | #include <SPI.h>
SPISettings spi_settings(2000, LSBFIRST, SPI_MODE0);
#define BUFFER_SIZE 6 // Size of screen frame buffer
#define BUTTON_PIN 7 // Analog pin 7
#define BUTTON_THRESHOLD 5 // How many cycles before button considered pressed
// Buttons
#define BIDLE 10 // Nothing pressed
#define B1 5
#define B2 4... | Break out code into functions, buttons change mode | Break out code into functions, buttons change mode
| Arduino | bsd-2-clause | RandomInsano/BlinkenScreen |
a59c911c012e81ac42700ce354b5671759980f93 | 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)\
((... | change notifications to serial monitor | change notifications to serial monitor
| Arduino | mit | JoeSuber/CardLifter |
06dab073886b196a5561ab0c298b558db0c89801 | Lab_s1e5/Lab_s1e5.ino | Lab_s1e5/Lab_s1e5.ino | #include <LiquidCrystal.h>
#include <Servo.h>
// device phone number: 0466259105
// SIM card pin: 1234
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Servo gate;
String authNumbers[] = {"0405369467\n", "0401959797\n"};
String input = "";
bool stringComplete = false;
int attempt = 0;
int LEDPIN = 13;
int gateMin = 45;
int g... | #include <LiquidCrystal.h>
#include <Servo.h>
#define N_ENTRIES 2
// device phone number: 0466259105
// SIM card pin: 1234
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Servo gate;
String authNumbers[] = {"0405369467\n", "0401959797\n"};
String input = "";
bool stringComplete = false;
int attempt = 0;
int LEDPIN = 13;
in... | Fix for main loop | Fix for main loop
| Arduino | mit | mikedanylov/EmbeddedCellularLabs |
7162937cca3c70688bd97d0ae9746a9697003d59 | libraries/ATT_IOT_UART/examples/demo/demo.ino | libraries/ATT_IOT_UART/examples/demo/demo.ino |
#include "ATT_IOT_UART.h" //AllThingsTalk IoT library
#include <SPI.h> //required to have support for signed/unsigned long type.
#include <SoftwareSerial.h>
/*
SmartLiving Makers Arduino UART Demo Sketch
version 1.0 dd 25/11/2015
This file is an exampl... |
#include "ATT_IOT_UART.h" //AllThingsTalk IoT library
#include <SPI.h> //required to have support for signed/unsigned long type.
#include <SoftwareSerial.h>
/*
SmartLiving Makers Arduino UART Demo Sketch
version 1.0 dd 25/11/2015
This file is an exampl... | fix defines in demo | fix defines in demo | Arduino | apache-2.0 | allthingstalk/arduino-client |
f42d6a378977c776e5d1e2f5b4acba7a1c5292a5 | SpinCode/SpinCode.ino | SpinCode/SpinCode.ino | #include <Wire.h>
#include <Adafruit_L3GD20.h>
// Masking Defs
#define BIT_MASK 8191 // 13 bits, all ones
#define EIGHT_BIT_MAX 255 // 8 bits, all ones, the maximum value the LED would take (255), used for flipping ranges
#define ABS_MASK 32767 // 15 bits, all ones, && with 16 bit signed integer to take off sign bit... | #include <Wire.h>
#include <Adafruit_L3GD20.h>
// Masking Defs
#define BIT_MASK 8191 // 13 bits, all ones
#define EIGHT_BIT_MAX 255 // 8 bits, all ones, the maximum value the LED would take (255), used for flipping ranges
#define ABS_MASK 32767 // 15 bits, all ones, && with 16 bit signed integer to take off sign bit... | Update SpinCode.ino | Update SpinCode.ino
Removed redundant abs() | Arduino | apache-2.0 | haydenridd/LEDProject |
c5da863c3d96e4ed66a9e9ff5d14eb99960ac6bf | tactA_single/SerialCommunication.ino | tactA_single/SerialCommunication.ino | /**
* Tact example for handling capacitive sensing.
* Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... | /**
* Tact example for handling capacitive sensing.
* Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... | transform lowercase serial commands to uppercase fix yet another typo | transform lowercase serial commands to uppercase
fix yet another typo
| Arduino | lgpl-2.1 | StudioNAND/tact-arduino-sketch |
33170273a965c7ac3a93788bd1f2dbde3cbf8424 | examples/mqtt_esp8266/mqtt_esp8266.ino | examples/mqtt_esp8266/mqtt_esp8266.ino | /*
Basic ESP8266 MQTT example
This sketch demonstrates the capabilities of the pubsub library in combination
with the ESP8266 board/library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic" every two seconds
- subscribes to the topic "inTopic", printing out any messages
... | /*
Basic ESP8266 MQTT example
This sketch demonstrates the capabilities of the pubsub library in combination
with the ESP8266 board/library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic" every two seconds
- subscribes to the topic "inTopic", printing out any messages
... | Use random MQTT client ID in example sketch | Use random MQTT client ID in example sketch
Many users load the sketch having only changed WiFi SSID and password. When multiple users attempt to connect to the same broker using same client ID, they get rejected. Currently the chances of connecting to broker.mqtt-dashboard.com using "ESP8266Client" ID are fairly slim... | Arduino | mit | diegopx/pubsubclient,plugplayco/plugplay-arduino-mqtt,tomn46037/pubsubclient,rubenqba/pubsubclient,tomn46037/pubsubclient,tectiv3/pubsubclient,tectiv3/pubsubclient,tomn46037/pubsubclient,tectiv3/pubsubclient,diegopx/pubsubclient,diegopx/pubsubclient,rubenqba/pubsubclient,rubenqba/pubsubclient,knolleary/pubsubclient,kno... |
74eb2ffbe4e17c47206315dde68bdace3486b962 | devices/cc3200_launchpad/example_energia_gpio/example_energia_gpio.ino | devices/cc3200_launchpad/example_energia_gpio/example_energia_gpio.ino | /**
This firmware is only for TI CC3200 Launchpad.
In order to test the COSSB system, we will support temporary open & public hardware platforms like TI Launchpad, Odroid, Raspberry Pi...
If you have any questions for this sample code, please contact us(bhhwang@nsynapse.com).
*/
#include <WiFi.h>
#include <WiFiUdp.h>
... | /**
This firmware is only for TI CC3200 Launchpad.
In order to test the COSSB system, we will support temporary open & public hardware platforms like TI Launchpad, Odroid, Raspberry Pi...
If you have any questions for this sample code, please contact us(bhhwang@nsynapse.com).
*/
#include <WiFi.h>
#include <WiFiUdp.h>
... | update for demo | update for demo | Arduino | mit | bhhwang/cossb,bhhwang/cossb,bhhwang/cossb |
f6269a334d3ea552d81e4902d061b0f556850888 | spark-as-server/spark-as-server.ino | spark-as-server/spark-as-server.ino |
TCPServer server = TCPServer(23);
TCPClient client;
void setup()
{
// start listening for clients
server.begin();
// 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 continue!
// while(!Serial.available()) ... |
#include "application.h"
// allow use of itoa() in this scope // what the heck is this and is it needed????
extern char* itoa(int a, char* buffer, unsigned char radix);
#define DEBUG 1
#define PORT 48879
#define MAX_DATA_BYTES 128
TCPServer server = TCPServer(23);
TCPClient client;
void setup() {
pinMod... | Update spark-as-server.ino | Update spark-as-server.ino | Arduino | mit | hpssjellis/spark-core-socket-client-or-server |
ca552b8a66231db4a10f3aa46a6d6e93590bdc54 | nodemcu_bme280.ino | nodemcu_bme280.ino | /***************************************************************************
This is a library for the BME280 humidity, temperature & pressure sensor
Designed specifically to work with the Adafruit BME280 Breakout
----> http://www.adafruit.com/products/2650
These sensors use I2C or SPI to communicate, 2 or 4 ... | /***************************************************************************
This is a library for the BME280 humidity, temperature & pressure sensor
Designed specifically to work with the Adafruit BME280 Breakout
----> http://www.adafruit.com/products/2650
These sensors use I2C or SPI to communicate, 2 or 4 ... | Update nodemcu_bme280.ino | Update nodemcu_bme280.ino
fingerprint changed because of ssh public key changed | Arduino | mit | corlysis/scripts,corlysis/scripts |
af9e0cc74c6347e0f5377ce6ce78294c7df4dc28 | LightControllerESP8266.ino | LightControllerESP8266.ino | /*
Copyright (c) 2015, Majenko Technologies
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
list of cond... | /*
Copyright (c) 2015, Majenko Technologies
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
list of cond... | Add simple homebridge support | Add simple homebridge support
| Arduino | mit | kspzel/LightControllerESP8266,kspzel/LightControllerESP8266,kspzel/LightControllerESP8266,kspzel/LightControllerESP8266 |
d41412d7d27ee34c2e71325303a8222203901892 | 2018-Firefighter/2018-Firefighter.ino | 2018-Firefighter/2018-Firefighter.ino | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo ... | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo ... | Update 2018-Firefighter.ino | Update 2018-Firefighter.ino | Arduino | mit | GW-Robotics/2018-Firefighter |
b24c6eec1c029c50aa5ac13ec993fdfbbfe4baa6 | ArduinoSPISlave/ArduinoSPISlave.ino | ArduinoSPISlave/ArduinoSPISlave.ino | /*
Arduino SPI Slave for Playstation 2
Based on busslave's work form 2012
Arduino pin | AVR pin | PSX pin
9 PB1 | 15 | 9 ACK (green)
10 -SS | 16 | 6 ATT (yellow)
11 MOSI | 17 | 2 COMMAND (orange)
12 MISO | 18 | 1 DATA (brown)
13 SCK | 19 | 7 CLOCK ... | /*
Arduino SPI Slave for Playstation 2
Based on busslave's work form 2012
Arduino pin | AVR pin | PSX pin
9 PB1 | 15 | 9 ACK (green)
10 -SS | 16 | 6 ATT (yellow)
11 MOSI | 17 | 2 COMMAND (orange)
12 MISO | 18 | 1 DATA (brown)
13 SCK | 19 | 7 CLOCK ... | Remove "reset to nothing pressed" in code Pi will take care of timing | Remove "reset to nothing pressed" in code
Pi will take care of timing
| Arduino | mit | tchapi/pianette,tchapi/pianette,tchapi/pianette,tchapi/pianette |
5acdb1d130b671ea851412f62d3937c585ed87f5 | code/magnetometer.ino | code/magnetometer.ino | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1 0.988692
#define M2 -0.005989
#define M3 -0.014164
#define M4 -0.005989
#define M5 1.048870
#define M6 -0.023919
#define M7 -0.014164
#define M8 -0.02... | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1 1.125715
#define M2 -0.006818
#define M3 -0.016127
#define M4 -0.006818
#define M5 1.194233
#define M6 -0.027234
#define M7 -0.016127
#define M8 -0.02... | Update magnetometer.ino | Update magnetometer.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
89f2880b1f2a01ca86988120cc172900c51e8a05 | firmware/src/IoTBox.ino | firmware/src/IoTBox.ino | /*
* Project IoTBox
* Description: A internet-connected box which can be opened from API
* Author: Peacemoon
* Date: 17.09.2017
*/
PRODUCT_ID(5673);
PRODUCT_VERSION(1);
STARTUP(WiFi.selectAntenna(ANT_EXTERNAL));
SYSTEM_MODE(AUTOMATIC)
SYSTEM_THREAD(ENABLED);
#include "clickButton.h"
#include "ContactSwitch... | /*
* Project IoTBox
* Description: A internet-connected box which can be opened from API
* Author: Peacemoon
* Date: 17.09.2017
*/
PRODUCT_ID(5673);
PRODUCT_VERSION(1);
STARTUP(WiFi.selectAntenna(ANT_EXTERNAL));
SYSTEM_MODE(AUTOMATIC)
SYSTEM_THREAD(ENABLED);
#include "clickButton.h"
#include "ContactSwitch... | Add timeZone | FW-45: Add timeZone
| Arduino | mit | peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox |
b8674d9b31a2ed20759dbffeddf1fb752160c43c | src/gateway/gateway.ino | src/gateway/gateway.ino | /* TODO
Expland list of command verbs:
1. State
2. Set
3. Timestamp
...
Add TopicStorage clearing method
*/
#include <SPI.h>
#include <RFM69.h>
#include <avr/pgmspace.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include "secure.h"
#include "config.h"
#include "defines.h"
#include <radioNode.h... | /* TODO
Expland list of command verbs:
1. State
2. Set
3. Timestamp
...
Add TopicStorage clearing method
*/
#include <SPI.h>
#include <RFM69.h>
#include <avr/pgmspace.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include "secure.h"
#include "config.h"
#include "defines.h"
#include <radioNode.h... | Update some todos | Update some todos
| Arduino | mit | Jaidan/jaidan-hab,Jaidan/jaidan-hab |
9eac71d79a61b90704e584140135be2a788d99ed | humidity1/humidity1.ino | humidity1/humidity1.ino | static const int VCCPin = 8;
static const int analogPin = 1;
static const int R = 15000;
static const float Vref = 5.0 * 15 / (15 + 51);
static float a = 2.76366367;
static float b = -32.40924966;
static float c = 102.93566686;
int val = 0;
int count = 0;
unsigned long t;
boolean level = LOW;
unsigned long nowt;
voi... | static const int VCCPin = 8;
static const int analogPin = 0;
static const float Re = 50.3; // kOhm
//static const float Vref = 5.0 * 15 / (15 + 51);
static const float Vref = 5.0;
static const float Vm = 2.5;
static float a = 2.76366367;
static float b = -32.40924966;
static float c = 102.93566686;
int val = 0;
int ... | fix humidity detection code, should be more reliable now | fix humidity detection code, should be more reliable now
| Arduino | mit | imrehg/weatherstation,UltracoldAtomsLab/weatherstation |
5a7806b679160a6f033216269e7d9d1bd29708b7 | pano-controller.ino | pano-controller.ino | /*
* GigapanPlus for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
... | /*
* GigapanPlus for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
... | Fix camera positioning with remote so it's usable. | Fix camera positioning with remote so it's usable.
With remote, move 1 degree at fixed low rpm to prevent a jerky movement.
With joystick, move 1/gear_ratio degree progressively faster. | Arduino | mit | laurb9/gigapanplus,laurb9/pano-controller,laurb9/pano-controller,laurb9/gigapanplus |
bf16e39e636aba7451766eab778375febe7c7bf6 | SoundTest.ino | SoundTest.ino |
#define DEBUG 13
//TODO: this class actually ignores overflows of long's.
class Tone
{
private:
unsigned long frequency;
unsigned long playTime;
unsigned long delayTime;
unsigned long lastTime;
unsigned long startTime;
bool isHigh;
int pin;
public:
Tone(int p)
{
pin =... | #define DEBUG 13
#include "tone.h"
void setup()
{
pinMode(DEBUG, OUTPUT);
digitalWrite(DEBUG, HIGH);
delay(2000);
digitalWrite(DEBUG, LOW);
}
Tone t1(6);
Tone t2(4);
Tone t3(9);
void loop()
{
unsigned long time = millis();
digitalWrite(DEBUG, HIGH);
t1.setTone(400, 7e6);
t2.setTone(80... | split Tone class in own files | split Tone class in own files
| Arduino | mit | Wene/SoundTest |
23fea4b973dee307e7c83cd35d553f4a567d0576 | jenny5-firmware/jenny5-firmware.ino | jenny5-firmware/jenny5-firmware.ino | #include "motors_control.h"
#include "Ultrasonic.h"
Ultrasonic ultrasonic(53,52);
t_motors_control motor_control;
char is_command_running;
char firmware_version[] = "2015.11.12.2";// year.month.day.version
char current_buffer[65];
#define DEBUG
//-------------------------------------------------------------------... | #include "motors_control.h"
#include "Ultrasonic.h"
Ultrasonic ultrasonic(53,52);
t_motors_control motors_control(4);
char is_command_running;
char firmware_version[] = "2015.11.12.2";// year.month.day.version
char current_buffer[65];
#define DEBUG
//---------------------------------------------------------------... | change the call of the t_motors_control constructor | change the call of the t_motors_control constructor
| Arduino | mit | jenny5-robot/jenny5-firmware,jenny5-robot/jenny5-firmware,ubbots/jenny5-firmware,ubbots/jenny5-firmware |
134b4b4e8764998b6ba959f5a64186637b674e62 | moteino/node_heater/node_heater.ino | moteino/node_heater/node_heater.ino | #include <RFM69.h>
#include <RFM69_ATC.h>
#include "LowPower.h"
#define DEBUG
#include "DebugUtils.h"
// Device
//#define FREQUENCY RF69_868MHZ
#define FREQUENCY RF69_915MHZ
#define ENCRYPT_KEY "0123456789abcdef" // 16 bytes
#define IS_RFM69HW
#define ENABLE_ATC // Auto Transmission Control
// Pins
#defi... | #include <RFM69.h>
#include <RFM69_ATC.h>
#include "LowPower.h"
#define DEBUG
#include "DebugUtils.h"
// Device
//#define FREQUENCY RF69_868MHZ
#define FREQUENCY RF69_915MHZ
#define ENCRYPT_KEY "0123456789abcdef" // 16 bytes
#define IS_RFM69HW
#define ENABLE_ATC // Auto Transmission Control
// Pins
#defi... | Add semicolon | Add semicolon
| Arduino | mit | yschua/heater-control,yschua/heater-control,yschua/heater-control,yschua/heater-control |
23762ba8bb534bb9ead4356bca1323d8f0d0d5d8 | Valokepakko.ino | Valokepakko.ino | const int BUTTON_PIN = 12;
const int LED_PIN = 13;
const int PIEZO_PIN = 8;
// See https://www.arduino.cc/en/Tutorial/StateChangeDetection
void setup() {
// Initialize the button pin as a input.
pinMode(BUTTON_PIN, INPUT);
// initialize the LED as an output.
pinMode(LED_PIN, OUTPUT);
// Initialize serial co... | const int BUTTON_PIN = 12;
const int LED_PIN = 13;
const int PIEZO_PIN = 8;
// See https://www.arduino.cc/en/Tutorial/StateChangeDetection
void setup() {
// Initialize the button pin as a input.
pinMode(BUTTON_PIN, INPUT);
// initialize the LED as an output.
pinMode(LED_PIN, OUTPUT);
// Initialize serial co... | Improve playing of sound | Improve playing of sound
| Arduino | mit | myrjola/Valokepakko,myrjola/Valokepakko,myrjola/Valokepakko |
cc4766be393fb53fb594095e119a85699d4de77b | 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 | yaneexy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark |
46f8920e4c2ed2ea63de86f8b824a1365672942c | blume.ino | blume.ino |
#include <EEPROM.h>
#include <FastLED.h>
#define DATA_PIN A0
#define CLOCK_PIN 5
#define COLOR_ORDER BGR
#define CHIPSET APA102
#define APA_MHZ 4
#define LED_SETTINGS CHIPSET, DATA_PIN, CLOCK_PIN, COLOR_ORDER, DATA_RATE_MHZ(APA_MHZ)
#define EEPROM_SAVE_TIMEOUT_MS 5000
#define EEPROM_START_POINTER_ADDR 0x0... |
#include <EEPROM.h>
#include <FastLED.h>
#define DATA_PIN A0
#define CLOCK_PIN 5
#define COLOR_ORDER BGR
#define CHIPSET APA102
#define APA_MHZ 4
#define LED_SETTINGS CHIPSET, DATA_PIN, CLOCK_PIN, COLOR_ORDER, DATA_RATE_MHZ(APA_MHZ)
#define EEPROM_SAVE_TIMEOUT_MS 5000
#define EEPROM_START_POINTER_ADDR 0x0... | Add line to write eepromStart address | Add line to write eepromStart address
| Arduino | agpl-3.0 | hobzcalvin/blume,hobzcalvin/blume,hobzcalvin/blume,hobzcalvin/blume |
4a0f21fed593fe49961145731cbff1738ddcd0f5 | examples/PIRMotionSensor/PIRMotionSensor.ino | examples/PIRMotionSensor/PIRMotionSensor.ino | /*****************************************************************************/
// Function: If the sensor detects the moving people in it's detecting range,
// the Grove - LED is turned on.Otherwise, the LED is turned off.
// Hardware: Grove - PIR Motion Sensor, Grove - LED
// Arduino IDE: Arduino-1.0
// Author: ... | /*
* PIRMotionSensor.ino
* Example sketch for the PIR motion sensor
*
* Copyright (c) 2013 seeed technology inc.
* Website : www.seeed.cc
* Author : FrankieChu
* Create Time: Jan 21,2013
* Change Log :
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining... | Update PIRMotionSensor.ino | Update PIRMotionSensor.ino | Arduino | mit | Seeed-Studio/PIR_Motion_Sensor |
ed5b55a60d86575026bc871344bab36ae5ca7873 | examples/NonBlocking/NonBlocking.ino | examples/NonBlocking/NonBlocking.ino | /*
* Example using non-blocking mode to move until a switch is triggered.
*
* Copyright (C)2015-2017 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
// this pin s... | /*
* Example using non-blocking mode to move until a switch is triggered.
*
* Copyright (C)2015-2017 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
// this pin s... | Repair call "BasicStepperDriver" | Repair call "BasicStepperDriver" | Arduino | mit | laurb9/StepperDriver |
3b595c0dd7ec55efaed36052278a9acc919785fe | examples/wwvb_jjy_tx/wwvb_jjy_tx.ino | examples/wwvb_jjy_tx/wwvb_jjy_tx.ino | // +--------+
// | millis |
//+------------+---+--------+--------+--------+--------+--------+
//| Chip | | Timer0 | Timer1 | Timer2 | Timer3 | Timer4 |
//+------------+---+--------+--------+--------+--------+--------+
//| ATmega328p | A | D6 | M=D9 | D12 | -- | -- ... | // +--------+
// | millis |
//+------------+---+--------+--------+--------+--------+--------+
//| Chip | | Timer0 | Timer1 | Timer2 | Timer3 | Timer4 |
//+------------+---+--------+--------+--------+--------+--------+
//| ATmega328p | A | D6 | M=D9 | D12 | -- | -- ... | Update wwvb_jjy_tx.ino | Update wwvb_jjy_tx.ino
Fix to setup JJY. It was set to WWVB :/ | Arduino | mit | micooke/wwvb_jjy,micooke/wwvb_jjy |
e3ea562ecc23303f1a9fd82cdea82c4a9f4c01bb | 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... | implement analogIn class implement analogOut class reformat LCD output code consolidate updateLed(blink) and updateSwitch into one loop make code const-clean add second analogOut pin for electricity % | implement analogIn class
implement analogOut class
reformat LCD output code
consolidate updateLed(blink) and updateSwitch into one loop
make code const-clean
add second analogOut pin for electricity %
| Arduino | mit | ytmytm/ksp-gegi |
3da93a14f656ff5a7a7cc02a000e6cfbbbdc7a2c | 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... | make everything fast, don't delay | make everything fast, don't delay
| Arduino | mit | ytmytm/ksp-gegi |
bc5538ad2eee292d99e0088edfb00a6379042dbd | examples/sensors/ultrasounds/HCSR04/HCSR04.ino | examples/sensors/ultrasounds/HCSR04/HCSR04.ino | #include <Smartcar.h>
SR04 front;
const int TRIGGER_PIN = 6; //D6
const int ECHO_PIN = 7; //D7
void setup() {
Serial.begin(9600);
front.attach(TRIGGER_PIN, ECHO_PIN); //trigger pin, echo pin
}
void loop() {
Serial.println(front.getDistance());
delay(100);
}
| #include <Smartcar.h>
const int TRIGGER_PIN = 6; //D6
const int ECHO_PIN = 7; //D7
SR04 front(TRIGGER_PIN, ECHO_PIN, 10);
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(front.getDistance());
delay(100);
}
| Update SR04 example to new 5.0 API | Update SR04 example to new 5.0 API
| Arduino | mit | platisd/smartcar_shield,platisd/smartcar_shield |
888de64c672ba65941b0a6692aff0d1e6afef526 | firmware/examples/ds18b20_test.ino | firmware/examples/ds18b20_test.ino | #include "DS18B20/Particle-OneWire.h"
#include "DS18B20/DS18B20.h"
DS18B20 ds18b20 = DS18B20(D2); //Sets Pin D2 for Water Temp Sensor
int led = D7;
char szInfo[64];
float pubTemp;
double celsius;
double fahrenheit;
unsigned int Metric_Publish_Rate = 30000;
unsigned int MetricnextPublishTime;
int DS18B20nextSampleTime;... | #include "DS18B20/Particle-OneWire.h"
#include "DS18B20/DS18B20.h"
DS18B20 ds18b20 = DS18B20(D2); //Sets Pin D2 for Water Temp Sensor
int led = D7;
char szInfo[64];
float pubTemp;
double celsius;
double fahrenheit;
unsigned int Metric_Publish_Rate = 30000;
unsigned int MetricnextPublishTime;
int DS18B20nextSampleTime;... | Update ds18b20_test.ino | Update ds18b20_test.ino | Arduino | mit | LukeUSMC/ds18b20-photon |
93d9e5975e0a7c9fab886421d21360e463f87951 | WiFiBPMonitor/WiFiBPMonitor.ino | WiFiBPMonitor/WiFiBPMonitor.ino | #include <Wire.h>
#include <ESP8266WiFi.h>
#include <EEPROM.h>
const int I2C_ERROR = 10;
const char* ssid = "YOUR_WIFI_NETWORK_SSID";
const char* password = "YOUR_WIFI_NETWORK_PASSWORD";
const char* host = "data.sparkfun.com";
const char* streamId = "YOUR_STREAM_ID";
const char* privateKey = "YOUR_PRIVATE_KEY... | #include <Wire.h>
#include <ESP8266WiFi.h>
#include <EEPROM.h>
const int I2C_ERROR = 10;
const char* ssid = "YOUR WIFI SSD";
const char* password = "YOUR WIFI PWD";
// no support for hhtps!
const char* host = "YOUR WEBSITE URL";
boolean busActivity = false;
int error = 0;
int systolic = 0;
int diastolic = 0;
in... | Change HTTP method to POST | Change HTTP method to POST
| Arduino | mit | edusteinhorst/WiFiBloodPressureMonitor |
fd1b0fa7e45d9bfc17fc61675f2cc4a4d93ea242 | arduino/boite_aux_lettres_captors/boite_aux_lettres_captors.ino | arduino/boite_aux_lettres_captors/boite_aux_lettres_captors.ino | /* --------------- Capteur Ultrason --------------- */
int trig = 12; // Digital 12
int echo = 11; // Digital 11
long lecture_echo;
long mm = 0;
/* --------------- Capteur de contact --------------- */
/* Accrocher le détecteur au port analogique A0 */
int contact_sensor = 0; // A0
boolean detect_close_door = 0;
/*... | /* --------------- Capteur Ultrason --------------- */
int trig = 12; // Digital 12
int echo = 11; // Digital 11
long lecture_echo;
long mm = 0;
/* --------------- Capteur de contact --------------- */
/* Accrocher le détecteur au port analogique A0 */
int contact_sensor = 0; // A0
boolean detect_close_door = 0;
/*... | PATCH arduino code of mailbox | PATCH arduino code of mailbox
| Arduino | epl-1.0 | didjoman/PILBI_2,didjoman/PILBI_2,didjoman/PILBI_2,didjoman/PILBI_2 |
49bbda668564f5e1a59440eebc2df574454494bf | Code/ProbeCube_v0.95.ino | Code/ProbeCube_v0.95.ino | //https://github.com/Lafudoci/ProbeCube
//thingspeak設定============================================================
String thingSpeakAddress = "http://api.thingspeak.com/update?";
String writeAPIKey = "api_key_here"; //填入thingspeak API key ***必填
//CC3000無線網路設定======================================================... | //ProbeCube_v0.95
//Copyright (C) 2015 Lafudoci (https://github.com/Lafudoci)
//thingspeak設定============================================================
String thingSpeakAddress = "http://api.thingspeak.com/update?";
String writeAPIKey = "api_key_here"; //填入thingspeak API key ***必填
//CC3000無線網路設定================... | Update ProbeCube_v0.95.ino | Update ProbeCube_v0.95.ino | Arduino | mit | Lafudoci/ProbeCube |
17e5ad30fc045805a82f59d784078cc6bcd43866 | Arduino/SerialCommunication/BasicSerialCommunication/BasicSerialCommunication.ino | Arduino/SerialCommunication/BasicSerialCommunication/BasicSerialCommunication.ino |
/*
BASIC SERIAL COMMUNICATION
Carlos Castellanos | 2014 | ccastellanos.com
In order for the Arduino to communicate with your computer it needs to have some kind of standard or
protocol. Arduino can communicate over USB via what called "serial communication" or RS-232 This
allows us to send values (such as sensor rea... |
/*
BASIC SERIAL COMMUNICATION
Carlos Castellanos | 2014 | ccastellanos.com
In order for the Arduino to communicate with your computer it needs to have some kind of standard or
protocol. Arduino can communicate over USB via what called "serial communication" or RS-232/TTL. This
allows us to send values (such as senso... | Update BasicSerialCommunication.ino | Update BasicSerialCommunication.ino
| Arduino | mit | carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching |
45eb42455d75a5c540aa8c186ef6df264df64260 | examples/IRsendDemo/IRsendDemo.ino | examples/IRsendDemo/IRsendDemo.ino | /*
* IRremoteESP8266: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to ESP8266 pin 0.
* Version 0.1 June, 2015
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009, Copyright 2009 Ken Shirriff, http://arcfn.com
*/
#include <IRremoteESP8266.h>
IRsend irsend(0); //an I... | /*
* IRremoteESP8266: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to ESP8266 pin 0.
* Version 0.1 June, 2015
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009, Copyright 2009 Ken Shirriff, http://arcfn.com
*/
#include <IRremoteESP8266.h>
IRsend irsend(0); //an I... | Correct sendNEC example. | Correct sendNEC example.
NEC IR codes are not 36 bits long, they are 32 bits.
Make sure its an unsigned long too. | Arduino | lgpl-2.1 | markszabo/IRremoteESP8266,markszabo/IRremoteESP8266,markszabo/IRremoteESP8266,markszabo/IRremoteESP8266 |
567e4bc3b373bbedebb89c61c6848cb210f9a4e4 | chuckolantern/chuckolantern.ino | chuckolantern/chuckolantern.ino | /*
Rainbowduino v3.0 Motion Sensing Jack-O-Lantern
Simple sketch does a 'stuttering' pattern when motion is sensed... to make an interactive jack-o-lantern!
*/
#include <Rainbowduino.h>
// HSV to RGB array
unsigned char RED[64] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,238,22... | /*
Rainbowduino v3.0 Motion Sensing Jack-O-Lantern
Simple sketch does a 'stuttering' pattern when motion is sensed... to make an interactive jack-o-lantern!
*/
#include <Rainbowduino.h>
// HSV to RGB array
unsigned char RED[64] = {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,238,22... | add 'flicker()' function to emulate candle | add 'flicker()' function to emulate candle
add flicker function to emulate candle as alternative to 'gradual()'
| Arduino | mit | alphacharlie/chuckolantern,alphacharlie/chuckolantern |
5bb329734445d80faa7e7f0f29c2ec3c1a0e2370 | hvacMonitor.ino | hvacMonitor.ino | #include <SimpleTimer.h>
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
//#define BLYNK_DEBUG
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <TimeLib.h>
#include <WidgetRTC.h>
#define ONE_WIRE_BUS 2
... | #include <SimpleTimer.h>
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
//#define BLYNK_DEBUG
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <TimeLib.h>
#include <WidgetRTC.h>
#define ONE_WIRE_BUS 2
... | Add heartbeat | Add heartbeat | Arduino | mit | structure7/hvacMonitor |
42bf05b4617ba9c5d78662a9ea5ea5642852497b | Arduino/Arduino.ino | Arduino/Arduino.ino | // This will be the code uploaded to the main control Arduino
// INCLUDES
#include <Servo.h>
// SERVOS
Servo throttle;
Servo rotatingFront;
Servo rotatingBack;
Servo leftRight;
Servo upDown;
// VARIABLES
int pos = 90; // variable to store the servo position
int ByteReceived; // store byte recieved via serial... | // This will be the code uploaded to the main control Arduino
// INCLUDES
#include <Servo.h>
// SERVOS
Servo throttle;
Servo rotatingFront;
Servo rotatingBack;
Servo leftRight;
Servo upDown;
// VARIABLES
int pos1 = 90;
int pos2 = 90;
int pos3 = 90;
int pos4 = 90;
int pos5 = 90;
int ByteReceived; // store byte reci... | Update position variables | Update position variables
| Arduino | apache-2.0 | MagnusFlieger/Arduino |
e27b7f1de2e65286de9c861bb76b1be7725400fa | 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... | extend servo angle calculation | extend servo angle calculation
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
e9cb7a1ba2994ae4c3a5260c80a43dc97b209533 | main.ino | main.ino | #include <IRremote.h>
int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
uint8_t keys[21] = {0x5D, 0x9D, 0x1D, 0xDD, 0xFD, 0x3D, 0x1F, 0x57, 0x6F, 0x97, 0x67, 0x4F, 0xCF, 0xE7, 0x85, 0xEF, 0xC7, 0xA5, 0xBD, 0xB5, 0xAD};
uint8_t to[21] = {0x1A, 0x14, 0x04, 0x1B, 0x16, 0x1D, 0x06, 0x07, 0x08, 0x19, 0x09,... | #include <IRremote.h>
int RECV_PIN = 2;
IRrecv irrecv(RECV_PIN);
decode_results results;
uint8_t keys[21] = {0x5D, 0x9D, 0x1D, 0xDD, 0xFD, 0x3D, 0x1F, 0x57, 0x6F, 0x97, 0x67, 0x4F, 0xCF, 0xE7, 0x85, 0xEF, 0xC7, 0xA5, 0xBD, 0xB5, 0xAD};
uint8_t to[21] = {0x45, 0x14, 0x04, 0x1B, 0x16, 0x1D, 0x06, 0x07, 0x08, 0x19, 0x09,... | Stop repeat key... | Stop repeat key...
| Arduino | mit | NoobLad/NerfKeyboardRemapper |
d5b9d633a60ebcb26533f9f0e1270e300c341e4b | examples/helium-us915/helium-us915.ino | examples/helium-us915/helium-us915.ino | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | Update helium-us915 Example with Correct Sub Band | Update helium-us915 Example with Correct Sub Band | Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
4f2e4545a536fc1d0053c74ea1d3757e372dd1d9 | Clock.ino | Clock.ino | #include "Arduino.h"
#include <LiquidCrystal.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include <Adafruit_NeoPixel.h>
#include <EasingLibrary.h>
#include "FlashIn.h"
#include "StandardCplusplus.h"
#include <vector>
#include <MemoryFree.h>
#include "FadeIn.h"
#define TimeOffset 0... | #include "Arduino.h"
#include <LiquidCrystal.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include <Adafruit_NeoPixel.h>
#include <EasingLibrary.h>
#include "FlashIn.h"
#include "StandardCplusplus.h"
#include <vector>
#include <MemoryFree.h>
#include "FadeIn.h"
#define TimeOffset 0... | Clean up color generation code | Clean up color generation code
| Arduino | mit | Excure/LED-Clock |
c4144078f3fde714e45f5d302facea12b8062958 | examples/RTCx_example/RTCx_example.ino | examples/RTCx_example/RTCx_example.ino | /*
* Demonstrate the RTCx library.
*
* This sketch demonstrates the basic functionality of the RTCx
* library. It can also be used to adjust and check the frequency
* calibration settings on MCP7941x devices.
*
* On start-up the autoprobe feature is used to search the I2C bus to
* find the first available real-... | /*
* Demonstrate the RTCx library.
*
* This sketch demonstrates the basic functionality of the RTCx
* library. It can also be used to adjust and check the frequency
* calibration settings on MCP7941x devices.
*
* On start-up the autoprobe feature is used to search the I2C bus to
* find the first available real-... | Reformat and update to use new autoprobe and print functions | Reformat and update to use new autoprobe and print functions
| Arduino | lgpl-2.1 | stevemarple/RTCx,stevemarple/RTCx |
b416fafd58f90b4d86d4fdba01b255d6e72c901d | Attic_Controller/Attic_Controller.ino | Attic_Controller/Attic_Controller.ino | #include <Arduino.h>
//----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// Handles communicating with the roof sensors, as well as reading attic temperature / humidity
// Processes that information, and passes it on via MQTT
//
... | #include <Arduino.h>
//----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers will require extensive tweaking.
//
// Handles communicating with the roof sensors... | add comments for future | add comments for future
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
66548bfaf9c158a5e2a78d6825f8b5490850d285 | heartbeat_with_pulse.ino | heartbeat_with_pulse.ino | #include <Bounce2.h>
#include "FastLED.h"
#include <EEPROM.h>
/*
* Heartbeat simulator
*
* Shows a different hue and brightness based on accelerometer activity,
* with the idea that low movement means colder and less bright colours,
* with more movement turning it into warmer and brighter colours.
*
* Credit ... | #include <Bounce2.h>
#include "FastLED.h"
#include <EEPROM.h>
/*
* Heartbeat simulator
*
* Shows a different hue and brightness based on accelerometer activity,
* with the idea that low movement means colder and less bright colours,
* with more movement turning it into warmer and brighter colours.
*
* Credit ... | Adjust physical pins | Adjust physical pins
| Arduino | bsd-3-clause | chillu/arduino-led-scarf |
c75759f2b6eac515e727ac66a73c713ab75887dd | 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;
// main status
int lastSensorStatus = 0, currentSensorStatus = 0;
char publishString[128];
char eventString[10];
// BME280 sensor
... | #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;
// main status
int lastSensorStatus = 0, currentSensorStatus = 0;
char publishString[128];
char eventString[10];
// BME280 sensor
... | clean up code | clean up code
| Arduino | apache-2.0 | mhaack/Particle-Photon-Apps |
0f48377144f8a77e3a762a075fdc74402ab0ec26 | ARTF_Sensors/examples/LowPowerUltrasonicWithSD/LowPowerUltrasonicWithSD.ino | ARTF_Sensors/examples/LowPowerUltrasonicWithSD/LowPowerUltrasonicWithSD.ino | /*
Test Ultrasonic sensor readings on sensor platform
This sketch is designed to test the accuracy of the Ultrasonic
sensor with the battery pack and circuit of the sensor platform.
This sketch takes 5 readings and averages them to
help verify similar calculations used in BridgeSensorGSM
sketch. The resul... | /*
Test Ultrasonic sensor readings on sensor platform
This sketch is designed to test the accuracy of the Ultrasonic
sensor with the battery pack and circuit of the sensor platform.
This sketch takes 5 readings and averages them to
help verify similar calculations used in BridgeSensorGSM
sketch. The resul... | Clean up spacing a bit | Clean up spacing a bit
| Arduino | unlicense | UAA-EQLNES/ARTF-Field-Sensors |
ce616c3264bd638ee6460994f6cc021f26a02309 | BiotechHardware/hcs/hcs.ino | BiotechHardware/hcs/hcs.ino | #include <SPI.h>
#include <HttpClient.h>
#include <Ethernet.h>
#include <EthernetClient.h>
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0E, 0xF5, 0x30 };
const char hostname[] = "192.168.1.3";
IPAddress ip(192,168,4,3);
int commaPosition;
String lamp1_val;
String lamp2_val;
String lamp3_val;
String lamp4_val;
const int lamp1_... | #include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <HttpClient.h>
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0E, 0xF5, 0x30 };
const char hostname[] = "192.168.2.4";
IPAddress ip(192,168,1,6);
int commaPosition;
String lamp1_val;
String lamp2_val;
String lamp3_val;
String lamp4_val;
const int lamp1_... | Fix HCS on reading data from server | Fix HCS on reading data from server
| Arduino | apache-2.0 | Dimasdanz/BiotechProject,Dimasdanz/BiotechProject |
9ec04755cb2c9954c55cdad961586d48ad1b3200 | examples/TestRoutine/TestRoutine.ino | examples/TestRoutine/TestRoutine.ino | /*
* This is a full-fledged test routine used to validate Phoenard operation.
* All connections to on-board components are tested where possible.
* For sensors, an additional damage check is performed.
* This means sample data is measured and the range/deviation is checked.
* Heavily fluctuating or extreme outputs... | /*
* This is a full-fledged test routine used to validate Phoenard operation.
* All connections to on-board components are tested where possible.
* For sensors, an additional damage check is performed.
* This means sample data is measured and the range/deviation is checked.
* Heavily fluctuating or extreme outputs... | Test routine: Added pin 13 LED test | Test routine: Added pin 13 LED test
| Arduino | mit | Phoenard/Phoenard,Phoenard/Phoenard,wrh3c/Phoenard,wrh3c/Phoenard |
1e18829572c65eead89f13901d14d842e71aae9e | 2018-Firefighter/2018-Firefighter.ino | 2018-Firefighter/2018-Firefighter.ino | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo leftServo;
Servo rightServo;
Servo extinguisher;
Ultrasonic frontUltrasonic(FRONT_US_ECHO, FRONT_US_TRIG, true);
void... | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo ... | Update 2018-Firefighter.ino | Update 2018-Firefighter.ino | Arduino | mit | GW-Robotics/2018-Firefighter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.