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 |
|---|---|---|---|---|---|---|---|---|---|
687921ae9affcb37c962c89be96afae91d538a51 | examples/file/file.ino | examples/file/file.ino | // ------------------------------------
// URLにアクセスしてファイルを取得する
// ------------------------------------
#include <TESP8266.h>
// Wifi
const char* SSID = "xxx";
const char* PASSWORD = "xxx";
// URL http://www.example.com/iot/file.txt
const char* HOST = "www.example.com";
const char* PATH = "/iot/file.txt";
... | // ------------------------------------
// URLにアクセスしてファイルを取得する
// ------------------------------------
#include <TESP8266.h>
// Wifi
const char* ssid = "xxx";
const char* password = "xxx";
// URL http://www.example.com/iot/file.txt
const char* host = "www.example.com";
const char* path = "/iot/file.txt";
... | Update file.ino | Update file.ino | Arduino | mit | TakeshiOkamoto/TESP8266,TakeshiOkamoto/TESP8266 |
7b8c5039eb2da27a3ea1d55e2ca113ffb02e40fc | firmware/examples/Sparkfun_ADJD-S311.ino | firmware/examples/Sparkfun_ADJD-S311.ino | #include "Sparkfun_ADJD-S311/Sparkfun_ADJD-S311.h"
#include <Wire.h>
int sensorLed_pin = 2; //LED on the ADJDS-311
ADJDS311 colorSensor(sensorLed_pin);
//if using an RGB LED (Needs PWM Pins)
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
void setup(){
Serial.begin(9600);
colorSensor.init();
colorSensor.ledO... | #include "Sparkfun_ADJD-S311/Sparkfun_ADJD-S311.h"
#include <Wire.h>
int sensorLed_pin = 2; //LED on the ADJDS-311
ADJDS311 colorSensor(sensorLed_pin);
//if using an RGB LED (Needs PWM Pins)
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
void setup(){
Serial.begin(9600);
if (colorSensor.begin()) {
Serial.... | Update Sparkfun_ADJD-S311.ino | Update Sparkfun_ADJD-S311.ino | Arduino | bsd-3-clause | sauloalspark/Sparkfun_ADJD-S311,sauloalspark/Sparkfun_ADJD-S311 |
e25944a620f780ade15287de76fefa2e3be03988 | org/lrn/apollo/apollo.ino | org/lrn/apollo/apollo.ino | /* Four Digit Hex Counter */
/* Uses: one 74HC595 shift register */
/* one four digit seven segment display - common cathode (5461AS-1) */
/* four 2N2222A transistors */
const int digit0 = 14; // 7-Segment pin D4 J1
const int digit1 = 15; // 7-Segment pin D3 J4
const int digit2 = 16; /... | /* Four Digit Hex Counter */
/* Uses: one 74HC595 shift register */
/* one four digit seven segment display - common cathode (5461AS-1) */
/* four 2N2222A transistors */
const int digit0 = 14; // 7-Segment pin D4 J1
const int digit1 = 15; // 7-Segment pin D3 J4
const int digit2 = 16; /... | fix case break bug | apollo: fix case break bug
| Arduino | agpl-3.0 | rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru,rigidus/rigidus.ru |
6908993bad0787482f38df6c93c1aad9202f34e8 | examples/SimpleRxTx/SimpleRxTx.ino | examples/SimpleRxTx/SimpleRxTx.ino | /*
* Zeta RF Getting Started Code Example.
* Basic example on how to send messages back and forth between two modules.
*
* Usage: write this sample on both boards and send text over serial!
*/
#include <ZetaRF.h>
// Zeta modules transmit messages using fixed size packets, define here the max size you want to use... | /*
* Zeta RF v2 Getting Started Code Example.
* Basic example on how to send messages back and forth between two modules using fixed size packets.
*
* Usage: write this sample on both boards and send text over serial!
*/
#include <ZetaRF.h>
// Zeta modules transmit messages using fixed size packets, define here ... | Update example for v2 | Update example for v2
| Arduino | bsd-3-clause | GIPdA/ZetaRF,GIPdA/ZetaRF |
f97087c02dc4dd54810dd4d1288ff540d7bc99ba | examples/sleep/sleep.ino | examples/sleep/sleep.ino | void setup() {
// We don't need to set anything up here
}
void loop() {
// Check if LED is on
if (Bean.getLedGreen() == 0) {
// LED is off. Turn LED on and sleep for 1 second
Bean.setLedGreen(255);
Bean.sleep(1000);
} else {
// LED is on. Turn LED off and sleep for 4 seconds
Bean.setLedGree... | void setup() {
// We don't need to set anything up here
}
void loop() {
// Check if LED is on
if (Bean.getLedGreen() == 0) {
// LED is off. Turn LED on and sleep for 1 second
Bean.setLed(0, 255, 0);
Bean.sleep(1000);
} else {
// LED is on. Turn LED off and sleep for 4 seconds
Bean.setLed(0,... | make sleep example consistent with others | docs: make sleep example consistent with others
| Arduino | lgpl-2.1 | PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware |
8c1e248f610a170d89afdc0e598342bdd43971c5 | ArduinoCar/ArduinoCar.ino | ArduinoCar/ArduinoCar.ino | #include <PID_v1.h>
#define pinA A1
#define INTA 2
#define INTB 3
const int EA=9;
const int EB=10;
const int pinLa=7;
const int pinLb=8;
const int pinRa=12;
const int pinRb=13;
double SetpointL, SetpointR;
double Kp=0.6, Ki=5, Kd=0;
double outputL, outputR;
double inputL, inputR, speedvalueL, speedvalueR;
bool Direc... | #include <PID_v1.h>
const int EA=9;
const int EB=10;
const int pinLa=7;
const int pinLb=8;
const int pinRa=12;
const int pinRb=13;
const int trigpin=4;
const int echopin=5;
double SetpointL=10, SetpointR=10;
double Kp=0.6, Ki=5, Kd=0;
double outputL, outputR;
double inputL, inputR, speedvalueL, speedvalueR;
bool Dire... | fix sth | fix sth
| Arduino | mit | lxgouc/Qt-tcp-opencv,lxgouc/Qt-tcp-opencv |
ddcd22476c7e0c9dc89f521706cf85fb5565b437 | code/code.ino | code/code.ino | #define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#include <SD.h>
#include <Wire.h>
#include "PID.h"
void Task100Hz(void);
extern void initI2CMPU(void);
extern void getMPUValues(void);
extern void printMPUValues(void);
extern void measureIMU... | #define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#include <SD.h>
#include <Wire.h>
#include "PID.h"
void Task100Hz(void);
extern void initI2CMPU(void);
extern void getMPUValues(void);
extern void printMPUValues(void);
extern void measureIMU... | Update code.ino | Update code.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
4f7ebde7ca5ff0e53ae1b38cb21816b6ac9609b0 | ins-node/src/wifi_module/wifi_module.ino | ins-node/src/wifi_module/wifi_module.ino | #include <stdint.h>
#include <vector>
#include <utility>
#include <ESP8266WiFi.h>
#include "wifi_credentials.h"
ESP8266WiFiClass wifi;
EspClass espPower;
const uint8_t DEVICE_ID = 1; // The identification for the specific node
const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connection attempts
const... | #include <stdint.h>
#include <vector>
#include <utility>
#include <ESP8266WiFi.h>
#include "wifi_credentials.h"
ESP8266WiFiClass wifi;
EspClass espPower;
const uint8_t DEVICE_ID = 1; // The identification for the specific node
const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connection attempts
const... | Fix module never going to sleep after failed connection | Fix module never going to sleep after failed connection
| Arduino | apache-2.0 | platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system |
b7b1a44e5ca85699a6f4b25a2fa6c3a923fa2c3f | AutoChime/debug_funcs.ino | AutoChime/debug_funcs.ino | #include "class.h"
#include "score_book.h"
using namespace std;
void testServo(Chime chime, Serv servo_id) {
int v = 0;
while(v != -1) {
v = WaitParseInt(Serial);
Serial.printf("Sending %d[us]...\n", v);
chime.MoveServo(servo_id, v);
}
}
void testTone(bool isShort) {
int v = 0;
while(v != -1) {... | #include "class.h"
#include "score_book.h"
using namespace std;
void testServo(Chime chime, Serv servo_id) {
int v = 0;
while(true) {
v = WaitParseInt(Serial);
if(v == -1) { break; };
Serial.printf("Sending %d[us]...\n", v);
chime.MoveServo(servo_id, v);
}
}
void testTone(bool isShort) {
int ... | Fix minus vals | Fix minus vals
| Arduino | mit | puhitaku/AutoChime |
07d3abcc3959c906c9476a38487e1adc8d640f14 | PocketGeigerArduino.ino | PocketGeigerArduino.ino | //////////////////////////////////////////////////
// Radiation-Watch.org
// URL http://www.radiation-watch.org/
//////////////////////////////////////////////////
const double alpha=53.032; // cpm = uSv x alpha
int index=0; //Number of loops
char msg[256]=""; //Message buffer for serial output
int signCount=0; //C... | //////////////////////////////////////////////////
// Radiation-Watch.org
// URL http://www.radiation-watch.org/
//////////////////////////////////////////////////
class RadiationWatch
{
public:
RadiationWatch(int signPin, int noisePin);
void setup();
void loop();
void printKey();
in... | convert rest of code to C++ | convert rest of code to C++
| Arduino | mit | MonsieurV/ArduinoPocketGeiger |
8bd568a8a635424eed1b205a426e50e8ceea940d | MagnusCore/MagnusCore.ino | MagnusCore/MagnusCore.ino | #include <Adafruit_NeoPixel.h>
#include <stdlib.h>
#include <string.h>
#include "animation.hpp"
#include "circbuff.hpp"
// first communication pin for neo pixel string
#define BASE_PIN 2
#define NUM_STRINGS 1 // one for each resonator
//#define NUM_STRINGS 8 // one for each resonator
const uint16_t LEDS_... | #include <Adafruit_NeoPixel.h>
#include <stdlib.h>
#include <string.h>
#include "animation.hpp"
#include "circbuff.hpp"
// first communication pin for neo pixel string
#define BASE_PIN 2
#define NUM_STRINGS 1 // one for each resonator
//#define NUM_STRINGS 8 // one for each resonator
const uint16_t LEDS_... | Clean up animation code | Clean up animation code
| Arduino | mit | TeamNorCal/arduino-portal-core |
88cf211ce21be52de67d90ce25c633dbdc07d253 | ArduinoMazeSolver/ArduinoMazeSolver.ino | ArduinoMazeSolver/ArduinoMazeSolver.ino | #include "Motor.h"
#include <QTRSensors.h>
#include "Direction.h"
#include <SoftwareSerial.h>
#pragma region "Pin declarations"
const unsigned char ledPins[] = { 4, 5, 6, 7 };
unsigned char sensorPins[] = { 0, 1, 2, 3, 4, 5 };
SoftwareSerial bluetooth(7, 10); // RX, TX
#pragma endregion
#pragma region "Variable ... | #include "Motor.h"
#include <QTRSensors.h>
#include "Direction.h"
#include <SoftwareSerial.h>
#pragma region "Pin declarations"
const unsigned char ledPins[] = { 4, 5, 6, 7 };
unsigned char sensorPins[] = { 0, 1, 2, 3, 4, 5 };
SoftwareSerial bluetooth(7, 10);
#pragma endregion
#pragma region "Constant declarations"
c... | Remove showing the path with LEDs to make it ready for Bluetooth | Remove showing the path with LEDs to make it ready for Bluetooth
those stupid line endings are really annoying
| Arduino | mit | JanBakunin/maze-solving,JanBakunin/maze-solving,JanBakunin/maze-solving |
74f38c22e3093ebb5a047ffb85627d44ee037a03 | src/monitor-firmware.ino | src/monitor-firmware.ino | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
// 16-bit address bus value
unsigned int address_bus;
// 8-bit data bus value
byte data_bus;
// Status bits
byte status_bits;
enum StatusBitMask {
SB_RWBAR = 0x01,
SB_IRQBAR ... | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
// 16-bit address bus value
unsigned int address_bus;
// 8-bit data bus value
byte data_bus;
// Status bits
byte status_bits;
enum StatusBitMask {
SB_RWBAR = 0x01,
SB_IRQBAR ... | remove some dead code | remove some dead code
| Arduino | mit | rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri |
cfb4d3c2b1aef1d0a23f2a3388e7ffb5cb3db50c | pcd8544.ino | pcd8544.ino | #include <SPI.h>
#include "ascii.h"
#include "big_numbers.h"
#include "pcd8544.h"
#define set_is_data() digitalWrite(PCD8544_PIN_DC, 1)
#define set_is_command() digitalWrite(PCD8544_PIN_DC, 0)
static uint8_t current_col = 0;
static uint8_t current_line = 0;
static inline void inc_col(void) {
if (++current_col >... | #include <SPI.h>
#include "ascii.h"
#include "big_numbers.h"
#include "pcd8544.h"
#define set_is_data() digitalWrite(PCD8544_PIN_DC, 1)
#define set_is_command() digitalWrite(PCD8544_PIN_DC, 0)
static uint8_t current_col = 0;
static uint8_t current_line = 0;
static inline void inc_col(void) {
if (++current_col >... | Update the draw_big_clock code so it looks good | Update the draw_big_clock code so it looks good
Yes, we've actually tried running some code against hardware, wow!
| Arduino | mit | xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc |
57f04e4a02c18071094336272e0452393382a2df | MiHome_Particle/src/MiHome_Particle.ino | MiHome_Particle/src/MiHome_Particle.ino | #include <ArduinoJson.h>
#include <adafruit-sht31.h>
#include "math.h"
// Setup the instances of the sensors
Adafruit_SHT31 sht31 = Adafruit_SHT31();
// Executes setup of the sensors
void setup() {
if (!sht31.begin(0x44)) {
Serial.println("Couldn't find SHT31");
}
}
// Starts the program loop
void loop() {... | #include <ArduinoJson.h>
#include <adafruit-sht31.h>
#include "math.h"
// Setup the instances of the sensors
Adafruit_SHT31 sht31 = Adafruit_SHT31();
// Executes setup of the sensors
void setup() {
if (!sht31.begin(0x44)) {
Serial.println("Couldn't find SHT31");
}
}
// Starts the program loop
void loop() {... | Clean up code | Clean up code
| Arduino | mit | johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome |
d19fbd8748594f514586766851addedda507749a | TClab/TClab_Firmware/TClab_Firmware.ino | TClab/TClab_Firmware/TClab_Firmware.ino | /*
Temperature Control Lab Firmware
This firmware is initially loaded into the Temperature Control Laboratory Arduino.
The firmware scans the serial port looking for case-insensitive commands:
Q1 int set Heater 1, range 0 to 255 subject to limit
Q2 int set Heater 2, range 0 to 255 subject to limit
... | /*
Temperature Control Lab Firmware
This firmware is initially loaded into the Temperature Control Laboratory Arduino.
The firmware scans the serial port looking for case-insensitive commands:
Q1 int set Heater 1, range 0 to 255 subject to limit
Q2 int set Heater 2, range 0 to 255 subject to limit
... | reset version number | reset version number
| Arduino | apache-2.0 | APMonitor/arduino,APMonitor/arduino,APMonitor/arduino |
8d54fdda8b5654c2ac239c01d80d71d0a47ff65f | pcd8544.ino | pcd8544.ino | #include <SPI.h>
#include "ascii.h"
#include "big_numbers.h"
#include "pcd8544.h"
#define pcd8544_set_is_data() digitalWrite(PCD8544_PIN_DC, 1)
#define pcd8544_set_is_command() digitalWrite(PCD8544_PIN_DC, 0)
static uint8_t current_x = 0;
static uint8_t current_line = 0;
static inline void inc_x(uint8_t count) {
... | #include <SPI.h>
#include "ascii.h"
#include "big_numbers.h"
#include "pcd8544.h"
#define pcd8544_set_is_data() digitalWrite(PCD8544_PIN_DC, 1)
#define pcd8544_set_is_command() digitalWrite(PCD8544_PIN_DC, 0)
static uint8_t current_x = 0;
static uint8_t current_line = 0;
static inline void inc_x(uint8_t count) {
... | Rework newline logic so it actually makes sense | Rework newline logic so it actually makes sense
| Arduino | mit | xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc |
b784c630b4baa95cd2dcf9f598a60c508d46567a | 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 THRESHOLD 1.1 // Only ma... | #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... | Fix mistake in comment. Limit is 2.34V, nothing else. | Fix mistake in comment. Limit is 2.34V, nothing else.
| Arduino | bsd-2-clause | mfalkvidd/arduino-plantmoisture |
1098c7145f337cda0a2690719354e6984b0dd35c | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | Move the delay which clarifies error flashing to a clearer place. | Move the delay which clarifies error flashing to a clearer place.
This delay is to separate the error flashes from the startup flash,
so lets keep it with the startup flashes.
| Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
32d3503248d641114e46c85a113367aa769ebfc0 | Alarm_Tone/Alarm_Tone.ino | Alarm_Tone/Alarm_Tone.ino | /* Play Melody
* -----------
*
* Program to play melodies stored in an array, it requires to know
* about timing issues and about how to play tones.
*
* The calculation of the tones is made following the mathematical
* operation:
*
* timeHigh = 1/(2 * toneFrequency) = period / 2
*
* where the different... | /* Play Melody
* -----------
*
* Program to play melodies stored in an array, it requires to know
* about timing issues and about how to play tones.
*
* The calculation of the tones is made following the mathematical
* operation:
*
* timeHigh = 1/(2 * toneFrequency) = period / 2
*
* where the different... | Set LEDs on alarm to not interfere with communications via delay function. | Set LEDs on alarm to not interfere with communications via delay function.
| Arduino | mit | drock371/arduino-water-level-warning-system,drock371/arduino-water-level-warning-system |
4a56e18ac68e845afbb1c62af091acb30770e12c | Sensors/GpsDataToSerial/GpsDataToSerial.ino | Sensors/GpsDataToSerial/GpsDataToSerial.ino | #include <SoftwareSerial.h>
SoftwareSerial SoftSerial(2, 3);
char buffer[265];
int count=0;
void setup()
{
SoftSerial.begin(9600);
Serial.begin(9600);
}
void loop()
{
if (SoftSerial.available())
{
while(SoftSerial.available())
{
buffer[count++]=SoftSerial.read();
if(count == 265)break;
... | #include <SoftwareSerial.h>
SoftwareSerial SoftSerial(2, 3);
char buffer[256];
int count=0;
void setup()
{
SoftSerial.begin(9600);
Serial.begin(9600);
}
void loop()
{
if (SoftSerial.available())
{
while(SoftSerial.available())
{
buffer[count++]=SoftSerial.read();
if(count == 256)break;
... | Update method to read the gps data | Update method to read the gps data
| Arduino | apache-2.0 | GillisWerrebrouck/SportModule,GillisWerrebrouck/SportModule |
b4e2499f1540905fa4ada82661be9085321482bb | arduino/floppy_control/floppy_control.ino | arduino/floppy_control/floppy_control.ino | #include <TimerOne.h>
// timing loop period (microseconds)
const byte LOOP_RESOLUTION = 40;
// head position range
const byte HEAD_MIN = 0;
const byte HEAD_MAX = 82;
// number of drives
const byte DRIVE_COUNT = 3;
// starting step control pin
const byte STARTING_PIN = 2;
// we assume step control pins occur on even... | #include <TimerOne.h>
// timing loop period (microseconds)
const byte LOOP_RESOLUTION = 40;
// head position range
const byte HEAD_MIN = 0;
const byte HEAD_MAX = 82;
// frequency range (A0 through B4)
const int FREQUENCY_MIN = 27;
const int FREQUENCY_MAX = 494;
// number of drives
const byte DRIVE_COUNT = 3;
// st... | Set up serial interface | Set up serial interface
| Arduino | mit | dstelljes/umm-floppy-choir,morrislenny/umm-floppy-choir,morrislenny/umm-floppy-choir,dstelljes/umm-floppy-choir |
5f5f75ed8bbf4addafc2c621ffe2b71471843f89 | ins-node/src/wifi_module/wifi_module.ino | ins-node/src/wifi_module/wifi_module.ino | #include <stdint.h>
#include <math.h>
#include <vector>
#include <utility>
#include <ESP8266WiFi.h>
#include "wifi_credentials.h"
ESP8266WiFiClass wifi;
EspClass espPower;
const uint8_t DEVICE_ID = 1; // The identification for the specific node
const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connect... | #include <stdint.h>
#include <math.h>
#include <vector>
#include <utility>
#include <ESP8266WiFi.h>
#include "wifi_credentials.h"
ESP8266WiFiClass wifi;
EspClass espPower;
const uint8_t DEVICE_ID = 1; // The identification for the specific node
const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connect... | Fix TCP request URI contents | Fix TCP request URI contents
| Arduino | apache-2.0 | platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system |
d522f031d7ec5bfd8cd849ea5b4b08f97e6120fa | examples/Expander32/EchoInput/EchoInput.ino | examples/Expander32/EchoInput/EchoInput.ino | #include <MCP23S17.h>
#ifdef __PIC32MX__
// chipKIT uses the DSPI library instead of the SPI library as it's better
#include <DSPI.h>
DSPI0 SPI;
#else
// Everytying else uses the SPI library
#include <SPI.h>
#endif
const uint8_t chipSelect = 10;
// Create an object for each chip
// Bank 0 is address 0
// Bank 1 is a... | // This example demonstrates how to use 2 MCP23S17 chips.
#include <MCP23S17.h>
#ifdef __PIC32MX__
// chipKIT uses the DSPI library instead of the SPI library as it's better
#include <DSPI.h>
DSPI0 SPI;
#else
// Everytying else uses the SPI library
#include <SPI.h>
#endif
const uint8_t targetPin = 15;
const uint8_t ... | add note about addressing | doc: add note about addressing | Arduino | bsd-3-clause | MajenkoLibraries/MCP23S17,MajenkoLibraries/MCP23S17,MajenkoLibraries/MCP23S17 |
866d5fd623e252182d825cb0abcb268068dbf7a5 | Ada_CurieBot_Phone/Ada_CurieBot_Phone.ino | Ada_CurieBot_Phone/Ada_CurieBot_Phone.ino | /*********************************************************************
This is CurieBot RC -- the Arduino 101 based robot using Bluetooth LE
Modified to drive a 3-wheeled BLE Robot Rover! by http://james.devi.to
Pick one up today in the Adafruit shop!
Adafruit invests time and resources providing this open source... | /*********************************************************************
This is CurieBot RC -- the Arduino 101 based robot using Bluetooth LE
Modified to drive a 3-wheeled BLE Robot Rover! by http://james.devi.to
Pick one up today in the Adafruit shop!
Adafruit invests time and resources providing this open ... | Update Ada_CurieBot_Phone.ino | Update Ada_CurieBot_Phone.ino | Arduino | mit | RedMikePumpkin/RC-CurieBot-Files |
20419de9f68c8147fc1abbc7c8aecddd18f3f6d2 | ArduinoGps/ArduinoGps.ino | ArduinoGps/ArduinoGps.ino | #include <TinyGPS++.h>
#include <Thread.h>
#include <SoftwareSerial.h>
#include "Common.h"
Thread sendDataThread;
Thread gpsStatsThread;
Thread blinkThread;
SoftwareSerial gpsSerial(3/*rx*/, 4/*tx*/);
volatile bool noInterrupt = false;
bool blinkStatus = false;
GpsData lastPositon = GpsData();
void setup() {
gpsSer... | #include <TinyGPS++.h>
#include <Thread.h>
#include <SoftwareSerial.h>
#include "Common.h"
Thread sendDataThread;
Thread gpsStatsThread;
Thread blinkThread;
SoftwareSerial gpsSerial(3/*rx*/, 4/*tx*/);
volatile bool noInterrupt = false;
bool blinkStatus = false;
GpsData lastPositon = GpsData();
void setup() {
gpsSer... | Update ArduinoGps.ino | Update ArduinoGps.ino | Arduino | mit | zatuliveter/arduino-open-gps-tracker |
57d33e063cc3c16efe084af9ac4bff36e5773b4b | examples/HMClientTest.ino | examples/HMClientTest.ino |
#include <ESP8266WiFi.h>
#include <HMClient.h>
const char* ssid = "Your SSID";
const char* passcode = "Your PASSCODE";
HMClient HM_Default;
HMClient HMU_UserDefined("Server1");
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.flush();
Serial.println("Booting");
W... |
#include <ESP8266WiFi.h>
#include <HMClient.h>
const char* ssid = "Your SSID";
const char* passcode = "Your PASSCODE";
HMClient Homematic;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.flush();
Serial.println("Booting");
WiFi.begin(ssid, passcode);
while (Wi... | Update HMClientTest.ino | Update HMClientTest.ino | Arduino | mit | IceMan66/HMClient |
dc2ed3ed830ac28c1ef548093b1a0dbb53da2a1a | Arduino/LightPlayer/LightPlayer.ino | Arduino/LightPlayer/LightPlayer.ino | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
apa106<D, 6> LEDstrip;
rgb frame[200];
// Test with reduced SPI speed for breadboards.
// Change spiSpeed to SPI_FULL_SPEED for better performance
// Use SPI_QUARTER_SPEED for even slower SPI bus speed
const uint8_t spiSpeed = SPI_FULL_SPEED;
//-------------... | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
apa106<D, 6> LEDstrip;
rgb frame[200];
// Test with reduced SPI speed for breadboards.
// Change spiSpeed to SPI_FULL_SPEED for better performance
// Use SPI_QUARTER_SPEED for even slower SPI bus speed
const uint8_t spiSpeed = SPI_FULL_SPEED;
//-------------... | Read multiple files from SD card in LightPlayer | Read multiple files from SD card in LightPlayer
Start with the first file on the SD card. At the end of each file, move
on to the next file on the SD card. Skip hidden and system files. When
all files have been read, loop back to the first file.
| Arduino | mit | godlygeek/LightRender,MaddAddaM/LightRender |
53ddbc2d5dbc63e6377f5ad63457316dca269f2a | examples/Balancer/Balancer.ino | examples/Balancer/Balancer.ino | // This example shows how to make a Balboa balance on its two
// wheels and drive around while balancing.
//
// To use this demo, place the robot on the ground with the
// circuit board facing up, and then turn it on. Be careful to
// not move the robot for a few seconds after powering it on,
// because that is when t... | // This example shows how to make a Balboa balance on its two
// wheels and drive around while balancing.
//
// To run this demo, you will need to install the LSM6 library:
//
// https://github.com/pololu/lsm6-arduino
//
// To use this demo, place the robot on the ground with the
// circuit board facing up, and then tu... | Add a note about installing the LSM6 library. | Balancer.ino: Add a note about installing the LSM6 library.
| Arduino | mit | pololu/balboa-32u4-arduino-library,pololu/balboa-32u4-arduino-library,pololu/balboa-32u4-arduino-library |
735ad43598e98aaa6d42c28b2930032525e7f15e | arduino/arduinoSetup/arduinoSetup.ino | arduino/arduinoSetup/arduinoSetup.ino |
#include <DS3231.h> //clock
void setup() {
//SET THE INITIAL TIME HERE-
// Manual (Year, Month, Day, Hour, Minute, Second)
DS3231 clock;
clock.begin();
clock.setDateTime(2016, 11, 25, 12, 44, 00);
}
void loop(){
}
|
#include <DS3231.h> //clock
void setup() {
//SET THE INITIAL TIME HERE-
// Manual (Year, Month, Day, Hour, Minute, Second)
DS3231 clock;
clock.begin();
clock.setDateTime(2017, 3, 16, 22, 12, 30);
}
void loop(){
}
| Add files via upload | Add files via upload
Semester Final | Arduino | mit | MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp |
bb30c1bd15e8bd69dda67401e663f31b413b4bdf | arduino/rfglow_slave/rfglow_slave.ino | arduino/rfglow_slave/rfglow_slave.ino | #include <EEPROM.h>
#include "cc1101.h"
//#include "regtable.h"
//#include "panstamp.h"
// ShiftPWM Setup
#define SHIFTPWM_NOSPI
const int ShiftPWM_latchPin = 9;
const int ShiftPWM_clockPin = 8;
const int ShiftPWM_dataPin = 7;
const bool ShiftPWM_invertOutputs = false;
const bool ShiftPWM_balanceLoad = false;
#includ... | #define power_adc_enable() (PRR &= (uint8_t)~(1 << PRADC))
#define power_adc_disable() (PRR |= (uint8_t)(1 << PRADC))
#define power_spi_enable() (PRR &= (uint8_t)~(1 << PRSPI))
#define power_spi_disable() (PRR |= (uint8_t)(1 << PRSPI))
#define power_usart0_enable() (PRR &= (uint8_t)~(1 << PRUSART0... | Disable adc to save an undetectable amount of power. Real power draw is from the CC1101 | Disable adc to save an undetectable amount of power. Real power draw is from the CC1101
| Arduino | apache-2.0 | jmkao/rfglow,jmkao/rfglow,jmkao/rfglow |
53f51d301a8559d384ba396fee78fb09fd8538ae | SmartAlarmClock/SmartAlarmClock.ino | SmartAlarmClock/SmartAlarmClock.ino | // Smart Alarm Clock
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Released under an MIT license (http://opensource.org/licenses/MIT)
#include <TouchScreen.h>
#include <TFT.h>
#include <Process.h>
// Functionality:
// Sets alarm based on earliest event in google calendar.
// Refresh button forces an up... | // Smart Alarm Clock
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Released under an MIT license (http://opensource.org/licenses/MIT)
#include <TouchScreen.h>
#include <TFT.h>
#include <Process.h>
// Functionality:
// Sets alarm based on earliest event in google calendar.
// Refresh button forces an up... | Clean up comments. | Clean up comments.
| Arduino | mit | punker76/SmartAlarmClock,tdicola/SmartAlarmClock |
4863e2fa076e35ecfc03acf7fe8db0d761890fac | dev/dev.ino | dev/dev.ino | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | Allow easy switch of credentials for DE & DHD! | Allow easy switch of credentials for DE & DHD! | Arduino | apache-2.0 | Denzo77/OTRadioLink,Denzo77/OTRadioLink,DamonHD/OTRadioLink,opentrv/OTRadioLink,opentrv/OTRadioLink,opentrv/OTRadioLink,Denzo77/OTRadioLink,DamonHD/OTRadioLink,DamonHD/OTRadioLink,opentrv/OTRadioLink,DamonHD/OTRadioLink,Denzo77/OTRadioLink |
24796694c3ca3a985686bc437fcbcef9040082f5 | 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 true
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.ino | Update selftest.ino | Arduino | bsd-3-clause | arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino |
3a87504b24148799ee4e8b2bd4b2aa3cf0cf959d | SmartAlarm.ino | SmartAlarm.ino | // DS1307 RTC setup stuff
#include <Wire.h>
#include <RTClib.h>
// =====================================================
// lcd setup things
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27 // I2C address of PCF8574A
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin ... | // DS1307 RTC setup stuff
#include <Wire.h>
#include <RTClib.h>
// =====================================================
// lcd setup things
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27 // I2C address of PCF8574A
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin ... | refactor date parser to use a union | refactor date parser to use a union
| Arduino | bsd-3-clause | alis0nc/SmartAlarm,alis0nc/SmartAlarm |
2ec3019bd3ce62f3f33744ca6ebaef966a5453ed | arduino_ide/wake_on_lan/wake_on_lan.ino | arduino_ide/wake_on_lan/wake_on_lan.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <Arduino.h>
#include <SPI.h>
#include <WiFiUDP.h>
#include "settings.h"
MDNSResponder mdns;
WiFiUDP udp;
ESP8266WebServer server(1337);
const char* ssid = WIFI_SSID;
const char* password = WIFI_PASSWORD;
St... | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <Arduino.h>
#include <SPI.h>
#include <WiFiUDP.h>
#include "settings.h"
MDNSResponder mdns;
WiFiUDP udp;
ESP8266WebServer server(1337);
const char* ssid = WIFI_SSID;
const char* password = WIFI_PASSWORD;
St... | Update wake_on_lan.ino | Update wake_on_lan.ino | Arduino | mit | iangray001/esp8266-wakeonlan,iangray001/esp8266-wakeonlan |
22fa35c6325be2741f6dab8c6445151cf49a1a01 | examples/APM_Barometer/APM_Barometer.ino | examples/APM_Barometer/APM_Barometer.ino | #include "Wire.h"
#include "SPI.h"
#include "Servo.h"
#include "DroneLibs.h"
/*
Altimeter, get a raw value and maybe a converted value to feet?
(through the Arduino Serial Terminal)
*/
MS5611 baro;
void setup(){
Serial.begin(9600);
baro.begin();
delay(100);
baro.calibrate();
}
void loop(){
float ... | #include "Wire.h"
#include "SPI.h"
#include "Servo.h"
#include "DroneLibs.h"
/*
Altimeter, get a raw value and maybe a converted value to feet?
(through the Arduino Serial Terminal)
*/
MS5611 baro;
void setup(){
Serial.begin(9600);
baro.begin();
delay(100);
baro.calibrate();
}
void loop(){
baro.u... | add barometer update call to loop as per API change | add barometer update call to loop as per API change
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
ed2c72d8396fbc72acb0353858a5aab31575145a | Arduino/ODriveArduino/examples/ODriveArduinoTest/ODriveArduinoTest.ino | Arduino/ODriveArduino/examples/ODriveArduinoTest/ODriveArduinoTest.ino |
#include <SoftwareSerial.h>
#include <ODriveArduino.h>
// Printing with stream operator
template<class T> inline Print& operator <<(Print &obj, T arg) { obj.print(arg); return obj; }
template<> inline Print& operator <<(Print &obj, float arg) { obj.print(arg, 4); return obj; }
// Serial to the ODrive
S... |
#include <SoftwareSerial.h>
#include <ODriveArduino.h>
// Printing with stream operator
template<class T> inline Print& operator <<(Print &obj, T arg) { obj.print(arg); return obj; }
template<> inline Print& operator <<(Print &obj, float arg) { obj.print(arg, 4); return obj; }
// Serial to the ODrive
S... | fix char to int conversion | fix char to int conversion
| Arduino | mit | madcowswe/ODrive,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware |
6ecea17bb0227cb600a5b92a0038b4b894769b63 | examples/multiple-read/multiple-read.ino | examples/multiple-read/multiple-read.ino | /*
Attention! Since Serial (aka UART0) is used for communication with the Viessmann boiler,
serial logging is disabled by default.
You can specify another printer like Serial1 or use a telnet server to see the debug messages.
*/
#include <ESP8266WiFi.h>
#include <VitoWifi.h>
const char* ssid = "xxxx";
const c... | /*
Attention! Since Serial (aka UART0) is used for communication with the Viessmann boiler,
serial logging is disabled by default.
You can specify another printer like Serial1 or use a telnet server to see the debug messages.
*/
#include <ESP8266WiFi.h>
#include <VitoWifi.h>
const char* ssid = "xxxx";
const c... | Fix DP[] in multiple-read example | Fix DP[] in multiple-read example
| Arduino | mit | bertmelis/VitoWifi,bertmelis/VitoWifi |
bff44c62eed610ae5ea4f733292ca222d98e1248 | little-switches/arduino/galoppo/galoppo.ino | little-switches/arduino/galoppo/galoppo.ino |
void setup() {
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
}
void loop() {
digitalWrite(5,HIGH);
delay(1000);
digitalWrite(5,LOW);
delay(1000);
digitalWrite(6,HIGH);
delay(1000);
digitalWrite(6,LOW);
delay(1000);
}
| #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
#define zampaAS 8
#define zampaAD 6
#define zampaPS 7
#define zampaPD 5
#define piede A0
#define tamburo 2
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
int tempo = 0;
void... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
e32b8c20c5217ad39d4f8a0801c460d0704c9671 | arduino/ControlProgram/ControlProgram.ino | arduino/ControlProgram/ControlProgram.ino | #include "Vehicle.hpp"
Vehicle *car;
void setup()
{
// Initializes car's servo motors.
car = new Vehicle(2, 3);
// Opens a serial connection through USB.
Serial.begin(9600);
while (!Serial);
// Prints help text.
Serial.println("Known commands:");
Serial.println(" move <number> D... | #include "Vehicle.hpp"
Vehicle *car;
void setup()
{
// Initialize car's servo motors.
car = new Vehicle(2, 3);
// Open a serial connection through USB.
Serial.begin(9600);
while (!Serial);
// Print help text.
Serial.println("Known commands:");
Serial.println(" move <number> Driv... | Use imperative tense in code comments | Use imperative tense in code comments
| Arduino | mit | ebkalderon/gesturebot,ebkalderon/gesturebot |
98dfd8a5f0bb8b9eb905580204a4b2fe8e8039c2 | motorcycle/motorcycle.ino | motorcycle/motorcycle.ino | /*
Esplora controller for Neopixels strip using sensors and inputs
to change strip colors and brightness for use on a motorcycle
*/
#include <Adafruit_NeoPixel.h>
#include <Esplora.h>
#include "definitions.h"
#include "board_controls.h"
#include "color_effects.h"
void setup() {
// initialize the serial commun... | /*
Esplora controller for Neopixels strip using sensors and inputs
to change strip colors and brightness for use on a motorcycle
*/
#include <Adafruit_NeoPixel.h>
#include <Esplora.h>
#include "definitions.h"
#include "board_controls.h"
#include "color_effects.h"
void setup() {
// initialize the serial commun... | make buttons recycle their mode in order to loop | make buttons recycle their mode in order to loop
| Arduino | mit | xdumaine/esplora-neopixels,xdumaine/esplora-neopixels |
f69695e08a6c925829f99ffaa0112f8a9b827595 | Arduino/can_bus_reader/can_bus_reader.ino | Arduino/can_bus_reader/can_bus_reader.ino | /****************************************************************************
CAN Read Demo for the SparkFun CAN Bus Shield.
Written by Stephen McCoy.
Original tutorial available here: http://www.instructables.com/id/CAN-Bus-Sniffing-and-Broadcasting-with-Arduino
Used with permission 2016. License CC By SA.
Distri... | /****************************************************************************
CAN Read Demo for the SparkFun CAN Bus Shield.
Written by Stephen McCoy.
Original tutorial available here: http://www.instructables.com/id/CAN-Bus-Sniffing-and-Broadcasting-with-Arduino
Used with permission 2016. License CC By SA.
Distri... | Add filtering by message ID | Add filtering by message ID
| Arduino | apache-2.0 | ofelbaum/can-bus-project,ofelbaum/can-bus-project |
c4407a48f6bb1a7755120405ec4f7c19c1ce6f9b | ComboKeypad/Keypad.ino | ComboKeypad/Keypad.ino | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | Update Keypad.ino | Update Keypad.ino | Arduino | mit | TeodorLys/Arduino_Projects |
9ab8a73781d181f58bf3fe42c4d6e7c27da44487 | ArduinoSmartShieldIrrigationController.ino | ArduinoSmartShieldIrrigationController.ino |
/**
****************************************************************************************************************************
* Irrigation Controller v2.4
* Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
* Arduino UNO with SmartThings Shield and an 8 Relay Mod... |
/**
****************************************************************************************************************************
* Irrigation Controller v2.4
* Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
* Arduino UNO with SmartThings Shield and an 8 Relay Mod... | Update ArduinoSmartShieldIrrigationController.ino | Update ArduinoSmartShieldIrrigationController.ino
Improves handling of queue when station times are null or zero. When station times are null or zero, they are not added to the queue and an updated status is returned to the SmartThings hub on the next cycle of the void loop(). | Arduino | apache-2.0 | anienhuis/smart_sprinkler,d8adrvn/smart_sprinkler |
4b7a3a11aa2f5b905662c99cc49ad2f84c78a629 | crypt-gears/gear_arduino/gear_arduino.ino | crypt-gears/gear_arduino/gear_arduino.ino | // hard-coded pin numbers for input/output
int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25},
{26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}};
... | // hard-coded pin numbers for input/output
int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25},
{26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}};
... | Update the TODOs | Update the TODOs
| Arduino | mit | bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne |
3682fccfb33afaeeabb054da74946ce425f6a051 | ESP-Logger/ESP-Logger.ino | ESP-Logger/ESP-Logger.ino | #include "ntpUtils.h"
#include "authUtils.h"
#include <FirebaseArduino.h>
#include <DHT.h>
#define DHTPIN D2
#define FANPIN D6
#define LIGHTPIN D5
#define SENSORPIN D8
#define DHTTYPE DHT11
#define DELAY_TIME_TO_SEND 5000 // 15 min
#define TABLE_LEITURA "leitura"
#define TABLE_MOTION "motion"
#define CLIENT_EMAIL "w... | #include "ntpUtils.h"
#include "authUtils.h"
#include <FirebaseArduino.h>
#include <DHT.h>
#define DHTPIN D2
#define FANPIN D6
#define LIGHTPIN D5
#define SENSORPIN D8
#define DHTTYPE DHT11
#define DELAY_TIME_TO_SEND 360 // 5 min
#define TABLE_LEITURA "leitura"
#define TABLE_MOTION "motion"
#define CLIENT_EMAIL "wel... | Send motion sensor in data node | Send motion sensor in data node
| Arduino | apache-2.0 | oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger |
6844f4497b7c42df8adfc8af57b21f3e5d9df4c8 | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
#include <SHT1x.h>
#include <DHT.h>
// soil related setup
#define soilDataPin 3
#define soilClockPin 4
SHT1x soilSensor(soilDataPin, soilClockPin);
float soilTemperature;
float soilMoisture;
// air temperature related setup
#define DHTPIN 2 // Humidity an... | /*
Arduino based self regulating kitchen garden
*/
#include <SHT1x.h>
#include <DHT.h>
// soil related setup
#define soilDataPin 3
#define soilClockPin 4
SHT1x soilSensor(soilDataPin, soilClockPin);
float soilTemperature;
float soilMoisture;
// air temperature related setup
#define DHTPIN 2 // Humidity an... | Add values so sensor data is stored | Add values so sensor data is stored
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden |
cfcd5ac16f03ca83c2cdc995ef8e59f2c9d2cea0 | Arduino/vj-flight-controller/vj-flight-controller.ino | Arduino/vj-flight-controller/vj-flight-controller.ino | // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// ... | // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// ... | Reset FIFO after read. | [Arduino] Reset FIFO after read.
Signed-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>
| Arduino | mit | j-be/vj-flight-controller,j-be/vj-flight-controller,j-be/vj-flight-controller |
04457412773166483471c6bda4e6888888a332f6 | DriveTrain/DriveTrain.ino | DriveTrain/DriveTrain.ino | #include <Servo.h>
Servo myservo1; // create servo object to control a servo
Servo myservo2;//pytyhon
Servo myservo3;
Servo myservo4;// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
int shooter1, shooter2, mag1, mag2;
void setup()
{
// myservo1.attac... | /*
Copyright (c) 2014, Rishi Desai
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 conditions and the following di... | Update DriveTrain.ino | Update DriveTrain.ino | Arduino | bsd-2-clause | Talos4757/NVIDIABot,apache8080/NVIDIABot |
71b107130e19d0104c7eac83b339dbf5bd6a71be | Pingduino/Pingduino.ino | Pingduino/Pingduino.ino | #include <Adafruit_NeoPixel.h>
#include "WaveUtil.h"
#include "WaveHC.h"
#include "Button.h"
#include "Game.h"
#include "Display.h"
#define P1PIN 2
#define P2PIN 3
#define LONGPRESS_TIME 1000
#define INACTIVEMILLIS 1200000 // 20 minutes
// Game Logics
volatile int p1Score = 0;
volatile int p2Sc... | #include <Adafruit_NeoPixel.h>
#include "WaveUtil.h"
#include "WaveHC.h"
#include "Button.h"
#include "Game.h"
#include "Display.h"
#define P1PIN 2
#define P2PIN 3
#define LONGPRESS_TIME 1000
#define INACTIVEMILLIS 10000 // 1200000 // 20 minutes
// Game Logics
volatile int p1Score = 0;
volatile... | Fix sleep and wake up | Fix sleep and wake up
| Arduino | mit | rubyist/pingduino,rubyist/pingduino |
c28f258bbd8ad89239b6a51fe0efed7acff76b13 | Programmer/Programmer.ino | Programmer/Programmer.ino | /*
Programmer.ino
Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino.
Data to write to flash is fed from standard SDCC produced Intel Hex format file using the
accompanying programmer.pl perl script. Start the Arduino script first and then run the
perl script.
When upload... | /*
Programmer.ino
Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino.
Data to write to flash is fed from standard SDCC produced Intel Hex format file using the
accompanying programmer.pl perl script. Start the Arduino script first and then run the
perl script.
When upload... | Fix reversed logic that prevented programming when infopage not changed | Fix reversed logic that prevented programming when infopage not changed
| Arduino | mit | baruch/nRF24LE1_Programmer |
d6bbbdea5565a4fbd02111887a89022cb84cb0a1 | examples/receive_check/receive_check.ino | examples/receive_check/receive_check.ino | // demo: CAN-BUS Shield, receive data with check mode
// send data coming to fast, such as less than 10ms, you can use this way
// loovee, 2014-6-13
#include <SPI.h>
#include "mcp_can.h"
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(... | // demo: CAN-BUS Shield, receive data with check mode
// send data coming to fast, such as less than 10ms, you can use this way
// loovee, 2014-6-13
#include <SPI.h>
#include "mcp_can.h"
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(... | Fix semicolon syntax errors | Fix semicolon syntax errors
| Arduino | mit | niklo666/CAN_BUS_Shield-1,Seeed-Studio/CAN_BUS_Shield,ro0lz/CAN_BUS_Shield,bethoma/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield,wdross/CAN_BUS_Shield,wdross/CAN_BUS_Shield,ro0lz/CAN_BUS_Shield,peppeve/CAN_BUS_Shield,sqlbyme/CAN_BUS_Shield,calufrax/CAN_BUS_Shield,calufrax/CAN_BUS_Shield,bethoma/CAN_BUS_Shield,Ductapemaste... |
1a0a780d286b44d80ec547976805514f07925059 | wifi_robot/wifi_robot.ino | wifi_robot/wifi_robot.ino | #define FINAL_THRESH 80
#define DIFF_THRESH 6
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
Serial2.begin(115200);
}
void loop() {
int front, back;
sp();
while(Serial1.available()) Serial1.read();
while(Serial2.available()) Serial2.read();
do {
while(!Serial1.available()) {
del... | #define FINAL_THRESH 80
#define DIFF_THRESH 7
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
Serial2.begin(115200);
Serial.println("Hello! I look for WiFi");
}
void loop() {
int front, back;
sp();
Serial.println("Clearing buffers...");
while(Serial1.available()) Serial1.read();
while(Se... | Add debug stuff | Add debug stuff
| Arduino | mit | BenjaminFair/makeathon2016 |
d7c7ffbba67bb67d5cb73f3480fd745840c1acf9 | code/MotorController/MotorController.ino | code/MotorController/MotorController.ino | #include <Bounce.h>
#include <avr/eeprom.h>
#include "LCDserNHD.h"
const char* versionString = "3.0.0";
const int CLOCKWISE = 1;
const int COUNTER_CLOCKWISE = 0;
// Required fuses: http://www.engbedded.com/fusecalc
// 16MHz external clock: avrdude -c usbtiny -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x... | #include <Bounce.h>
#include <avr/eeprom.h>
#include "LCDserNHD.h"
const char* versionString = "3.1.0";
const int CLOCKWISE = 1;
const int COUNTER_CLOCKWISE = 0;
// Required fuses: http://www.engbedded.com/fusecalc
// 16MHz external clock: avrdude -c usbtiny -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x... | Add the ability to reset the clock by shorting EXP3 and toggle debug display by shorting EXP2 | Add the ability to reset the clock by shorting EXP3 and toggle debug display by shorting EXP2
| Arduino | mit | SaintGimp/MotorController |
2664ba232e58a95db14b8fe47f5cb0e18a7b1fa8 | ESP8266HueEmulator/ESP8266HueEmulator.ino | ESP8266HueEmulator/ESP8266HueEmulator.ino | /**
* Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and
* requests URLs like /api/UjBZ0nvTLu7aMdOe but in the end it does not succeed "finding" the emulated bridge
* (even if the app is talking to it)
**/
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUDP.h>
#inclu... | /**
* Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and
* requests URLs like /api/UjBZ0nvTLu7aMdOe but in the end it does not succeed "finding" the emulated bridge
* (even if the app is talking to it)
**/
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUDP.h>
#inclu... | Add [] around response json. Now the Mac app Chroma for Hue http://chromaforhue.com can connect | Add [] around response json. Now the Mac app Chroma for Hue http://chromaforhue.com can connect
| Arduino | mit | Quanghoster/ESP8266HueEmulator |
9a61cad43104e7ddef69153f2769e2a9a619d515 | examples/FullyFeatured/FullyFeatured.ino | examples/FullyFeatured/FullyFeatured.ino | #include <ESP8266WiFi.h>
#include <Ticker.h>
#include <AsyncMqttClient.h>
#define WIFI_SSID "My_Wi-Fi"
#define WIFI_PASSWORD "my-awesome-password"
#define MQTT_HOST IPAddress(192, 168, 1, 10)
#define MQTT_PORT 1883
AsyncMqttClient mqttClient;
Ticker mqttReconnectTimer;
WiFiEventHandler wifiConnectHandler;
WiFiEvent... | #include <ESP8266WiFi.h>
#include <Ticker.h>
#include <AsyncMqttClient.h>
#define WIFI_SSID "My_Wi-Fi"
#define WIFI_PASSWORD "my-awesome-password"
#define MQTT_HOST IPAddress(192, 168, 1, 10)
#define MQTT_PORT 1883
AsyncMqttClient mqttClient;
Ticker mqttReconnectTimer;
WiFiEventHandler wifiConnectHandler;
WiFiEvent... | Use ticker once instead of attach in example | :art: Use ticker once instead of attach in example
| Arduino | mit | marvinroger/async-mqtt-client,marvinroger/async-mqtt-client,marvinroger/async-mqtt-client |
7c9c15d20ca5ba534b056b267b0f3f3d562c2fb5 | examples/LedController/LedController.ino | examples/LedController/LedController.ino | /*
* This sketch demonstrates using OmEspHelpers to serve a Web UI
* for controlling the built-in LED. To try it out, put in your
* own wifi network and password, and watch the serial monitor for
* it to print out the local IP address. Then browse that IP address.
*/
#include "OmEspHelpers.h"
#include "OmWebServe... | /*
* This sketch demonstrates using OmEspHelpers to serve a Web UI
* for controlling the built-in LED. To try it out, put in your
* own wifi network and password, and watch the serial monitor for
* it to print out the local IP address. Then browse that IP address.
*/
#include "OmEspHelpers.h"
#include <ESP8266Web... | remove unneeded include. | remove unneeded include.
| Arduino | mit | distrakt/OmEspHelpers,distrakt/OmEspHelpers |
6ddcd60bcb65380838a20455f425d58130cf9c73 | examples/WiFiAccessPoint/WiFiAccessPoint.ino | examples/WiFiAccessPoint/WiFiAccessPoint.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 o... |
/**
* Create a WiFi access point and provide a web server on it.
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
// Include the Denbit library.
#include <Denbit.h>
// Initialize the denbit.
Denbit denbit;
// Assign readable names to the led pin numbers
const int ledRgbRed = ... | Use the library | Use the library
| Arduino | mit | theapi/denbit,theapi/denbit |
50277436e514495d7498eb0dccbf7479d1a6ca53 | arduino/sketch_sample.ino | arduino/sketch_sample.ino | /* Скетч выше, каждые 3 секунды будет присылать в серийный порт следующее:
* <testkey:0>
* <testkey:1>
* <testkey:2>
* <testkey:3>
* *** и т.д.
*
* В Serial Manager для новой команды, в поле Ключ пишите testkey,
* поле Значение можете оставить пустым (тогда будет срабатывать событие каждый раз),
* либо постави... | /* Данный скетч, каждые 3 секунды будет присылать в серийный порт следующее:
* <testkey:0>
* <testkey:1>
* <testkey:2>
* <testkey:3>
* *** и т.д.
*
* В Serial Manager для новой команды, в поле Ключ пишите testkey,
* поле Значение можете оставить пустым (тогда будет срабатывать событие каждый раз),
* либо поста... | fix description in arduino sample | fix description in arduino sample
| Arduino | mit | delletenebre/SerialManager,delletenebre/SerialManager,delletenebre/SerialManager |
a1c40322b3ce32e885417595d11850dd73e9a4a2 | 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, A15, 4700, 1000 );
Password password = Password( "1234" );
void setup ()
{
Serial.begin(115200);
KP... | //Original 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, A15, 4700, 1000 );
Password password = Password( "1234" );
void setu... | Update KP_Password.ino | Update KP_Password.ino | Arduino | mit | AndrewMascolo/OnewireKeypad |
319f0ae5f33b1fdf9d0b4d997ab8acd9b9c6921c | libraries/AddicoreRFID/examples/Addicore_RFID_Example/Addicore_RFID_Example.ino | libraries/AddicoreRFID/examples/Addicore_RFID_Example/Addicore_RFID_Example.ino | // Example sketch to read the ID from an Addicore 13.56MHz RFID tag
// as found in the RFID AddiKit found at:
// http://www.addicore.com/RFID-AddiKit-with-RC522-MIFARE-Module-RFID-Cards-p/126.htm
#include <AddicoreRFID.h>
#include <SPI.h>
#define uchar unsigned char
#define uint unsigned int
uchar fifobytes;
uchar ... | // Example sketch to read the ID from an Addicore 13.56MHz RFID tag
// as found in the RFID AddiKit found at:
// http://www.addicore.com/RFID-AddiKit-with-RC522-MIFARE-Module-RFID-Cards-p/126.htm
#include <AddicoreRFID.h>
#include <SPI.h>
#define uchar unsigned char
#define uint unsigned int
uchar fifobyt... | Update Addicore_RFID_Example.ino | Update Addicore_RFID_Example.ino | Arduino | mit | steigeia/RFID_UNID_LOGGER,steigeia/RFID_UNID_LOGGER |
7b25afb6189fcbc4eb1486727056eacdba9483c0 | arduino/libraries/examples/DG408_AnalogMUX8to1_test/DG408_AnalogMUX8to1_test.ino | arduino/libraries/examples/DG408_AnalogMUX8to1_test/DG408_AnalogMUX8to1_test.ino | /*
DG408_AnalogMUX8to1.ino. - Library for interacting with the Vishay
DG408 Analog Multiplexer 8 channels to 1 port.
Created by Craig Wm. Versek, 2013-08-30
Released into the public domain.
*/
#include <SPI.h>
#include <DG408_AnalogMUX8to1.h>
//configure the DAC chip - on OLM port 4
DG40... | /*
DG408_AnalogMUX8to1.ino. - Library for interacting with the Vishay
DG408 Analog Multiplexer 8 channels to 1 port.
Created by Craig Wm. Versek, 2013-08-30
Released into the public domain.
*/
#include <SPI.h>
#include <DG408_AnalogMUX8to1.h>
//configure the MUX chip - on OLM port 4
DG40... | fix chip type in comment | fix chip type in comment
| Arduino | mit | p-v-o-s/olm-pstat,p-v-o-s/olm-pstat |
80f484b3e1809570ac7cd6f725dff43c6a50e893 | VideoMicStatus/VideoMicStatus.ino | VideoMicStatus/VideoMicStatus.ino | #include <ArduinoJson.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
//
// Hardware configuration
//
// Set up nRF24L01 radio on SPI bus plus pins 9 & 10
RF24 radio(9, 10);
const short red = 6;
const short green = 5;
const short blue = 3;
//
// Topology
//
// Radio pipe addresses ... | #include <ArduinoJson.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
//
// Hardware configuration
//
// Set up nRF24L01 radio on SPI bus plus pins 9 & 10
RF24 radio(9, 10);
const short red = 6;
const short green = 5;
const short blue = 3;
//
// Topology
//
// Radio pipe addresses ... | add termination character at the end of payload | fix: add termination character at the end of payload
| Arduino | mit | dkosasih/RPI-Arduino-communication-via-RF24 |
13e49c1e1eca9cc16ec7f27349f1f9610290a420 | libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino | libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino | /*
FSWebServer - Example WebServer with SPIFFS backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gen... | /*
FSWebServer - Example WebServer with SPIFFS backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gen... | Fix example fs api usage | Fix example fs api usage
| Arduino | lgpl-2.1 | Adam5Wu/Arduino,Adam5Wu/Arduino,Adam5Wu/Arduino,Adam5Wu/Arduino,Adam5Wu/Arduino |
ce985f0a1a5ae2143f58cc62ac2cc11a3b9183b3 | arduino/rflink/rflink.ino | arduino/rflink/rflink.ino | #include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "rfm69.h"
#include "cmdproc.h"
#include "editline.h"
#include "hal.h"
#include "radio.h"
// Arduino needs these in the .ino file ...
#include "SPI.h"
#include "EEPROM.h"
// EEPROM address of node id
#define EE_ADDR_ID 0
// number of time divisio... | #include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "rfm69.h"
#include "cmdproc.h"
#include "editline.h"
#include "hal.h"
#include "radio.h"
// Arduino needs these in the .ino file ...
#include "SPI.h"
#include "EEPROM.h"
// EEPROM address of node id
#define EE_ADDR_ID 0
// number of time divisio... | Add validation of node id | Add validation of node id
| Arduino | mit | bertrik/rflink,bertrik/rflink |
7b8c807a2e7313bd18dbead300ca8cb67e350193 | arduino/scetch/scetch.ino | arduino/scetch/scetch.ino | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;
const byte guideLaserPin = 29;
const byte powerLevel = 20;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte ... | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;
const byte guideLaserPin = 29;
const byte powerLevel = 20;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte ... | fix toInt conversion | fix toInt conversion
| Arduino | mit | antego/laser_control |
04a6d01a87a10f4ce4c9adc3205847a87da6885f | examples/Mux_and_Temps/Mux_and_Temps.ino | examples/Mux_and_Temps/Mux_and_Temps.ino |
/** ---------- Mux and Temps Test Code ----------------------------------------
Drive the PCA9548A Mux and read TMP275 Temp Sensors on each Mux channel
Part of PCA9548A Library Test Code
Copyright 2017 Systronix Inc www.systronix.com
--------------------------------------------------------------------------... |
/** ---------- Mux and Temps Test Code ----------------------------------------
Drive the PCA9548A Mux and read TMP275 Temp Sensors on each Mux channel
Part of PCA9548A Library Test Code
Copyright 2017 Systronix Inc www.systronix.com
--------------------------------------------------------------------------... | update to use current libraries; fix tmp275 error messaging; | update to use current libraries; fix tmp275 error messaging;
| Arduino | mit | systronix/Systronix_PCA9548A |
f511c9a9d1aaf50bdbe14e44e27443dd598b0cbc | examples/ArduinoUnoNano-basic/ArduinoUnoNano-basic.ino | examples/ArduinoUnoNano-basic/ArduinoUnoNano-basic.ino | /*
* Author: JP Meijers
* Date: 2016-02-07
* Previous filename: TTN-Mapper-TTNEnschede-V1
*
* This program is meant to be used with an Arduino UNO or NANO, conencted to an RNxx3 radio module.
* It will most likely also work on other compatible Arduino or Arduino compatible boards, like The Things Uno, but might n... | /*
* Author: JP Meijers
* Date: 2016-02-07
* Previous filename: TTN-Mapper-TTNEnschede-V1
*
* This program is meant to be used with an Arduino UNO or NANO, conencted to an RNxx3 radio module.
* It will most likely also work on other compatible Arduino or Arduino compatible boards, like The Things Uno, but might n... | Change ArduinoUnoNano basic example to use example code from TTN console to define keys. | Change ArduinoUnoNano basic example to use example code from TTN console to define keys.
| Arduino | apache-2.0 | jpmeijers/RN2483-Arduino-Library |
15e827fe5911b4f2cde76d23626c1fed30ba592f | examples/Export_Demo/Template_ESP32/Template_ESP32.ino | examples/Export_Demo/Template_ESP32/Template_ESP32.ino | /*************************************************************
This is a DEMO. You can use it only for development and testing.
You should open Setting.h and modify General options.
If you would like to add these features to your product,
please contact Blynk for Businesses:
http://www.blyn... | /*************************************************************
This is a DEMO. You can use it only for development and testing.
You should open Setting.h and modify General options.
If you would like to add these features to your product,
please contact Blynk for Businesses:
http://www.blyn... | Add USE_WROVER_BOARD | Add USE_WROVER_BOARD
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
972a5cd777eb3186dee89968168458dde8d22ab9 | examples/DemoReel100/DemoReel100.ino | examples/DemoReel100/DemoReel100.ino | #include "FastLED.h"
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rotate.
//
// -Mark Kriegsma... | #include "FastLED.h"
FASTLED_USING_NAMESPACE
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
//
// This example also shows one easy way to define multiple
// animations patterns and have them automatically rot... | Fix namespace in demo reel | Fix namespace in demo reel
| Arduino | mit | FastLED/FastLED,PaulStoffregen/FastLED,tullo-x86/FastLED,eshkrab/FastLED-esp32,FastLED/FastLED,wilhelmryan/FastLED,kcouck/FastLED,NicoHood/FastLED,kcouck/FastLED,remspoor/FastLED,FastLED/FastLED,remspoor/FastLED,FastLED/FastLED,eshkrab/FastLED-esp32,felixLam/FastLED,neographophobic/FastLED,PaulStoffregen/FastLED,neogra... |
8ff5f22afd272becf49cbcb561b7d0e49dd107d5 | esp8266/group_sensor/group_sensor.ino | esp8266/group_sensor/group_sensor.ino | /***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board:
----> https://www.adafruit.com/product/2471
Adafruit invests time and resources providing this open s... | /***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board:
----> https://www.adafruit.com/product/2471
Adafruit invests time and resources providing this open s... | fix humidity value in esp group sensor sketch | fix humidity value in esp group sensor sketch | Arduino | mit | adafruit/adafruit-io-basics,adafruit/adafruit-io-basics |
95ab2cec7b3957ab8decc85458b4ef6559ca0736 | 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.h>
VL6180X sensor;
void setup()
{
Wire.begin();
sensor.init();
sensor.configureDefault();
sensor.setTimeout(500);
}
void loop()
{
Serial.print(se... | Update RangeSingleShot.ino | Update RangeSingleShot.ino | Arduino | mit | dcabanis/vl6180x_lib |
3cefa3aefe97f08211ba8c534c3e6894ab3fa9da | arduino/blinkytape_orb.ino | arduino/blinkytape_orb.ino | #include "FastLED.h"
// hardware
#define NUM_LEDS 12
#define LED_CORRECTION TypicalSMD5050
#define DATA_PIN 13
#define BUTTON_IN 10
#define ANALOG_INPUT A9
#define EXTRA_PIN_A 7
#define EXTRA_PIN_B 11
// visuals
#define PULSE_MAX_VAL 255
#define PULSE_MIN_VAL 160
#define PULSE_DURATION_SLOW 3000
#define PULSE_DURATI... | #include "FastLED.h"
// hardware
#define NUM_LEDS 12
#define LED_CORRECTION TypicalSMD5050
#define DATA_PIN 13
#define BUTTON_IN 10
#define ANALOG_INPUT A9
#define EXTRA_PIN_A 7
#define EXTRA_PIN_B 11
// visuals
#define PULSE_MAX_VAL 255
#define PULSE_MIN_VAL 160
#define PULSE_DURATION_SLOW 6000
#define PULSE_DURATI... | Adjust pulse constants | Adjust pulse constants
| Arduino | mit | jtai/blinkytape-orb,jtai/blinkytape-orb |
448169b599047db4994ec224ee41a85befe90ff1 | src/pushbutton_python.ino | src/pushbutton_python.ino | void setup() {
// put your setup code here, to run once:
pinMode(8,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(digitalRead(8));
//Serial.println(analogRead(A4));
//Serial.println(analogRead(A5));
}
| void setup() {
// put your setup code here, to run once:
pinMode(8,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedl
if(digitalRead(8)==HIGH)
count++;
Serial.println(count);
}
| Update pushbutton_python.ino | Update pushbutton_python.ino | Arduino | mit | aniketrege/midi_band,aniketrege/midi_band,aniketrege/midi_band,aniketrege/midi_band,aniketrege/midi_band,aniketrege/midi_band |
1967906f2228d2a7c2a384287ac987eba3ac82ce | outdoor-ambient-sensor/outdoor-ambient-sensor.ino | outdoor-ambient-sensor/outdoor-ambient-sensor.ino | #include <WiFi.h>
#include <PubSubClient.h>
#include <esp_wifi.h>
#include <DallasTemperature.h>
// Device name
String device_name = "ambient-sensor-outdoor";
// WLAN settings
const char* ssid = "";
const char* password = "";
// 1: Thingspeak
// 2: MQTT
int output = 1;
// MQTT settings
// If you want to use Things... | #include <WiFi.h>
#include <PubSubClient.h>
#include <esp_wifi.h>
#include <DallasTemperature.h>
#include "esp_deep_sleep.h"
// Device name
String device_name = "ambient-sensor-outdoor";
// WLAN settings
const char* ssid = "";
const char* password = "";
// 1: Thingspeak
// 2: MQTT
int output = 1;
// MQTT settings
... | Add delay (#1) | Add delay (#1)
| Arduino | apache-2.0 | bastelgarage/ambient_sensor |
2c303ea514e750a7eb37eada3a8bbb58fb4a6471 | examples/HMClientTest.ino | examples/HMClientTest.ino |
#include <ESP8266WiFi.h>
#include <HMClient.h>
const char* ssid = "Your SSID";
const char* passcode = "Your PASSCODE";
HMClient Homematic;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.flush();
Serial.println("Booting");
WiFi.begin(ssid, passcode);
while (Wi... |
#include <ESP8266WiFi.h>
#include <HMClient.h>
const char* ssid = "Your SSID";
const char* passcode = "Your PASSCODE";
HMClient Homematic;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.flush();
Serial.println("Booting");
WiFi.begin(ssid, passcode);
while (Wi... | Update HMClientTest.ino | Update HMClientTest.ino | Arduino | mit | IceMan66/HMClient |
da9d6f1b0a6be677aaae6652d60a7abb8a6c39f8 | examples/pseudopod-wifi/pseudopod-wifi.ino | examples/pseudopod-wifi/pseudopod-wifi.ino | #include <SPI.h>
#include <WiFi.h>
#include <StandardCplusplus.h>
#include "pb_arduino_encode.h"
#include "pb_arduino_decode.h"
#include "MemoryFree.h"
#include <tentacle-pseudopod.h>
#include <tentacle.h>
#include "BufferStream.hpp"
#include "Arduino.h"
Pseudopod *pseudopod;
Tentacle tentacle;
char ssid[] = "o... | #include <SPI.h>
#include <WiFi.h>
#include <StandardCplusplus.h>
#include "pb_arduino_encode.h"
#include "pb_arduino_decode.h"
#include "MemoryFree.h"
#include <tentacle-pseudopod.h>
#include <tentacle.h>
#include "BufferStream.hpp"
#include "Arduino.h"
Pseudopod *pseudopod;
Tentacle tentacle;
char ssid[] = "o... | reconnect on disconnect | reconnect on disconnect
| Arduino | mit | octoblu/tentacle-pseudopod,octoblu/tentacle-pseudopod,octoblu/tentacle-pseudopod |
8d7f46728f5dbffe42b591347455a34a94d4a93f | infrared/simpleinfrared/simpleinfrared.ino | infrared/simpleinfrared/simpleinfrared.ino | /**
* based on this
* http://playground.arduino.cc/Main/PanasonicIrSensor
* use with some IR remote control
*
*
*
*/
int ledpin = 3; // this is just for reference
int irsensorpin = 2; // read digital
void setup(){
Serial.begin(9600);// for seeing whats going on
pinMode(ledpin, OUTPUT); // init
pinMode... | /**
* based on this
* http://playground.arduino.cc/Main/PanasonicIrSensor
* use with some IR remote control
*
*
*
*/
int ledpin = 13; // this is just for reference
int irsensorpin = 3; // read digital
void setup(){
Serial.begin(9600);// for seeing whats going on
pinMode(ledpin, OUTPUT); // init
pinMod... | update ir simple | update ir simple
| Arduino | mit | fabiantheblind/digitalio,fabiantheblind/digitalio |
b8c48cb439e1e7246e2f12fbb4c9509350bb13ac | ArduAutoController/ArduAutoController.ino | ArduAutoController/ArduAutoController.ino | #include <Wire.h>
#include <ArduinoNunchuk.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#define BAUDRATE 57600
const int led_pin = 13;
ArduinoNunchuk nunchuk = ArduinoNunchuk();
class RF24Test: public RF24
{
public: RF24Test(int a, int b): RF24(a,b) {}
};
RF24Test radio(9,10);
// Radio pipe address... | #include <Wire.h>
#include <ArduinoNunchuk.h>
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#define BAUDRATE 57600
const int led_pin = 13;
ArduinoNunchuk nunchuk = ArduinoNunchuk();
RF24 radio(9, 10);
// Radio pipe addresses for the 2 nodes to communicate.
const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF... | Update ArduAutoController.ino | Update ArduAutoController.ino | Arduino | mit | futureshocked/arduauto |
1f461f3513d246e8697c38441c9414ab8cd3c07c | DigitalSynthVRA8Px/DigitalSynthVRA8Px.ino | DigitalSynthVRA8Px/DigitalSynthVRA8Px.ino | #include "Arduino.h"
#include "common.h"
#include "synth.h"
#include "serial-in.h"
#include "audio-out.h"
void setup() {
noInterrupts();
Synth<0>::initialize();
SerialIn<0>::open();
AudioOut<0>::open();
}
void loop() {
while (true) {
if (SerialIn<0>::available()) {
uint8_t b = SerialIn<0>::read();... | #include "common.h"
#include "synth.h"
#include "serial-in.h"
#include "audio-out.h"
void setup() {
noInterrupts();
Synth<0>::initialize();
SerialIn<0>::open();
AudioOut<0>::open();
}
void loop() {
while (true) {
if (SerialIn<0>::available()) {
uint8_t b = SerialIn<0>::read();
Synth<0>::rece... | Improve codes | Improve codes
| Arduino | cc0-1.0 | risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p |
966eb90e29879db0eafaffdc3c6b4b2a47472ca2 | Node/Node.ino | Node/Node.ino | #include <Arduino.h>
#include <ArduinoOTA.h>
#include <SPI.h>
#include <Wire.h>
#include <SD.h>
#include <ESP8266mDNS.h>
#include <SI7021.h>
#include <Adafruit_BMP085.h>
#include <ArduinoJson.h>
using namespace ArduinoJson::Internals;
#include "..\lib\CO2\CO2.h"
#include "..\lib\Storage\Storage.h"
... | #include <Arduino.h>
#include <ArduinoOTA.h>
#include <SPI.h>
#include <Wire.h>
#include <SD.h>
#include <ESP8266mDNS.h>
#include <SI7021.h>
#include <Adafruit_BMP085.h>
#include <ArduinoJson.h>
using namespace ArduinoJson::Internals;
#include "..\lib\CO2\CO2.h"
#include "..\lib\Storage\Storage.h"
... | Add recording of measurements #5 | Add recording of measurements #5
Transmit data to UART in JSON #7
| Arduino | unlicense | gritcsenko/Node,gritcsenko/Node |
7ff17870c1769e445032b88f4b748923cf771ebe | motor_pump/motor_pump.ino | motor_pump/motor_pump.ino | #include <Average.h>
// Reserve space for 10 entries in the average bucket.
// Change the type between < and > to change the entire way the library works.
Average<int> moistoure(12);
const int switchPin =2;
const int motorPin =10;
int switchstate = 0;
const int Input = A5;
//float moistoure[]{0,0,0,0,0,0,0,0,0,0,0,0... | #include <Average.h>
// Reserve space for 10 entries in the average bucket.
// Change the type between < and > to change the entire way the library works.
Average<int> moistoure(12);
const int switchPin =2;
const int motorPin =10;
int switchstate = 0;
const int Input = A5;
//float moistoure[]{0,0,0,0,0,0,0,0,0,0,0,0... | edit soil values | edit soil values
| Arduino | mit | portalmaster12/plant |
180258071d97974082ab9b97096a15147eca8964 | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.8"
// Disable this if you don't want the relay to turn on with any single tap event
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.8"
// Disable this if you don't want the relay to turn on with any single tap event
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | Clarify restart reasons | Clarify restart reasons
| Arduino | mit | kylegordon/homie-sonoff-touch |
956df8e4344f395a671578e1e860e1250ed8e2ad | examples/firmware_check/firmware_check.ino | examples/firmware_check/firmware_check.ino | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. The functions are
* documented in MFRC522.cpp. P... | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. The functions are
* documented in MFRC522.cpp. P... | add comment | add comment
| Arduino | unlicense | miguelbalboa/rfid,northDacoder/rfid,yaalsn/rfid,Rotzbua/rfid,CapeSepias/rfid,smallkid/rfid,sophiekovalevsky/rfid,mirko314/rfid,LaloHao/rfid,hramrach/rfid,Rotzbua/rfid |
eb246ff00660da51ac700fed089740993c0b238e | robots/maproom/maproom.ino | robots/maproom/maproom.ino | #include "Robot.h"
// Change both of these if the ID of the robot changes
#define ROBOT_ID 1
#define HEARTBEAT_MSG "SENMR01HB"
// Serial options
#define HEARTBEAT 1
#define LOGGING 1
// Pins
#define pwmA 6
#define dirA 7
#define pwmB 5
#define dirB 4
#define pwmC 11
#define dirC 12
// Msg buffer
#define BUF_SIZE ... | #include "Robot.h"
// Change both of these if the ID of the robot changes
#define ROBOT_ID 1
#define HEARTBEAT_MSG "SENMR01HB"
// Serial options
#define HEARTBEAT 1
#define LOGGING 1
// Pins
#define pwmA 6
#define dirA 7
#define pwmB 5
#define dirB 4
#define pwmC 11
#define dirC 12
// Msg buffer
#define BUF_SIZE ... | remove old code | remove old code
| Arduino | apache-2.0 | O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots |
b75f068fc464cacc099efac9ce8aa00b6b7cb2ab | Counting_Button_Presses_while_LED_Lights_Up_Ver2/Counting_Button_Presses_while_LED_Lights_Up_Ver2.ino | Counting_Button_Presses_while_LED_Lights_Up_Ver2/Counting_Button_Presses_while_LED_Lights_Up_Ver2.ino | int ledPin = 6;
const int buttonPin = 7;
static int count = 0;
int buttonState = 0;
int preButtonState = 0;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
digitalWrite(ledPin, HIGH);
unsigned long time = millis ();
while... | int ledPin = 6;
const int buttonPin = 7;
static int count = 0;
int buttonState = 0;
int preButtonState = 0;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
digitalWrite(ledPin, HIGH);
unsigned long time = millis ();
while... | Update Counting_Button_Presses_while_LED_Lights_Up_Ver2.ino | Update Counting_Button_Presses_while_LED_Lights_Up_Ver2.ino | Arduino | mit | Haow1/API-HW |
d0f8f17373136b05be9109d6a08a7a63d431b26a | Firmware/Ball/Master-Board/Master-board.ino | Firmware/Ball/Master-Board/Master-board.ino | String version = "0.1.1";
/*
> FIRMWARE ONLY FOR AN ARDUINO NANO !! <
> IF YOU USE ANOTHER ARDUINO, ADAPT THE PINOUT <
###################################################
______ ______ _ _ ______ _____ _______
(____ \(____ \ | | | | ___ \(_____|_______)
____) )____) )__| | | | |... | String version = "0.1.1";
/*
http://shanes.net/another-nrf24l01-sketch-string-sendreceive/
> FIRMWARE ONLY FOR AN ARDUINO NANO !! <
> IF YOU USE ANOTHER ARDUINO, ADAPT THE PINOUT <
###################################################
______ ______ _ _ ______ _____ _______
(____ \(____ \ | ... | Update Master-board.ino | Update Master-board.ino | Arduino | mit | Gruniek/BB-UNIT,Gruniek/BB-UNIT |
8023117a4326656a8f3feb6fb4ccf2059c8e01cd | examples/BoardsAndShields/Arduino_Serial_USB/Arduino_Serial_USB.ino | examples/BoardsAndShields/Arduino_Serial_USB/Arduino_Serial_USB.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 Arduino_Serial_USB.ino | Update Arduino_Serial_USB.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
963c019a3ee8f8ecaee181721bef55e769705bfa | wcci/esp_at.ino | wcci/esp_at.ino | #include "private.h"
bool sendATCipClose() {
bool res = false;
Serial.println("AT+CIPCLOSE");
// listen for response
if (Serial.find("OK")) {
res = true;
} else {
}
return res;
}
bool sendATUnlockDoor() {
bool res = false;
String url_path = "GET /log_visit_state/0 HTTP/1.0\r\... | #include "private.h"
bool sendATCipClose() {
bool res = false;
Serial.println("AT+CIPCLOSE");
// listen for response
if (Serial.find("OK")) {
res = true;
} else { }
return res;
}
bool sendATUnlockDoor() {
bool res = false;
String url_path = "GET /log_visit_state/0 HTTP/1.1\r\n\r\n";
Serial... | Tidy code | Tidy code
| Arduino | mit | Sebring/wcci,Sebring/wcci |
f803e836f80bc22ad9301e25a32ed12cdd9bea1a | 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 |
0aa5b24730f8b1da59a86711a0f28b4fe88bc1d1 | examples/ttn-otaa-network-time/ttn-otaa-network-time.ino | examples/ttn-otaa-network-time/ttn-otaa-network-time.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... | Use explicit cast to avoid compiler errors | Use explicit cast to avoid compiler errors
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
c36a5ef949287200ca41095ed43b8b0115809e7d | projects/arduino/led_matrix_256/led_matrix_256.ino | projects/arduino/led_matrix_256/led_matrix_256.ino | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#include "IRremote.h" //Remote control library
#endif
#define NUM_OF_PIXELS 256
#define MATRIX_DATA_PIN 4
#define RECEIVER_PIN 12
IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv'
decode_results results; // create instance ... | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#include "IRremote.h" //Remote control library
#endif
#define NUM_OF_PIXELS 256
#define MATRIX_DATA_PIN 4
#define RECEIVER_PIN 12
IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv'
decode_results results; // create instance ... | Reduce storage requirements by making a color struct and only require 3 bytes per pixel vs 4. | Reduce storage requirements by making a color struct and only require 3 bytes per pixel vs 4.
| Arduino | mit | borq79/cs.edu,borq79/cs.edu |
e08cf47c3b62fe4667fa6cea16f5bc4163c04e61 | Wetteranzeige/Wetteranzeige.ino | Wetteranzeige/Wetteranzeige.ino | /*
* Copyright (C) 2017 Lakoja on github.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | /*
* Copyright (C) 2017 Lakoja on github.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Add Todo | Add Todo
| Arduino | apache-2.0 | Lakoja/Wetterwetter |
9c09298e38dba567f71a80eedc2d9fe93b826335 | Software/OpenCM9.04/RovMain/RovMain.ino | Software/OpenCM9.04/RovMain/RovMain.ino | //----------------------------------------------------------------------------
// 프로그램명 : RovMain
//
// 만든이 :
//
// 날 짜 :
//
// 최종 수정 :
//
// MPU_Type :
//
// 파일명 : RovMain.ino
//----------------------------------------------------------------------------
#include <Servo... | //----------------------------------------------------------------------------
// 프로그램명 : RovMain
//
// 만든이 :
//
// 날 짜 :
//
// 최종 수정 :
//
// MPU_Type :
//
// 파일명 : RovMain.ino
//----------------------------------------------------------------------------
#include <Servo... | Modify how to calculate LED value | Modify how to calculate LED value
Modify how to calculate LED value | Arduino | mit | oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov |
7f22544cf71024aa538e3b0ae746180d2ae2b454 | src/BaseNode/BaseNode.ino | src/BaseNode/BaseNode.ino | /**
*
*
* Pins:
* Hardware SPI:
* MISO -> 12
* MOSI -> 11
* SCK -> 13
*
* Configurable:
* CE -> 8
* CSN -> 7
*
*/
#include <SPI.h>
#include "RF24.h"
#include <EEPROM.h>
#define EEPROM_PHY_ADDR_START 0
#define RF24_PAYLOAD 32
#define BLOCK_S 0x40
#define BLOCK_R 0x80
#define BLOCK_I 0xC0
#define BLOCK_S_R... | /**
*
*
* Pins:
* Hardware SPI:
* MISO -> 12
* MOSI -> 11
* SCK -> 13
*
* Configurable:
* CE -> 8
* CSN -> 7
*
*/
#include <SPI.h>
#include "RF24.h"
#include <EEPROM.h>
#define EEPROM_PHY_ADDR_START 0
#define RF24_PAYLOAD 32
#define BLOCK_S 0x40
#define BLOCK_R 0x80
#define BLOCK_I 0xC0
#define BLOCK_S_R... | 解决上位机nodephyaddrburn连接node失败问题。方法:radio.begin()后再配置node的收发地址、功率等参数 | 解决上位机nodephyaddrburn连接node失败问题。方法:radio.begin()后再配置node的收发地址、功率等参数
| Arduino | mit | chinesebear/node,chinesebear/node |
70ed574e038623dd5ce117450ceb96ae72eec5a3 | Arduino/Moppy/Moppy.ino | Arduino/Moppy/Moppy.ino | //Necessary for timer interrupts
#include <TimerOne.h>
//Clears a specified bit
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr)&=~_BV(bit))
#endif
//Sets a specified bit
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr)|=_BV(bit))
#endif
//Examines a specified bit
//Use only for boolean comparisons
#ifndef ebi... | //Necessary for timer interrupts
#include <TimerOne.h>
//Clears a specified bit
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr)&=~_BV(bit))
#endif
//Sets a specified bit
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr)|=_BV(bit))
#endif
//Examines a specified bit
//Use only for boolean comparisons
#ifndef ebi... | Set all arrays back to 0 during resetAll(), not just the position array. | Set all arrays back to 0 during resetAll(), not just the position array.
| Arduino | agpl-3.0 | ElectronicsClub/Moppy-Project |
2165a1e317a367f4268742af795116be174b0c5b | src/main.ino | src/main.ino | #include <SoftwareSerial.h>
#include "Sds011.h"
#include "Pcd8544.h"
#include "Expander.h"
#include "Dht.h"
#include "DHT.h"
#ifdef ESP8266
#include <Wire.h>
#include <Ticker.h>
#endif
#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include "wifi_sta_pass.h"
#endif
static co... | #include <SoftwareSerial.h>
#include "Sds011.h"
#include "Pcd8544.h"
#include "Expander.h"
#include "Dht.h"
#ifdef ESP8266
#include <Wire.h>
#include <Ticker.h>
#endif
#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include "wifi_sta_pass.h"
#endif
static const int PM25_NORM... | remove unused include | main: remove unused include
| Arduino | mit | kadamski/arduino_sds011,kadamski/arduino_sds011,kadamski/arduino_sds011 |
e35b510ed963ebd84e34961d08698dbf1c65f087 | src/gateway/gateway.ino | src/gateway/gateway.ino | #include <RFM69.h>
#include <SPI.h>
#include "radioNode.h"
RFM69 radio;
byte ackCount=0;
uint32_t packetCount = 0;
void setup()
{
Serial.begin(SERIAL_BAUD);
delay(10);
RadioNode::setupRadio();
radio = RadioNode::getRadio();
}
void loop()
{
// check for new wireless data
// open connection to mqtt
// se... | #include "../common/secure.h"
#include "config.h"
#include "../common/defines.h"
#include <EEPROM.h>
#include <RFM69.h>
#include <SPI.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include "radioNode.h"
#define MAX_NODES 16
#define TOPIC_LENGTH
uint8_t mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED }; // get rea... | Add registration, topic storage and more to gateway.ino | Add registration, topic storage and more to gateway.ino
| Arduino | mit | Jaidan/jaidan-hab,Jaidan/jaidan-hab |
5e786da9c3466f42a4bcc516241bce4d4af85a9f | anavi-thermometer/anavi-thermometer/anavi-thermometer.ino | anavi-thermometer/anavi-thermometer/anavi-thermometer.ino | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
// For DHT22 temperature and humidity sensor
#include <DHT.h>
// For OLED display
#include <U8g2lib.h>
#include <Wire.h>
// For DS18B20 (waterproof) temperat... | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
// For DHT22 temperature and humidity sensor
#include <DHT.h>
// For OLED display
#include <U8g2lib.h>
#include <Wire.h>
// For DS18B20 (waterproof) temperat... | Support multiple DS18B20 | anavi-thermometer.ino: Support multiple DS18B20
Support multiple DS18B20 sensors but show only the temperature
values from the last one on the display.
Signed-off-by: Leon Anavi <be92910ae7bb6f58bb9b7c6f845bc30640119592@anavi.org>
| Arduino | mit | AnaviTech/anavi-examples,AnaviTech/anavi-examples |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.