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 |
|---|---|---|---|---|---|---|---|---|---|
5a04d3f56c8288b127c979e57149c3f786574940 | examples/raw-feather/raw-feather.ino | examples/raw-feather/raw-feather.ino | /* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
It... | /* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
It... | Add check for unsupported band | Add check for unsupported band
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
d9bb32e031520ebe09ad41d5ea110eda983ddf8d | examples/PulseSensor_Nucleo/PulseSensor_Nucleo.ino | examples/PulseSensor_Nucleo/PulseSensor_Nucleo.ino | /*
Sketch to handle each sample read from a PulseSensor.
Typically used when you don't want to use interrupts
to read PulseSensor voltages.
Here is a link to the tutorial that discusses this code
>> Comming Soon! <<
This example targets the Nucleo 64 F401RE
If you are using a different Nucleo boa... | /*
Sketch to handle each sample read from a PulseSensor.
Typically used when you don't want to use interrupts
to read PulseSensor voltages.
Here is a link to the tutorial that discusses this code
>> Comming Soon! <<
This example targets the Nucleo 64 F401RE
If you are using a different Nucleo boa... | Update PulseSensor_Nucleo.ino | Update PulseSensor_Nucleo.ino | Arduino | mit | bneedhamia/PulseSensorBPM |
b579c121d72daff80ec856f945297f4c4ab51002 | src/basic/basic.ino | src/basic/basic.ino | #include <rn2xx3.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include "keys.h"
SoftwareSerial myLoraSerial(7, 8); // RX, TX
#define RST 2
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;
// The serial connection to the GPS device
SoftwareSerial gpsSerial(RXPin, TXPin);
rn2xx3 my... | #include <rn2xx3.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include "keys.h"
SoftwareSerial myLoraSerial(7, 8); // RX, TX
#define RST 2
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;
// The serial connection to the GPS device
SoftwareSerial gpsSerial(RXPin, TXPin);
rn2xx3 my... | update LastSendMillis | update LastSendMillis
| Arduino | mit | GabrielKatz/bicycletracking,GabrielKatz/bicycletracking |
0cdc22452884f4a8efd271ed1c5457ce538a088a | examples/connect_IP/connect_IP.ino | examples/connect_IP/connect_IP.ino | // ------------------------------------
// 固定IPアドレスでWifi接続
// ------------------------------------
#include <TESP8266.h>
// Wifi
const char* SSID = "xxx";
const char* PASSWORD = "xxx";
// グローバル変数
TESP8266 httpClient(Serial);
void setup() {
// HardwareSerialの通信速度(115.2kbps)
Serial.beg... | // ------------------------------------
// 固定IPアドレスでWifi接続
// ------------------------------------
#include <TESP8266.h>
// Wifi
const char* ssid = "xxx";
const char* password = "xxx";
// シリアルの種類 (HardwareSerial or SoftwareSerial)
// HardwareSerialとSoftwareSerialを切り替える際には
// ESP-WROOM-02をリセットする必要があります。
... | Update connect_IP.ino | Update connect_IP.ino | Arduino | mit | TakeshiOkamoto/TESP8266,TakeshiOkamoto/TESP8266 |
69d9f1be9e53e64d3bf2b8d608c27f9cdd69e2a3 | BlinkM/examples/BlinkMTester/BlinkMTester.ino | BlinkM/examples/BlinkMTester/BlinkMTester.ino | /*
* BlinkMTester -- Simple "command-line" tool to play with BlinkMs
*
* Once you load this sketch on to your Arduino, open the Serial Monitor
* and you'll see a menu of things to do.
*
*
* BlinkM connections to Arduino
* PWR - -- gnd -- black -- Gnd
* PWR + -- +5V -- red -- 5V
* I2C d -- SDA -- green -- ... | /*
* BlinkMTester -- Simple "command-line" tool to play with BlinkMs
*
* Once you load this sketch on to your Arduino, open the Serial Monitor
* and you'll see a menu of things to do.
*
*
* BlinkM connections to Arduino Uno
* PWR - -- gnd -- black -- Gnd
* PWR + -- +5V -- red -- 5V
* I2C d -- SDA -- green... | update BlinkMTester to be more modern; update BlinkM lib for potential BlinkM2 | update BlinkMTester to be more modern; update BlinkM lib for potential BlinkM2
| Arduino | mit | todbot/BlinkM-Arduino,todbot/BlinkM-Arduino |
16b996129fa17ea9e790a522cefc4574ee7df8f8 | resilient_network/resilient_network.ino | resilient_network/resilient_network.ino | // resilient network
#include <SoftwareSerial.h>
#include "Arduino.h"
#include "timers.h"
#define leds1pin 11
#define leds2pin 3
#define button1pin 2
#define button2pin 4
#define SERIAL_DEBUG true
#define DROPPING_CONNECTOR 254
#define ALERT 255
#define NUM_CONN 3
SoftwareSerial* bus[NUM_CONN];
int RX[NUM_CONN] =... | // resilient network
#include <SoftwareSerial.h>
#include "Arduino.h"
#include "timers.h"
#define leds1pin 11
#define leds2pin 3
#define button1pin 2
#define button2pin 4
#define SERIAL_DEBUG true
#define DROPPING_CONNECTOR 254
#define ALERT 255
#define NUM_CONN 3
SoftwareSerial* bus[NUM_CONN];
int RX[NUM_CONN] =... | Improve & fix serial debug | Improve & fix serial debug
| Arduino | mit | knopjesmuseum/resilient-network,knopjesmuseum/resilient-network |
2211cf1f5550d5ee04cc3bcb57fba82d9e854f02 | libraries/Wire/examples/slave_sender/slave_sender.ino | libraries/Wire/examples/slave_sender/slave_sender.ino | // Wire Slave Sender
// by Nicholas Zambetti <http://www.zambetti.com>
// Demonstrates use of the Wire library
// Sends data as an I2C/TWI slave device
// Refer to the "Wire Master Reader" example for use with this
// Created 29 March 2006
// This example code is in the public domain.
#include <Wire.h>
void setup... | // Wire Slave Sender
// by Nicholas Zambetti <http://www.zambetti.com>
// Demonstrates use of the Wire library
// Sends data as an I2C/TWI slave device
// Refer to the "Wire Master Reader" example for use with this
// Created 29 March 2006
// This example code is in the public domain.
#include <Wire.h>
void setup... | Undo accidental change to slave_sender example | Undo accidental change to slave_sender example
| Arduino | lgpl-2.1 | MickMad/ArduinoCore-samd,MickMad/ArduinoCore-samd |
ba9b1d4a4ccfc10e63ab4986fe5c8632a6ba7b00 | arduino/tequila_sunrise_bot/tequila_sunrise_bot.ino | arduino/tequila_sunrise_bot/tequila_sunrise_bot.ino |
/*
Copyright (c) Party Robotics LLC 2012
Written by Robert Kaye <rob@partyrobotics.com>
Welcome hacker!
Not liking what the bot is churning out right now?
GOOD! Read on!
The tequila sunrise bot is nothing more than three peristaltic pumps, each
independently driven by a motor. How long the pumps run while ... |
/*
Copyright (c) Party Robotics LLC 2012
Written by Robert Kaye <rob@partyrobotics.com>
Welcome hacker!
Not liking what the bot is churning out right now?
GOOD! Read on!
The tequila sunrise bot is nothing more than three peristaltic pumps, each
independently driven by a motor. How long the pumps run while ... | Allow the bot to be primed by pressing both buttons | Allow the bot to be primed by pressing both buttons
| Arduino | mit | blinkyshit/tequila-sunrise-bot |
ab7ce95263c27d6dde4dc281aa2668afbfa2fa8f | tools/rf69_client/rf69_client.ino | tools/rf69_client/rf69_client.ino | #include <SPI.h>
#include <RH_RF69.h>
#include <Wire.h>
#define RF69_FREQ 915.0
#define RFM69_INT 4
#define RFM69_CS 2
#define RFM69_RST 3
#define FREQUENCY RF69_915MHZ
RH_RF69 rf69(RFM69_CS, RFM69_INT);
void setup()
{
Serial.begin(9600);
Serial.println("Starting...");
pinMode(RFM69_RST, OUTPUT)... | #include <SPI.h>
#include <RH_RF69.h>
#include <Wire.h>
#define RF69_FREQ 915.0
#define RFM69_CS 4
#define RFM69_INT 3
#define RFM69_RST 2
#define FREQUENCY RF69_915MHZ
RH_RF69 rf69(RFM69_CS, RFM69_INT);
void setup()
{
Serial.begin(9600);
Serial.println("Starting...");
pinMode(RFM69_RST, OUTPUT);
digitalWr... | Update rf69_client.ino | Update rf69_client.ino
| Arduino | mit | johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome,johnosullivan/MiHome |
110b7fa2bab3de149eb833482c3e74dfc520df6a | moros/moros.ino | moros/moros.ino | #include <SPI.h>
#include <TFT.h>
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10
#define CHAR_WIDTH_PX 42
#define DISPLAY_WIDTH_CHAR 4
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
int active_player = NONE;
volatile int button_pressed = NONE;
inline void ... | #include <SPI.h>
#include <TFT.h>
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10
#define CHAR_WIDTH_PX 42
#define DISPLAY_WIDTH_CHAR 4
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
int active_player = NONE;
volatile int button_pressed = NONE;
inline void ... | Fix button mapping | Fix button mapping
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
9f8cb6bd6640173c54ee91a06f7bf907a0275f2e | robots/maproom/maproom.ino | robots/maproom/maproom.ino | #include "Robot.h"
#define ROBOT_ID 1
#define LOGGING 1
#define pwmA 6
#define dirA 7
#define pwmB 5
#define dirB 4
#define pwmC 11
#define dirC 12
#define BUF_SIZE 125
typedef struct {
int pulse;
bool direction;
float current;
float target;
} MotorValues;
MotorValues motorA;
MotorValues motorB;
MotorV... | #include "Robot.h"
#define ROBOT_ID 1
#define LOGGING 1
#define pwmA 6
#define dirA 7
#define pwmB 5
#define dirB 4
#define pwmC 11
#define dirC 12
#define BUF_SIZE 125
#define BUF_VAL_WIDTH 6
typedef struct {
int pulse;
bool direction;
float current;
float target;
} MotorValues;
MotorValues motorA;
Mo... | break out message parsing; rename robot | break out message parsing; rename robot
| Arduino | apache-2.0 | O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots,O-C-R/maproom-robots |
cc31243fc983609cc263cb0b3d6f058e0836a0d4 | examples/ProductionSketch/ProductionSketch.ino | examples/ProductionSketch/ProductionSketch.ino | // This is the example sketch that gets loaded on every BlinkyTape during production!
#include <EEPROM.h>
#include <FastLED.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#include "Flashlight.h"
struct CRGB leds[LED_COUNT];
#define BRIGHT_STEP_COUN... | // This is the example sketch that gets loaded on every BlinkyTape during production!
#include <EEPROM.h>
#include <FastLED.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#include "Flashlight.h"
struct CRGB leds[LED_COUNT];
#define BRIGHT_STEP_COUN... | Fix for Production Sketch: force the current brightness setting before reading serial | Fix for Production Sketch: force the current brightness setting before reading serial
| Arduino | mit | Blinkinlabs/BlinkyTape_Arduino |
90c761a3ffbbaca0d9a5705bdfd7044261b5fa09 | examples/Digital_Light_Sensor/Digital_Light_Sensor.ino | examples/Digital_Light_Sensor/Digital_Light_Sensor.ino | /* Digital Light sensor demo V1.0
* Connect the sensor to I2C port of Arduino to use.
*
* By:http://www.seeedstudio.com
*/
#include <Wire.h>
#include <Digital_Light_TSL2561.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
TSL2561.init();
}
void loop()
{
// int CH0_LOW,CH0_HIGH,CH1_LOW,CH1_HIGH;
... | /* Digital Light sensor demo V1.0
* Connect the sensor to I2C port of Arduino to use.
*
* By:http://www.seeedstudio.com
*/
#include <Wire.h>
#include <Digital_Light_TSL2561.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
TSL2561.init();
}
void loop()
{
unsigned long Lux;
TSL2561.getL... | Update Digital_Light_Sensor.ino | Update Digital_Light_Sensor.ino
delect the code that was commented note. | Arduino | mit | Seeed-Studio/Grove_Digital_Light_Sensor |
abee6e53fd49abe35b989efb7f8ffc58098dc055 | examples/adsr/adsr.ino | examples/adsr/adsr.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Update ADSR function to use widget module. | Update ADSR function to use widget module.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
9025fcd4f2037377906dca2057ec0845f40e5830 | examples/adsr/adsr.ino | examples/adsr/adsr.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Improve retriggering. | Improve retriggering.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
aaed7bad415144053214a30d3311343413efa1e4 | crypt-gears/gear_arduino/gear_arduino.ino | crypt-gears/gear_arduino/gear_arduino.ino | // hard-coded pin numbers for input/output
int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25},
{26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}};
... | // hard-coded pin numbers for input/output
int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13},
{14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25},
{26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37}};
... | Build slightly more skeleton | Build slightly more skeleton
| Arduino | mit | bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne |
2f81549c06c54f4f820e56adbaf19e4a57a77906 | 2_example/example31_demo/html.ino | 2_example/example31_demo/html.ino | /*******************************************************************************
HTMLコンテンツ DEMO
Copyright (c) 2016-2017 Wataru KUNINO
*******************************************************************************/
extern int hall_prev;
extern int touch_prev[10];
exte... | /*******************************************************************************
HTMLコンテンツ DEMO
Copyright (c) 2016-2017 Wataru KUNINO
*******************************************************************************/
extern int hall_prev;
extern int touch_prev[10];
exte... | Update html.ino | Update html.ino | Arduino | mit | bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp |
1c999654b639b723018dfa308c6bc57801aa563d | Lee_Retirement/Lee_Retirement.ino | Lee_Retirement/Lee_Retirement.ino | /*
* Lee's retirement countdown clock
*
* I'm using a SainSmart LCD shield with an Uno, and a DS1370 RTC to make it accurate
*
* Links to the Amazon items I used:
* http://www.amazon.com/gp/product/B0076FWAH8
* http://www.amazon.com/gp/product/B00LZCTMJM
*/
/*
set up for the RTC
Libraries used are at
http... | /*
* Lee's retirement countdown clock
*
* I'm using a SainSmart LCD shield with an Uno, and a DS1370 RTC to make it accurate
*
* Links to the Amazon items I used:
* http://www.amazon.com/gp/product/B0076FWAH8
* http://www.amazon.com/gp/product/B00LZCTMJM
*/
//#include <Chronos.h>
/*
set up for the RTC
Libr... | Add DST conversion code Set Time library to use RTC Clean up some unused code Clean up some used code | Add DST conversion code
Set Time library to use RTC
Clean up some unused code
Clean up some used code
| Arduino | apache-2.0 | dannysauer/misc_arduino |
63f49f602afeb938bb5e262918802f450279d86d | examples/YiCameraExample/YiCameraExample.ino | examples/YiCameraExample/YiCameraExample.ino | #include <Yi.h>
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
const char* ssid = "TAS_YI";
const char* password = "1234567890";
const char* host = "192.168.42.1";
WiFiClient client;
int client_status = 0;
int token = 0;
YiClient yi(client, host);
void setup() {
Serial.begin(115200);
delay(10);
Seri... | #include <Yi.h>
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
const char* ssid = "YI_XXXXXXX";
const char* password = "1234567890";
const char* host = "192.168.42.1";
WiFiClient client;
int client_status = 0;
int token = 0;
YiClient yi(client, host);
void setup() {
Serial.begin(115200);
delay(10);
... | Change example wifi ssid | Change example wifi ssid
| Arduino | mit | tasanakorn/arduino_esp8266_yi |
bf38505895d59b4f31fb385a7b0775e12d2e3b1d | arduino_pico/arduino_pico.ino | arduino_pico/arduino_pico.ino | #include "OneWire.h"
#include "DallasTemperature.h"
#include "TimerOne.h"
#include "SPI.h"
#include "Ethernet.h"
#include "WebServer.h"
#include "typedefs.h"
#include "mapping.h"
/*
* Thermometer
*/
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Max... | #include "OneWire.h"
#include "DallasTemperature.h"
#include "TimerOne.h"
#include "SPI.h"
#include "Ethernet.h"
#include "WebServer.h"
#include "typedefs.h"
#include "mapping.h"
/*
* Thermometer
*/
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Max... | add input mode for flow meter | add input mode for flow meter
| Arduino | apache-2.0 | flagos/arduino-pico,flagos/arduino-pico |
56bcd0a8e46a9b92f67ef4396e7be1927ccbff85 | hardware/arduino/light_cloud_wifi/light_cloud_wifi.ino | hardware/arduino/light_cloud_wifi/light_cloud_wifi.ino | #include "SPI.h"
#include <Adafruit_NeoPixel.h>
#include <Adafruit_CC3000.h>
//#include <ccspi.h>
#include <string.h>
//#include "utility/debug.h"
#include <JsonParser.h>
using namespace ArduinoJson::Parser;
/* CC3000 */
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interr... | #include "SPI.h"
#include <Adafruit_NeoPixel.h>
#include <Adafruit_CC3000.h>
//#include <ccspi.h>
#include <string.h>
//#include "utility/debug.h"
#include <JsonParser.h>
using namespace ArduinoJson::Parser;
/* CC3000 */
// These are the interrupt and control pins
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interr... | connect light cloud constantly to the wlan (fixes wlan problems) | connect light cloud constantly to the wlan (fixes wlan problems) | Arduino | mit | chrigu/schifftszbaern,chrigu/schifftszbaern,chrigu/schifftszbaern |
41361fce16694a0ed537726606691b01adce6aba | experimental/arduino101/science-journal-arduino/science-journal-arduino.ino | experimental/arduino101/science-journal-arduino/science-journal-arduino.ino | #include <CurieBLE.h>
#include "goosci_utility.h"
#include "arduino_nrf_pins.h"
#include "heartbeat.h"
#define SENSOR_PIN A0 // Input Pin to read from
BLEPeripheral blePeripheral; // create peripheral instance
BLEService whistlepunkService("555a0001-0aaa-467a-9538-01f0652c74e8"); // create service
const char *value... | #include <CurieBLE.h>
#include "goosci_utility.h"
#include "arduino_nrf_pins.h"
#include "heartbeat.h"
#define SENSOR_PIN A0 // Input Pin to read from
BLEPeripheral blePeripheral; // create peripheral instance
BLEService whistlepunkService("555a0001-0aaa-467a-9538-01f0652c74e8"); // create service
// Must be 20 cha... | correct bug where all value updates were set to length=4 | correct bug where all value updates were set to length=4
| Arduino | apache-2.0 | precision/science-journal-arduino,google/science-journal-arduino,precision/science-journal-arduino,dakoner/science-journal-arduino,dakoner/science-journal-arduino,google/science-journal-arduino |
6d28343c9019ac3183c05673e936b87a9ec5375c | K_Nearest_Neighbors_Template/K_Nearest_Neighbors_Template.ino | K_Nearest_Neighbors_Template/K_Nearest_Neighbors_Template.ino | #include <Arduino.h>
#include <math.h>
// FIXME: Add the libraries needed for each pin
#include <NewPing.h>
#include "Object.h"
// Define Pins for each sensor
// Distance Sensor (Height)
// Height
#define TRIGGER_PIN_1 12
#define ECHO_PIN_1 11
int test = 0;
bool wait = false;
// Define anything ... | #include <Arduino.h>
#include <math.h>
// FIXME: Add the libraries needed for each pin
#include <NewPing.h>
#include "Object.h"
// Define Pins for each sensor
// Distance Sensor (Height)
// Height
#define TRIGGER_PIN_1 12
#define ECHO_PIN_1 11
// Define anything else needed for sensors
// IR Sensor
... | Update K_Nearest_Neighbors_Template.ino | Update K_Nearest_Neighbors_Template.ino | Arduino | mit | baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition |
c2abdb86bdde4fff35de9f50ccdd67615f769edc | RotaryEncoder/examples/E02_KY-040_RotaryEncoder/E02_KY-040_RotaryEncoder.ino | RotaryEncoder/examples/E02_KY-040_RotaryEncoder/E02_KY-040_RotaryEncoder.ino | // Extended: E02 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 1..59, 1 or 1..31, 1 or 1..12, 1 or 0..99, 0
// Rotate CCW: count down 59..1, 59 or 32..1, 31 or 12..1, 12 or 99..0, 9... | // Extended: E02 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 1..59, 1 or 1..31, 1 or 1..12, 1 or 0..99, 0
// Rotate CCW: count down 59..1, 59 or 32..1, 31 or 12..1, 12 or 99..0, 9... | Update E02_KY-040_RotaryEncoder.ino | Update E02_KY-040_RotaryEncoder.ino | Arduino | mit | artkeller/RotaryEncoder |
917e887ae6489cf6c737412cb47e1ef3bc6c16fa | teensy_octo.ino | teensy_octo.ino | /**
* Teensy Octo v1.0
*
* Custom-built USB peripheral with eight buttons, a RGB LED and a Piezo speaker.
* Based on the Teensy 2 microcontroller - http://www.pjrc.com/teensy
*
* Created as a birthday present to Waher (http://waher.net/about-waher-net)
*
* @author David <david@sqroot.eu> 2013
*
* Useful li... | /**
* Teensy Octo v1.0
*
* Custom-built USB peripheral with eight buttons, a RGB LED and a Piezo speaker.
* Based on the Teensy 2 microcontroller - http://www.pjrc.com/teensy
*
* Created as a birthday present to Waher (http://waher.net/about-waher-net)
*
* @author David <david@sqroot.eu> 2013
*
* Useful li... | Add code for easter egg activation | Add code for easter egg activation
| Arduino | mit | anroots/teensy-moonica |
453d0787d49d84aa88d3d7f8af83bc5f89ddc481 | sketch/BLETest/BLETest.ino | sketch/BLETest/BLETest.ino | #include <CurieBle.h>
BLEPeripheral blePeripheral;
// 0x1812 GATT Service == Human Interface Device
// org.bluetooth.service.human_interface_device
BLEService diceService("0x1812");
// 0x2AC5 GATT Characteristic == Object Action Control Point
// org.bluetooth.characteristic.object_action_control_point
BLEUnsignedCha... | #include <CurieBle.h>
BLEPeripheral blePeripheral;
// 0x1812 GATT Service == Human Interface Device
// org.bluetooth.service.human_interface_device
BLEService diceService("0x1812");
// 0x2AC5 GATT Characteristic == Object Action Control Point
// org.bluetooth.characteristic.object_action_control_point
BLEUnsignedCha... | Add command handler | Add command handler
| Arduino | mit | jkmathes/amf-dice,jkmathes/amf-dice,jkmathes/amf-dice |
8f1bd81516c0f46fca5723f4d89febbb34c16d83 | examples/ComplementaryFilter/ComplementaryFilter.ino | examples/ComplementaryFilter/ComplementaryFilter.ino | /*******************************************************************************
This example shows how to use the Complementary Filter.
The following sensors were used in this example. Note that communication is set
to occur over I2C.
Gyroscope: http://www.adafruit.com/products/1032
Accelerometer + Magnetometer: http... | /*******************************************************************************
This example shows how to use the Complementary Filter.
The following sensors were used in this example. Note that communication is set
to occur over I2C.
Gyroscope: http://www.adafruit.com/products/1032
Accelerometer + Magnetometer: http... | Disable interrupts in the critical section | Disable interrupts in the critical section
| Arduino | mit | JCube001/Fusion,JCube001/Fusion |
e62419411c96776668b874108484a56c6a06c77f | tactA_single/SerialCommunication.ino | tactA_single/SerialCommunication.ino | /**
* Tact example for handling capacitive sensing.
* Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... | /**
* Tact example for handling capacitive sensing.
* Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the... | make inByte not constant | make inByte not constant
| Arduino | lgpl-2.1 | StudioNAND/tact-arduino-sketch |
5b6762ea4416497d41521c3f3340a52dd5c9f11a | Dremelfuge.ino | Dremelfuge.ino | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | Write "do this only once when this function/block first called" block in SETTING_TIME mode, also for changing the UI string only once | Write "do this only once when this function/block first called" block in SETTING_TIME mode, also for changing the UI string only once
| Arduino | mit | karinassuni/dremelfuge |
59d66c6bc96420e4d5cfa24786e990324adee132 | AnimatedGIFs.ino | AnimatedGIFs.ino | /*
* Animated GIFs Display Code for SmartMatrix and 32x32 RGB LED Panels
*
* Uses SmartMatrix Library for Teensy 3.1 written by Louis Beaudoin at pixelmatix.com
*
* Written by: Craig A. Lindley
*
* Copyright (c) 2014 Craig A. Lindley
* Refactoring by Louis Beaudoin (Pixelmatix)
*
* Permission is hereby grante... | /*
* Animated GIFs Display Code for SmartMatrix and 32x32 RGB LED Panels
*
* Uses SmartMatrix Library for Teensy 3.1 written by Louis Beaudoin at pixelmatix.com
*
* Written by: Craig A. Lindley
*
* Copyright (c) 2014 Craig A. Lindley
* Refactoring by Louis Beaudoin (Pixelmatix)
*
* Permission is hereby grante... | add note on configuration | add note on configuration
| Arduino | mit | pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs |
58fb9b5850e9a7aca980448ef76dbb184b5fe97e | Arduino_Climate_Node/Arduino_Climate_Node.ino | Arduino_Climate_Node/Arduino_Climate_Node.ino | // Arduino Climate Monitor Node
// 30Aug2014
// Adam Green (ndsoccer11122@yahoo.com)
//humidity code credit to dpotthast from arduino forums
//temp code credit to Milan Malesevic and Zoran Stupid from arduino playground
// HCH-1000 Humidity Sensor
// Vishay NTCLE100E3103HT1 Thermistor
// Arduino Uno
// Temp Sensor... | // Arduino Climate Monitor Node
// 30Aug2014
// Adam Green (ndsoccer11122@yahoo.com)
//humidity code credit to dpotthast from arduino forums
//temp code credit to Milan Malesevic and Zoran Stupid from arduino playground
// HCH-1000 Humidity Sensor
// Vishay NTCLE100E3103HT1 Thermistor
// Arduino Uno
// Temp Sensor... | Tweak humidity reading | Tweak humidity reading
| Arduino | apache-2.0 | ender11122/Arduino-Climate-Node |
7468a33cfe017fc44baa7ed8d5dd039704df6913 | 10Docking/Docking.ino | 10Docking/Docking.ino | #include <Servo.h>
Servo magnetServo;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT) //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
if (digitalRead(3) == HIGH){
Serial.write("ON");
}
else... | #include <Servo.h>
Servo magnetServo;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT) //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
if (digitalRead(3) == HIGH){
Serial.write("ON");
Serial.pr... | Update Docking.ino | Update Docking.ino | Arduino | mit | WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS |
b6577caf2d121232ebcca8c2f8ab113e9e61edb0 | ESP8266_Base.ino | ESP8266_Base.ino |
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <EEPROM.h>
#include "EPROMAnything.h"
#define DETECT_MATCH_PATTERN ((uint16_t)0xAAF0u)
#define WIFI_CONNECT_TIMEOUT_CNT ((uint16_t)50u)
// DNS server
const static uint8_t DNS_PORT ... |
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <EEPROM.h>
#include "EPROMAnything.h"
#define DETECT_MATCH_PATTERN ((uint16_t)0xAAF0u)
#define WIFI_CONNECT_TIMEOUT_CNT ((uint16_t)50u)
// DNS server
const static uint8_t DNS_PORT ... | Handle POST requests at /wlanSetup | Handle POST requests at /wlanSetup | Arduino | mit | muesliman/ESP8266_Base |
f573dbc57837e0265b9bbc09386c61aafdb71bdc | examples/Car/automatedMovements/automatedMovements.ino | examples/Car/automatedMovements/automatedMovements.ino | #include <Smartcar.h>
const float carSpeed = 1.0;
const long distanceToTravel = 40;
const int degreesToTurn = 90;
BrushedMotor leftMotor(8, 10, 9);
BrushedMotor rightMotor(12, 13, 11);
DifferentialControl control(leftMotor, rightMotor);
GY50 gyroscope(37);
const auto odometerLeftPin = 2;
const auto... | #include <Smartcar.h>
const float carSpeed = 1.0;
const long distanceToTravel = 40;
const int degreesToTurn = 90;
BrushedMotor leftMotor(8, 10, 9);
BrushedMotor rightMotor(12, 13, 11);
DifferentialControl control(leftMotor, rightMotor);
GY50 gyroscope(37);
const auto odometerLeftPin = 2;
const auto o... | Remove unused variable | Remove unused variable
| Arduino | mit | platisd/smartcar_shield,platisd/smartcar_shield |
621b0b1c1f37f0dfde4e0430952906a3a993099b | sanro/sanro.ino | sanro/sanro.ino | /***************************************************************
* *
* Taiko Sanro - Arduino *
* Support Arduino models with ATmega32u4 microprocessors *
* ... | /***************************************************************
* *
* Taiko Sanro - Arduino *
* Support Arduino models with ATmega32u4 microprocessors *
* ... | refactor cache | refactor cache
| Arduino | mit | ShikyC/Sanro-Arduino |
239e54b335e787fb701846f684aef36bab7adfc3 | tank/src/sketch.ino | tank/src/sketch.ino | /*
Arduinoで戦車を動かすためのプログラム
author:4869 */
#include<Servo.h>
//定数宣言
#define MAX 250
#define NOM 100
//上の回線部分
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 = 12;
const int L... | /*
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 ... | update tank Arduino program | update tank Arduino program
| Arduino | mit | sh4869/TankGame |
52d4ba533a840432cdd13389ca85af2a01acbec4 | 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 demo | examples/FirebaseDemo: fix demo
| Arduino | apache-2.0 | FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,ed7coyne/firebase-arduino |
49037cbc3f86237d9fa41b6c1e1f98922c901de9 | examples/SSD1306TwoScreenDemo/SSD1306TwoScreenDemo.ino | examples/SSD1306TwoScreenDemo/SSD1306TwoScreenDemo.ino | /**
* The MIT License (MIT)
*
* Copyright (c) 2018 by ThingPulse, Daniel Eichhorn
*
* 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 th... | /**
* The MIT License (MIT)
*
* Copyright (c) 2018 by ThingPulse, Daniel Eichhorn
*
* 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 th... | Simplify two screen demo | Simplify two screen demo
| Arduino | mit | squix78/esp8266-oled-ssd1306,squix78/esp8266-oled-ssd1306 |
918584dff8b39187193e596fb4f5220c43f63be3 | Pattern_Recognition.ino | Pattern_Recognition.ino |
#define LED_SMALL_PIN 14
#define LED_LARGE_PIN 15
#define IR_SENSOR_PIN_1 4
#define IR_SENSOR_PIN_2 3
struct Features {
bool IR_Sensor1;
bool IR_Sensor2;
};
Features Feature_Extraction() {
Features features;
features.IR_Sensor1 = digitalRead(IR_SENSOR_PIN_1);
features.IR_Sensor2 = digitalRead(IR_SENSOR_PIN... | #define LED_SMALL_PIN 14
#define LED_LARGE_PIN 15
#define IR_SENSOR_PIN_1 4
#define IR_SENSOR_PIN_2 3
struct Features {
bool IR_Sensor1;
bool IR_Sensor2;
};
Features Feature_Extraction() {
Features features;
features.IR_Sensor1 = digitalRead(IR_SENSOR_PIN_1);
features.IR_Sensor2 = digitalRe... | Update Pattern_Recognition.ino | Update Pattern_Recognition.ino
Added comments | Arduino | mit | baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition |
560201753bd836da49917d04fb470359dc487941 | examples/BasicUsage/BasicUsage.ino | examples/BasicUsage/BasicUsage.ino | // Adafruit Watchdog Library Basic Usage Example
//
// Simple example of how to use the watchdog library.
//
// Author: Tony DiCola
#include <Adafruit_SleepyDog.h>
void setup() {
Serial.begin(115200);
while (!Serial)
delay(10);
// wait for Arduino Serial Monitor (native USB boards)
Serial.println("Adafru... | // Adafruit Watchdog Library Basic Usage Example
//
// Simple example of how to use the watchdog library.
//
// Author: Tony DiCola
#include <Adafruit_SleepyDog.h>
void setup() {
Serial.begin(115200);
while (!Serial)
delay(10);
// wait for Arduino Serial Monitor (native USB boards)
Serial.println("Adafru... | fix define->!define | fix define->!define
| Arduino | mit | adafruit/Adafruit_SleepyDog,adafruit/Adafruit_SleepyDog |
a0d477ee49d7b117109c23d677ed2b92293c0d87 | KomaRoof.ino | KomaRoof.ino | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | use unsigned long for timestamps | use unsigned long for timestamps
| Arduino | mit | vehnae/komaroof,vehnae/komaroof |
e009b968d9608fa911e01a65a25d224e8d0bf172 | Arduino/MyStadingDesk/MyStadingDesk.ino | Arduino/MyStadingDesk/MyStadingDesk.ino | #include <SoftwareSerial.h>
#define FALL 8
#define RISE 9
#define TRIG 10
#define ECHO 11
/*
[State]
READY : 0
FALLING : 1
RISING : 2
*/
int state = 0;
void setup() {
pinMode(FALL, OUTPUT);
pinMode(RISE, OUTPUT);
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT);
Serial.begin(9600);
digitalWrite(FALL, HIG... | #include <SoftwareSerial.h>
#define FALL 8
#define RISE 9
#define TRIG 10
#define ECHO 11
/*
[State]
READY : 0
FALLING : 1
RISING : 2
*/
int state = 0;
void setup() {
pinMode(FALL, OUTPUT);
pinMode(RISE, OUTPUT);
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT);
Serial.begin(9600);
digitalWrite(FALL, HIGH);
... | edit sending message of arduino | edit sending message of arduino
| Arduino | mit | neosarchizo/MyStandingDesk |
1fb650827b6db94dcb588026ea3fc2e10c0c747a | examples/tftbmp2/tftbmp2.ino | examples/tftbmp2/tftbmp2.ino | /*
TFT Touch Shield 2.0 examples - tftbmp2
loovee
2013-1-21
This demo can show all bmp files in root Directory of SD card,
regardless of the image size.
MAX_BMP specifies the maximum number of files to display
FILENAME_LEN specifies the maximum length of the file name
Modified by DFBrown (df... | /*
TFT Touch Shield 2.0 examples - tftbmp2
loovee
2013-1-21
This demo can show all bmp files in root Directory of SD card,
regardless of the image size.
MAX_BMP specifies the maximum number of files to display
FILENAME_LEN specifies the maximum length of the file name
Modified by DFBrown (df... | Update tftbmp2.ino | Update tftbmp2.ino | Arduino | mit | Seeed-Studio/TFT_Touch_Shield_V2,Seeed-Studio/TFT_Touch_Shield_V2 |
838ed4ca51f3ad63a43bcb4868373b4fccc30fe4 | FastLED/Beacon.ino | FastLED/Beacon.ino | // This #include statement was automatically added by the Particle IDE.
#include <FastLED.h>
FASTLED_USING_NAMESPACE; //Gotta include the namespace because reasons
/*
__________________________FastLED variables__________________________
*/
#define RING_PIN D1
#define RING_LEDS 24
CRGB ringLeds[RING_LEDS]; //Gott... | // This #include statement was automatically added by the Particle IDE.
#include <FastLED.h>
FASTLED_USING_NAMESPACE; //Gotta include the namespace because reasons
/*
__________________________FastLED variables__________________________
*/
#define RING_PIN D1
#define RING_LEDS 24
CRGB ringLeds[RING_LEDS]; //Gott... | Update Beacon.ino | Update Beacon.ino | Arduino | apache-2.0 | Blaze420McYoloSwag/LiteHaus |
58f7873fa5f37049e2cc2d333a3506adbacb08f9 | playground/ServoTest/ServoTest.ino | playground/ServoTest/ServoTest.ino | /*
ServoTest
Test the positioning accuracy of a servo motor.
For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/ServoTest
*/
#include <Servo.h>
#define SERVO_PIN 9
#define STEP_DELAY 1000
#define IDEAL_MIN_PW 600
#define IDEAL_MAX_PW 2320
Servo myservo;... | /*
ServoTest
Test the positioning accuracy of a servo motor.
For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/ServoTest
*/
#include <Servo.h>
#define SERVO_PIN 9
#define STEP_DELAY 1000
#define IDEAL_MIN_PW 600
#define IDEAL_MAX_PW 2320
Servo myservo;... | add continuous step option | [ServoTest] add continuous step option | Arduino | mit | tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects |
541bd7b242ff9a65a2ce90e4bf97eb4d3592a2bf | Arduino/AlphaChairArduino/AlphaChairArduino.ino | Arduino/AlphaChairArduino/AlphaChairArduino.ino | #include <SoftwareSerial.h>
#include <Thread.h>
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
// Mosfet channel
int MOSFET_C1 = 10;
int MOSFET_C2 = 7;
// UNO board
int I... | #include <SoftwareSerial.h>
#include <Thread.h>
#include <QueueList.h>
QueueList <int> q;
int sum ;
int firstVal;
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
int count... | update posture part (count method) | update posture part (count method)
| Arduino | apache-2.0 | quki/AlphaChair |
37a056b76562e7a4b101c0ed4122bcdbfcecb524 | OLED_functions.ino | OLED_functions.ino |
void updateOLEDbar(){
int barWidth = DISPLAY_WIDTH / numberOfChannels;
OLED.clear();
for ( byte thisChannel = 0; thisChannel < numberOfChannels; thisChannel++ ){
int x1= barWidth * thisChannel;
int bottomOfBar = DISPLAY_HEIGHT - 11;
int y1= ( bottomOfBar ) - ( bottomOfBar * ( channel[thisChannel].cu... |
void updateOLEDbar() {
int barWidth = DISPLAY_WIDTH / numberOfChannels;
OLED.clear();
for ( byte thisChannel = 0; thisChannel < numberOfChannels; thisChannel++ ) {
int x1 = barWidth * thisChannel;
int bottomOfBar = DISPLAY_HEIGHT - 11;
int y1 = ( bottomOfBar ) - ( bottomOfBar * ( channel[thisChannel... | Move ip/hostname two pixels up and cleanup code. | Move ip/hostname two pixels up and cleanup code.
The ipadress/hostname got cut off by the bottom of the screen.
Moved up by 2 pixels still fits.
Cleanup.
Signed-off-by: Cellie <5a95f66c4e447827a8bbc001563710c0caf0a1f7@wasietsmet.nl>
| Arduino | mit | CelliesProjects/aquacontrol |
eeed5e4cf1030b916725f9d10ef9c3ee291f0574 | otto/otto.ino | otto/otto.ino | #include <limits.h>
#include <Servo.h>
#define RIGHT_ANKLE_POS_LEFT 900
#define RIGHT_ANKLE_POS_MIDDLE 1510
#define RIGHT_ANKLE_POS_RIGHT 1800
#define LEFT_ANKLE_POS_LEFT 1150
#define LEFT_ANKLE_POS_MIDDLE 1490
#define LEFT_ANKLE_POS_RIGHT 2200
#define RIGHT_HIP_POS_MIN 960
#define RIGHT_HIP_POS... | #include <limits.h>
#include <Servo.h>
#define RIGHT_ANKLE_POS_LEFT 900
#define RIGHT_ANKLE_POS_MIDDLE 1510
#define RIGHT_ANKLE_POS_RIGHT 1800
#define LEFT_ANKLE_POS_LEFT 1150
#define LEFT_ANKLE_POS_MIDDLE 1490
#define LEFT_ANKLE_POS_RIGHT 2200
#define RIGHT_HIP_POS_MIN 960
#define RIGHT_HIP_POS... | Handle value returned by pulsIn() correctly, set timeout for pulseIn() to avoid noticable pauses in movement | Handle value returned by pulsIn() correctly, set timeout for pulseIn() to avoid noticable pauses in movement
| Arduino | bsd-3-clause | mprochnow/arduino_sketchbook |
7b7363d4a6f9617f59f3e79047c8df1c53611ca2 | firmware/firmware.ino | firmware/firmware.ino | // vim: set filetype=cpp foldmethod=marker foldmarker={,} :
#include "firmware.h"
static void handle_motors(uint32_t current_time) {
for (uint8_t m = 0; m < num_motors; ++m) {
// Check sense pins.
if (motor[m]->sense_pin.valid()) {
if (GET(motor[m]->sense_pin, false) ^ bool(motor[m]->sense_state & 0x80)) {
... | // vim: set filetype=cpp foldmethod=marker foldmarker={,} :
#include "firmware.h"
static void handle_motors(uint32_t current_time) {
for (uint8_t m = 0; m < num_motors; ++m) {
// Check sense pins.
if (motor[m]->sense_pin.valid()) {
if (GET(motor[m]->sense_pin, false) ^ bool(motor[m]->sense_state & 0x80)) {
... | fix speed adjustment | fix speed adjustment
| Arduino | agpl-3.0 | mtu-most/franklin,sheepslinky/franklin,sheepslinky/franklin,mtu-most/franklin,sheepslinky/franklin,mtu-most/franklin,mtu-most/franklin,sheepslinky/franklin,mtu-most/franklin,sheepslinky/franklin,sheepslinky/franklin |
cc4fe44300ca00d633d3c587da763c0ee20d5a1f | K_Nearest_Neighbors_Fruits/K_Nearest_Neighbors_Fruits.ino | K_Nearest_Neighbors_Fruits/K_Nearest_Neighbors_Fruits.ino | #include <Arduino.h>
#include <math.h>
#include <LiquidCrystal.h>
#include "Object.h"
#include <HX711.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
// LCD Screen
const int rs = 41, en = 39, d4 = 37, d5 = 35, d6 = 33, d7 = 31;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
String lcd_current = "";
// IR Sensor
#def... | #include <Arduino.h>
#include <math.h>
#include <LiquidCrystal.h>
#include "Object.h"
#include <HX711.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
// LCD Screen
const int rs = 41, en = 39, d4 = 37, d5 = 35, d6 = 33, d7 = 31;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
String lcd_current = "";
// IR Sensor
#def... | Update K_Nearest_Neighbors_Fruits.ino | Update K_Nearest_Neighbors_Fruits.ino | Arduino | mit | baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition |
adc6c35942c3066c284e1f859f1594bd3b037a85 | inverted-pendulum.ino | inverted-pendulum.ino | // Inverted pendulum - for Teensy 3.2
#include "Encoder.h"
#include "Pendulum.h"
#include "PIDControl.h"
#include "SimpleShell.h"
#define LEFT HIGH
#define RIGHT LOW
#define TRACK_ENCODER_PIN_A 0
#define TRACK_ENCODER_PIN_B 1
#define PENDULUM_ENCODER_PIN_A 2
#define PENDULUM_ENCODER_PIN_B 3
#define LEFT_BUMP_PIN 4
#d... | // Inverted pendulum - for Teensy 3.2
#include "Encoder.h"
#include "Pendulum.h"
#include "PIDControl.h"
#include "SimpleShell.h"
#define LEFT HIGH
#define RIGHT LOW
#define TRACK_ENCODER_PIN_A 0
#define TRACK_ENCODER_PIN_B 1
#define PENDULUM_ENCODER_PIN_A 2
#define PENDULUM_ENCODER_PIN_B 3
#define LEFT_BUMP_PIN 4
#d... | Change kp; print pendulum state; 7200 counts/rev | Change kp; print pendulum state; 7200 counts/rev
| Arduino | mit | andrewadare/inverted-pendulum |
6e4907b42bfd6a1c7609cde033c0668639132394 | Arduino/arduino_client/arduino_client.ino | Arduino/arduino_client/arduino_client.ino | #include <NewPing.h>
#define TRIGGER_PIN 2 // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN 3 // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 200 // Maximum distance (in cm) to ping.
unsigned int cm; // Where the ping distances are stored.
//... | #include <NewPing.h>
#define TRIGGER_PIN 2 // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN 3 // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 200 // Maximum distance (in cm) to ping.
// Declare L298N Dual H-Bridge Motor Controller directly since there... | Update Arduino Sketch | Update Arduino Sketch
| Arduino | apache-2.0 | oemdaro/MindControlledRobot |
5426efe0f87a1f1a32d94ffc9df9cf725011db1f | Examples/LoRa_TX_RX/LoRa_TX_RX.ino | Examples/LoRa_TX_RX/LoRa_TX_RX.ino | #include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
//const char *appEui = "0000000000000000";
//const char *appKey = "00000000000000000000000000000000";
const char *appEui = "70B3D57EF0003304";
const char *appKey = "5B83575B075B1472F78431863526BE49";
#define loraSerial Serial1
#define debugSerial Serial
// ... | #include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
const char *appEui = "0000000000000000";
const char *appKey = "00000000000000000000000000000000";
#define loraSerial Serial1
#define debugSerial Serial
// The KISS device should only be used in Europe
#define freqPlan TTN_FP_EU868
TheThingsNetwork ttn(lora... | Remove my keys | Remove my keys
| Arduino | mit | YourproductSmarter/KISSLoRa-demo,YourproductSmarter/KISSLoRa-demo |
25f125ae254917e2bdc64f9ffd88de872399a3f9 | SimpleCSV.ino | SimpleCSV.ino | /*
Functions to write a CSV file to an SD card,
read those files from the SD card, and
report the files with HTTP POST multipart form
to a web server.
I used Fat16lib to access the SD card due to
the small memory footprint it requires.
See https://code.google.com/p/fat16lib/ for details.
*/
SdCard card;
Fat16 file;
... | /*
Functions to write a CSV file to an SD card,
read those files from the SD card, and
report the files with HTTP POST multipart form
to a web server.
I used Fat16lib to access the SD card due to
the small memory footprint it requires.
See https://code.google.com/p/fat16lib/ for details.
*/
SdCard card;
Fat16 file;
... | Use a buffer here to improve the transmission speed, instead of sending a bunch of single bytes at a time. | Use a buffer here to improve the transmission speed, instead of sending a bunch of single bytes at a time.
| Arduino | mit | pndlm/keg_scribe |
6335ddc37c394b1d919c5f840f4032ca7dc40a23 | BinaryKeyboard.ino | BinaryKeyboard.ino | /*
Chris Johnston Apr 13 2017
Binary Keyboard for Arduino Pro Micro
*/
// libraries
#include <Keyboard.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// pixel art for 1/0 mode w/ animations
#include "PixelArt.h"
// flag for reading/entering right to left ... | /*
Chris Johnston Apr 13 2017
Binary Keyboard for Arduino Pro Micro
*/
// libraries
#include <Keyboard.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// pixel art for 1/0 mode w/ animations
#include "PixelArt.h"
// flag for reading/entering right to left or left to righ... | fix line endings | fix line endings
| Arduino | mit | Chris-Johnston/BinaryKeyboard |
5fa10d571e91dbd7497f60167f2975454eedec70 | esp8266_160220_BYOP.ino | esp8266_160220_BYOP.ino |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* - add [kAuthorizationCode], which is used to protect to clear all the messages
* v0.23 2016 Feb. 27
* - add [CMD_ALL_CLEAR] in Serial command
* - update proc_get() > add 3rd parame... |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* - update proc_clear() to call MsgServer_Clear()
* - add [kAuthorizationCode], which is used to protect to clear all the messages
* v0.23 2016 Feb. 27
* - add [CMD_ALL_CLEAR] in Ser... | update proc_clear() to call MsgServer_Clear() | update proc_clear() to call MsgServer_Clear()
| Arduino | mit | yasokada/esp8266_160220_BYOP |
8b7963ba3eb189508b6c9ba3e8a71ab45907d8a2 | examples/Sandbox/CosaProtocolBuffer/CosaProtocolBuffer.ino | examples/Sandbox/CosaProtocolBuffer/CosaProtocolBuffer.ino | /**
* @file CosaProtocolBuffer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | /**
* @file CosaProtocolBuffer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | Fix buffer reset between test suites. | Fix buffer reset between test suites.
| Arduino | lgpl-2.1 | kc9jud/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,rrobinet/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,rrobinet/Cosa,dansut/Cosa,kc9jud/Cosa,dansut/Cos... |
dc7f0aa7fcb76d1e80e760b629431502ce892af4 | arduino/serial_control/serial_control.ino | arduino/serial_control/serial_control.ino | // Distributed with a free-will license.
// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
// AD5667
// This code is designed to work with the AD5667_I2CDAC I2C Mini Module available from ControlEverything.com.
// https://www.controleverything.com/content/Digital-Anal... | // Distributed with a free-will license.
// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
// AD5667
// This code is designed to work with the AD5667_I2CDAC I2C Mini Module available from ControlEverything.com.
// https://www.controleverything.com/content/Digital-Anal... | add delay to non-crossings to smooth out wave | add delay to non-crossings to smooth out wave
| Arduino | agpl-3.0 | zobristnicholas/PMM_Readout,zobristnicholas/PMM_Readout |
ae09d919583536bf7c0e14945c353b43504e7f9c | Guzheng/Guzheng.ino | Guzheng/Guzheng.ino | /* Code for laser GuZheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
// Port I/O defines
#define THRESHOLD 700
#define LASTPORT 7
#define BUTTONPORT 8
// MIDI property defines
#define VOLUME 0x7F
#define DELAY 0
// MIDI Instrument Array
#define NUMINSTRUMENTS 6
// MIDI command defines... | /* Code for laser GuZheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
// Port I/O defines
#define THRESHOLD 700
#define LASTPORT 7
#define INSTRUMENTBUTTON 8
// MIDI property defines
#define VOLUME 0x7F
#define DELAY 0
// MIDI Instrument Array
#define NUMINSTRUMENTS 6
// MIDI command d... | Add note set switching support | Add note set switching support
Uses another button that allows us to switch octaves
| Arduino | mit | PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp |
b70c6697b94a9b5fd6ce268ad37d834fe2e10878 | Guzheng/Guzheng.ino | Guzheng/Guzheng.ino | /* Code for laser GuZheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
// Port I/O defines
#define THRESHOLD 700
#define LASTPORT 7
#define INSTRUMENTBUTTON 8
// MIDI property defines
#define VOLUME 0x7F
#define DELAY 0
// MIDI Instrument Array
#define NUMINSTRUMENTS 6
// MIDI command d... | /* Code for laser GuZheng
* Copyright (C) 2016 Jason Lu
*
* Licensed under the MIT License
*/
// Port I/O defines
#define THRESHOLD 700
#define LASTPORT 7
#define INSTRUMENTBUTTON 8
// MIDI property defines
#define VOLUME 0x7F
#define DELAY 0
// MIDI Instrument Array
#define NUMINSTRUMENTS 6
// MIDI command d... | Rename button variables | Rename button variables
| Arduino | mit | PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp |
17131e133cfd60a2e8ced259afbd585cd5e40de6 | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* ssid = "........";
const char* password = "........";
MDNSResponder mdns;
ESP8266WebServer server(80);
void handleRoot() {
server.send(200, "text/plain", "hello from esp8266!");
}
void handleNotFou... | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* ssid = "........";
const char* password = "........";
MDNSResponder mdns;
ESP8266WebServer server(80);
const int led = 13;
void handleRoot() {
digitalWrite(led, 1);
server.send(200, "text/plain",... | Add led to WebServer example | Add led to WebServer example
This reverts commit 43be35c4de9618c21d04fe1d5056143b9b55ffd3.
| Arduino | lgpl-2.1 | SmartArduino/Arduino-1,danielchalef/Arduino,shiitakeo/Arduino,fungxu/Arduino,sanyaade-iot/Arduino-1,plaintea/esp8266-Arduino,myrtleTree33/Arduino,spapadim/Arduino,paulo-raca/ESP8266-Arduino,radut/Arduino,Cloudino/Arduino,paulo-raca/ESP8266-Arduino,nkolban/Arduino,zenmanenergy/Arduino,shiitakeo/Arduino,nkolban/Arduino,a... |
3c80c2bd77c2b668ff5d9d5b97730740938d6946 | DanceFeather/DanceFeather.ino | DanceFeather/DanceFeather.ino | // SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries
//
// SPDX-License-Identifier: MIT
//
#include <Adafruit_APDS9960.h>
#include <Adafruit_BMP280.h>
#include <Adafruit_LIS3MDL.h>
#include <Adafruit_LSM6DS33.h>
#include <Adafruit_SHT31.h>
#include <Adafruit_Sensor.h>
#include <PDM.h>
#include <KickFFT... | // SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries
//
// SPDX-License-Identifier: MIT
//
#include <Adafruit_APDS9960.h>
#include <Adafruit_BMP280.h>
#include <Adafruit_LIS3MDL.h>
#include <Adafruit_LSM6DS33.h>
#include <Adafruit_SHT31.h>
#include <Adafruit_Sensor.h>
#include <PDM.h>
#include <KickFFT... | normalize mag | normalize mag
| Arduino | mit | crazypills/Dancetimes |
97b3c22782e15551748cbe53c5b4e93005314ec6 | tests/NdefUnitTest/NdefUnitTest.ino | tests/NdefUnitTest/NdefUnitTest.ino | #include <ArduinoUnit.h>
#include <Ndef.h>
TestSuite suite;
void assertBytesEqual(Test& __test__, const uint8_t* expected, const uint8_t* actual, uint8_t size) {
for (int i = 0; i < size; i++) {
assertEquals(expected[i], actual[i]);
}
}
void setup() {
Serial.begin(9600);
}
test(foo) {
assertEquals(3, ... | #include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>
#include <NdefRecord.h>
#include <ArduinoUnit.h>
TestSuite suite;
void assertBytesEqual(Test& __test__, const uint8_t* expected, const uint8_t* actual, uint8_t size) {
for (int i = 0; i < size; i++) {
assertEquals(expected[i], actual[i]);
}
}
void setup()... | update based on refactoring | update based on refactoring
| Arduino | bsd-3-clause | jlkalberer/NDEF,jlkalberer/NDEF,abcd-ca/NDEF,abcd-ca/NDEF |
88a20ae41a332d58f40e19202b6d9cf00c973a1e | libraries/ESP8266WiFiMesh/examples/HelloMesh/HelloMesh.ino | libraries/ESP8266WiFiMesh/examples/HelloMesh/HelloMesh.ino | #include <ESP8266WiFi.h>
#include <ESP8266WiFiMesh.h>
unsigned int request_i = 0;
unsigned int response_i = 0;
/* Create the mesh node object */
ESP8266WiFiMesh mesh_node = ESP8266WiFiMesh(ESP.getChipId(), manageRequest);
/**
* Callback for when other nodes send you data
*
* @request The string received from anot... | #include <ESP8266WiFi.h>
#include <ESP8266WiFiMesh.h>
unsigned int request_i = 0;
unsigned int response_i = 0;
String manageRequest(String request);
/* Create the mesh node object */
ESP8266WiFiMesh mesh_node = ESP8266WiFiMesh(ESP.getChipId(), manageRequest);
/**
* Callback for when other nodes send you data
*
*... | Make compatible with arduino-builder | Make compatible with arduino-builder
| Arduino | lgpl-2.1 | esp8266/Arduino,KaloNK/Arduino,toastedcode/esp8266-Arduino,esp8266/Arduino,lrmoreno007/Arduino,NullMedia/Arduino,Juppit/Arduino,esp8266/Arduino,Links2004/Arduino,KaloNK/Arduino,NextDevBoard/Arduino,KaloNK/Arduino,jes/Arduino,toastedcode/esp8266-Arduino,lrmoreno007/Arduino,Adam5Wu/Arduino,Adam5Wu/Arduino,martinayotte/ES... |
44893a70e8ec0d3abf6a4bc0e510235cb3ca432e | document/arduino/motor_control/motor_control.ino | document/arduino/motor_control/motor_control.ino | /*
Copyright 2017 ADLINK Technology Inc.
Developer: Chester, Tseng (for pySerial & encoder)
HaoChih, LIN (for controller)
Email: chester.tseng@adlinktech.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy ... | /*
Copyright 2017 ADLINK Technology Inc.
Developer: Chester, Tseng (for pySerial & encoder)
HaoChih, LIN (for controller)
Email: chester.tseng@adlinktech.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy ... | update params | update params
| Arduino | apache-2.0 | Adlink-ROS/adlink_ddsbot,Adlink-ROS/adlink_ddsbot |
4f04aecafffd2c4bea46260e422552e7d1d03de3 | 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 ... | /*
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 ... | Add support for new Kinetis devices | Add support for new Kinetis devices | Arduino | mit | FrankBoesing/FastCRC,FrankBoesing/FastCRC |
49918e81530564a3a581df284c6058b72ec50d43 | wifi_http_request/wifi_http_request.ino | wifi_http_request/wifi_http_request.ino | #include <MQTT.h>
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <DHT.h>
#define DHTTYPE DHT22
#define DHTPIN 2
//const char* ssid = "Livebox-9e38";
//const char* password = "EDE79F89D642E0117543DD28A6";
//const char* ssid = "Mutualab Coworking 1";
//const char* password = "maintenantautrava... | #include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <DHT.h>
#define DHTTYPE DHT22
#define DHTPIN 2
//const char* ssid = "Livebox-9e38";
//const char* password = "EDE79F89D642E0117543DD28A6";
//const char* ssid = "Mutualab Coworking 1";
//const char* password = "maintenantautravail";
//const cha... | update suite à évolution des libs | update suite à évolution des libs
| Arduino | apache-2.0 | pihito/Arduino,pihito/Arduino,pihito/Arduino,pihito/Arduino |
2ac5334bfe86b41b8c4f8f98bb1d8e78bbf1ff61 | examples/01-Basic/ChangeSampleRate/ChangeSampleRate.ino | examples/01-Basic/ChangeSampleRate/ChangeSampleRate.ino | /*
* ChangeSampleRate
*
* Created: Chip Audette, Apr 2017
* Purpose: Change the sample rate and block size, then apply gain
*
* Uses Tympan Audio Adapter.
* Blue potentiometer adjusts the digital gain applied to the audio signal.
*
* MIT License. use at your own risk.
*/
//here are the libraries that w... | /*
* ChangeSampleRate
*
* Created: Chip Audette, Apr 2017
* Purpose: Change the sample rate and block size, then apply gain
*
* Uses Tympan Audio Adapter.
* Blue potentiometer adjusts the digital gain applied to the audio signal.
*
* MIT License. use at your own risk.
*/
//here are the libraries that w... | Update ChangeSampleRate.ino | Update ChangeSampleRate.ino
Changing input from on board microphone to microphone jack | Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
91b9822725ecef9d45222b37a2b6fb3f893cbe4b | thecantina.ino | thecantina.ino | // This #include statement was automatically added by the Particle IDE.
#include "RCSwitch/RCSwitch.h"
#include <string.h>
#define OFFICE_Light_1_Toggle 87489
#define OFFICE_Light_2_Toggle 87345
#define OFFICE_Light_3_Toggle 87309
#define LIVINGROOM_Light_1_On 5330227
#define LIVINGROOM_Light_1_Off 5330236
#define LI... | // This #include statement was automatically added by the Particle IDE.
#include "RCSwitch/RCSwitch.h"
#include <string.h>
#define OFFICE_Light_1_Toggle 87489
#define OFFICE_Light_2_Toggle 87345
#define OFFICE_Light_3_Toggle 87309
#define LIVINGROOM_Light_1_On 5330227
#define LIVINGROOM_Light_1_Off 5330236
#define LI... | Remove irrelevant code from the Photon firmware for public users. | Remove irrelevant code from the Photon firmware for public users.
| Arduino | mit | syardumi/trick-candles,syardumi/trick-candles,syardumi/trick-candles |
90729874011efa50d547c184d805bde9e7f5d246 | examples/DumpInfo/DumpInfo.ino | examples/DumpInfo/DumpInfo.ino | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | Update DumpInfo.ino | Update DumpInfo.ino
Added pin layouts for ATMEGA32U4-based Arduinos in comment; code updated to account for serial behaviors of ATMEGA32U4-based Arduinos | Arduino | unlicense | Rotzbua/rfid,Rotzbua/rfid,lpr0lpd/rfid,prikevs/rfid,mangine/mraa_MFRC522,r44947/rfid,juantejedavz/rfid,CapeSepias/rfid,sophiekovalevsky/rfid,yaalsn/rfid,1upon0/rfid,smallkid/rfid,LaloHao/rfid,tamchau2809/rfid,irhastofa/rfid,webdevbrian/rfid,northDacoder/rfid,miguelbalboa/rfid,mirko314/rfid,hramrach/rfid |
17d0755bd3e636126896f0b610f6a790039f5903 | examples/Ticker01/Ticker01.ino | examples/Ticker01/Ticker01.ino | // Blink 4 leds in random intervals by means of
// the ticker function
// Blinking starts with first press of the correspondig button
// and can be started and stopped by means of this button
#include <MobaTools.h>
const byte ledPins[] = {2,3,4,5};
const byte buttonPins[] = { A0,A1,A2,A3 };
MoToTicker ledTicker[4];... | // Blink 4 leds in random intervals with the ticker class.
// Blinking starts with first press of the correspondig button
// and can be stopped and restarted by pressing this button.
// The blink frequency is determined at the first start.
#include <MobaTools.h>
const byte ledPins[] = {2,3,4,5};
const byte buttonPin... | Update Ticker01.ino | Update Ticker01.ino
| Arduino | lgpl-2.1 | MicroBahner/MobaTools,MicroBahner/MobaTools |
d4ef2866e3a16ade53c38086507192bee5098ea8 | hardware/esp8266com/esp8266/libraries/ESP8266mDNS/examples/DNS_SD_Arduino_OTA/DNS_SD_Arduino_OTA.ino | hardware/esp8266com/esp8266/libraries/ESP8266mDNS/examples/DNS_SD_Arduino_OTA/DNS_SD_Arduino_OTA.ino | #include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUDP.h>
const char* host = "esp8266-ota";
const char* ssid = "**********";
const char* pass = "**********";
const uint16_t aport = 8266;
WiFiServer TelnetServer(aport);
WiFiClient Telnet;
WiFiUDP OTA;
void setup() {
Serial.begin(115200);
Serial.pri... | #include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUDP.h>
const char* host = "esp8266-ota";
const char* ssid = "**********";
const char* pass = "**********";
const uint16_t aport = 8266;
WiFiServer TelnetServer(aport);
WiFiClient Telnet;
WiFiUDP OTA;
void setup() {
Serial.begin(115200);
Serial.pri... | Update OTA Sketch | Update OTA Sketch
| Arduino | lgpl-2.1 | mattvenn/Arduino,sanyaade-iot/Arduino-1,spapadim/Arduino,eeijcea/Arduino-1,sanyaade-iot/Arduino-1,Alfredynho/AgroSis,weera00/Arduino,NeuralSpaz/Arduino,jomolinare/Arduino,leftbrainstrain/Arduino-ESP8266,tannewt/Arduino,danielchalef/Arduino,Cloudino/Arduino,Alfredynho/AgroSis,EmuxEvans/Arduino,Cloudino/Cloudino-Arduino-... |
dcb0e88902d770f437deeae49b28b39cda96597d | arduino/sketch_plug/sketch_plug.ino | arduino/sketch_plug/sketch_plug.ino | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
//#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
#if 0
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "smart_office";
const char *g_devid = "plug_0";
#else
const char *g_... | #include <Ethernet.h>
#include <ArduinoJson.h>
#include <MQTTClient.h>
#define BUFSIZE 128
#define JSON_BUFSIZE 128
//#define PIN_NET_STATUS 8
#define PIN_PLUG_CONTROL 9
#if 0
const char *g_appkey = "56a0a88c4407a3cd028ac2fe";
const char *g_topic = "smart_office";
const char *g_devid = "plug_0";
#else
const char *g_... | change net checking interval | change net checking interval
| Arduino | mit | yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice |
5759353506e42f97581d54c2cbfc584a80f4f1a9 | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.7-persistent"
// Disable this if you don't want the relay to turn on with any single tap event
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\x... | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.8"
// Disable this if you don't want the relay to turn on with any single tap event
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | Bump version. Fixes #5 | Bump version. Fixes #5
| Arduino | mit | kylegordon/homie-sonoff-touch |
8c2dabda759a4d85817dd43393f54ca86df68e4d | Testbench/Encoder_TestBench/Software/Encoder/Encoder.ino | Testbench/Encoder_TestBench/Software/Encoder/Encoder.ino | // initialize encoder
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,7,6,5,4);
#define encoderPinA 2
#define encoderPinB 3
float pi = 3.1415926;
int count = 0;
volatile int encoderCount = 0;
volatile float angle = 0;
volatile float velocity = 0;
volatile float angle_previous = 0;
volatile float angle_post = 0;
//i... | // initialize encoder
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,7,6,5,4);
#define encoderPinA 2
#define encoderPinB 3
float pi = 3.1415926;
int count = 0;
volatile int encoderCount = 0;
volatile float angle = 0;
volatile float velocity = 0;
volatile float angle_previous = 0;
volatile float angle_post = 0;
//i... | Update Encoder.ino | Update Encoder.ino | Arduino | apache-2.0 | baranusluel/igvc-electrical,baranusluel/igvc-electrical,baranusluel/igvc-electrical |
a54548c0d34b516f4dd6c78c5d115c01d2dcfc07 | Arduino/tft-distro-server/tft-distro-server.ino | Arduino/tft-distro-server/tft-distro-server.ino | // Mode Definitions
#define MODE_ATTRACT 0
#define MODE_1 1
#define MODE_2 2
#define MODE_3 3
#define MODE_4 4
#define MODE_5 5
#define MODE_6 6
#define MODE_7 7
#define MODE_8 8
#define MODE_9 9
#define MODE_10 10
#define MODE_11 11
#define MODE_12 12
#define MODE_13 13
#define MODE_14 14
#define MODE_15 15
// Mode p... | // Mode Definitions
#define MODE_ATTRACT 0
#define MODE_1 1
#define MODE_2 2
#define MODE_3 3
#define MODE_4 4
#define MODE_5 5
#define MODE_6 6
#define MODE_7 7
#define MODE_8 8
#define MODE_9 9
#define MODE_10 10
#define MODE_11 11
#define MODE_12 12
#define MODE_13 13
#define MODE_14 14
#define MODE_15 15
// Mode p... | Update tft-distro-server.ino | Update tft-distro-server.ino
adding some binary stuff to simplify code
| Arduino | mit | homechicken/pinball |
755d463e87f15a3f60573c1d19997c3ef7271887 | src/esp-soil-moisture-sensor/esp-soil-moisture-sensor.ino | src/esp-soil-moisture-sensor/esp-soil-moisture-sensor.ino | #include <ESP8266WiFi.h>
#include <dht11.h>
String apiKey ="<YOUR-API-KEY>";
const char* MY_SSID = "<YOUR-SSID>";
const char* MY_PWD = "<YOUR-PASSWORD>";
dht11 DHT;
const int pin_clk = 5;
const int pin_soil = A0;
const int pin_led = 12;
const int pin_read = 2;
const char* server = "api.thingspeak.com";
int sent =... | #include <ESP8266WiFi.h>
#include "DHT.h"
String apiKey ="<YOUR-API-KEY>";
const char* MY_SSID = "<YOUR-SSID>";
const char* MY_PWD = "<YOUR-PASSWORD>";
const int pin_clk = 5;
const int pin_soil = A0;
const int pin_led = 12;
const int pin_read = 2;
const char* server = "api.thingspeak.com";
DHT dht(pin_read, DHT11)... | change DHT11 library dependence | change DHT11 library dependence
| Arduino | apache-2.0 | AprilBrother/esp-soil-moisture-sensor |
7b9765978a6dfea5c77666a4242e6115dbffa858 | html/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino | html/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino | /*
AnalogReadSerial
Reads an analog input on pin 1, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A1,
and the outside pins to A0 (set to gnd) and A2 (set to VMCU).
This example code is in the public domain.
*/
// the setup routine runs once when you press reset:... | // This example is Chibitronics Love to Code tested!
/*
AnalogReadSerial
Reads an analog input on pin 1, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A1,
and the outside pins to A0 (set to gnd) and A2 (set to VMCU).
This example code is in the public domain.
*/
... | add note at top about the example being tested | add note at top about the example being tested
| Arduino | mit | chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer |
1b541cc32cedadd0d98392ae815c0d02c3360e33 | MPU6050_DMP6/MPU6050_DMP6.ino | MPU6050_DMP6/MPU6050_DMP6.ino |
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
//#include "MPU6050.h" // not necessary if using MotionApps include file
// Arduino Wire library is required if I2Cdev I2CDEV_ARDUINO_WIRE implementation
// is used in I2Cdev.h
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
/... |
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
//#include "MPU6050.h" // not necessary if using MotionApps include file
// Arduino Wire library is required if I2Cdev I2CDEV_ARDUINO_WIRE implementation
// is used in I2Cdev.h
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
/... | add comments | add comments
| Arduino | mit | elvisun/VR-Motion-Sickness-Reducer |
09c8deced81d043f146494a9fea6584d4bd5a8b7 | rx/src/rx.ino | rx/src/rx.ino | /*-------------------------------------------------------------
Bee Monitor V2.0
ArduinoRx - Receive data via RF, decod and print to serial - Arduino connected to web-connected Raspberry Pi via USB serial
Glyn Hudson 10/4/12
OpenEnergyMonitor.org
BeeMonitor.org
GNU GPL V3
//RF module: http://openenergymonitor.org/em... | /*-------------------------------------------------------------
Bee Monitor V2.0
ArduinoRx - Receive data via RF, decod and print to serial - Arduino connected to web-connected Raspberry Pi via USB serial
Glyn Hudson 10/4/12
OpenEnergyMonitor.org
BeeMonitor.org
GNU GPL V3
//RF module: http://openenergymonitor.org/em... | print something at startup | print something at startup
| Arduino | mit | glynhudson/BeeMonV2,glynhudson/BeeMonV2 |
5e294577e7385c9d166f68155ee22d631d11b969 | Clock.ino | Clock.ino | #include "Arduino.h"
#include <LiquidCrystal.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include <Adafruit_NeoPixel.h>
#include <EasingLibrary.h>
#include "Flash.h"
#include "FlashIn.h"
#include "StandardCplusplus.h"
#include <vector>
#include <MemoryFree.h>
#include "FadeIn.h"
#... | #include "Arduino.h"
#include <LiquidCrystal.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include <Adafruit_NeoPixel.h>
#include <EasingLibrary.h>
#include "Flash.h"
#include "FlashIn.h"
#include "StandardCplusplus.h"
#include <vector>
#include <MemoryFree.h>
#include "FadeIn.h"
#... | Remove leftover debug time offset | Remove leftover debug time offset
| Arduino | mit | Excure/LED-Clock |
49bb32431327f55af4e1aaa5791c77684cf7425b | examples/Ambient2_Demo/Ambient2_Demo.ino | examples/Ambient2_Demo/Ambient2_Demo.ino | /* MikroeElektronika Ambient2 Click Demo Example
*
* Product page: https://shop.mikroe.com/ambient-2-click
*
* This click board uses OPT3001 sensor from Texas Instruments
* http://www.ti.com/product/OPT3001
*
* Created by Teodor Costachioiu, August 2017
* https://electronza.com
*
* Send bug reports ... | /* MikroeElektronika Ambient2 Click Demo Example
*
* Product page: https://shop.mikroe.com/ambient-2-click
*
* This click board uses OPT3001 sensor from Texas Instruments
* http://www.ti.com/product/OPT3001
*
* Created by Teodor Costachioiu, August 2017
* https://electronza.com
*
* Send bug reports ... | Update Ambient2_Demo.ino | Update Ambient2_Demo.ino | Arduino | mit | Electronza/Ambient2-Click |
1b3721ce31b233fdf8cb963fd0184dbdf38d49ef | esp8266-arm-swd.ino | esp8266-arm-swd.ino | ////////////////////////////////////////////////////////////////
//
// Proof of Concept ESP8266 Wifi + HTTP web interface
// for remote control of an ARM microcontroller
// via its Serial Wire Debug port.
//
// Designed for the FRDM-KE04Z dev kit as an example target,
// with its MKE04Z8VFK4 Cortex M0... | ////////////////////////////////////////////////////////////////
//
// Proof of Concept ESP8266 Wifi + HTTP web interface
// for remote control of an ARM microcontroller
// via its Serial Wire Debug port.
//
// Designed for the FRDM-KE04Z dev kit as an example target,
// with its MKE04Z8VFK4 Cortex M0... | Fix /ram page | Fix /ram page
| Arduino | mit | scanlime/esp8266-arm-swd,scanlime/esp8266-arm-swd,scanlime/esp8266-arm-swd |
3c753afb74c879d39bde7756aaae6fbf0164e876 | ESP8266iTachEmulatorGUI-WM/ESP8266iTachEmulatorGUI-WM.ino | ESP8266iTachEmulatorGUI-WM/ESP8266iTachEmulatorGUI-WM.ino | /*
originally Created by probonopd
Version 5-WM2 wooby6
Implements a subset of the iTach API Specification Version 1.5
http://www.globalcache.com/files/docs/API-iTach.pdf
Tested with
- Anymote Itach
**************************
CHANGELOG
fork of ESP8266iTachEmulatorGUI
WifiManager version
added OTA
Remov... | /*
originally Created by probonopd
Version 5-WM2 wooby6
Implements a subset of the iTach API Specification Version 1.5
http://www.globalcache.com/files/docs/API-iTach.pdf
Tested with
- Anymote Itach
**************************
CHANGELOG
fork of ESP8266iTachEmulatorGUI
WifiManager version
added OTA
Remov... | fix comments | fix comments
| Arduino | mit | wooby6/ESP8266iTachEmulator |
88190b7cd787f7d795a3d3252a78a772fdca5350 | tree/tree.ino | tree/tree.ino | #include <Adafruit_NeoPixel.h>
#include <Time.h>
#include <Wire.h>
#include <DS3232RTC.h>
#include "Button.h"
#define PIXEL_PIN 5 // Digital IO pin connected to the NeoPixels.
#define PIXEL_COUNT 22
#define BUTTON_PIN 4
class Nightlight
{
private:
byte brightness;
int8_t brightnessDelta;
public:
Nightl... | #include <Adafruit_NeoPixel.h>
#include <Time.h>
#include <Wire.h>
#include <DS3232RTC.h>
#include "Button.h"
#define PIXEL_PIN 5 // Digital IO pin connected to the NeoPixels.
#define PIXEL_COUNT 22
#define BUTTON_PIN 4
class Nightlight
{
private:
byte brightness;
int8_t brightnessDelta;
public:
Nightl... | Add ability to set RTC via serial | Add ability to set RTC via serial
| Arduino | mit | jondye/tree-lights,jondye/tree-lights |
76c6fbf957f3214111407e521d409a84f98d3e91 | WirelessTrigger.ino | WirelessTrigger.ino | // Standard libraries
#include <Arduino.h>
#include <printf.h>
// Servo controller
#include <Servo.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
// Smart switch utils
#include "~Switch.h"
#define ROLE_SENDER 0
#define ROLE_RECEIVER 1
// SET THE TARGET ROLE HER... | // Standard libraries
#include <Arduino.h>
#include <printf.h>
// Servo controller
#include <Servo.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
// Smart switch utils
#include "~Switch.h"
#define ROLE_SENDER 0
#define ROLE_RECEIVER 1
// SET THE TARGET ROLE HER... | Use multicolor RGB LED | Use multicolor RGB LED
| Arduino | mit | WasabiFan/aerial-release-system,WasabiFan/aerial-release-system |
b0c83ff508e6c36557963e6b08ee94a493fdd5a3 | examples/Blink/CosaBlinkTemp/CosaBlinkTemp.ino | examples/Blink/CosaBlinkTemp/CosaBlinkTemp.ino | /**
* @file CosaBlinkTemp.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 CosaBlinkTemp.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... | Update blink timing; different intervals for RBG. | Update blink timing; different intervals for RBG.
| Arduino | lgpl-2.1 | dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,rrobinet/Cosa,jeditekunum/Cosa,rrobinet/Cosa,rrobinet/Cosa,kc9jud/Cosa,rrobinet/Cosa,kc9jud/Cosa |
5b28b6ee9cc55ee2c8ccd2b9bdbbf13b3bd4a408 | examples/Drivers/CosaTSOP4838/CosaTSOP4838.ino | examples/Drivers/CosaTSOP4838/CosaTSOP4838.ino | /**
* @file CosaTSOP4838.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the... | /**
* @file CosaTSOP4838.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the... | Remove compiler warnings on program memory. | Remove compiler warnings on program memory.
| Arduino | lgpl-2.1 | dansut/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,SinishaDjukic/Meshwork,jeditekunum/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,mikaelpatel/Cosa,SinishaDjukic/Meshwork,kc9jud/Cosa,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,... |
4be06cfe95567efcd5e52b5c537560eba142a925 | examples/ProductionSketch/ProductionSketch.ino | examples/ProductionSketch/ProductionSketch.ino | // This is the example sketch that gets loaded on every BlinkyTape during production!
#include <EEPROM.h>
#include <FastLED.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#include "Flashlight.h"
struct CRGB leds[LED_COUNT];
#define BRIGHT_STEP_COUN... | // This is the example sketch that gets loaded on every BlinkyTape during production!
#include <EEPROM.h>
#include <FastLED.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#include "Flashlight.h"
// Allow longer patterns to be played back from serial... | Update production sketch to control up to 256 connected LEDs. Only the first 64 will display the pattern, the remaining can be controlled by serial. | Update production sketch to control up to 256 connected LEDs. Only the first 64 will display the pattern, the remaining can be controlled by serial.
| Arduino | mit | Blinkinlabs/BlinkyTape_Arduino |
9164590017057b3675b5df51b3d1ef8e68ab98ea | src/teensy_sketch/teensy_sketch.ino | src/teensy_sketch/teensy_sketch.ino | #include <Arduino.h>
/*
Metis-2 launch onboard sketch
This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card
for further analysis on landing. It also communicates basic data over the 433MHz radio band,
as well as 2.4GHz WiFi
This sketch is written for use on a Teensy 3.1... | #include <Arduino.h>
/*
Metis-2 launch onboard sketch
This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card
for further analysis on landing. It also communicates basic data over the 433MHz radio band,
as well as 2.4GHz WiFi
This sketch is written for use on a Teensy 3.1... | Add TinyGps++ library to sketch and add debug statement | Add TinyGps++ library to sketch and add debug statement
| Arduino | mit | team-rocket-vuw/metis-2-onboard |
66ce884c77f6e8502b3e757dd977a998d4cce57c | receiver_analog/receiver_analog.ino | receiver_analog/receiver_analog.ino | /**
Receive the sensor's transmission, then display it on the analogue meter.
*/
#include <Wire.h>
#include <util/delay.h>
#include <avr/wdt.h>
#include <avr/sleep.h> // Sleep Modes
#include <avr/power.h> // Power management
#include <VirtualWire.h>
// inslude the SPI library:
//#include <SPI.h>
#define DEBU... | /**
Receive the sensor's transmission, then display it on the analogue meter.
*/
#include <Wire.h>
#include <util/delay.h>
#include <avr/wdt.h>
#include <avr/sleep.h> // Sleep Modes
#include <avr/power.h> // Power management
#include <VirtualWire.h>
// inslude the SPI library:
//#include <SPI.h>
#define DEBU... | Use DAC | Use DAC
| Arduino | mit | theapi/solar,theapi/solar,theapi/solar,theapi/solar,theapi/solar |
27f546a2c1928d8439fa512a997807c584120ee1 | proj/ledvo_lounge_button_test/ledvo_lounge_button_test.ino | proj/ledvo_lounge_button_test/ledvo_lounge_button_test.ino | // LED library
#include <FastLED.h>
// C++ Libraries (yay!)
//#include <StandardCplusplus.h>
//#include <vector>
// Arduino Libraries
#ifdef __AVR__
#include <avr/interrupt.h>
#endif
// Analog Pins
#define RATE_POT 0 // Potentiometer for animation rate
#define HUE_POT 1 // Potentiometer for global hue
#define VAL_PO... | // LED library
#include <FastLED.h>
// C++ Libraries (yay!)
//#include <StandardCplusplus.h>
//#include <vector>
// Arduino Libraries
#ifdef __AVR__
#include <avr/interrupt.h>
#endif
// Analog Pins
#define RATE_POT 0 // Potentiometer for animation rate
#define HUE_POT 1 // Potentiometer for global hue
#define VAL_PO... | update button test | update button test
| Arduino | mit | Eli-Woods/arduino,Eli-Woods/arduino,Eli-Woods/arduino,Eli-Woods/arduino |
422e096836d8b38f68c28928c1e75180017816bd | 10Docking/Docking.ino | 10Docking/Docking.ino | #include <Servo.h>
Servo magnetServo;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT) //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
if (digitalRead(3) == HIGH){
Serial.write("ON");
Serial.pr... | #include <Servo.h>
Servo magnetServo;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT) //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
int val = None;
if (val == None || val != digitalRead(3)){
val ... | Update Docking.ino | Update Docking.ino | Arduino | mit | WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS |
f8d10a8108ad75e2e3efdbd01cb0e77ae0731eb2 | Otto_avoid_TRIMS/Otto_avoid_TRIMS.ino | Otto_avoid_TRIMS/Otto_avoid_TRIMS.ino | //-----------------------------------------------------------------
//-- Otto will avoid obstacles with this code!
//-----------------------------------------------------------------
#include <Servo.h>
#include <Oscillator.h>
#include <US.h>
#include <Otto.h>
/*
---------------
... | //-----------------------------------------------------------------
//-- CC BY SA (http://ottodiy.com)
//-- 20 January 2017
//-- TRIMS servo calibration values added
//-- double check your US (Ultra sound) module some have TRIG and ECHO swapped!
//-----------------------------------------------------------------
... | Update Otto_avoid_TRIMS.ino | Update Otto_avoid_TRIMS.ino | Arduino | mit | OttoDIY/DIY,OttoDIY/DIY |
45a647cfd223ed0cd949d1852b5714503e6492cf | arduino/sketch_ardrumoid.ino | arduino/sketch_ardrumoid.ino | int BTNLEDPIN = 8;
void setup() {
Serial.begin(115200);
pinMode(BTNLEDPIN, OUTPUT);
}
int val0_old , val1_old, val2_old, val3_old, val4_old;
int val0; //Symbal
int val1; //Hihat
int val2; //Snare
int val3; //Tom
int val4; //Kick
void loop() {
val0 = analogRead(0); //Connect the sensor to an... | const int BTNLEDPIN = 8;
int val0_old , val1_old, val2_old, val3_old, val4_old;
int val0; //Symbal
int val1; //Hihat
int val2; //Snare
int val3; //Tom
int val4; //Kick
void setup() {
Serial.begin(115200);
pinMode(BTNLEDPIN, OUTPUT);
}
void loop() {
val0 = analogRead(0); //Connect the senso... | Update sketch_ardrumoid.ino | Update sketch_ardrumoid.ino | Arduino | lgpl-2.1 | seopgyun/arDRUMoid |
f5891acf425b0394d4275a5eab6a80d9129becd9 | arduino/involt-basic/involt-basic.ino | arduino/involt-basic/involt-basic.ino | /*
INVOLT BASIC ARDUINO SKETCH
by Ernest Warzocha 2015
------------------------------------------------------
This file can be used for serial communication
between Arduino Uno and Involt Chrome App. It can be
used with HC-05 Bluetooth device connected via
hardware serial.
*/
/*
involtDigital array c... | /*
INVOLT BASIC ARDUINO SKETCH
by Ernest Warzocha 2015
------------------------------------------------------
This file is for serial communication between Arduino
Uno and Involt Chrome App. It can be used with HC-05
Bluetooth device connected via hardware serial.
*/
/*
involtDigital array contains val... | Backup for further developement | Backup for further developement
| Arduino | mit | Involt/Involt,Involt/Involt |
7c633f7a1b40ef1e49b7714cfebaa84fd41bc358 | Receiver_test/Receiver_test.ino | Receiver_test/Receiver_test.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define PIN 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 ... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define MSG_ADDR msg[0]
#define MSG_UNUSED01 msg[1]
#define MSG_CMD msg[2]
#define MSG_MOD1 msg[3]
#define MSG_MOD2 msg[4]
#define MSG_MOD3 msg[5]
#define MSG_... | Define constants so that use of msg bytes are self documenting | Define constants so that use of msg bytes are self documenting
| Arduino | mit | RichardBronosky/lantern-sequencer,RichardBronosky/lantern-sequencer |
a145adaa3e8c950c67549e90009133f6fa75d142 | sketches/control/single_bench/single_bench.ino | sketches/control/single_bench/single_bench.ino | /**
* Control the BlinkMs for a single bench with one painting. Fire off
* the appropriate MaxMs at the correct intervals during the daily
* operational time.
*
* The MaxMs that actually control the light pattern for one group
* of LED clusters (Blasters) are preloaded with their light scripts.
* The MaxMs are c... | /**
* Control the BlinkMs for a single bench with one painting. Fire off
* the appropriate MaxMs at the correct intervals during the daily
* operational time.
*
* The MaxMs that actually control the light pattern for one group
* of LED clusters (Blasters) are preloaded with their light scripts.
* The MaxMs are c... | Use new Wakeperiods format; simplify awake/asleep logic | Use new Wakeperiods format; simplify awake/asleep logic
1. LED2 flashes once per minute when the lights are sleeping, twice per
minute when they are awake.
2. Convert Wakeperiods array to new format; add documentation on array contents;
add debugging display of array at startup
3. Rename "OPER_TASK" to "CHK_TIME" t... | Arduino | mit | wmadill/grant-lighting,wmadill/grant-lighting |
dd10d5de476b099899cf33f2aab54dc458bd5850 | lcd_temperature_display.ino | lcd_temperature_display.ino | // vim: ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <rtuck... | // vim: ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <rtuck... | Bump up debugging serial rate to 115200 | Bump up debugging serial rate to 115200
| Arduino | mit | rtucker/lcd_temperature_display |
505004114c978294d6989c6c59195a9326708ae0 | libraries/IRSendRev/examples/revTest/revTest.ino | libraries/IRSendRev/examples/revTest/revTest.ino | #include <IRSendRev.h>
//#include <IRSendRevInt.h>
void setup()
{
Serial.begin(38400);
IR.Init(A0);
Serial.println("init over");
}
unsigned char dta[20];
void loop()
{
if(IR.IsDta())
{
IR.Recv(dta);
}
}
| #include <IRSendRev.h>
void setup()
{
Serial.begin(38400);
IR.Init(A0);
Serial.println("init over");
}
unsigned char dta[20];
void loop()
{
if(IR.IsDta())
{
IR.Recv(dta);
}
}
| Update revTest.ino | Update revTest.ino | Arduino | mit | Seeed-Studio/sketch_sidekick |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.