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 |
|---|---|---|---|---|---|---|---|---|---|
297e9b3bc1207b04d0f614397c604cc7baa1e5f7 | examples/example-1/example-1.ino | examples/example-1/example-1.ino | /**
* example-1
*
* 这个样例将指引您正确使用Pin类
* 以高效使用针脚(Pin)
*
* 本样例包含了Pin类的基本用法
* 至于高级膜法请参考Pin.h
*/
#include <kjArduino.h>
//在setup()的外面声明一个针脚,而不是在它里面(必须)
//至于为什么非得在外面,这涉及到Arduino源码编译原理,此处不细讲
Pin led = Pin(13, OUTPUT);
//也允许只声明针脚却不声明用途,但最好之后在setup()中初始化
Pin button = Pin(D1);
//声明一个呼吸灯
Pin brea... | /**
* example-1
*
* 这个样例将指引您正确使用Pin类
* 以高效使用针脚(Pin)
*
* 本样例包含了Pin类的基本用法
* 至于高级膜法请参考Pin.h
*/
#include <kjArduino.h>
//在setup()的外面声明一个针脚,而不是在它里面(必须)
//至于为什么非得在外面,这涉及到Arduino源码编译原理,此处不细讲
Pin led = Pin(13, OUTPUT);
//也允许只声明针脚却不声明用途,但最好之后在setup()中初始化
Pin button = Pin(32);
//声明一个呼吸灯
Pin brea... | fix a platform bug | fix a platform bug
| Arduino | mit | kj415j45/kjArduino,kj415j45/kjArduino |
e3269f6edce9fe21212bf7a3fee17af56ae86037 | 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;
OneWire oneWire(23);
#else //ESP8266 boards
uint8_t SCL_PIN = 5;
uint8_t SDA_PIN = 4;
// uint8_t RST_PIN = 16; /... | #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 |
8ad8448397c3c44718211a15bf6d070e578a2e30 | tiny_scope.ino | tiny_scope.ino | /*
* tiny_scope.ino - main application
* Tiny Scope for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#if 0 /* add all necessary libs here or t... | /*
* tiny_scope.ino - main application
* Tiny Scope for Arduino project
*
* Copyright (C)2015 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#if 0 /* add all necessary libs here or t... | Implement long button press to freeze display, short press to change mode. | Implement long button press to freeze display, short press to change
mode. | Arduino | mit | laurb9/tiny_scope |
be89f937ba48509b0fc117a7cbaaa4d195d21b16 | ableton-midi-foot-controller.ino | ableton-midi-foot-controller.ino | #include "Button.h"
#include "base64/Base64.h"
#include <Wire.h>
#include "NewLiquidCrystal/LiquidCrystal_I2C.h"
//#define DEBUG_BUTTONS true
//#define SINGLE_LED_TEST true
//#define LCD_TEST true
//#define SONG_CONFIGURATION_DEBUG true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE... | #include "Button.h"
#include "base64/Base64.h"
#include <Wire.h>
#include "NewLiquidCrystal/LiquidCrystal_I2C.h"
//#define DEBUG_BUTTONS true
//#define SINGLE_LED_TEST true
//#define LCD_TEST true
//#define SONG_CONFIGURATION_DEBUG true
byte counter;
const byte CLOCK = 248;
const byte START = 250;
const byte CONTINUE... | Add song mode | Add song mode
| Arduino | apache-2.0 | LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac |
e2768e3d12bf670625655cae70a037f63a2af659 | examples/BoardsAndShields/TI_Stellaris_LaunchPad/TI_Stellaris_LaunchPad.ino | examples/BoardsAndShields/TI_Stellaris_LaunchPad/TI_Stellaris_LaunchPad.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 TI_Stellaris_LaunchPad.ino | Update TI_Stellaris_LaunchPad.ino | Arduino | mit | ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
c741443a4433fc7701d496a2aefc0ff8ad4dca09 | examples/ReflowWizard/Outputs.ino | examples/ReflowWizard/Outputs.ino | // Written by Peter Easton
// Released under the MIT license
// Build a reflow oven: https://whizoo.com
// There are 6 outputs on Controleo3:
// Outputs 1 through 5
// - Go to the screw terminals
// - Control n-channel MOSFETs, which switch 4.5V (5V less schottky diode)
// - MOSFET's can handle currents up to 240m... | // Written by Peter Easton
// Released under the MIT license
// Build a reflow oven: https://whizoo.com
// There are 6 outputs on Controleo3:
// Outputs 1 through 5
// - Go to the screw terminals
// - Control n-channel MOSFETs, which switch 4.5V (5V less schottky diode)
// - MOSFET's can handle currents up to 240m... | Support ovens with just a single element | Support ovens with just a single element
| Arduino | mit | engineertype/Controleo3,engineertype/Controleo3 |
f725fc1c1fba99ffbd736c5057440e6bbac7456b | SPI/mkrzero-slave-send-static16/mkrzero-slave-send-static16.ino | SPI/mkrzero-slave-send-static16/mkrzero-slave-send-static16.ino | /*
* Code based on code snippets of:
* User: Tom_the_banana
* Found At: https://forum.arduino.cc/index.php?topic=360026.0
*/
#include "wiring_private.h"
#define MY_SPI_MOSI A3
#define MY_SPI_SCK A4
#define MY_SPI_SS A5
#define MY_SPI_MISO A6
#define MY_SERCOM SERCOM0
#define MY_SERC... | /*
* Code based on code snippets of:
* User: Tom_the_banana
* Found At: https://forum.arduino.cc/index.php?topic=360026.0
*/
#include "wiring_private.h"
#define MY_SPI_MOSI A3
#define MY_SPI_SCK A4
#define MY_SPI_SS A5
#define MY_SPI_MISO A6
#define MY_SERCOM SERCOM0
#define MY_SERC... | Add preloading again and switch output format | Add preloading again and switch output format
| Arduino | mit | isaias-b/arduino-examples,isaias-b/arduino-examples,isaias-b/arduino-examples |
a1147200a0be25efbef1c392c5b1df913e58a0a2 | examples/UbidotsGetValue/UbidotsGetValue.ino | examples/UbidotsGetValue/UbidotsGetValue.ino | #include <Ubidots_FONA.h>
#include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define APN "" // The APN of your operator
#define USER "" // if your apn doesnt have username just leave it ""
#define PASS "" // if your apn doesnt have password just leave it ""
#define TOKEN "Your_token_here" // Replace it with ... | #include <Ubidots_FONA.h>
#include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define APN "" // The APN of your operator
#define USER "" // if your apn doesnt have username just leave it ""
#define PASS "" // if your apn doesnt have password just leave it ""
#define TOKEN "Your_token_here" // Replace it with ... | Update UbidotsGetValue.ino | Update UbidotsGetValue.ino | Arduino | mit | ubidots/ubidots-fona |
8f3aea37a7d003131979e37f937af0e522eecec0 | examples/led-staff/led-staff.ino | examples/led-staff/led-staff.ino | #define __ASSERT_USE_STDERR
#include "pixelmap/pixelmap.h"
#include <Assert.h>
#include <FastLED.h>
#include <Logging.h>
#define LOGLEVEL LOG_LEVEL_INFOS
#define STAFF_LEDS 100
#define RING_LEDS 12
#define BUTTON_PIN 5
#define STAFF_PIN 6
#define RING_PIN 7
using namespace pixelmap;
RandomInput input = RandomInpu... | #define __ASSERT_USE_STDERR
#include "pixelmap/pixelmap.h"
#include <Assert.h>
#include <FastLED.h>
#include <Logging.h>
#define LOGLEVEL LOG_LEVEL_INFOS
#define BRIGHTNESS 150
#define STAFF_LEDS 100
#define RING_LEDS 12
#define BUTTON_PIN 5
#define STAFF_PIN 6
#define RING_PIN 7
using namespace pixelmap;
Random... | Reduce brightness of LED staff | Reduce brightness of LED staff
| Arduino | mit | nijotz/pixl |
6c1e99bb70df87cec54ec529ed17e7e5552ec840 | examples/arduino_min/ex18_ardmin_compound/ex18_ardmin_compound.ino | examples/arduino_min/ex18_ardmin_compound/ex18_ardmin_compound.ino | //
// GUIslice Library Examples
// - Calvin Hass
// - https://www.impulseadventure.com/elec/guislice-gui.html
// - https://github.com/ImpulseAdventure/GUIslice
// - Example 18 (Arduino): [minimum RAM version]
// - Multiple page handling
// - Background image
// - Compound elements
// - NOTE: The XSelNum compoun... | //
// GUIslice Library Examples
// - Calvin Hass
// - https://www.impulseadventure.com/elec/guislice-gui.html
// - https://github.com/ImpulseAdventure/GUIslice
// - Example 18 (Arduino): [minimum RAM version]
// - Multiple page handling
// - Background image
// - Compound elements
// - NOTE: The XSelNum compoun... | Check prerequisite config for ex18_ardmin_compound - Compile message if FEATURE_COMPOUND not enabled | Check prerequisite config for ex18_ardmin_compound
- Compile message if FEATURE_COMPOUND not enabled
| Arduino | mit | ImpulseAdventure/GUIslice,ImpulseAdventure/GUIslice |
65c691e15f649a2c74485767add2857f7676ac4e | CocaCola/CocaCola.ino | CocaCola/CocaCola.ino | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | add more random() to flickerPattern | add more random() to flickerPattern
| Arduino | mit | jzucker2/HackAColaSign,jzucker2/HackAColaSign |
6a7f4c96e9431ca395b45dadbfb589611593ed54 | EmotionalClothing.ino | EmotionalClothing.ino | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
String fileNames[4] = {"BUGS2.WAV", "DAFFY1.WAV", "BUGS1.WAV", "DAFFY2.WAV"};
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the information for the partition on the card
Fat... | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 9, 8, 7, 6);
String fileNames[4] = {"BUGS2.WAV", "DAFFY1.WAV", "BUGS1.WAV", "DAFFY2.WAV"};
SdReader card; // This object holds the information for the card
FatVolume vol;... | Implement intial setup for LCD | Implement intial setup for LCD
| Arduino | mit | IgorGee/Emotional-Clothing |
333d674953c09a676c3d9775e36d494ccb4e1bfc | src/arduino101/science-journal-arduino/science-journal-arduino.ino | src/arduino101/science-journal-arduino/science-journal-arduino.ino | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 a... | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 a... | Stop pulling manufacturer portion of MAC address | Stop pulling manufacturer portion of MAC address
| Arduino | apache-2.0 | dakoner/science-journal-arduino,dakoner/science-journal-arduino,google/science-journal-arduino,precision/science-journal-arduino,google/science-journal-arduino,precision/science-journal-arduino |
443cec68b3a81df3c06fffafa8364a0e32a71ddc | MQTT433gateway.ino | MQTT433gateway.ino | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | Add user selectable GPIO for the status LED | MQTT433gateway.ino: Add user selectable GPIO for the status LED
| Arduino | mit | puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway |
206377ac1ba69d85a0286b8960715f83a8f0c8b9 | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | Update Firmware.ino | Update Firmware.ino | Arduino | bsd-3-clause | UCHIC/WaterMonitor |
c218d945a4817430b3d36c689f7845ca12ff247f | libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino | libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino | /** Handle root or redirect to captive portal */
void handleRoot() {
if (captivePortal()) { // If caprive portal redirect instead of displaying the page.
return;
}
server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
server.sendHeader("Pragma", "no-cache");
server.sendHeader("Expires... | /** Handle root or redirect to captive portal */
void handleRoot() {
if (captivePortal()) { // If caprive portal redirect instead of displaying the page.
return;
}
server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
server.sendHeader("Pragma", "no-cache");
server.sendHeader("Expires... | Fix compatibility with Android (#5069) | CaptivePortalAdvanced: Fix compatibility with Android (#5069)
Android refuses to show page with missing Content-Length header.
Prepare page data to String and send it with server.send
Moved respose strings to PROGMEM | Arduino | lgpl-2.1 | sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,esp8266/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,esp8266/Arduino |
2e617c7abb45b8ef15965092571e69f67f0f4d3e | sensor/sensor_ble/sensor_ble.ino | sensor/sensor_ble/sensor_ble.ino | #include "I2Cdev.h"//add neccesary headfiles
#include "MPU6050.h"//add neccesary headfiles
#include <Wire.h>
#include <Streaming.h>
#include <string.h>
//====the offset of gyro===========
#define Gx_offset -1.50
#define Gy_offset 0
#define Gz_offset 0.80
//====the offset of accelerator===========
#define Ax_offset ... | #include "I2Cdev.h"//add neccesary headfiles
#include "MPU6050.h"//add neccesary headfiles
#include <Wire.h>
#include <Streaming.h>
#include <string.h>
#include <math.h>
//====the offset of gyro===========
#define Gx_offset -1.50
#define Gy_offset 0
#define Gz_offset 0.80
//====the offset of accelerator===========
#... | add function for calculate tilt of x and y | add function for calculate tilt of x and y
| Arduino | mit | balazspete/wearable-fall-sensor,balazspete/wearable-fall-sensor,balazspete/wearable-fall-sensor |
3e0d2c345eb3b1c0e99892f7751ec8492ffc993a | espwifisniff.ino | espwifisniff.ino | #include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include "Arduino.h"
#include "ESP8266WiFi.h"
extern "C" {
#include <user_interface.h>
}
// maximum number of unique mac addresses to remember
#define MAX_MAC 64
static int unique_num = 0;
static uint8_t unique_mac[MAX_MAC][6];
// retur... | #include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include "Arduino.h"
#include "ESP8266WiFi.h"
extern "C" {
#include <user_interface.h>
}
// maximum number of unique mac addresses to remember
#define MAX_MAC 64
static int unique_num = 0;
static uint8_t unique_mac[MAX_MAC][6];
// retur... | Check only the FromDs bit (0 means it's coming from a station) | Check only the FromDs bit (0 means it's coming from a station)
| Arduino | mit | bertrik/espwifisniff |
0ff5ffccb82197e0e57ea004aa7c4ad40d0e5578 | sega_controller_leo/sega_controller_leo.ino | sega_controller_leo/sega_controller_leo.ino | //
// sega_controller_leo.ino
//
// Author:
// Jon Thysell <thysell@gmail.com>
//
// Copyright (c) 2014, 2017 Jon Thysell <http://jonthysell.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal... | //
// sega_controller_leo.ino
//
// Author:
// Jon Thysell <thysell@gmail.com>
//
// Copyright (c) 2014, 2017 Jon Thysell <http://jonthysell.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal... | Update _leo to use flags in outputMap | Update _leo to use flags in outputMap
| Arduino | mit | jonthysell/SegaController |
786f7c04dc5e99f56a55c88d60f85bafa0d1d14a | code/Motors.ino | code/Motors.ino | #include<Servo.h>
//Write pins..
#define MOTOR_FRONT_LEFT_PIN 2
#define MOTOR_FRONT_RIGHT_PIN 3
#define MOTOR_BACK_RIGHT_PIN 4
#define MOTOR_BACK_LEFT_PIN 5
Servo frontLeft,frontRight,backLeft,backRight;
extern float motorRollCommand,motorYawCommand,motorPitchCommand;
uint16_t frontLeftMotorCommand=1000,frontRight... | #include<Servo.h>
//Write pins..
#define MOTOR_FRONT_LEFT_PIN 2
#define MOTOR_FRONT_RIGHT_PIN 3
#define MOTOR_BACK_RIGHT_PIN 4
#define MOTOR_BACK_LEFT_PIN 5
Servo frontLeft,frontRight,backLeft,backRight;
extern float motorRollCommand,motorYawCommand,motorPitchCommand;
uint16_t frontLeftMotorCommand=1000,frontRight... | Update Motors.ino | Update Motors.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
b5de7c9b8eeede022cb183e72bb3b47a786ecff3 | src/lcd.ino | src/lcd.ino | /*
Beer thermostat for brewing.
*/
#include <PID_v1.h>
#include <OneWire.h>
#include <LiquidCrystal.h>
#include <DallasTemperature.h>
// sensor pin
#define ONE_WIRE_BUS 6
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
// LCD init
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// PID relay control
#de... | /*
Beer thermostat for brewing.
*/
#include <PID_v1.h>
#include <OneWire.h>
#include <LiquidCrystal.h>
#include <DallasTemperature.h>
// sensor pin
#define ONE_WIRE_BUS 6
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
// LCD init
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int backLight = 13;
// P... | Add LCD backlight | Add LCD backlight
| Arduino | mit | robertodealmeida/beer-thermostat |
23dfb49f4e7862d2aa3c885b56c967f538973134 | examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino | examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino | // Test code for Ultimate GPS Using Hardware Serial (e.g. GPS Flora or FeatherWing)
//
// This code shows how to listen to the GPS module via polling. Best used with
// Feathers or Flora where you have hardware Serial and no interrupt
//
// Tested and works great with the Adafruit GPS FeatherWing
// ------> https://www... | // Test code for Ultimate GPS Using Hardware Serial (e.g. GPS Flora or FeatherWing)
//
// This code shows how to listen to the GPS module via polling. Best used with
// Feathers or Flora where you have hardware Serial and no interrupt
//
// Tested and works great with the Adafruit GPS FeatherWing
// ------> https://www... | Fix spelling error | Fix spelling error | Arduino | bsd-3-clause | adafruit/Adafruit-GPS-Library |
eaa221e8685df28a9e35839cca1069be221d78ab | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | Update Firmware.ino | Update Firmware.ino | Arduino | bsd-3-clause | UCHIC/WaterMonitor |
768a965810d5069802cf673c36c7a2d1d307c113 | examples/AutoConnect/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino | examples/AutoConnect/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino | #include <FS.h> // this needs to be first, or it all crashes and burns...
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#ifdef ESP32
#include <SPIFFS.h>
#endif
//define your default values here, if there are different v... | #include <FS.h> // this needs to be first, or it all crashes and burns...
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#ifdef ESP32
#include <SPIFFS.h>
#endif
//define your default values here, if there are different v... | remove custom ip from example | remove custom ip from example
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
0f2ba754e2499e04c4d48d1ef00b488ae68f5778 | examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino | examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include... | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include... | Update AutoConnectWithFSParameters.ino | Update AutoConnectWithFSParameters.ino
Close file ! | Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
0280a40ae3bc194b374261109182702f4bc67a25 | GarHAge.ino | GarHAge.ino | /*
* GarHAge
* aka the Home-Assistant-friendly ESP8266-based MQTT Garage Door Controller
* Licensed under the MIT License, Copyright (c) 2017 marthoc
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "config.h"
// Mapping NodeMCU Ports to Arduino GPIO Pins
// Allows use of NodeMCU Port nomenclature... | /*
* GarHAge
* aka the Home-Assistant-friendly ESP8266-based MQTT Garage Door Controller
* Licensed under the MIT License, Copyright (c) 2017 marthoc
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "config.h"
// Mapping NodeMCU Ports to Arduino GPIO Pins
// Allows use of NodeMCU Port nomenclature... | Fix typo | Fix typo
| Arduino | mit | marthoc/GarHAge |
08c5e3d0b9ee49968b0339542c4ef7581733a848 | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... | Update OpenCTD_master_m0.ino | Update OpenCTD_master_m0.ino
Split date and time into two columns | Arduino | mit | OceanographyforEveryone/OpenCTD |
75b3a502121bd6cec755e18a4670d52935e9f035 | Pan_Tilt_laser/Pan_Tilt_laser.ino | Pan_Tilt_laser/Pan_Tilt_laser.ino | /**************************************************************************/
/*!
@file Pan_Tilt_laser.ino
@author Stuart Feichtinger
@license MIT (see license.txt)
Main program running an automatic laser-turret cat toy using a pan-tilt
rig (https://www.adafruit.com/products/1967) and laser d... | /**************************************************************************/
/*!
@file Pan_Tilt_laser.ino
@author Stuart Feichtinger
@license MIT (see license.txt)
Main program running an automatic laser-turret cat toy using a pan-tilt
rig (https://www.adafruit.com/products/1967) and laser d... | Clean up | Clean up
| Arduino | mit | stuthedew/Arduino-Laser-Cat-Turret |
415185ee5e8a5b06635b21112cbfc4341532046c | ThereminSketch/ThereminSketch.ino | ThereminSketch/ThereminSketch.ino | /* Theremin Test
*
* Therremin with TTL Oscillator 4MHz
* Timer1 for freauency measurement
* Timer2 for gate time
* connect Oscillator on digital pin 5
* connect Speaker with 1K Resistor in series on pin 8
* KHM 2008 / Martin Nawrath
* Kunsthochschule fuer Medien Koeln
* Academy of Media Arts Cologne
*/
#i... | /* Theremin Test
*
* Therremin with TTL Oscillator 4MHz
* Timer1 for freauency measurement
* Timer2 for gate time
* connect Oscillator on digital pin 5
* connect Speaker with 1K Resistor in series on pin 8
* KHM 2008 / Martin Nawrath
* Kunsthochschule fuer Medien Koeln
* Academy of Media Arts Cologne
*/
#i... | Improve theremin calibration - disable after a short period | Improve theremin calibration - disable after a short period
| Arduino | mit | hughsk/synthesis |
821093f0474e2169107b64764be00aedce4aff58 | examples/03_lcd/LCDML_031_i2c_display_20x4/LCDML_031_i2c_display_20x4.ino | examples/03_lcd/LCDML_031_i2c_display_20x4/LCDML_031_i2c_display_20x4.ino | // ============================================================
// Example: LCDML_serialmonitor
// ============================================================
// Descripton:
// This example includes the complete functionality over some
// tabs. All Tab... | // ============================================================
// Example: LCDML_serialmonitor
// ============================================================
// Descripton:
// This example includes the complete functionality over some
// tabs. All Tab... | update i2c example | update i2c example
| Arduino | mit | Jomelo/LCDMenuLib2,Jomelo/LCDMenuLib2 |
21529a2825108769a7a6020b2869a6cefa8e0a7d | WeatherStation/WeatherStation.ino | WeatherStation/WeatherStation.ino | #include <Wire.h>
#include "Adafruit_Sensor.h"
#include "Adafruit_TSL2561_U.h"
#include "Adafruit_BMP085_U.h"
#include "DHT.h"
#include "Narcoleptic.h"
#define LEDPIN 13
//DHT Sensor Settings
#define DHTPIN 4 // what pin we're connected to
DHT dht;
#define XBEESLEEPPIN 2
Adafruit_BMP085_Unified bmp = Adafru... | #include <Wire.h>
#include "Adafruit_Sensor.h"
#include "Adafruit_TSL2561_U.h"
#include "Adafruit_BMP085_U.h"
#include "DHT.h"
#include "Narcoleptic.h"
#define LEDPIN 13
//DHT Sensor Settings
#define DHTPIN 4 // what pin we're connected to
DHT dht;
#define XBEESLEEPPIN 2
Adafruit_BMP085_Unified bmp = Adafru... | Add support for outputting temp samples from the onboard BMP chip | Add support for outputting temp samples from the onboard BMP chip
| Arduino | unlicense | valorekhov/ArduinoWeatherStation,valorekhov/ArduinoWeatherStation |
5f1b0f2a43c1cacd41f12ae356852b5b985ab91e | AndroidThings/arduino/arduino.ino | AndroidThings/arduino/arduino.ino | #include <Adafruit_NeoPixel.h>
#define PIXELS_DATA_PIN 2
#define sp Serial.print
#define spln Serial.println
const int LEDS_COUNT = 144;
const int LEDS_SIDE = 12;
const char LED_SEPARATOR = ',';
const char START = '/';
const char END = '!';
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LEDS_COUNT, PIXELS_DATA_PI... | #include <Adafruit_NeoPixel.h>
#define PIXELS_DATA_PIN 2
#define sp Serial.print
#define spln Serial.println
const int LEDS_COUNT = 144;
const int LEDS_SIDE = 12;
const char LED_SEPARATOR = ',';
const char START = '/';
const char END = '!';
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LEDS_COUNT, PIXELS_DATA_PI... | Fix bug with ignored last number | Fix bug with ignored last number
| Arduino | apache-2.0 | danybony/word-clock,danybony/word-clock,danybony/word-clock,danybony/word-clock |
62a8fd978fe3f61406133d5423cc3d5829c27443 | buttons.ino | buttons.ino | #include <EEPROM.h>
#include <SPI.h>
#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <EthernetUdp.h>
#include <util.h>
#include <TimerOne.h>
//
const int pinc = 4;
const int pins[pinc] = {5,6,7,8}; //physical to logical pin
const int eeprom[pinc... | #include <EEPROM.h>
#include <SPI.h>
#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <EthernetUdp.h>
#include <util.h>
#include <TimerOne.h>
//
const int pinc = 4;
const int pins[pinc] = {5,6,7,8}; //physical to logical pin
const int eeprom[pinc... | test commit | test commit
| Arduino | bsd-2-clause | yuriy-prog/arduttons |
2b3a64e865900355d6e0b6561ccd2130dec2d953 | arduino_client/arduino_client.ino | arduino_client/arduino_client.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
#include <time.h>
#include <WiFiClientSecure.h>
#include "config.h"
#include "root_cert.h"
#define SERIAL_RX_PIN D5
#define LED_PIN D4
#define P1_BUFFER_SIZE_BYTES 64
#define MAX_TELEGRAM_SIZE 4096
#ifndef SERVER_PORT
#define SERVER_PORT 443
... | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
#include <time.h>
#include <WiFiClientSecure.h>
#include "config.h"
#include "root_cert.h"
#define SERIAL_RX_PIN D5
#define LED_PIN D4
#define P1_BUFFER_SIZE_BYTES 64
#define MAX_TELEGRAM_SIZE 4096
#define READ_TIMEOUT_MILLIS 1000
#ifndef SE... | Fix some bugs, real P1 now works | Fix some bugs, real P1 now works
| Arduino | bsd-3-clause | ttencate/prikmeter,ttencate/prikmeter,ttencate/prikmeter,ttencate/prikmeter,ttencate/prikmeter,ttencate/prikmeter |
5ff47cafadb6b70df086f4c679115f4bc13b61a8 | BatteryCharger/BatteryCharger.ino | BatteryCharger/BatteryCharger.ino | #include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <Wire.h>
#include "Adafruit_INA219.h"
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x44);
int counter=10;
#define RELAY_UNDEF 0
#define RELAY_A0_ON 1
#define RELAY_A1_ON 2
volatile in... | #include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <Wire.h>
#include "Adafruit_INA219.h"
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x44);
int counter=10;
#define RELAY_UNDEF 0
#define RELAY_A0_ON 1
#define RELAY_A1_ON 2
volatile in... | fix weird bug where xm locks up | Charger: fix weird bug where xm locks up
Signed-off-by: Robert Nelson <d6c41255011d14bfa93d8562b946ca186cfa0c7b@gmail.com>
| Arduino | mit | eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/ws_bm_rtc |
f85656c7a793f0e3e62d01f913fc40dc76ada9c0 | puremodular/pureQuantiser/GMSN_Quantiser_v2.2/GMSN_Quantiser_v2.2.ino | puremodular/pureQuantiser/GMSN_Quantiser_v2.2/GMSN_Quantiser_v2.2.ino | /*
Test Code for the Pure Quantiser LEDs.
LEDs should light in the following in order from top to bottom, for 1/2sec each
*/
#include "SPI.h"
#include <EEPROM.h>
//Setup LED Pin Varibles
const byte LR_0 = A3;
const byte LR_1 = A4;
const byte LR_2 = A5;
const byte LR_3 = 7;
const byte LC_0 = A0;
const byte LC_1 =... | /*
Test Code for the Pure Quantiser LEDs.
LEDs should light in the following in order from top to bottom, for 1/2sec each
*/
#include "SPI.h"
#include <EEPROM.h>
//Setup LED Pin Varibles
const byte LR_0 = A3;
const byte LR_1 = A4;
const byte LR_2 = A5;
const byte LR_3 = 7;
const byte LC_0 = A0;
const byte LC_1 =... | Update GMSN_Quantiser_v2.2.ino | Update GMSN_Quantiser_v2.2.ino | Arduino | mit | robgmsn/gmsn |
a687a8085867ce6140b329a1a9ee89127ac39262 | firebasefoosball.ino | firebasefoosball.ino | // Copyright 2016 Google Inc. All Rights Reserved.
//
// 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... | // Copyright 2016 Google Inc. All Rights Reserved.
//
// 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... | Add the board IDs | Add the board IDs
| Arduino | apache-2.0 | googlearchive/firebase-foosball,googlearchive/firebase-foosball,googlearchive/firebase-foosball |
2cd3b281da99b6d4a04a07b5207f0e816b4808b4 | OpenStage/d_setupFunction.ino | OpenStage/d_setupFunction.ino |
void setup() {
bool verbose=0;
pinMode(13,OUTPUT); //PIN 13 is optionally used for testing and debugging with an osciliscope
pinMode(beepPin,OUTPUT); //Produce sound on this pin
#ifdef AXIS_1
mySteppers[0] = &stepper1;
axisPresent[0]=1;
#endif
#ifdef AXIS_2
mySteppers[1] = &stepper2;
axisPr... |
void setup() {
bool verbose=0;
// Connect to the PC's serial port via the Arduino programming USB connection.
// This used mainly for printing de-bugging information to the PC's serial terminal
// during testing. [In future we will add the option for controlling the stage through
// the USB port]
Serial... | Add verbose messages to setup() | Add verbose messages to setup()
| Arduino | agpl-3.0 | raacampbell13/openstage,raacampbell13/openstage |
237a8e854aaeaab44bf9ba75e8ac5fa8c82f8f9f | little-switches/arduino/galoppo/galoppo.ino | little-switches/arduino/galoppo/galoppo.ino | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
#define zampaAS 8
#define zampaAD 6
#define zampaPS 7
#define zampaPD 5
#define piede A0
#define tamburo 2
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
int tempo = 0;
float... | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
#define zampaAS 8
#define zampaAD 6
#define zampaPS 7
#define zampaPD 5
#define piede A0
#define tamburo 2
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
int tempo = 0;
float... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
e109628e113f8d75b587752d92c8d20b7d6b2762 | firmware/firmware.ino | firmware/firmware.ino | // based on https://github.com/fogleman/xy/tree/master/firmware
#include <EEPROM.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <Wire.h>
// data stored in eeprom
static union{
struct{
char name[8];
unsigned char motoADir;
unsigned char motoBDir;
unsigned char motorSwitch;
... | // based on https://github.com/fogleman/xy/tree/master/firmware
#include <EEPROM.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <Wire.h>
// data stored in eeprom
static union{
struct{
char name[8];
unsigned char motoADir;
unsigned char motoBDir;
unsigned char motorSwitch;
... | add handshake | add handshake
| Arduino | mit | arnaudjuracek/xy |
ecd991ed3a179360251fa9700e4e1e388f16b3b9 | firmware/firmware.ino | firmware/firmware.ino | /*
* sleep_deprivator_fw.ino
*
* Copyright 2013 Giorgio Gilestro <giorgio@gilest.ro>
*
* 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 2 of the License, or
* (at your op... | /*
* sleep_deprivator_fw.ino
*
* Copyright 2013 Giorgio Gilestro <giorgio@gilest.ro>
*
* 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 2 of the License, or
* (at your op... | Update firmware.ino | Update firmware.ino
Added cleaning servos function to avoid problems with servos on startup.
Added last rotation of 90 degrees to keep the servos on the zero position when are detached. | Arduino | mit | gilestrolab/fly-sleepdeprivator |
b106633ef6a2ef1241b2ca623e9f36185b5be67d | arduino/arduino_nano328_node/arduino_nano328_node.ino | arduino/arduino_nano328_node/arduino_nano328_node.ino | /* ---------------------------------------------------------------------------
# Licensing Information: You are free to use or extend these projects for
# education or reserach purposes provided that (1) you retain this notice
# and (2) you provide clear attribution to UC Berkeley, including a link
# to http://barc-pro... | /* ---------------------------------------------------------------------------
# Licensing Information: You are free to use or extend these projects for
# education or reserach purposes provided that (1) you retain this notice
# and (2) you provide clear attribution to UC Berkeley, including a link
# to http://barc-pro... | Update arduino sketch to include all four encoders with normal pin assignments | Update arduino sketch to include all four encoders with normal pin assignments
| Arduino | mit | BARCproject/barc,MPC-Berkeley/barc,BARCproject/barc,BARCproject/barc,MPC-Berkeley/barc,MPC-Berkeley/barc,MPC-Berkeley/barc,BARCproject/barc,BARCproject/barc,MPC-Berkeley/barc,BARCproject/barc,BARCproject/barc,MPC-Berkeley/barc,MPC-Berkeley/barc |
20d1a111b22c765184b0600a5ecf09b044a3d46b | examples/attiny84/frankenmeter.ino | examples/attiny84/frankenmeter.ino | /*
* Set IDE to "ATtiny84@1MHz, BOD disabled"
* (Can program with Arduino as ISP using one of these:
* http://programmablehardware.blogspot.ie/2011/05/in-system-programming.html )
*/
#include <math.h>
#include <Interrupted.h>
// thermistor parameters
const double r0 = 10000;
const double beta = 3977.0;
// bias re... | /*
* Set IDE to "ATtiny84@1MHz, BOD disabled"
* fuses: H:FF, E:DF, L:62
* (Can program with Arduino as ISP using one of these:
* http://programmablehardware.blogspot.ie/2011/05/in-system-programming.html )
*/
#include <math.h>
#include <Interrupted.h>
// thermistor parameters
const double r0 = 10000;
const double... | add fuse settings for frankenmeter | add fuse settings for frankenmeter
| Arduino | mit | jscrane/Interrupted,jscrane/Interrupted |
86c5ca8547d7964b650f330892befebc7351f659 | build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino | build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino | /*
Multiple tone player
Plays multiple tones on multiple pins in sequence
circuit:
- three 8 ohm speakers on digital pins 6, 7, and 8
created 8 Mar 2010
by Tom Igoe
based on a snippet from Greg Borenstein
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone4
*/
void ... | /*
Multiple tone player
Plays multiple tones on multiple pins in sequence
circuit:
- three 8 ohm speakers on digital pins 6, 7, and 8
created 8 Mar 2010
by Tom Igoe
based on a snippet from Greg Borenstein
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone4
*/
void ... | Fix incorrect comment in toneMultiple example | Fix incorrect comment in toneMultiple example
The comment about the note duration didn't match the code.
| Arduino | lgpl-2.1 | stickbreaker/Arduino,stickbreaker/Arduino,me-no-dev/Arduino-1,stickbreaker/Arduino,me-no-dev/Arduino-1,stickbreaker/Arduino,stickbreaker/Arduino,stickbreaker/Arduino,me-no-dev/Arduino-1,me-no-dev/Arduino-1,me-no-dev/Arduino-1,me-no-dev/Arduino-1,stickbreaker/Arduino,me-no-dev/Arduino-1,me-no-dev/Arduino-1 |
ec518c666c0e9317f6cc8e848c5400da19842acd | firmware/Nanpy.ino | firmware/Nanpy.ino | #include "BaseClass.h"
#include "ArduinoClass.h"
#include "OneWireClass.h"
#include "StepperClass.h"
#include "ServoClass.h"
#include "DallasTemperatureClass.h"
#include "LiquidCrystalClass.h"
#include "CapacitiveSensorClass.h"
#include "ToneClass.h"
#include "MethodDescriptor.h"
#include "ComChannel.h"
#include "EEPRO... | #include <EEPROM.h>
#include <Servo.h>
#include <LiquidCrystal.h>
#include <Stepper.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <CapacitiveSensor.h>
#include "BaseClass.h"
#include "ArduinoClass.h"
#include "OneWireClass.h"
#include "StepperClass.h"
#include "ServoClass.h"
#include "DallasTemperatu... | put all includes in .ino file, so the gui can compile it | put all includes in .ino file, so the gui can compile it
| Arduino | mit | ryanvade/nanpy,joppi/nanpy,nanpy/nanpy |
987755071961dc43b136330eddd7d0aa668809c2 | fed-arduino_V2/fed-arduino_V2.ino | fed-arduino_V2/fed-arduino_V2.ino | /* Main code for mouse behavoior tracking for two pellet dispensors */
#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 <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>
#include <avr/interrupt.h>
#... | /* Main code for mouse behavoior tracking for two pellet dispensors */
#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 <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SharpMem.h>
#include <avr/interrupt.h>
#... | Update printDigits | Update printDigits | Arduino | mit | cnorfleet/Feeder,cnorfleet/Feeder,cnorfleet/Feeder,cnorfleet/Feeder |
e3b05a1816b162b3ed88d73bad672f68d490d187 | auto-fog/auto-fog.ino | auto-fog/auto-fog.ino | /**
* Copyright 2016 Michael Heijmans
*
* A simple sketch for signaling when the drop panel should be dropped
*
* Author:: Michael Heijmans (parabuzzle@gmail.com)
* Copyright:: Copyright (c) 2016 Michael Heijmans
* License:: MIT
*/
const int relayPin = 2;
const int fogTime = 30000;
const int sleepTime = 6000... | /**
* Copyright 2016 Michael Heijmans
*
* A simple sketch for running a fog machine
*
* Author:: Michael Heijmans (parabuzzle@gmail.com)
* Copyright:: Copyright (c) 2016 Michael Heijmans
* License:: MIT
*/
const int relayPin = 2;
const int fogTime = 30000;
const int sleepTime = 60000;
int logState = 0;
... | update header | update header
| Arduino | mit | parabuzzle/arduino |
f98e50c345411286ecb3fb43454dfaaa458326fa | src/src.ino | src/src.ino | #include "ILI9341_t3.h"
#include "SPI.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical location
typedef struct... | #include "ILI9341_t3.h"
#include "SPI.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical location
typedef struct... | use average | eta: use average
| Arduino | mit | mplewis/sternidae |
d411097d86226e304444b4681204a304620abcd0 | src/src.ino | src/src.ino | #include "ILI9341_t3.h"
#include "SPI.h"
#include "Average.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical lo... | #include "ILI9341_t3.h"
#include "SPI.h"
#include "Average.h"
#include <math.h>
// Hardware
// TFT LCD
const int TFT_DC = 9;
const int TFT_CS = 10;
ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC);
// A physical location
typedef struct Location {
double lat;
double lng;
} Location;
// A name attached to a physical lo... | remove unused fn call | refactor: remove unused fn call
| Arduino | mit | mplewis/sternidae |
1e225098d9cc67920cd28ce0eb504f697b3d5681 | ArduCAM/examples/Shield_V2/ArduCAM_Shield_V2_Digital_Camera/ArduCAM_Shield_V2_Digital_Camera.ino | ArduCAM/examples/Shield_V2/ArduCAM_Shield_V2_Digital_Camera/ArduCAM_Shield_V2_Digital_Camera.ino | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules//This demo can only work on ARDUCAM_SHIELD_V2 platform.
//This demo is compatible with ESP8266
// It will run the ArduCAM as a real 2MP/3MP/5MP digit... | // ArduCAM demo (C)2017 Lee
// Web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with a supported camera modules//This demo can only work on ARDUCAM_SHIELD_V2 platform.
//This demo is compatible with ESP8266
// It will run the ArduCAM as a real 2MP/3MP/5MP digit... | Update ArduCAM_Shield_V2_Digital_Camera.ino | Update ArduCAM_Shield_V2_Digital_Camera.ino | Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino |
3cb8b144ff08cd8f890da84c98f7c1adaa948e31 | firmware/examples/basic-cwop.ino | firmware/examples/basic-cwop.ino | #include "cwop-particle.h"
#define CWOP_ID "FWxxxx"
#define CWOP_LAT_DEG 00
#define CWOP_LAT_MIN 00.00
#define CWOP_LAT_HEMISPHERE 'N'
#define CWOP_LON_DEG 000
#define CWOP_LON_MIN 00.00
#define CWOP_LON_HEMISPHERE 'W'
TCPClient cwopclient;
volatile bool cwopSend;
Timer tCWOPSend(1000 * 60 * 5, cbCWOPSend); // five ... | #include "cwop-particle/cwop-particle.h"
#define CWOP_ID "FWxxxx"
#define CWOP_LAT_DEG 00
#define CWOP_LAT_MIN 00.00
#define CWOP_LAT_HEMISPHERE 'N'
#define CWOP_LON_DEG 000
#define CWOP_LON_MIN 00.00
#define CWOP_LON_HEMISPHERE 'W'
TCPClient cwopclient;
volatile bool cwopSend;
Timer tCWOPSend(1000 * 60 * 5, cbCWOPS... | correct include statement | correct include statement
| Arduino | cc0-1.0 | legoadk/cwop-particle |
d8a84a01037f0afbad25e5f89996e5fc943861ec | monitor_client/monitor_client.ino | monitor_client/monitor_client.ino | #include "GPRS_Shield_Arduino.h"
#include <SoftwareSerial.h>
#include <Wire.h>
#include "Suli.h"
#include "DHT11.h"
#define DHT11PIN 2
dht11 DHT11;
GPRS gprs(7, 8, BAUDRATE,"cmnet");
char target_url[61];
char buffer[128];
void setup(){
Serial.begin(9600);
Serial.print("Temperature (oC): ");
Serial.println((floa... | #include "GPRS_Shield_Arduino.h"
#include <SoftwareSerial.h>
#include <Wire.h>
#include "Suli.h"
#include "DHT11.h"
#define DHT11PIN 2
dht11 DHT11;
GPRS gprs(7, 8, BAUDRATE,"cmnet");
char target_url[61];
char buffer[128];
void setup(){
Serial.begin(9600);
Serial.print("Temperature (oC): ");
Serial.println((float)D... | Format Code | Format Code
| Arduino | apache-2.0 | lincanbin/Arduino-Location-Based-Environment-Detector-Client,lincanbin/Arduino-Location-Based-Environment-Detector-Client |
d05a3d828a5d34fc7355a578835bfed12e396854 | gameboy.ino | gameboy.ino | #include <EEPROM.h>
#include "pokemon.h"
#include "output.h"
#define MOSI_ 22
#define MISO_ 23
#define SCLK_ 24
int bytes = 0;
uint8_t shift = 0;
uint8_t in_data = 0;
uint8_t out_data = 0;
connection_state_t connection_state = NOT_CONNECTED;
trade_centre_state_t trade_centre_state = INIT;
int counter = 0;
int trade... | #include <EEPROM.h>
#include "pokemon.h"
#include "output.h"
#define MOSI_ 22
#define MISO_ 23
#define SCLK_ 24
int bytes = 0;
uint8_t shift = 0;
uint8_t in_data = 0;
uint8_t out_data = 0;
connection_state_t connection_state = NOT_CONNECTED;
trade_centre_state_t trade_centre_state = INIT;
int counter = 0;
int trade... | Fix typo(s) | Fix typo(s)
LENGHT -> LENGTH | Arduino | bsd-3-clause | pepijndevos/arduino-boy |
58df84e26358ac9adf43f320a1efb625129a7bd0 | hardware/zpuino/zpu20/libraries/ZPUino_GFX/examples/gfxdemo/gfxdemo.ino | hardware/zpuino/zpu20/libraries/ZPUino_GFX/examples/gfxdemo/gfxdemo.ino | #include <Adafruit_GFX.h>
#include <ZPUino_GFX.h>
#include <PLL.h>
// Assign human-readable names to some common 16-bit color values:
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
... | #define circuit VGA_ZPUino
#include <Adafruit_GFX.h>
#include <ZPUino_GFX.h>
#include <PLL.h>
// Assign human-readable names to some common 16-bit color values:
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xF... | Update gfxdemo | Update gfxdemo
| Arduino | lgpl-2.1 | rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab |
b3ff6b566d489aa8d1d7ded7f79b999226b70630 | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | fix sd example returning bad json on empty folder | fix sd example returning bad json on empty folder
| Arduino | lgpl-2.1 | probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino,probonopd/Arduino |
d3acfee7db901e0521229898d46e3b71f4f589f7 | examples/7.Display/LCD_5110_SPI/Examples/LCD_5110_SPI_main/LCD_5110_SPI_main.ino | examples/7.Display/LCD_5110_SPI/Examples/LCD_5110_SPI_main/LCD_5110_SPI_main.ino | ///
/// @mainpage Nokia LCD 5110 SPI
///
/// @details Library for Nokia 5110 LCD with hardware SPI
/// @n
/// @n
/// @n @a Developed with [embedXcode](http://embedXcode.weebly.com)
///
/// @author Rei VILO
/// @author embedXcode.weebly.com
/// @date Jan 12, 2013
/// @version 105
///
/// @copyright © Rei VILO, 2012
/// ... | ///
/// @mainpage Nokia LCD 5110 SPI
///
/// @details Library for Nokia 5110 LCD with hardware SPI
/// @n
/// @n
/// @n @a Developed with [embedXcode](http://embedXcode.weebly.com)
///
/// @author Rei VILO
/// @author embedXcode.weebly.com
/// @date Jan 12, 2013
/// @version 105
///
/// @copyright © Rei VILO, 2012
/// ... | Update examples/7.Display/LCD_5110_SPI/Examples/LCD_5110_SPI_main/LCD_5110_SPI_main.ino | Update examples/7.Display/LCD_5110_SPI/Examples/LCD_5110_SPI_main/LCD_5110_SPI_main.ino
`#include "SPI.h"` seems to be required instead of `#include "spi.h"` | Arduino | lgpl-2.1 | vigneshmanix/Energia,bobintornado/Energia,cevatbostancioglu/Energia,qtonthat/Energia,dvdvideo1234/Energia,danielohh/Energia,danielohh/Energia,battosai30/Energia,croberts15/Energia,qtonthat/Energia,sanyaade-iot/Energia,brianonn/Energia,battosai30/Energia,cevatbostancioglu/Energia,danielohh/Energia,bobintornado/Energia,b... |
3ec3b54bc961a1d0f2b2f4ae73492ce6ee7abac5 | examples/esp8266_webinterface/esp8266_webinterface.ino | examples/esp8266_webinterface/esp8266_webinterface.ino | /*
WS2812FX Webinterface.
Harm Aldick - 2016
www.aldick.org
FEATURES
* Webinterface with mode, color, speed and brightness selectors
LICENSE
The MIT License (MIT)
Copyright (c) 2016 Harm Aldick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | /*
WS2812FX Webinterface.
Harm Aldick - 2016
www.aldick.org
FEATURES
* Webinterface with mode, color, speed and brightness selectors
LICENSE
The MIT License (MIT)
Copyright (c) 2016 Harm Aldick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | fix example for the latest ESP8266 SDK 2.5.0 | fix example for the latest ESP8266 SDK 2.5.0
| Arduino | mit | kitesurfer1404/WS2812FX,kitesurfer1404/WS2812FX |
39b778303bce1a0d1e04490c72cf1fae57abd84e | arduino_firmware/arduino_firmware.ino | arduino_firmware/arduino_firmware.ino |
/*
* Circuit: Common-anode RGB LED wired like so:
* Red cathode: digital pin 9
* Green cathode: digital pin 5
* blue cathode: digital pin 6
* anode: +5V
*
*/
#define NL 13
#include "rgb.h"
/*
* defaults tp pulse between white and black with 1 second period
*/
RGB color = {
255, 255, 255};
RGB backgroundC... |
/*
* Circuit: Common-anode RGB LED wired like so:
* Red cathode: digital pin 9
* Green cathode: digital pin 5
* blue cathode: digital pin 6
* anode: +5V
*
*/
#define NL 13
#include "rgb.h"
/*
* defaults tp pulse between white and black with 1 second period
*/
RGB color = {
102, 0, 102};
RGB backgroundCol... | make default color purple | make default color purple
| Arduino | apache-2.0 | novakps/banana_stand,novakps/banana_stand |
351cfbbab1e971c8571f7a05238f14570bd6a67e | build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino | build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino | /* Blink without Delay
Turns on and off a light emitting diode(LED) connected to a digital
pin, without using the delay() function. This means that other code
can run at the same time without being interrupted by the LED code.
The circuit:
* LED attached from pin 13 to ground.
* Note: on most Arduinos, there i... | /* Blink without Delay
Turns on and off a light emitting diode (LED) connected to a digital
pin, without using the delay() function. This means that other code
can run at the same time without being interrupted by the LED code.
The circuit:
* LED attached from pin 13 to ground.
* Note: on most Arduinos, there ... | Fix typos in BlinkWithoutDelay.ino | Fix typos in BlinkWithoutDelay.ino | Arduino | lgpl-2.1 | niggor/Arduino_cc,NaSymbol/Arduino,probonopd/Arduino,ntruchsess/Arduino-1,wilhelmryan/Arduino,ssvs111/Arduino,radut/Arduino,byran/Arduino,plinioseniore/Arduino,SmartArduino/Arduino-1,xxxajk/Arduino-1,majenkotech/Arduino,byran/Arduino,wayoda/Arduino,toddtreece/esp8266-Arduino,NaSymbol/Arduino,ThoughtWorksIoTGurgaon/Ardu... |
3503a149e24671c6b63a07ea3104229439d2b5e5 | examples/MinimalInterrupt/MinimalInterrupt.ino | examples/MinimalInterrupt/MinimalInterrupt.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 ... | /**
* ----------------------------------------------------------------------------
* 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 ... | Update MinimalInterrupt.ino | Update MinimalInterrupt.ino | Arduino | unlicense | miguelbalboa/rfid,Rotzbua/rfid,Rotzbua/rfid,hramrach/rfid |
11d905d7787320543cfbb4dd5df640c40b62f662 | Arduino/KiteBarUnit/KiteBarUnit.ino | Arduino/KiteBarUnit/KiteBarUnit.ino | // ask_transmitter.pde
// -*- mode: C++ -*-
// Simple example of how to use RadioHead to transmit messages
// with a simple ASK transmitter in a very simple way.
// Implements a simplex (one-way) transmitter with an TX-C1 module
#include <RH_ASK.h>
#include <SPI.h> // Not actually used but needed to compile
// Includ... | // ask_transmitter.pde
// -*- mode: C++ -*-
// Simple example of how to use RadioHead to transmit messages
// with a simple ASK transmitter in a very simple way.
// Implements a simplex (one-way) transmitter with an TX-C1 module
#include <RH_ASK.h>
#include <SPI.h> // Not actually used but needed to compile
// Includ... | Add debug info | Add debug info
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
df25ef260e993569ee20988f41dc1f88757fa69a | ArduCAM/examples/mini/ArduCAM_Mini_OV5642_Video_Streaming/ArduCAM_Mini_OV5642_Video_Streaming.ino | ArduCAM/examples/mini/ArduCAM_Mini_OV5642_Video_Streaming/ArduCAM_Mini_OV5642_Video_Streaming.ino | // ArduCAM Mini demo (C)2015 Lee
// web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with ArduCAM Mini 5MP camera, and can run on any Arduino platform.
//
// This demo was made for ArduCAM Mini OV5642 5MP Camera.
// It needs to be used in combination with PC so... | // ArduCAM Mini demo (C)2015 Lee
// web: http://www.ArduCAM.com
// This program is a demo of how to use most of the functions
// of the library with ArduCAM Mini 5MP camera, and can run on any Arduino platform.
//
// This demo was made for ArduCAM Mini OV5642 5MP Camera.
// It needs to be used in combination with PC so... | Change the CS pin from pin9 to pin10 | Change the CS pin from pin9 to pin10
| Arduino | mit | ArduCAM/Arduino,ArduCAM/Arduino,Oitzu/Arduino,Oitzu/Arduino,Oitzu/Arduino,ArduCAM/Arduino |
122d3826d0cd76ffc471b55ac4c7c7c57ace9a96 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/OPM_for_Arduino/test_manager/test_manager.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/OPM_for_Arduino/test_manager/test_manager.ino | #include <OMManager.h>
<<<<<<< HEAD
#include <OMMath.h>
#include <OMKinematics.h>
=======
>>>>>>> d5ad3ac41573ad5609aabe5d679a3f5c631fb9e9
#define WORLD 0
#define BASE 1
#define SHOULDER 2
#define UPPER_ARM 3
#define LOWER_ARM 4
#define WRIST 5
#define GRIPPER 6
#define NONE -1
void setup()
{
... | #include <OMManager.h>
#include <OMMath.h>
#include <OMKinematics.h>
#define WORLD 0
#define BASE 1
#define SHOULDER 2
#define UPPER_ARM 3
#define LOWER_ARM 4
#define WRIST 5
#define GRIPPER 6
#define NONE -1
void setup()
{
Manipulator manipulator;
manipulator.addworld(WORLD,position, orient... | test file | test file
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
0657207a0c1e76dd875d24a2f261a08052d17b01 | code/magnetometer.ino | code/magnetometer.ino | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1
#define M1
#define M1
#define MAGNET_SCALING_FACTOR
double heading;
int16_t magnetRaw[NUM_AXIS]={0,0,0};
float magnetVal[NUM_AXIS]={0,0,0};
void in... | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1
#define M1
#define M1
#define M1
#define M1
#define M1
#define MAGNET_SCALING_FACTOR
double heading;
int16_t magnetRaw[NUM_AXIS]={0,0,0};
float magn... | Update magnetometer.ino | Update magnetometer.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
ac7224be128007404caadef9093c7983a48a4472 | nodemcu_bme280.ino | nodemcu_bme280.ino | /***************************************************************************
This is a library for the BME280 humidity, temperature & pressure sensor
Designed specifically to work with the Adafruit BME280 Breakout
----> http://www.adafruit.com/products/2650
These sensors use I2C or SPI to communicate, 2 or 4 ... | /***************************************************************************
This is a library for the BME280 humidity, temperature & pressure sensor
Designed specifically to work with the Adafruit BME280 Breakout
----> http://www.adafruit.com/products/2650
These sensors use I2C or SPI to communicate, 2 or 4 ... | Update nodemcu_bme280.ino | Update nodemcu_bme280.ino
fixed negative value error | Arduino | mit | corlysis/scripts,corlysis/scripts |
4044e6fd0a9ffd4646da984d0c25a29252c30bca | examples/BoardsAndShields/Arduino_Zero_M0_Serial/Arduino_Zero_M0_Serial.ino | examples/BoardsAndShields/Arduino_Zero_M0_Serial/Arduino_Zero_M0_Serial.ino | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | Update Arduino_Zero_M0_Serial.ino | Update Arduino_Zero_M0_Serial.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
3a54b4e807d7302e4d634043770c7e7347949077 | RotaryEncoder/examples/E00_KY-040_RotaryEncoder/E00_KY-040_RotaryEncoder.ino | RotaryEncoder/examples/E00_KY-040_RotaryEncoder/E00_KY-040_RotaryEncoder.ino | // Getting Started: E00 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | // Getting Started: E00 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | Update E00_KY-040_RotaryEncoder.ino | Update E00_KY-040_RotaryEncoder.ino | Arduino | mit | artkeller/RotaryEncoder |
5b876d5ba1e58ee2dd3440904c98860c0b5c11ca | examples/LightBlueBean/01.Basics/AccelerometerEvent/AccelerometerEvent.ino | examples/LightBlueBean/01.Basics/AccelerometerEvent/AccelerometerEvent.ino | /*
This sketch demonstrates the Bean's ability to detect motion events.
In this demo we assign motions with corresponding LED colors.
The Bean's LED color shows what motion event it's waiting to detect.
After detecting the event, it will cycle to the next color and wait for the next event.
We start by ... | /*
This sketch demonstrates the Bean's ability to detect motion events.
In this demo we assign a unique LED color with each motion event.
The Bean's active LED color indicates what motion event it's waiting to detect.
After detecting the event, the sketch will cycle to the next color and wait for the next ev... | update to the demo sketch | update to the demo sketch
| Arduino | lgpl-2.1 | PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware |
2a5677ba8d997e764ef2c7d058e1bc57ed6b124e | pushbutton/pushbutton.ino | pushbutton/pushbutton.ino | /**
* Simple push button sketch.
* Turns a LED on pin 13 on and off
*
*/
int ledpin = 13; // for output
int pushpin = 2; // pushbutton input
int is_on = 0;// boolean
void setup(){
pinMode(ledpin, OUTPUT); // init
pinMode(pushpin, INPUT); // inti
}
void loop(){
is_on = digitalRead(pinpin); // read from the but... | /**
* Simple push button sketch.
* Turns a LED on pin 13 on and off
*
*/
int ledpin = 13; // for output
int pushpin = 2; // pushbutton input
int is_on = 0;// boolean
void setup(){
pinMode(ledpin, OUTPUT); // init
pinMode(pushpin, INPUT); // inti
}
void loop(){
is_on = digitalRead(pushpin); // read from the bu... | Update pushbutton.ino | Update pushbutton.ino | Arduino | mit | fabiantheblind/digitalio,fabiantheblind/digitalio |
c0814b0c6cecb6a474494b7f5c9705b7a32b38fb | Arduino/higgsmodem/higgsmodem.ino | Arduino/higgsmodem/higgsmodem.ino | #define MAX_ANDROID_MESSAGE 20
#define MESSAGE_TIMEOUT 25
// *** THESE VALUES WILL REQUIRE CALIBRATION ***
#define PEAK_DETECT_THRESH 175
#define FALLING_EDGE_TRIG 5
#define STATE_RESET_THRESH 160
#define SYNC_PEAKS 16
int _syncPeaksCyclic[SYNC_PEAKS];
int _syncHead;
char AndroidMessage[MAX_ANDROID_MESSAGE+1];
int _b... | #define MAX_ANDROID_MESSAGE 40
#define SYNC_PEAKS 16
// *** THESE VALUES WILL REQUIRE CALIBRATION ***
#define PEAK_DETECT_THRESH 10
#define CYCLE_RESET_THRESH 8
#define MESSAGE_TIMEOUT 15
int _syncPeaksCyclic[SYNC_PEAKS];
int _syncHead;
char AndroidMessage[MAX_ANDROID_MESSAGE+1];
int _byte_pos;
int _getNextAudioPeak... | simplify & fix Arduino audio modem code to match changes on Android side | simplify & fix Arduino audio modem code to match changes on Android side
| Arduino | mit | itamaro/higgs-bot,itamaro/higgs-bot,itamaro/higgs-bot |
610feca557f3a7a4efd2549f9a3c0859123ef105 | ArduinoOnBoard/ArduinoOnBoard.ino | ArduinoOnBoard/ArduinoOnBoard.ino | /* Sensor ROV Code for the 2017 Season
-----------------------------------------------------
The MIT License (MIT)
Copyright (c) Sea Sweepers ROV
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 ... | /* Sensor ROV Code for the 2017 Season
-----------------------------------------------------
The MIT License (MIT)
Copyright (c) Sea Sweepers ROV
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 ... | Remove Unnecessary Comments | Remove Unnecessary Comments
| Arduino | mit | SeaSweepersROV/SeaSweepers2017,SeaSweepersROV/SeaSweepers2017 |
0c50eaa73a586cd2462da47827541d1f3c7b06a3 | ESP8266-code/ESP_DHT22_upload.ino | ESP8266-code/ESP_DHT22_upload.ino | #include <ESP8266WiFi.h>
#include "DHT.h"
#define DHTPIN 5
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
const char* ssid = "my ssid";
const char* password = "my password";
float delayMinutes= 1;
float humidity;
float temperature;
const char* host = "kitwallace.co.uk";
const char* streamId = "streamid";
const c... | /*
code for ESP8266
As of 2016-01-12 this needs the staging version of the ESP board manager:
http://arduino.esp8266.com/staging/package_esp8266com_index.json
(released version throws the _sqrt error)
*/
#include <ESP8266WiFi.h>
#include "DHT.h"
#define DHTPIN 5
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);... | Update ESP_DHT22_upload.ino | Update ESP_DHT22_upload.ino
Dependency on staging board manager added | Arduino | mit | KitWallace/CitizenSense |
1e2d951b1b498b4e854263781b8a76bba964e870 | LIDAR_withPIDs/LIDAR_withPIDs.ino | LIDAR_withPIDs/LIDAR_withPIDs.ino |
// Two LIDARs on one side
#include <Wire.h>
#include <math.h>
#include <PID_v1.h>
#include <Servo.h>
#define LIDARLite_ADDRESS 0x62 // Default I2C Address of LIDAR-Lite.
#define RegisterMeasure 0x00 // Register to write to initiate ranging.
#define MeasureValue 0x04 /... |
// Two LIDARs on one side
#include <Wire.h>
#include <math.h>
#include <PID_v1.h>
#include <Servo.h>
#define LIDARLITE_ADDR 0x62
#define LIDARLITE_CMD_CTRL_ADDR 0x00
#define LIDARLITE_TRIG_VAL 0x04
#define LIDARLITE_RANGE_ADDR 0x8f
// timestamps
unsigned long now, timestamp;
const int lidar_pwr_en[] = {
12, 13
}... | Correct PID values | Correct PID values
| Arduino | mit | EC544-2015-Group2/Challenge4,EC544-2015-Group2/Challenge4 |
5226005b8c81409e9a566d0c177ed90ebb594a39 | SDPArduinoCode/SDPArduinoCode.ino | SDPArduinoCode/SDPArduinoCode.ino | #include "SDPArduino.h"
#include <Wire.h>
#include <stdlib.h>
#define TURNING_MOTOR 0
#define FRONT_LEFT_MOTOR 1
#define FRONT_RIGHT MOTOR 2
#define ACTION_MOTOR 3
// Inbound message definitions
#define STOP 0
#define FORWARD 1
#define BACKWARD 2
#define LEFT 3
#define RIGHT 4
#define KICK 5
#define GRAB 6
// Outbo... | #include "SDPArduino.h"
#include <Wire.h>
#include <stdlib.h>
#define TURNING_MOTOR 0
#define FRONT_LEFT_MOTOR 1
#define FRONT_RIGHT MOTOR 2
#define ACTION_MOTOR 3
// Inbound message definitions
#define STOP 0
#define FORWARD 1
#define BACKWARD 2
#define LEFT 3
#define RIGHT 4
#define KICK 5
#define GRAB 6
// Outbo... | Change indentation and add code safety condition | Change indentation and add code safety condition
| Arduino | mit | uoe-sdp-3b/sdp-project |
6125d08afbd20d29cd4048b6d0d802ae5623044e | Accessory_Controller/Accessory_Controller.ino | Accessory_Controller/Accessory_Controller.ino |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 1
/* Helper Macros */
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b) & 0x0F)
/* Debug Macros *... |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 1
/* Helper Macros */
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b) & 0x0F)
/* Debug Macros *... | Make a stub for updating the pins | Make a stub for updating the pins
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
4f1e3b3c0e5ad0e170f64be707557bf4ea1a5649 | arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_setup/turtlebot3_setup_motor/turtlebot3_setup_motor.ino | arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_setup/turtlebot3_setup_motor/turtlebot3_setup_motor.ino | /*******************************************************************************
Copyright 2016 ROBOTIS CO., LTD.
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... | /*******************************************************************************
Copyright 2016 ROBOTIS CO., LTD.
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... | Reset baud rate if found if servo found on ping at 57600 | Reset baud rate if found if servo found on ping at 57600
Somehow lost the line, that reset the baud rate back down to 57600 if the ping found the servo at that speed.
Also made the sketch work on OpenCM9.04 as well. So if one needed to do it and did not want to get to their OpenCR board.
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
5f2dab9daec73b8056c7317f2afc8aa0de917ceb | Arduino/PWM/PWM.ino | Arduino/PWM/PWM.ino | void setup() {
//Définition du prescaler, du Fast PWM
TCCR1A = 0xAA;
TCCR1B = 0x1B;
TCCR1C = 0;
ICR1 = 5000;
//Definition port de sortie
DDRB |= 1<<5;
DDRB |= 1<<6;
DDRB |= 1<<7;
//Definition largeur d'impulsion
OCR1A = 2500;
OCR1B = 2500;
OCR1C = 2500;
}
void loop() {
OCR1B = 200;
}
| //Function to convert Microsecond in counter value
#define MICROS2PWM(x) (x/4)
void setup() {
//PWM mode (mode 2): COM1x1:0 = b10
//Waveform (mode 9): WGMn3:0 = b1001
//Prescaler (/64): CS2:0 = b011
TCCR1A = 0xAA;
TCCR1B = 0x1B;
TCCR1C = 0;
//Max counter value = 5000
ICR1 = 5000;
//Define PWM outpu... | add comments PWM.ino | add comments PWM.ino
| Arduino | mit | oleveque/PiWebcam,oleveque/PiWebcam,oleveque/PiWebcam |
b2c5febdf68cc2ac69f7fa5fc8cf184fa03fd2d6 | code/examples/01_HelloWorld.ino | code/examples/01_HelloWorld.ino | //PAPERINO: Hello World example for the Paperino Micro ePaper breakoutboard
#include "Adafruit_mfGFX.h"
#include "PL_microEPD.h"
#include "fonts.h"
#define EPD_CS D5 //SPI CS of the ePaper screen
#define EPD_RST A0 //Reset pin
#define EPD_BUSY A1 //Busy p... | //PAPERINO: Hello World example for the Paperino Micro ePaper breakoutboard
#include "Adafruit_mfGFX.h"
#include "PL_microEPD.h"
#include "fonts.h"
#define EPD_CS D5 //SPI CS of the ePaper screen
#define EPD_RST A0 //Reset pin
#define EPD_BUSY A1 //Busy p... | Update 01_HelloWorld.ino | Update 01_HelloWorld.ino | Arduino | bsd-3-clause | RobPo/Paperino |
f31993582496cb1a3e6cc63758907808e7bee0ff | examples/shield_sdlog/shield_sdlog.ino | examples/shield_sdlog/shield_sdlog.ino | #include <SPI.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
#include <SD.h>
#include <avr/sleep.h>
// Ladyada's logger modified by Bill Greiman to use the SdFat library
//
// This code shows how to listen to the GPS module in an interrupt
// which allows the program to have more 'freedom' - just parse
// wh... | #include <SPI.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
#include <SD.h>
#include <avr/sleep.h>
// Ladyada's logger modified by Bill Greiman to use the SdFat library
//
// This code shows how to listen to the GPS module in an interrupt
// which allows the program to have more 'freedom' - just parse
// wh... | Update shield_sdlog.ino | Update shield_sdlog.ino | Arduino | bsd-3-clause | kaaLabs15/Adafruit-GPS-Library,huskyroboticsteam/2014-15,tonesandtones/Adafruit-GPS-Library,ulrichard/Adafruit-GPS-Library,lolisa/2014-15,huskyroboticsteam/2014-15,lolisa/2014-15,huskyroboticsteam/2014-15,lolisa/2014-15,adafruit/Adafruit-GPS-Library |
ae00b68c8889c677182e558fd37543283c0d0d16 | examples/05-FullSystems/WDRC_8BandFIR_Stereo_wApp/WDRC_8BandFIR_Stereo_wApp.ino | examples/05-FullSystems/WDRC_8BandFIR_Stereo_wApp/WDRC_8BandFIR_Stereo_wApp.ino | /*
WDRC_8BandFIR_Stereo_wApp
Created: Chip Audette (OpenAudio), August 2021
Primarly built upon CHAPRO "Generic Hearing Aid" from
Boys Town National Research Hospital (BTNRH): https://github.com/BTNRH/chapro
Purpose: Implements Multi-band WDRC compressor. One for each ear.
Features:
* A Multi... | /*
WDRC_8BandFIR_Stereo_wApp
Created: Chip Audette (OpenAudio), August 2021
Primarly built upon CHAPRO "Generic Hearing Aid" from
Boys Town National Research Hospital (BTNRH): https://github.com/BTNRH/chapro
Purpose: Implements Multi-band WDRC compressor. One for each ear.
Features:
* A Multi... | change ble to myTympan from Serial1 | WDRC_8BandFIR_Stereo_wApp: change ble to myTympan from Serial1
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
35e0a478a3f5ff2eab4ac0630d72c930f97f345a | Arduino/Drop_sensor_test/Drop_counter_ISR_schmitt_trigger/drop_sensor_ISR_schmitt_trigger/drop_sensor_ISR_schmitt_trigger.ino | Arduino/Drop_sensor_test/Drop_counter_ISR_schmitt_trigger/drop_sensor_ISR_schmitt_trigger/drop_sensor_ISR_schmitt_trigger.ino | const byte LED = 13;
const byte BUTTON = 2;
volatile boolean drop_occured = false;
int drop_count = 0;
// Interrupt Service Routine (ISR)
void drop ()
{
drop_occured = true;
}
void setup ()
{
Serial.begin(115200);
pinMode (LED, OUTPUT); // so we can update the LED
digitalWrite (BUTTON, HIGH); // internal ... | const byte LED = 13;
const byte SENSOR = 2;
volatile boolean drop_occured = false;
int drop_count = 0;
// Interrupt Service Routine (ISR)
void drop ()
{
drop_occured = true;
}
void setup ()
{
Serial.begin(115200);
pinMode (LED, OUTPUT); // so we can update the LED
digitalWrite (SENSOR, HIGH); // internal ... | Update drop_sensor_ISR_schmitt_trigger.ino | Update drop_sensor_ISR_schmitt_trigger.ino | Arduino | cc0-1.0 | Sensorica/Sensor-Network,Sensorica/Sensor-Network,Sensorica/Sensor-Network,Sensorica/Sensor-Network,Sensorica/Sensor-Network,Sensorica/Sensor-Network |
364fe0dc370914e4c2d9cc0bbc2cad239f606bde | examples/Analyzer/CosaAnalyzerFlush/CosaAnalyzerFlush.ino | examples/Analyzer/CosaAnalyzerFlush/CosaAnalyzerFlush.ino | /**
* @file CosaAnalyzerFlush.ino
* @version 1.0
*
* @section License
* Copyright (C) 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.1 o... | /**
* @file CosaAnalyzerFlush.ino
* @version 1.0
*
* @section License
* Copyright (C) 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.1 o... | Improve flush verification. | Improve flush verification.
| Arduino | lgpl-2.1 | dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,jeditekunum/Cosa |
bf03a7398868414ed5218d91ccbf1bfcb1798dc3 | WirelessTrigger.ino | WirelessTrigger.ino | #define ROLE_GROUND 0
#define ROLE_SKY 1
// SET THE TARGET ROLE HERE -------------------------------
#define ROLE ROLE_GROUND
// Standard libraries
#include <Arduino.h>
#include <printf.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
#if ROLE == ROLE_GROUND
// Di... | #define ROLE_GROUND 0
#define ROLE_SKY 1
// SET THE TARGET ROLE HERE -------------------------------
#define ROLE ROLE_GROUND
// Standard libraries
#include <Arduino.h>
#include <printf.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
#if ROLE == ROLE_GROUND
// Sm... | Replace LCD with RGB LED | Replace LCD with RGB LED
Also includes mild clean-up
| Arduino | mit | WasabiFan/aerial-release-system,WasabiFan/aerial-release-system |
008e0bc8fa79421cca7a048865e40550d67c15fb | HIDVolumeKnobV2/HIDVolumeKnobV2.ino | HIDVolumeKnobV2/HIDVolumeKnobV2.ino | #include "HID-Project.h"
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
static const unsigned int encoder0PinA = 0;
static const unsigned int encoder0PinB = 1;
static const unsigned int encoderButton = 7;
volati... | #include "HID-Project.h"
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
static const unsigned int encoder0PinA = 0;
static const unsigned int encoder0PinB = 1;
static const unsigned int encoderButton = 7;
volati... | Add 'No media player detected' text | Add 'No media player detected' text
| Arduino | mit | ThomArmax/MediaKeyboard,ThomArmax/MediaKeyboard,ThomArmax/MediaKeyboard |
be7c9f0f6eb7b9224446fc550644a84bd119bd7b | examples/Downlink/Downlink.ino | examples/Downlink/Downlink.ino | #include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
const byte appEui[8] = { <insert AppEui> }; //for example: {0x70, 0xB3, 0xD5, 0x7E, 0xE0, 0xE0, 0x01, 0x4A1};
const byte appKey[16] = { <insert AppKey> }; //for example: {0x73, 0x6D, 0x24, 0xD2, 0x69, 0xBE, 0xE3, 0xAE, 0x0E, 0xCE, 0xF0, 0xBB, 0x6C, 0xA4, 0xBA... | #include <TheThingsNetwork.h>
// Set your AppEUI and AppKey
const byte appEui[8] = { <insert AppEui> }; //for example: {0x70, 0xB3, 0xD5, 0x7E, 0xE0, 0xE0, 0x01, 0x4A1};
const byte appKey[16] = { <insert AppKey> }; //for example: {0x73, 0x6D, 0x24, 0xD2, 0x69, 0xBE, 0xE3, 0xAE, 0x0E, 0xCE, 0xF0, 0xBB, 0x6C, 0xA4, 0xBA... | Use while to join in Downlink example | Use while to join in Downlink example
| Arduino | mit | TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib |
2e9fc786d90854f26f0f96b9bd9c441b20469cef | firmware/examples/multiple.ino | firmware/examples/multiple.ino | #define USE_ADJDS311
#define BLINK_LED
#define USE_BMP085
#define USE_TCS34725
#define USE_TINKER
#define USE_TMP006
//
// GLOBAL VARIABLES
//
unsigned long publishTTL = 21600;
#ifdef USE_TINKER
#include "tinker.h"
#endif
#ifdef USE_ADJDS311
#include "adjds311.h"
#endif
#ifdef BLINK_LED
#in... | #define USE_ADJDS311
#define BLINK_LED
#define USE_BMP085
#define USE_TCS34725
#define USE_TINKER
#define USE_TMP006
#ifdef USE_TINKER
#include "tinker.h"
#endif
#ifdef USE_ADJDS311
#include "adjds311.h"
#endif
#ifdef BLINK_LED
#include "blink_led.h"
#endif
#ifdef USE_BMP085
#include "bmp085.h" ... | Update multiple.ino | Update multiple.ino | Arduino | mit | sauloalspark/multiple,sauloalspark/multiple |
ad032c19ecdadcbdd6db4bb4d788bed48bb81a54 | experimental/arduino101/science-journal-arduino/science-journal-arduino.ino | experimental/arduino101/science-journal-arduino/science-journal-arduino.ino | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 a... | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* 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 a... | Remove extraneous heartbeat. | Remove extraneous heartbeat.
| Arduino | apache-2.0 | dakoner/science-journal-arduino,dakoner/science-journal-arduino,google/science-journal-arduino,google/science-journal-arduino,precision/science-journal-arduino,precision/science-journal-arduino |
032854b32088cf3a3676086fdd27467a3583bf30 | examples/UltrasonicSimple/UltrasonicSimple.ino | examples/UltrasonicSimple/UltrasonicSimple.ino | /*
* Ultrassonick Simple
* Print the distance read for the
* HR-SC04 Ultrasonic Sensor in centimeters.
*
* The circuit:
* * Module HR-SC04 attached to digital pins as follows:
* ---------------------
* | HC-SC04 | Arduino |
* ---------------------
* | Vcc | 5V |
* | Trig | 12 |
* | Echo ... | /*
* Ultrasonic Simple
* Print the distance read for the
* HR-SC04 Ultrasonic Sensor in centimeters.
*
* The circuit:
* * Module HR-SC04 attached to digital pins as follows:
* ---------------------
* | HC-SC04 | Arduino |
* ---------------------
* | Vcc | 5V |
* | Trig | 12 |
* | Echo | ... | Rename Ultrasonic on example file | refactor: Rename Ultrasonic on example file
| Arduino | mit | ErickSimoes/Ultrasonic |
9f2f2f4414b9cf583dd57c41360e74a53fb4bdde | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/AdvancedWebServer/AdvancedWebServer.ino | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/AdvancedWebServer/AdvancedWebServer.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 ... | /*
* 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 ... | remove mDNS from loop as well | AdvancedWebServer: remove mDNS from loop as well
| Arduino | lgpl-2.1 | sanyaade-iot/Arduino-1,zenmanenergy/Arduino,smily77/Arduino,ssvs111/Arduino,drpjk/Arduino,mangelajo/Arduino,ssvs111/Arduino,leftbrainstrain/Arduino-ESP8266,aichi/Arduino-2,EmuxEvans/Arduino,gonium/Arduino,eeijcea/Arduino-1,gonium/Arduino,smily77/Arduino,spapadim/Arduino,spapadim/Arduino,EmuxEvans/Arduino,leftbrainstrai... |
e8ac1e9ceef623e62371b2fafd4e1879478a832a | examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino | examples/FirebaseStream_ESP8266/FirebaseStream_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 handling | examples/stream: fix error handling
| Arduino | apache-2.0 | FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,ed7coyne/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino,proppy/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino |
c8ff3fbb451d90c7c8077326d220aa45e982dc7d | examples/ESP-DMXRGB/ESP-DMXRGB.ino | examples/ESP-DMXRGB/ESP-DMXRGB.ino | /**************************************************************************/
/*!
@file ESP-DMXNeoPixels.ino
@author Claude Heintz
@license BSD (see LXDMXWiFi.h)
@copyright 2016-2021 by Claude Heintz All Rights Reserved
Example using LXDMXWiFi_Library for output of Art-Net or E1.31 sACN from
... | /**************************************************************************/
/*!
@file ESP-DMXRGB.ino
@author Claude Heintz
@license BSD (see LXDMXWiFi.h)
@copyright 2021 by Claude Heintz All Rights Reserved
Example using LXDMXWiFi_Library for output of Art-Net or E1.31 sACN from
ESP8266... | fix comments in main file. | fix comments in main file.
| Arduino | bsd-3-clause | claudeheintz/LXDMXWiFi_Library,claudeheintz/LXDMXWiFi_Library |
3689d137c74967697fa534120a53f416b036101e | examples/quadcopter/quadcopter.ino | examples/quadcopter/quadcopter.ino | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
using namespace Platform;
// Radio Channel Mapping
enum RadioChannel{ RADIO_PITCH = 0, RADIO_ROLL = 1, RADIO_THROTTLE = 2,
RADIO_YAW = 3, RADIO_GEAR = 4, RADIO_AUX = 5 };
const uint8_t CHANNEL_TRIG... | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
using namespace Platform;
// Radio Channel Mapping
enum RadioChannel{ RADIO_PITCH = 0, RADIO_ROLL = 1, RADIO_THROTTLE = 2,
RADIO_YAW = 3, RADIO_GEAR = 4, RADIO_AUX = 5 };
const uint8_t CHANNEL_TRIG... | remove debugging code | remove debugging code
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
7383aa306f6eeb4a43c6b4eb021be34be46d0c96 | BotBoarduino/BotBoarduino_LIDAR_Lite_Sweep_Scan/BotBoarduino_LIDAR_Lite_Sweep_Scan.ino | BotBoarduino/BotBoarduino_LIDAR_Lite_Sweep_Scan/BotBoarduino_LIDAR_Lite_Sweep_Scan.ino | /***********************************************************************************************************
/* BotBoarduino LIDAR Lite Sweep Scan
/* Version: 1.0.0
/* By: scharette
/* Date: 2015-03-31
/*
/* Short example based on the Servo library example "Sweep" example and the Pulsed Light 3D examples.
/* The servo... | /***********************************************************************************************************
/* Lynxmotion BotBoarduino LIDAR Lite Sweep Scan
/* Version: 1.0.0
/* By: scharette
/* Date: 2015-03-31
/*
/* Short example based on the Servo library example "Sweep" example and the Pulsed Light 3D examples.
/... | Update BotBoarduino_LIDAR_Lite_Sweep_Scan.ino | Update BotBoarduino_LIDAR_Lite_Sweep_Scan.ino | Arduino | mit | DougFirErickson/LIDARLite_Basics,PulsedLight3D/LIDARLite_Basics |
65c70dcc6b8d81991a7d1add03b85110ab273bf0 | arduino/motor_3.ino | arduino/motor_3.ino | #include <Wire.h>
double potcurval; // variable to read the value from the analog pin
int angel; //Integer value of angle
double angle =0;
double curangle,kP=28.00,kI=42,kD=4,Last=0;
double P=0,I=0,D=0,Drive,Error=0,Integral=0;
void backward() {
digitalWrite(12,HIGH);
digitalWrite(9,LOW);
}
void fo... | #include <Wire.h>
double potcurval; // variable to read the value from the analog pin
int angel; //Integer value of angle
double angle =0;
double curangle,kP=28.00,kI=42,kD=4,Last=0;
double P=0,I=0,D=0,Drive,Error=0,Integral=0;
void backward() {
digitalWrite(12,HIGH);
digitalWrite(9,LOW);
}
void fo... | Update motor_3.ino | Update motor_3.ino | Arduino | mit | RationalAsh/invkin,RationalAsh/invkin,RationalAsh/invkin |
81d9a8b4eda427aba15c1377d3461e208db21729 | 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... | Implement bargraph code for seconds. | Implement bargraph code for seconds. | Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
0d35894707887bb1bcdda75959a8371ecca79cc4 | app/firmware/JS_Shield/JS_Shield.ino | app/firmware/JS_Shield/JS_Shield.ino | char remainData;
void setup(){
Serial.begin(9600);
Serial.flush();
initPorts();
delay(200);
}
void initPorts () {
for (int pinNumber = 0; pinNumber < 14; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop() {
while (Serial.available()) {
if (Serial.availa... | /**********************************************************************************
* The following software may be included in this software : orion_firmware.ino
* from http://www.makeblock.cc/
* This software contains the following license and notice below:
* CC-BY-SA 3.0 (https://creativecommons.org/licenses/by-... | Update JS_Shield.ino | Update JS_Shield.ino | Arduino | mit | songhagwon/entry-hw,songhagwon/entry-hw,kjsii123/entry-hw,entrylabs/entry-hw,kjsii123/entry-hw,kjsii123/entry-hw,kjsii123/entry-hw,songhagwon/entry-hw,songhagwon/entry-hw,songhagwon/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw |
a6ec80ac3432627f22f88b47ea57278031b6f10e | spark-as-server/spark-as-server.ino | spark-as-server/spark-as-server.ino |
TCPServer server = TCPServer(23);
TCPClient client;
void setup()
{
// start listening for clients
server.begin();
// Make sure your Serial Terminal app is closed before powering your Core
Serial.begin(9600);
// Now open your Serial Terminal, and hit any key to continue!
while(!Serial.available()) SPARK_... |
TCPServer server = TCPServer(23);
TCPClient client;
void setup()
{
// start listening for clients
server.begin();
// Make sure your Serial Terminal app is closed before powering your Core
// Serial.begin(9600);
// Now open your Serial Terminal, and hit any key to continue!
// while(!Serial.available()) ... | Update spark-as-server.ino | Update spark-as-server.ino | Arduino | mit | hpssjellis/spark-core-socket-client-or-server |
f85c533999d20065ebe8cb2e7822463dd4da4567 | teensy/teensy.ino | teensy/teensy.ino | #define BUFLEN 16
#define PIN_TURNTABLE_SERVO 3
#define PIN_KCUP_LOADER 2
#define PIN_KCUP_EJECTOR 11
#define PIN_TRAY_PISTON 12
#define PIN_BREW_BUTTON 6
const int ERR_UNKNOWN = -1;
const int ERR_NYI = -2;
const int ERR_KCUP_UNKNOWN = -10;
const int ERR_KCUP_EMPTY = -11;
const int ERR_KCUP_TRAY_FULL = -12;
const in... | #define BUFLEN 16
#define PIN_TURNTABLE_SERVO 3
#define PIN_KCUP_LOADER 2
#define PIN_KCUP_EJECTOR 11
#define PIN_TRAY_PISTON 12
#define PIN_BREW_BUTTON 6
const int ERR_UNKNOWN = -1;
const int ERR_NYI = -2;
const int ERR_KCUP_UNKNOWN = -10;
const int ERR_KCUP_EMPTY = -11;
const int ERR_KCUP_TRAY_FULL = -12;
const in... | Make it compile | Make it compile
| Arduino | apache-2.0 | umbc-hackafe/htcpcp,umbc-hackafe/htcpcp,umbc-hackafe/htcpcp,umbc-hackafe/htcpcp |
51a75acc6df8e4204148ff99b56751b768fc3513 | sketches/midi_organ/midi_organ.ino | sketches/midi_organ/midi_organ.ino | #include <midi_Defs.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
#include <midi_Message.h>
#include <MIDI.h>
/*
Test serial-MIDI commands from a 61-key keyboard.
The circuit:
* Up to five OrganDuino 2.0 PCB shields populated with diodes
* 61-key organ manuals soldered in with buss soldered to a Drive ... | #include <midi_Defs.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
#include <midi_Message.h>
#include <MIDI.h>
/*
OrganDuino: serial-MIDI commands from multiple 61-key organ manuals and pedalboard.
The circuit:
* Up to five OrganDuino 2.0 PCB shields populated with diodes
* 61-key organ manuals soldered... | Improve docs, set manuals | DOC/ENH: Improve docs, set manuals
The current hardware has 4 manuals and one pedalboard, so `numManuals` is set to 4. This prevents polling of 61 keys which will never be active every loop (18.1% fewer polls per loop without the 5th manual). Improved documentation. | Arduino | apache-2.0 | JDWarner/organduino |
3834a028d6761cb977477a640d44d6e9ee5b2d70 | examples/simple.ino | examples/simple.ino | #include "ConfigManager.h"
struct Config {
char name[20];
bool enabled;
int8 hour;
} config;
ConfigManager configManager;
void setup() {
// Setup config manager
configManager.setAPName("Demo");
configManager.setAPFilename("/index.html");
configManager.addParameter("name", config.name, 20)... | #include "ConfigManager.h"
struct Config {
char name[20];
bool enabled;
int8 hour;
} config;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
server->send(200, "text/plain", "Hello, World!");
});
}
voi... | Update example with callback | Update example with callback
| Arduino | mit | nrwiersma/ConfigManager,JonSilver/ConfigManager,JonSilver/ConfigManager,nrwiersma/ConfigManager |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.