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 |
|---|---|---|---|---|---|---|---|---|---|
68b7e42e8d492bc5f8556803281eca7fa09f8124 | examples/HelloBlinky/HelloBlinky.ino | examples/HelloBlinky/HelloBlinky.ino | #include <FastSPI_LED2.h>
#include <Animation.h>
#define LED_COUNT 60 // BlinkyTape has 60 LEDs!
struct CRGB leds[LED_COUNT]; // this struct contains 60 CRGB values. This is where
#define PIN_BUTTON 10
#define PIN_IO_A 7
#define PIN_IO_B 11
#define PIN_SIGNAL 13
#define PIN_INPUT 10
int color_set = 0;
// fir... | #include <FastSPI_LED2.h>
#include <Animation.h>
#define LED_COUNT 60 // BlinkyTape has 60 LEDs!
struct CRGB leds[LED_COUNT]; // this struct contains 60 CRGB values. This is where
#define PIN_BUTTON 10
#define PIN_IO_A 7
#define PIN_IO_B 11
#define PIN_SIGNAL 13
#define PIN_INPUT 10
int color_set = 0;
// fir... | Set max brightness to 93. | Set max brightness to 93.
| Arduino | mit | Blinkinlabs/BlinkyTape_Arduino |
dd5bd767e75d506399939130a63e091ac3ffae8a | examples/MatrixClock/MatrixClock.ino | examples/MatrixClock/MatrixClock.ino | /*
* This example is pulled from the DS1307RTC library with slight
* modifications to demonstrate how to use the alternate I2C pins
* accessible on the SmartMatrix Shield.
*
* Original DS1307RTC Library:
* https://www.pjrc.com/teensy/td_libs_DS1307RTC.html
*
* Requires a DS1307, DS1337 or DS3231 RTC chip connec... | /*
* This example is pulled from the DS1307RTC library with slight
* modifications to demonstrate how to use the alternate I2C pins
* accessible on the SmartMatrix Shield.
*
* Original DS1307RTC Library:
* https://www.pjrc.com/teensy/td_libs_DS1307RTC.html
*
* Requires a DS1307, DS1337 or DS3231 RTC chip connec... | Clear screen before updating clock/error message | Clear screen before updating clock/error message
| Arduino | mit | gregfriedland/SmartMatrix,mrwastl/SmartMatrix,gregfriedland/SmartMatrix,alexozer/SmartMatrix,alexozer/SmartMatrix,mrwastl/SmartMatrix |
329a0569ec13cf85cbe51e38b144cce0342fe0ac | src/monitor-firmware.ino | src/monitor-firmware.ino | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "io.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;
// Showing display test
byte showing_dt;
const in... | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "io.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;
// Showing display test
byte showing_dt;
const in... | make blinken lights blinken quicker | make blinken lights blinken quicker
| Arduino | mit | rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri |
e067fd3eb1c153994cf8944f786ada572b617815 | examples/Tests/Tests.ino | examples/Tests/Tests.ino | #include <Arduino.h>
#include "TeensyThreads.h"
volatile int p1 = 0;
volatile int p2 = 0;
volatile int p3 = 0;
volatile int p4 = 0;
void my_priv_func1(int data){
p1 = 0;
data *= 1000; // convert sec to ms;
int mx = millis();
while(1) {
p1++;
if ((int)millis() - mx > data) break;
}
}
void my_priv_f... | #include <Arduino.h>
#include "TeensyThreads.h"
volatile int p1 = 0;
volatile int p2 = 0;
volatile int p3 = 0;
volatile int p4 = 0;
void my_priv_func1(int data){
p1 = 0;
data *= 1000; // convert sec to ms;
int mx = millis();
while(1) {
p1++;
if ((int)millis() - mx > data) break;
}
}
void my_priv_f... | Add tests for fast locks | Add tests for fast locks
| Arduino | mit | ftrias/TeensyThreads |
25ff5b7d07e532ad508583ea2dc9b92c85c5ffd7 | datasafe.ino | datasafe.ino | #include <datasafe_screen.h>
/***************************************************
* @author: bboortz
* @license: bsd license
***************************************************/
/**** library includes ****/
#include "./datasafe.h"
/**** Logging settings ****/
//LogLib logger;
/**** widget library sett... | /***************************************************
* @author: bboortz
* @license: bsd license
***************************************************/
/**** library includes ****/
#include "./datasafe.h"
/**** Logging settings ****/
//LogLib logger;
/**** widget library settings ****/
datasafe_screen ds... | include removed /BB | include removed /BB
| Arduino | bsd-2-clause | bboortz/datasafe,bboortz/datasafe |
f6ec598db3c34cdee60a782d65c3417b6f266ef7 | examples/GettingStarted/ValuePull/ValuePull.ino | examples/GettingStarted/ValuePull/ValuePull.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 ValuePull.ino | Update ValuePull.ino
added link to simple timer library | Arduino | mit | csicar/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,CedricFinance/blynk-library,al1271/blynk-library,al1271/blynk-library,flashvnn/blynk-library,csicar/blynk-library,radut/blynk-library,johan--/blynk-library,ivankravets/blynk-library,sstocker46/blynk-library,al1271/blynk-library,sstocker46/blynk-librar... |
859f65cda9add9b3995ee17cdec23a72bb249f0b | plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino | plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Receiver Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <Servo.h>
#define button 4
RF24 ra... | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Receiver Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
int value = 0; // set values you need to zero
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>... | Update sketch_aug08b.ino | Update sketch_aug08b.ino | Arduino | apache-2.0 | mohamedalichelbi/Arduino-Plane |
f1c7d6fe7503449305649053667487da08c5c378 | _64-esp8266-atmega328p-i2c8x8-mma-8452-dash-button/a-02-atmega328p/a-02-atmega328p.ino | _64-esp8266-atmega328p-i2c8x8-mma-8452-dash-button/a-02-atmega328p/a-02-atmega328p.ino | // Clock internal 8MHz / Board : Atmega328 on breadboard
#include <LowPower.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include <avr/power.h>
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#define adc_disable() (ADCSRA &= ~(1<<ADEN... | // Clock internal 8MHz / Board : Atmega328 on breadboard
#include <LowPower.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include <avr/power.h>
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#define adc_disable() (ADCSRA &= ~(1<<ADEN... | remove delay | remove delay
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
1cbad588d5ef6792fa2d8c87045e9a96a83f6634 | firmware/water-controller/spark-water-control.ino | firmware/water-controller/spark-water-control.ino | #include "application.h"
//pins that control diferent watering zones
#define PIN_0 D0
#define PIN_1 D1 //front yard
#define PIN_2 D2 //garden
#define PIN_3 D3
#define PIN_4 D4
#define PIN_5 D5
#define PIN_6 D6
#define PIN_7 D7
char action[64];
char parameters[64];
#define ON "on"
#define OFF "off"
String *loopArgs... | #include "application.h"
//pins that control diferent watering zones
#define PIN_0 D0
#define PIN_1 D1 //front yard
#define PIN_2 D2 //garden
#define PIN_3 D3
#define PIN_4 D4
#define PIN_5 D5
#define PIN_6 D6
#define PIN_7 D7
char action[64];
char parameters[64];
#define ON "on"
#define OFF "off"
String *loopArgs... | refactor pin control code | refactor pin control code
| Arduino | mit | berkley/spark,berkley/spark,berkley/spark,berkley/spark |
82d95b7611286f62426bd3c31389a90d60282d2d | skittle-color-sorter.ino | skittle-color-sorter.ino | /*
Skittle Color Sorter
This sketch programs the Skittle Color Sorter that we
assembled.
*/
// The circuit:
// * Top Servo
// Digital pin 13
#define PIN_TOP_SERVO 13
// * Bottom Servo (Arm)
// Digital pin 10
#define PIN_BTM_SERVO 10
// * Color Sensor
// SDA pin to analog pin 4
// SCL pin to analog p... | /*
Skittle Color Sorter
This sketch programs the Skittle Color Sorter that we
assembled.
*/
// The circuit:
// * Top Servo
// Digital pin 13
#define PIN_TOP_SERVO 13
// * Bottom Servo (Arm)
// Digital pin 10
#define PIN_BTM_SERVO 10
// * Color Sensor
// SDA pin to analog pin 4
// SCL pin to analog p... | Add more color operations | Add more color operations
| Arduino | mit | CharmySoft/skittle-color-sorter |
a3e577b0f58de0b25b0fb3c86ba38a211d1401ed | 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... | Set beacon slot offset to 5 ms. | Set beacon slot offset to 5 ms.
| Arduino | mit | bertrik/rflink,bertrik/rflink |
47b2a5ed16110aa2e898e283151fb1fb2667426d | 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... | Fix click-on-power | Fix click-on-power
| Arduino | mit | kspzel/LightControllerESP8266,kspzel/LightControllerESP8266,kspzel/LightControllerESP8266,kspzel/LightControllerESP8266 |
887150aec10e260e1ec96e456393d1b341136403 | Examples/Relay/Relay.ino | Examples/Relay/Relay.ino | /*
* This example may switch a Light ON after Sunset and turn it OFF before Sunrise
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <ESPMetRED.h>
#include <math.h>
#include <DHT.h>
c... | /*
* This example may switch a Light ON after Sunset and turn it OFF before Sunrise
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <ESPMetRED.h>
const char* MQTT_PUBLISH_TOPIC = "ESPM... | Update Relay.ino | Update Relay.ino
Removed libraries which are not required | Arduino | mit | HobbytronicsPK/ESPMetRED |
0429f0e73479d906f0a0bbee1ba8526e288bbf99 | pomodoro/pomodoro.ino | pomodoro/pomodoro.ino | #include <timestamp.h>
#include <debouncing.h>
#include "logic.h"
static timestamp<> timer_;
static debouncing<> btn_;
static pomodoro_logic logic_;
static const int pin_button = 14;
void setup() {
led_init();
btn_.init(pin_button);
logic_.init();
timer_.reset(0);
}
void loop() {
//... | #include <timestamp.h>
#include <debouncing.h>
#include <timing.h>
#include "logic.h"
static timestamp<> timer_;
static debouncing<> btn_;
static pomodoro_logic logic_;
static const int pin_button = 14;
void setup() {
led_init();
btn_.init(pin_button);
logic_.init();
timer_.reset(0);
... | add timing.h. | add timing.h.
| Arduino | mit | ximenpo/easy-pomodoro,ximenpo/easy-pomodoro |
6f06320ecd11a15272030c63c71a16a57f85e100 | src/sketch.ino | src/sketch.ino | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | Read incoming data as byte | Read incoming data as byte
Signed-off-by: Mark Knoop <f1b5a91d4d6ad523f2610114591c007e75d15084@markknoop.com>
| Arduino | agpl-3.0 | markk/loeffler-h,markk/loeffler-h |
cf2de41dac6f161d12ef1d1c23e85e789f43ad3e | Arduino/AK60-6/AK60-6.ino | Arduino/AK60-6/AK60-6.ino | #include <CAN.h>
#include <ServoInput.h> // github.com/dmadison/ServoInput
int tab[8];
int8_t myIndex;
int packetSize;
// limit data to be within bounds
float P_MIN = -12.5;
float P_MAX = 12.5 ;
float V_MIN = -41.87;
float V_MAX = 41.87;
float T_MIN = -9;
float T_MAX = 9;
float Kp_MIN = 0;
float Kp_MAX = 500;
float K... | #include <CAN.h>
#include <ServoInput.h> // github.com/dmadison/ServoInput
int tab[8];
int8_t myIndex;
int packetSize;
// limit data to be within bounds
float P_MIN = -12.5;
float P_MAX = 12.5 ;
float V_MIN = -41.87;
float V_MAX = 41.87;
float T_MIN = -9;
float T_MAX = 9;
float Kp_MIN = 0;
float Kp_MAX = 500;
float K... | Add control of second motor | Add control of second motor
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
93830e8b2ece4cb5680834b71b5230d74e3c0aff | Cymatic-Triangles/Mic.ino | Cymatic-Triangles/Mic.ino | #include "Wisp.h" /* Import Wisp class */
#include <FastLED.h>
#include "SPI.h" // Comment out this line if using Trinket or Gemma
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#define NUM_MIC_LEDS 27 /* LED's in the strip */
#define MIC_DATA_PIN 8 /* LED Data Pin */
... | #include "Wisp.h" /* Import Wisp class */
#include <FastLED.h>
#include "SPI.h" // Comment out this line if using Trinket or Gemma
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#define NUM_MIC_LEDS 27 /* LED's in the strip */
#define MIC_DATA_PIN 8 /* LED Data Pin */
... | Integrate mic animation with triangle animation | Integrate mic animation with triangle animation
| Arduino | artistic-2.0 | CymaSpace/Light-Installations |
a1817c7838870fcb008b99a93986ecdcc2e979a8 | fireplace.ino | fireplace.ino | /*
* Fireplace - Create a simple fireplace effect using a NeoPixel strip.
*
* http://sean-graham.com/
*/
#include "application.h"
#include "neopixel.h"
SYSTEM_MODE(AUTOMATIC);
// IMPORTANT: Set pixel COUNT, PIN and TYPE
#define PIXEL_PIN D2
#define PIXEL_COUNT 60
#define PIXEL_TYPE WS2812B
Adafruit_NeoPixel str... | /*
* Fireplace - Create a simple fireplace effect using a NeoPixel strip.
*
* http://sean-graham.com/
*/
#include "application.h"
#include "neopixel.h"
SYSTEM_MODE(AUTOMATIC);
// IMPORTANT: Set pixel COUNT, PIN and TYPE
#define PIXEL_PIN D2
#define PIXEL_COUNT 60
#define PIXEL_TYPE WS2812B
Adafruit_NeoPixel str... | set default brightness to max | set default brightness to max
| Arduino | mit | grahams/neopixel-fireplace,grahams/neopixel-fireplace |
dddd89092eab48aa344e6ccc6a442feff94bc683 | arduino/sketch_switch/sketch_switch.ino | arduino/sketch_switch/sketch_switch.ino | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
#include <PWM.h>
#define MSG_TYPE_UP 0x01
#define MSG_TYPE_DOWN 0... | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
//#include <PWM.h>
#define MSG_TYPE_UP 0x01
#define MSG_TYPE_DOWN... | Delete some codes | Delete some codes
| Arduino | mit | yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice |
a8e7aa99e8b6ba7413175cee738a6288bfcd765e | usermods/Wemos_D1_mini+Wemos32_mini_shield/wled06_usermod.ino | usermods/Wemos_D1_mini+Wemos32_mini_shield/wled06_usermod.ino | #include <U8x8lib.h> // from https://github.com/olikraus/u8g2/
#include <DallasTemperature.h> //Dallastemperature sensor
#ifdef ARDUINO_ARCH_ESP32 //ESP32 boards
uint8_t SCL_PIN = 22;
uint8_t SDA_PIN = 21;
// uint8_t RST_PIN = 16; // Uncoment for Heltec WiFi-Kit-8
OneWire oneWire(23);
#else //ESP8266 boards
uint8_t SC... | #include <U8x8lib.h> // from https://github.com/olikraus/u8g2/
#include <DallasTemperature.h> //Dallastemperature sensor
#ifdef ARDUINO_ARCH_ESP32 //ESP32 boards
uint8_t SCL_PIN = 22;
uint8_t SDA_PIN = 21;
OneWire oneWire(23);
#else //ESP8266 boards
uint8_t SCL_PIN = 5;
uint8_t SDA_PIN = 4;
// uint8_t RST_PIN = 16; //... | Update wled06_usermod.ino | Update wled06_usermod.ino | Arduino | mit | Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED |
11648f624feac8129c0944fa94d10ee8c49f3773 | examples/blinkm/blinkm.ino | examples/blinkm/blinkm.ino | /***
blinkm.ino: Bitlash BlinkM integration
Copyright (C) 2013 Bill Roy
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,... | /***
blinkm.ino: Bitlash BlinkM integration
Copyright (C) 2013 Bill Roy
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,... | add red(), green() and blue() to blinkm example | add red(), green() and blue() to blinkm example
| Arduino | mit | billroy/bitlash,Pinoccio/library-bitlash,billroy/bitlash,Pinoccio/library-bitlash,rflnogueira/pinoccio-library-bitlash,raumzeitlabor/bitlash,raumzeitlabor/bitlash,raumzeitlabor/bitlash,rflnogueira/pinoccio-library-bitlash,Pinoccio/library-bitlash,billroy/bitlash,Pinoccio/library-bitlash,rflnogueira/pinoccio-library-bit... |
0a4f3df04d39d4139af20b5a574da16ffd8ae6ca | examples/MarqueeText/MarqueeText.ino | examples/MarqueeText/MarqueeText.ino | #include <LEDMatrixDriver.hpp>
// This sketch draw marquee text on your LED matrix using the hardware SPI driver Library by Bartosz Bielawski.
// Example written 16.06.2017 by Marko Oette, www.oette.info
// Define the ChipSelect pin for the led matrix (Dont use the SS or MISO pin of your Arduino!)
// Other pins are a... | #include <LEDMatrixDriver.hpp>
// This sketch draw marquee text on your LED matrix using the hardware SPI driver Library by Bartosz Bielawski.
// Example written 16.06.2017 by Marko Oette, www.oette.info
// Define the ChipSelect pin for the led matrix (Dont use the SS or MISO pin of your Arduino!)
// Other pins are A... | Update the MarqueeText example docs | Update the MarqueeText example docs
| Arduino | mit | bartoszbielawski/LEDMatrixDriver |
df32ab6c2196ccc51a23d21eecdb0e41a7964ed5 | code/secondOrderFilter.ino | code/secondOrderFilter.ino | #include<SPI.h>
#include<Wire.h>
#define CUTOFF 21// The cutoff frequency
#define SAMPLE_RATE 100
#define NUM_FILTERS 6
enum {ACCEL_X , ACCEL_Y, ACCEL_Z, GYRO_X, GYRO_Y, GYRO_Z};
int16_t Tmp;
class filter
{
public:
static float coeff[5];
float filterInput(float input);
private:
float output[3]={0,0,0};
... | #include<SPI.h>
#include<Wire.h>
#define CUTOFF 21// The cutoff frequency
#define SAMPLE_RATE 100
#define NUM_FILTERS 6
enum {ACCEL_X , ACCEL_Y, ACCEL_Z, GYRO_X, GYRO_Y, GYRO_Z};
int16_t Tmp;
class filter
{
public:
float filterInput(float input);
private:
float output[3]={0,0,0};
float input[3]={0,0,0};
... | Update secondOrderFilter.ino | Update secondOrderFilter.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
c495e0415a3f05d4af7487db4ca36fe0d46739cf | 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 |
fe5f2f92d6db44ef41aea3a8707f009d842f8989 | src/Weather-Station.ino | src/Weather-Station.ino | #include <Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <SFE_BMP180.h>
#include <RtcDS3231.h>
#include <SD.h>
#include <RF24.h>
#include <LiquidCrystal.h>
#define CONNECTION_TYPE 0 // 0 is USB + SD, 1 is NRF24L01 + SD
#define BAUD 960... | #include <Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <SFE_BMP180.h>
#include <RtcDS3231.h>
#include <SD.h>
#include <RF24.h>
#include <LiquidCrystal.h>
#define CONNECTION_TYPE 0 // 0 is USB + SD, 1 is NRF24L01 + SD
#define BAUD 960... | Remove one space | Remove one space
| Arduino | mit | jagarciavi/Weather-Station |
9bc8f38fea3293eb781a70f43201891f47f83827 | examples/Test_InputDebounce/Test_InputDebounce.ino | examples/Test_InputDebounce/Test_InputDebounce.ino | /*
Test InputDebounce Arduino Library
Mario Ban, 05.2015
*/
#include "InputDebounce.h"
#define BUTTON_DEBOUNCE_DELAY 20 /* [ms] */
static const int pinLED = LED_BUILTIN; // 13
static const int pinSwitch = 2;
static InputDebounce buttonTest;
void setup()
{
// initialize digital pin 13 as an output
pin... | /*
Test InputDebounce Arduino Library
Mario Ban, 05.2015
*/
#include "InputDebounce.h"
#define BUTTON_DEBOUNCE_DELAY 20 /* [ms] */
static const int pinLED = LED_BUILTIN; // 13
static const int pinSwitch = 2;
static InputDebounce buttonTest;
void setup()
{
// initialize digital pin 13 as an output
pin... | Print button pressed time, if button released | Print button pressed time, if button released
| Arduino | apache-2.0 | Mokolea/InputDebounce |
a71b404966b16e6521f07e38b72b85131ac5457c | arduino/sketch_tc/sketch_tc.ino | arduino/sketch_tc/sketch_tc.ino | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#... | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#... | Add report and control of temp_ctrl | Add report and control of temp_ctrl
| Arduino | mit | yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice |
3561129948f361582298199f7b18a863b928e5c3 | dragino/dht22_ds18b20.ino | dragino/dht22_ds18b20.ino |
#include <Process.h>
#include "MQTTclient.h"
#include "DHT.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS_PIN A3
float tempC2 = 0;
float tempC3 = 0;
unsigned long time;
OneWire oneWire(ONE_WIRE_BUS_PIN);
DallasTemperature sensors(&oneWire);
//DeviceAddress probe01 = {0x28, 0xC7, 0xE... |
#include <Process.h>
#include "MQTTclient.h"
#include "DHT.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS_PIN A3
float tempC2 = 0;
float tempC3 = 0;
unsigned long time;
OneWire oneWire(ONE_WIRE_BUS_PIN);
DallasTemperature sensors(&oneWire);
//DeviceAddress probe01 = {0x28, 0xC7, 0xE... | Update dht22_ds18b20.ino | Update dht22_ds18b20.ino | Arduino | mit | pumanzor/iot-redlibre,pumanzor/iot-redlibre |
16ba90cf5fd2ecc9ad42fcaa4198b170aa939345 | Arduino/Navigation_Array.ino | Arduino/Navigation_Array.ino | #include <TinyGPS++.h>
#include <SoftwareSerial.h>
/*
This code reads the Analog Voltage output from the
LV-MaxSonar sensors
If you wish for code with averaging, please see
playground.arduino.cc/Main/MaxSonar
Please note that we do not recommend using averaging with our sensors.
Mode and Median filters are recommended.... | #include <TinyGPS++.h>
#include <SoftwareSerial.h>
/*
This code reads the Analog Voltage output from the
LV-MaxSonar sensors
If you wish for code with averaging, please see
playground.arduino.cc/Main/MaxSonar
Please note that we do not recommend using averaging with our sensors.
Mode and Median filters are recommended.... | Update Navigation_Array.ino | Update Navigation_Array.ino | Arduino | apache-2.0 | TheBatUNT/thebat,TheBatUNT/thebat,TheBatUNT/thebat,TheBatUNT/thebat,TheBatUNT/thebat |
9c0ec17fa5549f97ddd5b2820ab50e38572536bd | _68-acir-for-bedroom/_68-acir-for-bedroom.ino | _68-acir-for-bedroom/_68-acir-for-bedroom.ino | #include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <lgWhisen.h>
#include <WiFiUdp.h>
#include <TimeLib.h>
#define IR_TX_PIN 4
#define AC_CONF_TYPE 1 // 0: tower, 1: wall
#define AC_CONF_HEATING 0 // 0: cooling, 1: heating
#define AC_DEFAULT_TEMP 27 // temp 18 ~ 30
#define AC_DEF... | //
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <lgWhisen.h>
#include <TimeLib.h>
#include <ArduinoJson.h>
#define IR_TX_PIN 4
#define AC_CONF_TYPE 1 // 0: tower, 1: wall
#define AC_CONF_HEATING 0 // 0: cooling, 1: heating
#defin... | add ota | add ota
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
5e9f9e20d881c943f4c21810c3856b606aa77367 | mearm_knob/mearm_knob.ino | mearm_knob/mearm_knob.ino | // Controle de um braco robotico meArm usando poteciometros
// Baseado no exemplo servo -> knob
#include <Servo.h>
Servo servo1;
Servo servo2;
Servo servo3;
int controle1 = A0;
int controle2 = A1;
int controle3 = A2;
void setup()
{
servo1.attach(3);
servo2.attach(5);
servo3.attach(6);
}
void loop(... | // Controle de um braco robotico meArm usando poteciometros
// Baseado no exemplo servo -> knob
#include <Servo.h>
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
int controle1 = A0;
int controle2 = A1;
int controle3 = A2;
int controle4 = A3;
void setup()
{
servo1.attach(3);
servo2.attach(5);
ser... | Add fourth servo motor | Add fourth servo motor
| Arduino | apache-2.0 | ocarneiro/mearm |
05ea995d6c5c34d2e477b448770b172be6c75ffb | NTPclock/NTPclock.ino | NTPclock/NTPclock.ino | //----------------------------------------------------------------------------------------------------------------
// Clock.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
// Some ext... | //----------------------------------------------------------------------------------------------------------------
// Clock.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
// Some ext... | Remove stupid String dislay Logic | Remove stupid String dislay Logic
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
9275f661c815dabb2e0b61ac55988c3b3a492eb1 | roto.ino | roto.ino | /* Copyright (c) 2018 Peter Teichman */
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#include "manual.h"
#include "preamp_audio.h"
#include "tonewheel_osc_audio.h"
#include "vibrato_audio.h"
TonewheelOsc tonewheels;
Vibrato vibrato;
Preamp preamp;
AudioFilterBiquad a... | /* Copyright (c) 2018 Peter Teichman */
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
#include "manual.h"
#include "preamp_audio.h"
#include "tonewheel_osc_audio.h"
#include "vibrato_audio.h"
TonewheelOsc tonewheels;
Vibrato vibrato;
Preamp preamp;
AudioFilterBiquad a... | Add preamp usage to the CPU profile | Add preamp usage to the CPU profile
| Arduino | mit | pteichman/roto,pteichman/roto |
584e7ea874ac45040865c8b6c577413e2c3ea6df | examples/ALARM/ALARM.ino | examples/ALARM/ALARM.ino | #include "MqttConnection.h"
MqttConnection * myMqtt;
/************************* WiFi Access Point *********************************/
#define WLAN_SSID "SFR_34A8"
#define WLAN_PASS "ab4ingrograstanstorc"
#define SENSOR_ID "ALARM1"
#define ALARM_RELAY_PIN D6
/************************* MQTT **... | #include "MqttConnection.h"
MqttConnection * myMqtt;
/************************* WiFi Access Point *********************************/
#define WLAN_SSID "SFR_34A8"
#define WLAN_PASS "ab4ingrograstanstorc"
#define SENSOR_ID "ALARM1"
#define ALARM_LED_RELAY_PIN D5
#define ALARM_BUZ_RELAY_PIN ... | update with flashing and buzz alarm | update with flashing and buzz alarm
| Arduino | bsd-3-clause | scentelles/iot,scentelles/iot,scentelles/iot |
d357cf63efb6197167cbaacdf0b46e972135fd9c | tank/src/sketch.ino | tank/src/sketch.ino | /*
Arduinoで戦車を動かすためのプログラム
author:4869 */
#include<Servo.h>
#include<stdlib.h>
//定数宣言
#define MAX 250
#define NOM 50
//上の回線部分
const int Turn_A = 2;
const int Turn_B = 3;
//右モーター
const int Right_A = 4;
const int Right_B = 5;
const int Right_PWM = 6; //速度調整用のアナログピン
//左モーター
const int Left_PWM = 11;
const int Left_A ... | /*
Arduinoで戦車を動かすためのプログラム
author:4869 */
#include<Servo.h>
#include<stdlib.h>
//定数宣言
#define MAX 250
#define NOM 50
//発射
const int Push_A = 7;
const int Push_B = 8;
//上の回線部分
const int Turn_A = 2;
const int Turn_B = 3;
//右モーター
const int Right_A = 4;
const int Right_B = 5;
const int Right_PWM = 6;
//左モーター
const ... | add function of Push | add function of Push
| Arduino | mit | sh4869/TankGame |
522964553bd6e472a6096c11797c97c87d4be42c | moros/moros.ino | moros/moros.ino | // For the breakout, you can use any (4 or) 5 pins
#define cs_1 4
#define dc_1 5
#define rst_1 6
#define cs_2 7
#define dc_2 8
#define rst_2 9
#define btn_1 2
#define btn_1_interrupt 0
#define btn_2 3
#define btn_2_interrupt 1
#include <SPI.h>
#include <TFT.h>
#define CLOCK_STOP -1
#define DISPLAY_FONT_S... | // For the breakout, you can use any (4 or) 5 pins
#define cs_1 4
#define dc_1 5
#define rst_1 6
#define cs_2 7
#define dc_2 8
#define rst_2 9
#define btn_1_interrupt 0
#define btn_2_interrupt 1
#include <SPI.h>
#include <TFT.h>
#define CLOCK_STOP -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DIS... | Remove yet more dead code | Remove yet more dead code
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
d79d85c54d6152e7fe2066f6014ac9751ff68d3e | 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 |
610e01886980c97462bea14bd78f46b1550ac85a | 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... | Remove superfluous serial setup | Remove superfluous serial setup
| Arduino | mit | baruch/nRF24LE1_Programmer |
81b355dd787995b66bee783eed73d8c22e1b806b | arduino/standing-desk-timer/standing-desk-timer.ino | arduino/standing-desk-timer/standing-desk-timer.ino | /**
* TODO:
* - display minutes and seconds
* - blink led when time out
* - show timegoal for 5 seconds after button press
* - require button press to clear blinking and reset
* - hold down both to display battery
*/
#include "Arduino.h"
#include "Wire.h"
#include "Qduino.h"
#include <SoftwareSerial.h>
#include... | /**
* TODO:
* - display minutes and seconds
* - blink led when time out
* - show timegoal for 5 seconds after button press
* - require button press to clear blinking and reset
* - hold down both to display battery
*/
#include "Arduino.h"
#include "Wire.h"
#include "Qduino.h"
#include <SoftwareSerial.h>
#include... | add button debounce | add button debounce
| Arduino | mit | BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground,BenDoan/playground |
8a7382649d6db75844e12425fc14122ebd774a9c | WeatherStation-epaper.ino | WeatherStation-epaper.ino | /**The MIT License (MIT)
Copyright (c) 2017 by Hui Lu
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, pub... | /**The MIT License (MIT)
Copyright (c) 2017 by Hui Lu
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, pub... | fix bugs of readconfig | fix bugs of readconfig
| Arduino | mit | duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper |
bbc1612e75d65ba139685d1f1bd79df6f2cf2956 | engine-room/engine_arduino/engine_arduino.ino | engine-room/engine_arduino/engine_arduino.ino | #include <PololuLedStrip.h>
#include <LiquidCrystal.h>
#define STRIP_LENGTH 41
#define GRIDSIZE 7
#define DEBUG_FLAG true
#define USE_SERIAL false
// GRB color order...
#define RED rgb_color(0, 255, 0)
#define GREEN rgb_color(255, 0, 0)
#define BLUE rgb_color(0, 0, 255)
#define YELLOW rgb_color(255, 255, 0)
#define... | #include <PololuLedStrip.h>
#include <LiquidCrystal.h>
#define STRIP_LENGTH 41
#define GRIDSIZE 7
#define DEBUG_FLAG true
#define USE_SERIAL false
// GRB color order...
#define RED rgb_color(0, 255, 0)
#define GREEN rgb_color(255, 0, 0)
#define BLUE rgb_color(0, 0, 255)
#define YELLOW rgb_color(255, 255, 0)
#define... | Add wall constraints to engine | Add wall constraints to engine
| Arduino | mit | bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne |
7b09d28cd49daa2add61f74a9f58854bc1f303db | little-switches/arduino/3_setup-rel/3_setup-rel.ino | little-switches/arduino/3_setup-rel/3_setup-rel.ino | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
93c07f12f3605347bbd3ab2393290883047b3453 | DriveTrain/DriveTrain.ino | DriveTrain/DriveTrain.ino | /*
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... | /*
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 | apache8080/NVIDIABot,Talos4757/NVIDIABot |
41017e185d515bee857ef4f5098d18b660d1d15a | blink/blink.ino | blink/blink.ino | /*
blink
turn on and off a led on the pin D7 of the LoLin ESP-12E NodeMcu V3
*/
int led = 13; // D7 = GPIO13
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
| /*
blink
turn on and off a led on the pin D7 of the LoLin ESP-12E NodeMcu V3
*/
//int led = 13; // D7 = GPIO13
int led = LED_BUILTIN;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
| add LED_BUILTIN | add LED_BUILTIN
| Arduino | mit | jlebunetel/ESP8266-fun,jlebunetel/ESP8266-fun |
21179361fe41c1ed14771d86581fdeffdb01edd5 | arduino_repeater/arduino_repeater.ino | arduino_repeater/arduino_repeater.ino | /*
UKHASnet rf69_repeater code
based on rf22_client.pde/ino from the RF22 library
*/
#include <SPI.h>
#include <string.h>
#include "RFM69Config.h"
#include "RFM69.h"
#include "LowPower.h"
//*************Node ID Setup ****************/
char id[] = "P5";
char location_string[] = "50.9387,-1.3979";
uint8_t rfm_power =... | /*
UKHASnet rf69_repeater code
based on rf22_client.pde/ino from the RF22 library
*/
#include <SPI.h>
#include <string.h>
#include "RFM69Config.h"
#include "RFM69.h"
#include "LowPower.h"
//*************Node ID Setup ****************/
char id[] = "P5";
char location_string[] = "50.9387,-1.3979";
uint8_t rfm_power =... | Add RFM temperature offset for RX mode (self heating). | Add RFM temperature offset for RX mode (self heating).
| Arduino | mit | UKHASnet/UKHASnet_Firmware,sburggsx/UKHASnet_Firmware,UKHASnet/UKHASnet_Firmware,dbrooke/UKHASnet_Firmware,sburggsx/UKHASnet_Firmware,dbrooke/UKHASnet_Firmware |
88477c1a3297bd015b4168f647183f14d215719d | alarm.ino | alarm.ino | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define DEFAULT_TIME 1420070400UL // 1/1/2015 00:00:00 GMT
#define BUTTON_PULLUP true
#define BUTTON_INVERT... | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define DEFAULT_TIME 1420070400UL // 1/1/2015 00:00:00 GMT
#define BUTTON_PULLUP true
#define BUTTON_INVERT... | Tweak some comments. | Tweak some comments.
| Arduino | mit | jtwalters/arduino-alarm,jtwalters/arduino-alarm,jtwalters/arduino-alarm |
d67175a2ae21419fcd01a5215cf51028fe6138d7 | alarm.ino | alarm.ino | #include "action.h"
#include "alarm.h"
#include "libcwap.h"
#include "linked_list.h"
#include "menu.h"
#include "time.h"
typedef struct {
uint8_t actionno;
linked_list_t * actionspecs;
} action_t;
typedef struct {
uint8_t alarmno;
char * name;
time_t timestamp;
weekdays_t repetition;
linke... | #include "action.h"
#include "alarm.h"
#include "libcwap.h"
#include "linked_list.h"
#include "menu.h"
#include "time.h"
typedef struct {
uint8_t actionno;
linked_list_t * actionspecs;
} action_t;
typedef struct {
uint8_t alarmno;
char * name;
time_t timestamp;
weekdays_t repetition;
linke... | Allow prepare_action to be called without an alarm_t. | Allow prepare_action to be called without an alarm_t.
This means we can call it from functions that don't have a relevant alarm_t
reference at hand.
| Arduino | mit | xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc |
298be3b716d9a4990065d8a367983492830358fa | examples/FastCRC_Benchmark/FastCRC_Benchmark.ino | examples/FastCRC_Benchmark/FastCRC_Benchmark.ino | /*
FastCRC
Benchmark
(c) Frank Boesing 2014-2016
Edit FastCRC.h for smaller Tables (#define CRC_BIGTABLES 1) - not needed for Teensy 3.x
*/
#include <util/crc16.h>
#include <FastCRC.h>
#define LOFLASH // <- Uncomment this for devices with small flashmemory
//Determince the max. possible size for the da... | /*
FastCRC
Benchmark
(c) Frank Boesing 2014-2016
Edit FastCRC.h for smaller Tables (#define CRC_BIGTABLES 1) - not needed for Teensy 3.x
*/
#include <util/crc16.h>
#include <FastCRC.h>
//#define LOFLASH // <- Uncomment this for devices with small flashmemory
//Determince the max. possible size for the ... | comment LOFLASH | comment LOFLASH
| Arduino | mit | FrankBoesing/FastCRC,FrankBoesing/FastCRC |
85ebee75b4ec66663b3c3f814457f6f3826b5b86 | libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | /*
* This sketch trys to Connect to the best AP based on a given list
*
*/
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti WiFiMulti = ESP8266WiFiMulti();
void setup() {
Serial.begin(115200);
delay(10);
WiFiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1");
WiFiMul... | /*
* This sketch trys to Connect to the best AP based on a given list
*
*/
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;
void setup() {
Serial.begin(115200);
delay(10);
wifiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1");
wifiMulti.addAP("ssid_from_A... | Fix case in WiFiMulti example | Fix case in WiFiMulti example
| Arduino | lgpl-2.1 | jes/Arduino,gguuss/Arduino,Links2004/Arduino,Cloudino/Cloudino-Arduino-IDE,NextDevBoard/Arduino,esp8266/Arduino,Cloudino/Cloudino-Arduino-IDE,chrisfraser/Arduino,wemos/Arduino,lrmoreno007/Arduino,Adam5Wu/Arduino,Adam5Wu/Arduino,sticilface/Arduino,esp8266/Arduino,toastedcode/esp8266-Arduino,lrmoreno007/Arduino,jes/Ardui... |
20d70c184ec7d3c4c42655fd4bfee9a19f85cde9 | arduino_sketches/PGA309/testPin_I2C/testPin_I2C.ino | arduino_sketches/PGA309/testPin_I2C/testPin_I2C.ino | #include <Wire.h>
#include <Arduino.h>
#include "PGA309.h"
#include "ADS1110.h"
#include "EEPROM24C02.h"
#include "Util.h"
#define PGA309ADDR 0x40
#define ADS1110ADDR 0x49
#define EEPROM24C02ADDR 0x50
#define REG1 0x03C6
#define REG2 0xE77B
#define REG3 0x0500
#define REG4 0xE700
#define REG6 0x0600
#define ADSREG B10... | #include <Wire.h>
#include <Arduino.h>
#include "PGA309.h"
#include "ADS1110.h"
#include "EEPROM24C02.h"
#include "Util.h"
#define PGA309ADDR 0x40
#define ADS1110ADDR 0x49
#define EEPROM24C02ADDR 0x50
#define REG1 0x03C6
#define REG2 0xE77B
#define REG3 0x0500
#define REG4 0xE700
#define REG6 0x1200
#define ADSREG B10... | Make tests with values that actually work. | Make tests with values that actually work.
| Arduino | mit | lucasgrzegorczyk/pga309-blutooth-android-tensometer,lucasgrzegorczyk/pga309-blutooth-android-tensometer,lucasgrzegorczyk/pga309-blutooth-android-tensometer |
40879d1fd62aff2e7d134825dc8c5979e8ddf3e3 | arduino/sensor/sensor.ino | arduino/sensor/sensor.ino | #include <Wire.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <dht.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085_U.h>
#include <LowPower.h>
#include <SPI.h>
#include "RF24.h"
/* configuration for DS18B20, DHT22 and NRF24L01
The BMP180 must be connected to the I2C interface */
#define ONE_W... | #include <Wire.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <dht.h>
#include <Adafruit_BMP280.h>
#include <LowPower.h>
#include <SPI.h>
#include "RF24.h"
/* configuration for DS18B20, DHT22 and NRF24L01
The BMP280 must be connected to the I2C interface */
#define ONE_WIRE_PIN 4 // DS18B20
#define D... | Change BMP180 to BMP280 | Change BMP180 to BMP280
| Arduino | mit | IPSW1/RasPi_Station,IPSW1/RasPi_Station,IPSW1/RasPi_Station |
95057c213d625cdbecc5baf325675f9ef3e20fa6 | src/light.ino | src/light.ino | /**
* Ai-Thinker RGBW Light Firmware - Light Module
*
* The Light module contains all the code to process incoming commands and set
* the light attributes (RGBW, brightness, etc.) accordingly.
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please vi... | /**
* Ai-Thinker RGBW Light Firmware - Light Module
*
* The Light module contains all the code to process incoming commands and set
* the light attributes (RGBW, brightness, etc.) accordingly.
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please vi... | Allow Gamma Correction to be set via REST API and MQTT. | Allow Gamma Correction to be set via REST API and MQTT.
| Arduino | mit | stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight |
87d49ee1bd299e03eec1547ec17ab3f08af9ded5 | little-switches/arduino/3_setup-rel/3_setup-rel.ino | little-switches/arduino/3_setup-rel/3_setup-rel.ino | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
9d0e2b1f8d617fa399e06c66df010e7381cdf70d | TreibBoje1.ino | TreibBoje1.ino | //
// File : TreibBoje1.ino
//
// Purpose: Frame for fun project 'Treibbojen' (experimental)
//
// $Id$
//
// debug via serial interface
#define DEBUG
// scan sensors (to inquire addresses)
#define SCAN_SENSORS
// read temperature sensors
#define READ_SENSORS
// send the data via 433MHZ Tx
#define SEND_DATA
#ifdef ... | //
// File : TreibBoje1.ino
//
// Purpose: Frame for fun project 'Treibbojen' (experimental)
//
// $Id$
//
// debug via serial interface
#define DEBUG
// scan sensors (to inquire addresses)
#define SCAN_SENSORS
// read temperature sensors
#define READ_SENSORS
// send the data via 433MHZ Tx
#define SEND_DATA
#ifdef ... | document data format | document data format
| Arduino | mit | thjm/Sketches,thjm/Sketches,thjm/Sketches |
3a6bd92e0ed159a64ab6ac71d2b26d9db3a7bdcd | Arduino/Arduino.ino | Arduino/Arduino.ino | // This will be the code uploaded to the main control Arduino
// INCLUDES
#include <Servo.h>
#include <Wire.h>
// SERVOS
Servo throttle; // Speed
Servo rotatingFront; // cylinder at the front
Servo rotatingBack; // cylinder at the back
Servo leftRight; // left-right
Servo upDown; // up-down
// ... | // This will be the code uploaded to the main control Arduino
// INCLUDES
#include <Servo.h>
#include <Wire.h>
// SERVOS
Servo throttle; // Speed
Servo rotatingFront; // cylinder at the front
Servo rotatingBack; // cylinder at the back
Servo leftRight; // left-right
Servo upDown; // up-down
// ... | Fix wrong braces | Fix wrong braces
| Arduino | apache-2.0 | MagnusFlieger/Arduino |
b2ec7b8db9a7acb5183ef4f740814b07d7c96395 | sketch_dec12a/sketch_dec12a.ino | sketch_dec12a/sketch_dec12a.ino | /*
Robojackets Robot Sumo Team Pushiv
Source: https://github.com/simplyellow/auto-sumo.git
Copyright (c) 2017 Georgia Tech Robojackets
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 restri... | /*
Robojackets Robot Sumo Team Pushiv
Source: https://github.com/simplyellow/auto-sumo.git
Copyright (c) 2017 Georgia Tech Robojackets
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 restri... | test code | test code
| Arduino | mit | simplyellow/auto-sumo |
53d81594b4920df89d772639f33fc029094dd32b | dmf_control_board/src/dmf_control_board/dmf_control_board.ino | dmf_control_board/src/dmf_control_board/dmf_control_board.ino | /*
Copyright 2011 Ryan Fobel
This file is part of dmf_control_board.
dmf_control_board 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.
dmf... | /*
Copyright 2011 Ryan Fobel
This file is part of dmf_control_board.
dmf_control_board 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.
dmf... | Modify to use Timer3 instead of Timer1 for watchdog | Modify to use Timer3 instead of Timer1 for watchdog
| Arduino | bsd-3-clause | wheeler-microfluidics/dmf-control-board-firmware,wheeler-microfluidics/dmf-control-board-firmware,wheeler-microfluidics/dmf-control-board-firmware,wheeler-microfluidics/dmf-control-board-firmware |
09210987f22c1001535354010db638c4d23631da | ESP8266/ESP8266.ino | ESP8266/ESP8266.ino | #include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "SerialReceiver.h"
const char *ssid = "SSID"; // cannot be longer than 32 characters!
const char *pass = "PASS"; //
// Update these with values suitable for your network.
IPAddress server(0, 0, 0, 0); // add here the IP address of your MQTT broker
PubSubC... | #include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "SerialReceiver.h"
const char *ssid = "SSID"; // cannot be longer than 32 characters!
const char *pass = "PASS"; //
// Update these with values suitable for your network.
IPAddress server(0, 0, 0, 0); // add here the IP address of your MQTT broker
PubSubC... | modify MQTT protocoll | modify MQTT protocoll | Arduino | mit | munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights |
35dddc97f76ae83f7411d2713e70d43981868ee2 | firmware/examples/Transports/SparkCore/SparkCore.ino | firmware/examples/Transports/SparkCore/SparkCore.ino | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | Update SparkCore.ino | Update SparkCore.ino | Arduino | mit | vshymanskyy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark,yaneexy/blynk-library-spark,chieftuscan/blynk-library-spark |
da7429719303b6ff95d2668c0c2d96ca74a6bd20 | examples/receive_sleep/receive_sleep.ino | examples/receive_sleep/receive_sleep.ino | // demo: CAN Sleep Example - receive
// by Kai, based on the receive_interrupt example by loovee and the additions from Zak Kemble (https://github.com/coryjfowler/MCP_CAN_lib/pull/10/files)
//
// By setting the MCU, the CAN controller (MCP2515) and the transceiver (MCP2551) into sleep mode, you can reduce
// the power ... | // demo: CAN Sleep Example - receive
// by Kai, based on the receive_interrupt example by loovee and the additions from Zak Kemble (https://github.com/coryjfowler/MCP_CAN_lib/pull/10/files)
//
// By setting the MCU, the CAN controller (MCP2515) and the transceiver (MCP2551) into sleep mode, you can reduce
// the power ... | Complete mcp2515 canbus reveive sleep example | Complete mcp2515 canbus reveive sleep example
| Arduino | mit | Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield |
25dc3cfe70a919d6a66cccad435e04497f1d31f9 | firmware/firmware.ino | firmware/firmware.ino | /*
MAX1464 library for Arduino
Copyright (C) 2016 Giacomo Mazzamuto <gmazzamuto@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at... | /*
MAX1464 library for Arduino
Copyright (C) 2016 Giacomo Mazzamuto <gmazzamuto@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at... | print newline when writing firmware finished | firmware: print newline when writing firmware finished
| Arduino | lgpl-2.1 | gmazzamuto/MAX1464-Arduino-library,gmazzamuto/MAX1464-Arduino-library |
4cc42e27927fe4099e0ef055087517829d98d787 | 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
// ... | use official irq api | use official irq api | Arduino | mit | arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter |
f854f6e836f3e915bda177f6815126601bf78c11 | test/test_led/test_led.ino | test/test_led/test_led.ino | #include "StreamController.h"
#include "Dynamixel.h"
SerialController Controller;
DynamixelInterface Dynamixel(Serial, Controller);
DynamixelDevice device(Dynamixel, BROADCAST_ID);
bool on=true;
uint8_t buffer[256];
void setup() {
Serial.begin(1000000);
delay(100);
}
void loop() {
buffer[1]=on;
device.wri... | #include <StreamController.h>
#include <Dynamixel.h>
SerialController Controller;
DynamixelInterface Dynamixel(Serial, Controller);
DynamixelDevice device(Dynamixel, BROADCAST_ID);
uint8_t on=true;
void setup() {
Serial.begin(1000000);
delay(100);
}
void loop() {
device.write(0x19, on);
on=!on;
delay(10... | update test program with new functions | update test program with new functions
| Arduino | bsd-2-clause | descampsa/ardyno |
fea77429b82e039c7f751f8d9737fa79340d4ae1 | super_freq/super_freq.ino | super_freq/super_freq.ino | // FFT constants
#define SAMPLE_RATE 9600
#define SKIP_MULT 8
#define MAX_FFT_BIN 32767
#define LIN_OUT 1 // use the linear output function
#define FFT_N 128 // set number of FFT points
#define MIN_FFT_SUM 400 // Used to turn off the lights for low volumes
#define MIN_PEAK_VALUE 30 // Used to turn... | // FFT constants
#define SAMPLE_RATE 9600
#define SKIP_MULT 8
#define MAX_FFT_BIN 32767
#define LIN_OUT 1 // use the linear output function
#define FFT_N 128 // set number of FFT points
#define MIN_FFT_SUM 400 // Used to turn off the lights for low volumes
#define MIN_PEAK_VALUE 30 // Used to turn... | use binary representations for registry vars | use binary representations for registry vars
| Arduino | bsd-2-clause | whitews/super-freq,whitews/super-freq |
a4e2ac7c525e7ac866d2b499c2b61d12168dfce6 | tripMeterArduino/tripMeterArduino.ino | tripMeterArduino/tripMeterArduino.ino | int right_pin = 18;
int left_pin = 17;
int rp_right_pin = 9;
int rp_left_pin = 10;
int right_value = 0;
int left_value = 0;
int right_high_limit = 750; // 3.67 / 5.0 * 1023;
int right_low_limit = 610; // 2.98 / 5.0 * 1023;
int left_high_limit = 635; // 3.67 / 5.0 * 1023;
int left_low_limit = 495; // 2.98 / 5.0 * 1023... | int right_pin = 18;
int left_pin = 17;
int rp_right_pin = 9;
int rp_left_pin = 10;
int right_value = 0;
int left_value = 0;
// sensor max value ~4.3, min value ~2.0
int right_high_limit = 750; // 3.67 / 5.0 * 1023;
int right_low_limit = 610; // 2.98 / 5.0 * 1023;
int left_high_limit = 635; // 3.10 / 5.0 * 1023;
int l... | Update tripMeterArduino.ino | Update tripMeterArduino.ino | Arduino | mit | task123/AutoTT,task123/AutoTT,task123/AutoTT |
6c0c1fb65489e9a2f21852c1989eff28325982c3 | examples/amazonDashButton/amazonDashButton.ino | examples/amazonDashButton/amazonDashButton.ino | /*******************************************************************
Check out the included Arduino sketches and the getting started
guide here!
https://github.com/andium/AmazonDRS
This is an Arduino implementation of an Amazon Dash Replenishment
device. It currently supports the critical API endpoints necessa... | /*******************************************************************
Check out the included Arduino sketches and the getting started
guide here!
https://github.com/andium/AmazonDRS
This is an Arduino implementation of an Amazon Dash Replenishment
device. It currently supports the critical API endpoints necessary
... | Update Example with mods | Update Example with mods
| Arduino | apache-2.0 | andium/AmazonDRS |
c5f5104c33cda9778ca01416f8036a5972b7573a | examples/01-Basic/AudioPassThru/AudioPassThru.ino | examples/01-Basic/AudioPassThru/AudioPassThru.ino | /*
* AudioPassThru
*
* Created: Chip Audette, OpenAudio, Jan/Feb 2017
* Purpose: Demonstrate basic audio pass-thru using the Tympan Audio Board,
* which is based on the TI TLV320AIC3206
*
* Uses Teensy Audio default sample rate of 44100 Hz with Block Size of 128
*
* License: MIT License, Use At Your Own ... | /*
* AudioPassThru
*
* Created: Chip Audette, OpenAudio, Jan/Feb 2017
* Purpose: Demonstrate basic audio pass-thru using the Tympan Audio Board,
* which is based on the TI TLV320AIC3206
*
* Uses Teensy Audio default sample rate of 44100 Hz with Block Size of 128
*
* License: MIT License, Use At Your Own ... | change input to INPUT_JACK_AS_MIC | AudioPassThru: change input to INPUT_JACK_AS_MIC | Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
4f346e36e11604618e437b9afa6f0ba5c3a1874f | examples/Ethernet/CosaWebServer/CosaWebServer.ino | examples/Ethernet/CosaWebServer/CosaWebServer.ino | /**
* @file CosaWebServer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | /**
* @file CosaWebServer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | Clean up include and reduce print out. | Clean up include and reduce print out.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,kc9jud/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,rrobinet/Cosa,kc9jud/Cosa,kc9jud/Cosa,rrobinet/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,dansut/Cosa |
f4bb5d3a163e6f6f91d069a096fc8f8be47cf0c0 | MainStation/MainStation.ino | MainStation/MainStation.ino | //
// Display Temp
//
// Use Library from :
// Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified
// Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor
// LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
// Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso... | //
// Display Temp
//
// Use Library from :
// Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified
// Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor
// LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
// Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso... | Send value through Ethernet for RIOT-SERVER | Send value through Ethernet for RIOT-SERVER
+ try to reduce the RAM footprint
+ use flash memory for static message
+ serve a single welcome HTTP page
| Arduino | mit | totothekiller/weather-station,totothekiller/weather-station |
471009f03bf57eb62ffcfb22fab56a4b6dfb8455 | sensors/letterbox/letterbox.ino | sensors/letterbox/letterbox.ino | // Example sketch for talking to the VCNL4000 i2c proximity/light sensor
// Written by Adafruit! Public domain.
// To use: Connect:
// VCC to 3.3-5V (5V is best if it is available)
// GND to ground
// SDA to i2c data (on classic arduinos Analog 4)
// SCL to i2c clock (on classic arduinos, Analog 5)
// The 3.3v pin is ... | // Example sketch for talking to the VCNL4000 i2c proximity/light sensor
// Written by Adafruit! Public domain.
// To use: Connect:
// VCC to 3.3-5V (5V is best if it is available)
// GND to ground
// SDA to i2c data (on classic arduinos Analog 4)
// SCL to i2c clock (on classic arduinos, Analog 5)
// The 3.3v pin is ... | set events for deliveries to send to owner's device | set events for deliveries to send to owner's device
| Arduino | mit | notthetup/letterbox,notthetup/letterbox |
e87a245ac7e5ed149c9e061ca80b123dcc903b69 | Scripts/serialdemo_spad.ino | Scripts/serialdemo_spad.ino | // *** SNDEMO ***
// This example shows how to autoconnect between the SPAD.neXt and Arduino.
//
// It demonstrates how to
// - Respond to a connection request from SPAD.neXt
// - Use a identifier to handshake
// - Expose a data value to SPAD.neXt
// - Request Data Updates from SPAD.neXt
#include <CmdMessenger.h> //... | // *** SNDEMO ***
// This example shows how to autoconnect between the SPAD.neXt and Arduino.
//
// SPAD.neXt >= 0.9.7.3 required
//
// It demonstrates how to
// - Respond to a connection request from SPAD.neXt
// - Use a identifier to handshake
// - Expose a data value to SPAD.neXt
// - Request Data Updates from SPAD... | Update Demo with writeback of values to SPAD.neXt | Update Demo with writeback of values to SPAD.neXt
| Arduino | mit | c0nnex/SPAD.neXt,c0nnex/SPAD.neXt |
a48e43cd5b68ca5bba3e0206ea86f450b6165808 | gps-transmitter/gps_transmitter_m0/gps_transmitter_m0.ino | gps-transmitter/gps_transmitter_m0/gps_transmitter_m0.ino | /*
* GPS Transmitter
*
* Utilizes a Adafruit Feather M0. Creates Serial2 on pins 10 (TX) and 12 (RX)
* and uses it for the GPS. An XBee radio is on Serial1.
*/
#include <Arduino.h> // required before wiring_private.h
#include "wiring_private.h" // pinPeripheral() function
#include <Adafruit_GPS.h>
#inclu... | /*
* GPS Transmitter
*
* Utilizes a Adafruit Feather M0. Creates Serial2 on pins 10 (TX) and 12 (RX)
* and uses it for the GPS. An XBee radio is on Serial1.
*/
#include <Arduino.h> // required before wiring_private.h
#include "wiring_private.h" // pinPeripheral() function
#include <Adafruit_GPS.h>
#inclu... | Update comments. | Update comments.
| Arduino | isc | lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker,lectroidmarc/rocket-tracker |
d2cc6721b63280d212033fa87f52a1cdd9d0a65f | libraries/CurieBLE/examples/peripheral/BatteryMonitor/BatteryMonitor.ino | libraries/CurieBLE/examples/peripheral/BatteryMonitor/BatteryMonitor.ino | /*
Copyright (c) 2016 Intel Corporation. All rights reserved.
See the bottom of this file for the license terms.
*/
/*
* Sketch: BatteryMonitor.ino
*
* Description:
* This sketch example partially implements the standard Bluetooth
* Low-Energy Battery service and connection interval paramater update.... | /*
Copyright (c) 2016 Intel Corporation. All rights reserved.
See the bottom of this file for the license terms.
*/
/*
* Sketch: BatteryMonitor.ino
*
* Description:
* This sketch example partially implements the standard Bluetooth
* Low-Energy Battery service and connection interval paramater update.... | Remove comment about BatteryMonitor_Central sketch | Remove comment about BatteryMonitor_Central sketch
As it has been moved to the test folder for now.
| Arduino | lgpl-2.1 | 01org/corelibs-arduino101,sandeepmistry/corelibs-arduino101,bigdinotech/corelibs-arduino101,sgbihu/corelibs-arduino101,bigdinotech/corelibs-arduino101,01org/corelibs-arduino101,01org/corelibs-arduino101,bigdinotech/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,sgbihu/core... |
95efdb9532236f5431d33dad691a69b8159e90f1 | examples/05.ThingSpeak/ExecuteCommand/ExecuteCommand.ino | examples/05.ThingSpeak/ExecuteCommand/ExecuteCommand.ino | #include <SoftwareSerial.h>
#include <Esp8266.h>
#include <IPDParser.h>
#include <HttpRequest.h>
#include <ParkingShield.h>
// CHANGE THE TALKBACK'S API KEY HERE:
static const char api_key[] = "V4OEUG5T1A0TFZLC";
// CHANGE THE TALKBACK ID HERE:
static const unsigned int talkbackId = 3391;
ParkingShield shield;
Softw... | <#include <SoftwareSerial.h>
#include <Esp8266.h>
#include <IPDParser.h>
#include <HttpRequest.h>
#include <ParkingShield.h>
// CHANGE THE TALKBACK'S API KEY HERE:
static const char api_key[] = "V4OEUG5T1A0TFZLC";
// CHANGE THE TALKBACK ID HERE:
static const unsigned int talkbackId = 3391;
ParkingShield shield;
Soft... | Correct wlan key | Correct wlan key
| Arduino | mit | iotl/IoT-Shield-Firmware |
21e834e7227b498e8222158855825aa2fc8a701c | scriptor.ino | scriptor.ino | /*
Reads the values from a0-a3 and writes them as binary to the serial interface.
MIT LICENSE 2016
*/
#define N 128
typedef struct {
unsigned long time; // 32bit
int a0; // 16bit
int a1;
int a2;
} __attribute__((__packed__)) Data;
Data MESSAGES[N];
size_t counter = 0;
// the setup routine runs once when you pr... | /*
Reads the values from a0-a3 and writes them as binary to the serial interface.
MIT LICENSE 2016
*/
#define N 128
typedef struct {
unsigned long time; // 32bit
int a0; // 16bit
int a1;
int a2;
} __attribute__((__packed__)) Data;
Data MESSAGES[N];
size_t counter = 0;
// the setup routine runs once when you pr... | use 5V as a reference | use 5V as a reference
| Arduino | mit | Hack-a-thingie/Wall-Scriptor,Hack-a-thingie/Wall-Scriptor,Hack-a-thingie/Wall-Scriptor,Hack-a-thingie/Wall-Scriptor |
2c953f18472b0f970d700a5e96c2a9985ba046d4 | AzElSensor/AzElSensor.ino | AzElSensor/AzElSensor.ino | /*
* Base code for AzElSensor taken from:
*
* https://github.com/chrisspen/homebot/blob/master/src/test/MPU9250-test1/src/mpu9250_arduino.ino
*
* Attribution is not provided, but is apparently based on the
* Arduino Mega code (apparently) by Phillipe Lucidarme at:
*
* http://www.lucidarme.me/?p=5057
*
*/
... | /*
* Base code for AzElSensor taken from:
*
* https://github.com/chrisspen/homebot/blob/master/src/test/MPU9250-test1/src/mpu9250_arduino.ino
*
* Attribution is not provided, but is apparently based on the
* Arduino Mega code (apparently) by Phillipe Lucidarme at:
*
* http://www.lucidarme.me/?p=5057
*
*/
... | Reformat and clean up code | Reformat and clean up code
| Arduino | mit | AdlerFarHorizons/PortableAntennaRotorControl |
9b8077df6d91a925417640f87b9204530a0b587d | examples/SW01_Altitude_Measurement/SW01_Altitude_Measurement.ino | examples/SW01_Altitude_Measurement/SW01_Altitude_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/SW01/
This example request a altitude meausrement to be
made by the SW01 and display the data over the Seri... | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/SW01/
This example request a altitude meausrement to be
made by the SW01 and display the data over the Seri... | Update SW01_Altitude_Measurement.ino | Update SW01_Altitude_Measurement.ino | Arduino | mit | xinabox/xSW01 |
0a0cfcd6e9ec079258eaf9f0e1fc6003cd4a84f9 | esp8266/esp8266.ino | esp8266/esp8266.ino | #include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <IRremoteESP8266.h>
#include <MQTT.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "WifiAuth.h"
IRsend irsend(D1);
const char* host = "living_room/#"; // the name o... | #include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <IRremoteESP8266.h>
#include <MQTT.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "WifiAuth.h"
IRsend irsend(D1);
const char* host = "living_room/#"; // the name o... | fix esp connection | fix esp connection
| Arduino | mit | rnystrom/Arduino-HomeKit,rnystrom/Arduino-HomeKit,rnystrom/Arduino-HomeKit,rnystrom/Arduino-HomeKit,rnystrom/Arduino-HomeKit |
4dd293851359ee23f937e8cf6cc10210592cffe1 | examples/06-AppTutorial/BasicGain_wApp/BasicGain_wApp.ino | examples/06-AppTutorial/BasicGain_wApp/BasicGain_wApp.ino | /*
* BasicGain_wApp
*
* Created: Chip Audette, June 2020 (updated June 2021 for BLE)
* Purpose: Process audio using Tympan by applying gain.
* Also, illustrate how to change Tympan setting via the TympanRemote App.
*
* TympanRemote App: https://play.google.com/store/apps/details?id=com.creare.tympanRemote
... | /*
* BasicGain_wApp
*
* Created: Chip Audette, June 2020 (updated June 2021 for BLE)
* Purpose: Process audio using Tympan by applying gain.
* Also, illustrate how to change Tympan setting via the TympanRemote App.
*
* TympanRemote App: https://play.google.com/store/apps/details?id=com.creare.tympanRemote
... | Define 'audio_settings' in BasicGain_wApp | Define 'audio_settings' in BasicGain_wApp
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
e60bdcde26106c93befc5e167a73b6cb6ce1705f | examples/Benchmarks/CosaBenchmarkRTC/CosaBenchmarkRTC.ino | examples/Benchmarks/CosaBenchmarkRTC/CosaBenchmarkRTC.ino | /**
* @file CosaBenchmarkRTC.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2... | /**
* @file CosaBenchmarkRTC.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2... | Clean up. | Clean up.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa |
334adb0369c42cea22819e24eb629ba95d2373f2 | sensorNode/sensorNode.ino | sensorNode/sensorNode.ino | /*
Sensor node
Gather temperature and humidity and send them to a master node
*/
#include <DHT.h>
#include <SPI.h>
#include <RF24Network.h>
#include <RF24.h>
#include <Ports.h>
#include <stdlib.h>
#define DHTTYPE DHT22 // DHT 22 (AM2302)
const int LED_PIN = 9;
const int BUTTON_PIN = 4;
const int DHT22_PIN = ... | /*
Sensor node
Gather temperature and humidity and send them to a master node
*/
#include <DHT.h>
#include <SPI.h>
#include <RF24Network.h>
#include <RF24.h>
#include <Ports.h>
#include <stdlib.h>
#define DHTTYPE DHT22 // DHT 22 (AM2302)
const int LED_PIN = 9;
const int BUTTON_PIN = 4;
const int DHT22_PIN = 3... | Make the DHT22 work with a clock frequency of 8MHz by playing with the undocumented _counter variable in the constructor. | Make the DHT22 work with a clock frequency of 8MHz by playing with the undocumented _counter variable in the constructor.
Before, the sensor would return 0 for temperature and humidity because the timing (based on the clock speed) was off.
Use _counter to adapt for different clock speeds. I didn't have any luck when r... | Arduino | mit | shubrich/sensorNet,shubrich/sensorNet,shubrich/sensorNet |
6a6562769c33399ea05728e773d5bf3fdbb7ae2b | fed-arduino/fed-arduino.ino | fed-arduino/fed-arduino.ino | #include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <SdFat.h> // SD and RTC libraries
#include "RTClib.h"
#include <Wire.h>
#include <Stepper.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <Softw... | #include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <SdFat.h> // SD and RTC libraries
#include "RTClib.h"
#include <Wire.h>
#include <Stepper.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <Softw... | Move motor control pin so it doesn't interfere with the SPI lines used by the SD card. | Move motor control pin so it doesn't interfere with the SPI lines used by the SD card.
| Arduino | mit | cnorfleet/Feeder,eleciawhite/fed,eleciawhite/fed,cnorfleet/Feeder,eleciawhite/fed,cnorfleet/Feeder,cnorfleet/Feeder,eleciawhite/fed |
ce90587f5c17ad52eade3bd4774df1c6189ed77a | src/rf24remotetemp.ino | src/rf24remotetemp.ino | /*
RF24 Remote Temperature Node for Arduino Pro Mini + NRF24
Daniel Epperson, 2014
*/
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <SPI.h>
#include <Narcoleptic.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// this gets transmitted
typedef struct {
int addr;
float temp;
} Readi... | /*
RF24 Remote Temperature Node for Arduino Pro Mini + NRF24
Daniel Epperson, 2014
*/
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <SPI.h>
#include <Narcoleptic.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// this gets transmitted
typedef struct {
int addr;
float temp;
} Readi... | implement second 1-wire network | implement second 1-wire network
| Arduino | mit | depperson/ghpi,depperson/ghpi,depperson/ghpi,depperson/ghpi,depperson/ghpi |
fe6d2d9b8de085d771defd94a77a017ba41cd1a1 | examples/simple/simple.ino | examples/simple/simple.ino | #include <t3_vdd.h>
ADC* pAdc;
void setup() {
pAdc = new ADC();
t3_Vdd vdd;
vdd.begin(pAdc);
elapsedMillis vddTimer;
const uint16_t vdd_update_period = 1000;
while(1)
{
if (vddTimer >= vdd_update_period)
{
vdd.update();
Serial.print("vdd = ");
Serial.print(vdd.get_mV());
... | #include <ADC.h>
#include <t3_vdd.h>
ADC adc;
void setup() {
t3_vdd::enable_vref();
}
void loop() {
uint16_t mv = t3_vdd::measure_vdd_mV(adc);
Serial.printf("vdd: %04d mV\n", mv);
delay(500);
}
| update example | update example
| Arduino | mit | crteensy/t3_vdd |
79c4103d552dc950dcfb96f36e447d8cbc637250 | main/main.ino | main/main.ino | #include <Canbus.h>
#include <defaults.h>
#include <global.h>
#include <mcp2515.h>
#include <mcp2515_defs.h>
#include <LiquidCrystal.h>
#include <math.h>
//RS,EN,DB4,DB5,DB6,DB7
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
#define REDLITE 3
#define GREENLITE 5
#define BLUELITE 6
int brightness = 255;
byte fill1[8] = {... | #include <Canbus.h>
#include <defaults.h>
#include <global.h>
#include <mcp2515.h>
#include <mcp2515_defs.h>
#include <LiquidCrystal.h>
#include <math.h>
//RS,EN,DB4,DB5,DB6,DB7
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
#define REDLITE 3
#define GREENLITE 5
#define BLUELITE 6
int brightness = 255;
byte fill1[8] = {... | Update main.ino | Update main.ino | Arduino | apache-2.0 | srenner/meguinauge |
6822c8ee83faeeca880456cb76c7049aa0816634 | base2clock.ino | base2clock.ino | /***************************
*
* base 2 clock code for arduino
* Copyleft (C) 2015 Daniel K. Spicer
*
* 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 yo... | /***************************
*
* base 2 clock code for arduino
* Copyleft (C) 2015 Daniel K. Spicer
*
* 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 yo... | Update base2clock.ino | Update base2clock.ino
Moved delay code. | Arduino | apache-2.0 | linuxmania/base2clock |
f75aa2fa9798a0af6bae7b28db35e056b2b84a25 | hook___dail/hook___dail.ino | hook___dail/hook___dail.ino | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | implement bluetooth | implement bluetooth
| Arduino | mit | tingyez/JunkDJ,tingyez/JunkDJ |
b810bf753c59ea2eb588d6e6ab63156a8e7c3b9d | BiotechHardware/dcs/dcs_interrupt/dcs_interrupt.ino | BiotechHardware/dcs/dcs_interrupt/dcs_interrupt.ino | void setup(){
Serial.begin(9600);
attachInterrupt(0, testing, CHANGE);
}
void loop(){
for (int i = 0; i < 100; i++){
delay(10);
}
}
void testing(){
Serial.println("Test");
} | #include <PinChangeInt.h>
#include <Keypad.h>
#define NO_PORTB_PINCHANGES
#define NO_PORTD_PINCHANGES
#define NO_PIN_STATE
#define NO_PIN_NUMBER
long prevTime = 0;
volatile boolean interrupted = false;
const byte ROWS = 4;
const byte COLS = 3;
char keys[ROWS][COLS] = {
{
'1','2','3' }
,
{
'4','5','6' ... | Interrupt sample code | Interrupt sample code
| Arduino | apache-2.0 | Dimasdanz/BiotechProject,Dimasdanz/BiotechProject |
0fd0c332229ab82cce060d7318c42def65a549b5 | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | /**
* This is a kind of unit test for DEV for now
* It contains many of the public methods
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <time.h>
#define USEOTA
// enable OTA
#ifdef USEOTA
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#endif
#define TRIGGER_PIN 0
const char* modes... | /**
* This is a kind of unit test for DEV for now
* It contains many of the public methods
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <time.h>
#define USEOTA
// enable OTA
#ifdef USEOTA
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#endif
#define TRIGGER_PIN 0
const char* modes... | remove serial1 | remove serial1
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
a20c8f9defc12710e701b93c29f7e7ab531f0dc0 | DrainBattery.ino | DrainBattery.ino | /**
* BatteryDrain.ino
*
* Copyright (C) 2016 by CommonsLab <info@commonslab.gr>
*
* Repeatedly request a web page and blink an LED in order to see how long a battery will last.
* (Based on LGPLv2 licensed example code of github.com/esp8266/arduino.)
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <E... | /**
* BatteryDrain.ino
*
* Copyright (C) 2016 by CommonsLab <info@commonslab.gr>
*
* Repeatedly request a web page and blink an LED in order to see how long a battery will last.
* (Based on LGPLv2 licensed example code of github.com/esp8266/arduino.)
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <E... | Use built-in LED instead of D1 | Use built-in LED instead of D1 | Arduino | agpl-3.0 | commonslabgr/reactiongame |
a8dc44e13a348cb33dae3028dcd5c23f84a37445 | examples/ReadAndWrite/ReadAndWrite.ino | examples/ReadAndWrite/ReadAndWrite.ino | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | Update ReadAndWrite.ino | Update ReadAndWrite.ino
arduino uno pins | Arduino | unlicense | Rotzbua/rfid,Rotzbua/rfid,irhastofa/rfid,smallkid/rfid,yaalsn/rfid,mirko314/rfid,tamchau2809/rfid,CapeSepias/rfid,LaloHao/rfid,sophiekovalevsky/rfid,miguelbalboa/rfid,hramrach/rfid,juantejedavz/rfid,northDacoder/rfid,r44947/rfid,lpr0lpd/rfid,mangine/mraa_MFRC522,1upon0/rfid,prikevs/rfid,webdevbrian/rfid |
e0e3bc28508e4e670af41652d77405fea2886ad7 | wifi_robot/wifi_robot.ino | wifi_robot/wifi_robot.ino | #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... | #define FINAL_THRESH 83
#define DIFF_THRESH 1080
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
Serial2.begin(115200);
Serial.println("Hello! I look for WiFi");
}
void loop() {
long front, back;
sp();
delay(2000);
Serial.println("Clearing buffers...");
while(Serial1.available()) Serial1... | Adjust parameters | Adjust parameters
| Arduino | mit | BenjaminFair/makeathon2016 |
2fec2c5ca3de97e76c970eb77e716093051baedf | CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino | CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino | /*
* Castle KeyPad
*
* Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 - CS350 and more
*
* For Arduino (UNO or Leonardo) with added Ethernet Shield
*
* See Circuit Diagram for wiring instructions
*
* V1.04 March 2014: Arm Disarm Complete and tested as working
* V1... | /*
* Castle KeyPad
*
* Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 - CS350 and more
*
* For Arduino (UNO or Leonardo) with added Ethernet Shield
*
* See Circuit Diagram for wiring instructions
*
* V1.04 March 2014: Arm Disarm Complete and tested as working
* V1... | Update CastleAritechArduinoRKP.ino | Update CastleAritechArduinoRKP.ino | Arduino | apache-2.0 | OzmoOzmo/CastleAritechArduinoRKP,OzmoOzmo/CastleAritechArduinoRKP |
a3963bb3a3b010172f4ebad123c0e493f88a4229 | arduino/RemoteSocketControl/RemoteSocketControl.ino | arduino/RemoteSocketControl/RemoteSocketControl.ino | #include <RCSwitch.h>
#include "RemoteSocketControl.h"
// Groups of remote sockets (see header for more info)
Group groups[GROUPS];
RCSwitch rc = RCSwitch();
void setup() {
// set baud rate for serial port
Serial.begin(BAUD_RATE);
// enable transmit on transmit pin
rc.enableTransmit(TRANSMIT_PIN);
// ... | #include "RCSwitch.h"
#include "RemoteSocketControl.h"
// Groups of remote sockets (see header for more info)
Group groups[GROUPS];
RCSwitch rc = RCSwitch();
void setup() {
// set baud rate for serial port
Serial.begin(BAUD_RATE);
// enable transmit on transmit pin
rc.enableTransmit(TRANSMIT_PIN);
// ... | Enforce uniform include coding style | Enforce uniform include coding style
| Arduino | mit | lkdl/RemoteSocketControl,lkdl/RemoteSocketControl,lkdl/RemoteSocketControl,lkdl/RemoteSocketControl |
bbf57fe3846adb1be96d6ba4e7d5ad6c887a927a | demo_sdcard_gps_compass/demo_sdcard_gps_compass.ino | demo_sdcard_gps_compass/demo_sdcard_gps_compass.ino | /*
* file: demo_sdcard_gps_compass.ino
* created: 20160612
* author(s): mr-augustine
*
* This file orchestrates the sdcard_gps_compass demo. When the start/stop
* button is pressed, GPS data and compass data are continuosly stored to the
* statevars variable. And the statevars are continuously written to a file
... | /*
* file: demo_sdcard_gps_compass.ino
* created: 20160612
* author(s): mr-augustine
*
* This file orchestrates the sdcard_gps_compass demo. When the start/stop
* button is pressed, GPS data and compass data are continuosly stored to the
* statevars variable. And the statevars are continuously written to a file
... | Add compass initialization | Add compass initialization
The program works as advertised: GPS and compass data are continuously
written to an SD card at the push of a button.
| Arduino | mit | mr-augustine/kintobor |
5bfc42dd563b5667bd1c4eb4fede5e341c0fb675 | examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino | examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | //
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | fix error message | examples/FirebaseDemo: fix error message
| Arduino | apache-2.0 | aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,ed7coyne/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino |
3082909b58fd7e73721edec336319e1f899c86eb | src/sketch.ino | src/sketch.ino | #include <Adafruit_NeoPixel.h>
#define LED_PIN 12
#define CLOCK_FACE_SIZE 21
#define NUM_LEDS ((CLOCK_FACE_SIZE) * 4)
#define PI 3.1415926
const uint32_t SEC = 1000L;
const uint32_t MIN = 60L * SEC;
const uint32_t HR = 60L * MIN;
const uint32_t HALFDAY = 12L * HR;
#define RGB(r, g, b) (((uint32_t(r) & 0xff) << 16)... | #include <Adafruit_NeoPixel.h>
#define PIEZO_PIN 11
#define LED_PIN 12
#define CLOCK_FACE_SIZE 21
#define NUM_LEDS ((CLOCK_FACE_SIZE) * 4)
#define PI 3.1415926
const uint32_t SEC = 1000L;
const uint32_t MIN = 60L * SEC;
const uint32_t HR = 60L * MIN;
const uint32_t HALFDAY = 12L * HR;
#define RGB(r, g, b) (((uint3... | Add a buzzer command | Add a buzzer command
| Arduino | mit | encukou/computer-corner |
b5850bfad8a68167ca764a210a82805557e21701 | Arduino/Advanced/4051_multiplex_test/4051_multiplex_test.ino | Arduino/Advanced/4051_multiplex_test/4051_multiplex_test.ino | /*
* Example of using the 4051 (74HC4051) multiplexer/demultiplexer
*
*
* Carlos Castellanos
* August 19, 2020
*
* Based on code by Nick Gammon
* http://www.gammon.com.au/forum/?id=11976
*
*/
/***********************
=== PIN DEFINITIONS ===
***********************/
//where the multiplexer address select l... | /*
* Example of using the 4051 (74HC4051) multiplexer/demultiplexer
*
*
* Carlos Castellanos
* August 19, 2020
*
* Based on code by Nick Gammon
* http://www.gammon.com.au/forum/?id=11976
*
*/
/***********************
=== PIN DEFINITIONS ===
***********************/
//where the multiplexer address select li... | Update 4051_multiplex_test.ino | Update 4051_multiplex_test.ino
| Arduino | mit | carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching |
2c75cac15e6ecf9a09ffcdd3fbe201f956447a40 | roof_sensor_serial/roof_sensor_serial.ino | roof_sensor_serial/roof_sensor_serial.ino | //----------------------------------------------------------------------------------------------------------------
// roof_sensor_serial.ino
//
// This sketch only runs on an Arduino Nano, due to specific AVR functions called for voltage reading.
//
// Handles reading temperature, humidity, rain & wind speed for a wea... | //----------------------------------------------------------------------------------------------------------------
// roof_sensor_serial.ino
//
// This sketch only runs on an Arduino Nano, due to specific AVR functions called for voltage reading.
//
// Handles reading temperature, humidity, rain & wind speed for a wea... | Adjust telemetry timings for roof sensor | Adjust telemetry timings for roof sensor
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
949b795a9e0ad465f749a362676599e24ef3d872 | Fireflies/Fireflies.ino | Fireflies/Fireflies.ino | #include <Arduino.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#include "Color3F.h"
// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
const int pinNeopixels = 5;
const int numNeopixels = 10;
const int pinPot = A0;
// Wh... | #include <Arduino.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#include "Color3F.h"
// Which pin on the Arduino is connected to the NeoPixels?
// On a Trinket or Gemma we suggest changing this to 1
const int pinNeopixels = 5;
const int numNeopixels = 10;
const int pinPot = A0;
// Wh... | add lifetime scaling via pot | add lifetime scaling via pot
| Arduino | mit | AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.