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 |
|---|---|---|---|---|---|---|---|---|---|
0137a16b4a4f392add48d5b20a7d502e77bf5f37 | Sensors/GpsDataToSerial/GpsDataToSerial.ino | Sensors/GpsDataToSerial/GpsDataToSerial.ino | /*--- GROVE GPS ---*/
#include <SoftwareSerial.h>
/*-----------------*/
/*--- TPH V2 ---*/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
/*--------------*/
/*--- GROVE BUTTON ---*/
#define BUTTON_PIN 20
/*--------------------*/
/*--- TPH V2 ---*/
#define BME_SCK 13
#def... | /*--- GROVE GPS ---*/
#include <SoftwareSerial.h>
/*-----------------*/
/*--- TPH V2 ---*/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
/*--------------*/
/*--- GROVE BUTTON ---*/
#define BUTTON_PIN 20
/*--------------------*/
/*--- TPH V2 ---*/
#define BME_SCK 13
#def... | Modify JSON data to send to serial | Modify JSON data to send to serial
| Arduino | apache-2.0 | GillisWerrebrouck/SportModule,GillisWerrebrouck/SportModule |
39adbb577cb19c7a411ec5e4a8701d088c1edab9 | moros/moros.ino | moros/moros.ino | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | Remove dead code | Remove dead code
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
f1773deb3bcef749435296665117278002bdbdc3 | _04-lcd-dust/a-02-nano-i2c/a-02-nano-i2c.ino | _04-lcd-dust/a-02-nano-i2c/a-02-nano-i2c.ino | #include <avr/pgmspace.h>
#include <IRremote.h>
#include <lgWhisen.h>
#include <Wire.h>
#include <Average.h>
#include <avr/pgmspace.h>
/* pins
D9 : ir in
D8 : dust ir out
D3 : ir out
D2 : sqwe in
A0 : dust in
A1 : moisture in
*/
#define IR_IN_PIN 9
#define DUST_OUT_PIN 8
#define IR_OUT_PIN 3
#define SQWV_... | #include <avr/pgmspace.h>
#include <IRremote.h>
#include <lgWhisen.h>
#include <Wire.h>
#include <Average.h>
#include <avr/pgmspace.h>
/* pins
D9 : ir in
D8 : dust ir out
D3 : ir out
D2 : sqwe in
A0 : dust in
A1 : moisture in
*/
#define IR_IN_PIN 9
#define DUST_OUT_PIN 8
#define IR_OUT_PIN 3
#define SQWV_... | remove airclean | remove airclean
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
ce57d26d2c1af5522d1e96e8011e53aab4bf3e5a | examples/AltPinSerial/AltPinSerial.ino | examples/AltPinSerial/AltPinSerial.ino | #include <MIDI.h>
// Simple tutorial on how to receive and send MIDI messages.
// Here, when receiving any message on channel 4, the Arduino
// will blink a led and play back a note for 1 second.
#if defined(ARDUINO_SAM_DUE) || defined(SAMD_SERIES)
/* example not relevant for this hardware */
MIDI_CREATE_DEFAU... | #include <MIDI.h>
// Simple tutorial on how to receive and send MIDI messages
// on a different serial port, using SoftwareSerial.
// Here, when receiving any message on channel 4, the Arduino
// will blink a led and play back a note for 1 second.
#if defined(ARDUINO_SAM_DUE) || defined(SAMD_SERIES)
/* example not... | Update example | doc: Update example
| Arduino | mit | FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library |
e8106e4339ff1a7433531d901664d0f4ae51dd65 | toggle_pixels_off_with_button.ino | toggle_pixels_off_with_button.ino | //***************************************************************
// Example to turn some pixels virtually "off" with a button.
// Pixels are still powered and reciving data, but are simply
// set to display black when "off".
//
// This example is for a 32 pixel strip. Pressing the button
// turns "off" the last 8 pix... | //***************************************************************
// Example to toggles some pixels on or off using a button.
// The "off" pixels are still powered and reciving data, but
// are simply set to display black when "off".
//
// In this example pressing the button toggles pixels 8-15 and 24-31.
//
// This is... | update for JC_Button library and minor updates | update for JC_Button library and minor updates | Arduino | mit | marmilicious/FastLED_examples |
2d8e9b728b69a676d883f5b782d16133217f70a7 | 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 ... | remove duplicate headers | remove duplicate headers
| Arduino | apache-2.0 | gguuss/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,proppy/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,ed7coyne/firebase-arduino,aliafshar/firebase-arduino,gguuss/firebase-arduino |
c37810dd07b8a953e35b9dc7907c45cc64644e13 | AndroidTVGateway/edge-agent/edge-agent.ino | AndroidTVGateway/edge-agent/edge-agent.ino | #include <SoftwareSerial.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <SPI.h>
#include <MFRC522.h>
#define DHTTYPE DHT11
#define WINDOWPIN 4
#define ACPIN 5
#define DHTPIN 6
#define DOOR_LOCK 7
#define LED_LIGHT 8
DHT dht(DHTPIN,... | #include <SoftwareSerial.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <SPI.h>
#include <MFRC522.h>
#define DHTTYPE DHT11
#define WINDOWPIN 4
#define ACPIN 5
#define DHTPIN 6
#define DOOR_LOCK 7
#define LED_LIGHT 8
DHT dht(DHTPIN,... | Undo comments added to arduino code | Undo comments added to arduino code
| Arduino | apache-2.0 | charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples |
bb51d736db6bbd54203edc786c22e24c0cd81d53 | Chapter_8/CompetitiveSumoRobot.ino | Chapter_8/CompetitiveSumoRobot.ino | /********************************************************************
An Introduction to Robot Programming
Author - Eric Ryan Harrison <me@ericharrison.info>
http://github.com/SumoRobotLeague/MRK-1/
Lesson 8, Bot: Competitive Sumo Robot
This is the culmination of the Introduction to Robot Programming.
Thi... | /********************************************************************
An Introduction to Robot Programming
Author - Eric Ryan Harrison <me@ericharrison.info>
http://github.com/SumoRobotLeague/MRK-1/
Lesson 8, Bot: Competitive Sumo Robot
This is the culmination of the Introduction to Robot Programming.
Thi... | Stop the robot when in idle state | Stop the robot when in idle state
| Arduino | mit | SumoRobotLeague/MRK-1,SumoRobotLeague/MRK-1 |
8cd94aa41a6c10b8f3aa1119d1cba0450c54c2ff | examples/Boards_WiFi/WizFi250/WizFi250.ino | examples/Boards_WiFi/WizFi250/WizFi250.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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 inte... | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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 inte... | Update WizFi250 example | Update WizFi250 example
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
c6e15f6c7ec417f03a1a3c380605459b29376ce6 | examples/MDriver_no_PWM/MDriver_no_PWM.ino | examples/MDriver_no_PWM/MDriver_no_PWM.ino | #include "MDriver.h"
/*
*Этот пример управляет двигателями без ШИМ(PWM) сигнала, при этом на пины
*ENA и ENB на плате драйвера двигателей подтянуты к высокому логическому уровню (+5V).
*
* Библиотека MDrive предназначена для управление коллекторными двигателями
* посредством драйвера двигателей на микросхеме L293... | #include "MDriver.h"
/*
*Этот пример управляет двигателями без ШИМ(PWM) сигнала, при этом на пины
*ENA и ENB на плате драйвера двигателей подтянуты к высокому логическому уровню (+5V).
*
* Библиотека MDrive предназначена для управление коллекторными двигателями
* посредством драйвера двигателей на микросхеме L293... | Update MDriver_no_PWM.ino | Update MDriver_no_PWM.ino | Arduino | mit | AlcoCoder/MDriver |
803959b9a52fb46b8caa93f86731889f2d09419e | examples/bmp/bmp.ino | examples/bmp/bmp.ino | /***************************************************
This is a example sketch demonstrating bitmap drawing
capabilities of the SSD1351 library for the 1.5"
16-bit Color OLED with SSD1351 driver chip
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/1431
These displays use... | /***************************************************
This is a example sketch demonstrating bitmap drawing
capabilities of the SSD1351 library for the 1.5"
and 1.27" 16-bit Color OLEDs with SSD1351 driver chip
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/1431
------> h... | Fix comments | Fix comments
Header comment somehow got loused up on the last commit. | Arduino | bsd-3-clause | osmithy/Adafruit_SSD1351,shiitakeo/Adafruit-SSD1351-library,osmithy/Adafruit_SSD1351,shiitakeo/Adafruit-SSD1351-library |
6bbc633e83880cee2f9b5cade8c666a37509509a | examples/VWI/CosaVWIclient/CosaVWIclient.ino | examples/VWI/CosaVWIclient/CosaVWIclient.ino | /**
* @file CosaVWIclient.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | /**
* @file CosaVWIclient.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | Clean up refactoring. | Clean up refactoring.
| Arduino | lgpl-2.1 | dansut/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,dansut/Cosa,SinishaDjukic/Meshwork,mikaelpatel/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,jeditekunu... |
21d26663781d06cc5dafb658a928ed0cb02662ee | examples/quadcopter/quadcopter.ino | examples/quadcopter/quadcopter.ino | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
boolean calibrated = false;
uint32_t calStartTime;
const uint8_t CHANNEL_MIN = 32;
const uint8_t CHANNEL_MAX = 148;
float yawTarget = 0.0;
enum State { DISARMED, CALIBRATE, FLYING } state;
const char* stateString[] = {
... | #include "Wire.h"
#include "SPI.h"
#include "MINDS-i-Drone.h"
#include "platforms/Quadcopter.h"
boolean calibrated = false;
uint32_t calStartTime;
const uint8_t CHANNEL_MIN = 32;
const uint8_t CHANNEL_MAX = 148;
float yawTarget = 0.0;
enum State { DISARMED, CALIBRATE, FLYING } state;
const char* stateString[] = {
... | Switch to new interval utility | Switch to new interval utility
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
15aa5ea658a75adcb9efd19fba4e25a7bf07b14b | examples/UbidotsSaveValue/UbidotsSaveValue.ino | examples/UbidotsSaveValue/UbidotsSaveValue.ino | // This example retrieves last value of a variable from the Ubidots API
// using TCP protocol.
/****************************************
* Include Libraries
****************************************/
#include <Ubidots.h>
/****************************************
* Define Constants
*********************************... | // This example retrieves last value of a variable from the Ubidots API
// using TCP protocol.
/****************************************
* Include Libraries
****************************************/
#include <Ubidots.h>
/****************************************
* Define Constants
*********************************... | Debug message | Debug message | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
698681c658947f7a9d58ae64781750aec1a2f517 | LoaderTest/LoaderTest.ino | LoaderTest/LoaderTest.ino |
// Concept tester for loading programs into the
// Gigatron TTL microcomputer
// Marcel van Kervinck / Chris Lord
// May 2018
// The object file is embedded (in PROGMEM) in GT1 format. It would be
// GREAT if we can find a way to receive the file over the Arduino's
// serial interface without adding upstream complexi... |
// Concept tester for interfacing with the
// Gigatron TTL microcomputer
// Marcel van Kervinck / Chris Lord
// May 2018
// The object file is embedded (in PROGMEM) in GT1 format. It would be
// GREAT if we can find a way to receive the file over the Arduino's
// serial interface without adding upstream complexity. B... | Update comments | LoaderTest: Update comments
| Arduino | bsd-2-clause | kervinck/gigatron-rom,kervinck/gigatron-rom,kervinck/gigatron-rom,kervinck/gigatron-rom,kervinck/gigatron-rom,kervinck/gigatron-rom,kervinck/gigatron-rom |
54d6f0d25ebae2d74fe8e898306e2a8de578fa6e | moros/moros.ino | moros/moros.ino | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SI... | Make Screen a class | Make Screen a class
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
2e8cd4c638aa593ce04d816120ff7f9c42db7be9 | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.4"
// Disable this if you don't want the relay to turn on with any single tap event
#define IMMEDIATEON
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.5"
// Disable this if you don't want the relay to turn on with any single tap event
#define IMMEDIATEON
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | Put rate limiter inside the long press handler. Fixes #6 | Put rate limiter inside the long press handler. Fixes #6
| Arduino | mit | kylegordon/homie-sonoff-touch |
894d1115acdc2dc20298bd9c2a46c4ca7b9ad41a | send/send.ino | send/send.ino | //**************************************************************************
//------- Laboratorio de Biomecatronica @ Universidade de Sao Paulo --------
//
// Version: 1.0
// Date: 15.06.2017 [mm.dd.yyyy]
// Description
// CAN Communication between Arduino and EPOS2 for Exoskeleton Control
// Input files:
// (None)
/... | //**************************************************************************
//------- Laboratorio de Biomecatronica @ Universidade de Sao Paulo --------
//
// Version: 1.0
// Date: 15.06.2017 [mm.dd.yyyy]
// Description
// CAN Communication between Arduino and EPOS2 for Exoskeleton Control
// Input files:
// (None)
/... | Update send.ino | Update send.ino | Arduino | mit | biopmr/ModExo,biopmr/ModExo |
e12dc9b15be35c37aa550aa785fe7ac9dc601d72 | MainStation/MainStation.ino | MainStation/MainStation.ino | //
// Display Temp
//
// Use Library from :
// Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified
// Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor
// LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
// Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso... | //
// Display Temp
//
// Use Library from :
// Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified
// Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor
// LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
// Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso... | Add Watchdog | Add Watchdog
| Arduino | mit | totothekiller/weather-station,totothekiller/weather-station |
582962b049ac95cc40df733ebea73930ae8edcda | dee-oh-tee.ino | dee-oh-tee.ino | /**
* A simple sketch for drawing fun shapes with a laser that's attached to a pan/tilt
* servo. (Cat not included.)
*
* This sketch is designed for the Trinket microcontroller, which is Arduino-compatible
* and made by Adafruit. It should be easily portable to any Arduino platform.
*
* This type of servo work... | /**
* A simple sketch for drawing fun shapes with a laser that's attached to a pan/tilt
* servo. (Cat not included.)
*
* This sketch is designed for the Trinket microcontroller, which is Arduino-compatible
* and made by Adafruit. It should be easily portable to any Arduino platform.
*
* This type of servo work... | Fix reference to defunct constant | Fix reference to defunct constant
| Arduino | apache-2.0 | acj/dee-oh-tee |
14a1cd25fdc50a293bc90a3ad62f1b43d5c67b75 | examples/HelloWorld_ESP/HelloWorld_ESP.ino | examples/HelloWorld_ESP/HelloWorld_ESP.ino | /** Bare minimum example sketch for MP3 player.
*
* Simply plays all tracks in a loop.
*
* @author James Sleeman, http://sparks.gogo.co.nz/
* @license MIT License
* @file
*/
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <JQ6500_Serial.h>
// Create the mp3 module object,
// Arduino Pin 8 is co... | /** Bare minimum example sketch for MP3 player.
*
* Simply plays all tracks in a loop.
*
* @author James Sleeman, http://sparks.gogo.co.nz/
* @license MIT License
* @file
*/
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <JQ6500_Serial.h>
// Create the mp3 module object,
// Arduino Pin 8 is co... | Fix HelloWorld_ESP.ino | Fix HelloWorld_ESP.ino
Since [version 6.2.0 of SoftwareSerial for ESP8266](https://github.com/plerup/espsoftwareserial/releases/tag/6.2.0) (or earlier, I couldn't pinpoint it), the `begin()` method has four arguments: baud rate, configuration (no. of bits, parity and stop bits), rxPin and txPin. So the right way to co... | Arduino | mit | sleemanj/JQ6500_Serial |
904fa850472ae2cee17d05a8c9454f825d4bca53 | statusbot.ino | statusbot.ino | #include "application.h"
#include "LiquidCrystal/LiquidCrystal.h"
// Colors
#define RGB_COLOR_RED 0xFF0000ul
#define RGB_COLOR_GREEN 0x00FF00ul
#define RGB_COLOR_BLUE 0x0000FFul
#define RGB_COLOR_YELLOW 0xFFFF00ul
#define RGB_COLOR_CYAN 0x00FFFFul
#define RGB_COLOR_MAGENTA 0xFF00FFul
#define RGB_COLOR_WHI... | #include "application.h"
#include "LiquidCrystal/LiquidCrystal.h"
// Colors
#define RGB_COLOR_RED 0xFF0000ul
#define RGB_COLOR_GREEN 0x00FF00ul
#define RGB_COLOR_BLUE 0x0000FFul
#define RGB_COLOR_YELLOW 0xFFFF00ul
#define RGB_COLOR_CYAN 0x00FFFFul
#define RGB_COLOR_MAGENTA 0xFF00FFul
#define RGB_COLOR_WHI... | Set the cursor for the first line of the welcome message | Set the cursor for the first line of the welcome message | Arduino | mit | wizarddevelopment/statusbot |
391cfbf00153f24b9e44d7761d76d5795e387044 | Arduino/vj-flight-controller/vj-flight-controller.ino | Arduino/vj-flight-controller/vj-flight-controller.ino | // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// ... | // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// ... | Read all available commands. | [Arduino] Read all available commands.
Signed-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>
| Arduino | mit | j-be/vj-flight-controller,j-be/vj-flight-controller,j-be/vj-flight-controller |
59242defd641a4d1c8ff650c2f476889c42b6cbb | volvo_hid.ino | volvo_hid.ino | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | Fix typo | Fix typo
| Arduino | mit | laurynas/volvo_hid |
5f2dedcd9d4269d40a18370f17ed38d8c7cf5a42 | main/main.ino | main/main.ino | #include <mcp_can.h>
#include <mcp_can_dfs.h>
#include <global.h>
#include <LiquidCrystal.h>
#include <math.h>
//RS,EN,DB4,DB5,DB6,DB7
LiquidCrystal lcd(14, 3, 4, 5, 6, 7);
int brightness = 255;
byte fill1[8] = {
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000
};
byte fill2[8] = {
... | #include <mcp_can.h>
#include <mcp_can_dfs.h>
#include <global.h>
#include <LiquidCrystal.h>
#include <math.h>
//RS,EN,DB4,DB5,DB6,DB7
LiquidCrystal lcd(14, 3, 4, 5, 6, 7);
int brightness = 255;
byte fill1[8] = {
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000,
B10000
};
byte fill2[8] = {
... | add can values | add can values
| Arduino | apache-2.0 | srenner/meguinauge |
bcb4f26ba0787be15477eea3068b41b8d6cad2e9 | Arduino/AlphaChairArduino/AlphaChairArduino.ino | Arduino/AlphaChairArduino/AlphaChairArduino.ino | #include <SoftwareSerial.h>
#include <Thread.h>
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
// Mosfet
int MOSFET_C1 = 6;
int MOSFET_C2 = 7;
// UNO board
int INB = 8;
... | #include <SoftwareSerial.h>
#include <Thread.h>
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
// Mosfet channel
int MOSFET_C1 = 10;
int MOSFET_C2 = 7;
// UNO board
int I... | refactor temperature part (arduino) | refactor temperature part (arduino)
| Arduino | apache-2.0 | quki/AlphaChair |
bd6f02d3f0370f5a65bbdee56e205e8c82c394c8 | libraries/BLE/examples/ble_uart_project_with_dfu_template/bootloader_setup.ino | libraries/BLE/examples/ble_uart_project_with_dfu_template/bootloader_setup.ino | #include <avr/wdt.h>
#include "bootloader_setup.h"
/* This variable is put in .noinit which means it is not initialized
* to zero during startup.
*/
uint16_t boot_key __attribute__ ((section (".noinit")));
/* Calculate CRC16 */
static uint16_t crc_16_ccitt(uint16_t crc, uint8_t * data_in, uint16_t len)
{
uint16_t... | #include <avr/wdt.h>
#include "bootloader_setup.h"
/* This variable is put in .noinit which means it is not initialized
* to zero during startup.
*/
uint16_t boot_key __attribute__ ((section (".noinit")));
/* Calculate CRC16 */
static uint16_t crc_16_ccitt(uint16_t crc, uint8_t * data_in, uint16_t len)
{
uint16_t... | Add 'valid_app' flag to EEPROM so we don't load application if it's invalid | Add 'valid_app' flag to EEPROM so we don't load application if it's invalid
| Arduino | mit | Cheong2K/ble-sdk-arduino,pi19404/ble-sdk-arduino,Cheong2K/ble-sdk-arduino,NordicSemiconductor/ble-sdk-arduino,NordicSemiconductor/ble-sdk-arduino,Cheong2K/ble-sdk-arduino,NordicSemiconductor/ble-sdk-arduino,pi19404/ble-sdk-arduino,pi19404/ble-sdk-arduino,Cheong2K/ble-sdk-arduino,NordicSemiconductor/ble-sdk-arduino,pi19... |
376e1478fea60c6830d56021af7592e083ffbc31 | example/GPRS_LoopHandle/GPRS_LoopHandle.ino | example/GPRS_LoopHandle/GPRS_LoopHandle.ino | /*
Sketch: GPRS Loop Handle
Function: This sketch is used to test seeeduino GPRS's call answering and reading
SMS function.to make it work, you should insert SIM card to Seeeduino GPRS and
replace the phoneNumber,enjoy it!
*********************************************************************************
note: the fol... | /*
Sketch: GPRS Loop Handle
Function: This sketch is used to test seeeduino GPRS's call answering and reading
SMS function.to make it work, you should insert SIM card to Seeeduino GPRS and
replace the phoneNumber,enjoy it!
*********************************************************************************
note: the fol... | Update GPRS_LoopHandle.ino | Update GPRS_LoopHandle.ino | Arduino | mit | Seeed-Studio/Seeeduino_GPRS |
f985c4b318b0742310b83ad72204896d971b03c6 | examples/IRrecvDumpV2/IRrecvDumpV2.ino | examples/IRrecvDumpV2/IRrecvDumpV2.ino | //------------------------------------------------------------------------------
// Include the IRremote library header
//
#include <IRremote.h>
//------------------------------------------------------------------------------
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
//
int recvPin ... | //------------------------------------------------------------------------------
// Include the IRremote library header
//
#include <IRremote.h>
//------------------------------------------------------------------------------
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
//
int recvPin ... | Update IRrecvDumpV2.ino | Update IRrecvDumpV2.ino
- Cleaned up layout of output, removed trailing commas
- buffer sizes are now correct
- no need to add 0 for space at end, as sendRAW takes care of this | Arduino | lgpl-2.1 | MadGarra/Arduino-IRremote,z3t0/Arduino-IRremote,ivankravets/Arduino-IRremote,PaoloP74/Arduino-IRremote,pcoughlin/Arduino-IRremote,Seeed-Studio/IRSendRev,YodaR10/Arduino-IRremote,cedar-renjun/Arduino-IRremote,pcoughlin/Arduino-IRremote,hafo821/Arduino-IRremote,liamog/Arduino-IRremote,Informatic/Arduino-IRremote,PaoloP74... |
9977bbffb998230b2ded806eb02f9e81daba9f8e | Arduino/ADXL335/ADXL335.ino | Arduino/ADXL335/ADXL335.ino | int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
int zpin = A3;
int ypin = A4;
int xpin = A5;
void setup() {
Serial.begin(9600);
pinMode(vinpin, OUTPUT); digitalWrite(vinpin, HIGH);
pinMode(gndpin, OUTPUT); digitalWrite(gndpin, LOW);
pinMode(voutpin, INPUT);
pinMode(xpin, INPUT);
pinMode(ypin, INPUT);
... | int zpin = A3;
int ypin = A4;
int xpin = A5;
// Uncomment the following lines if you're using an ADXL335 on an
// Adafruit breakout board (https://www.adafruit.com/products/163)
// and want to plug it directly into (and power it from) the analog
// input pins of your Arduino board.
//int vinpin = A0;
//int voutpin = A... | Comment out power pins in ADXL example code. | Comment out power pins in ADXL example code.
With a note that you should uncomment them if you want to power the
ADXL335 (on Adafruit breakout) by plugging it directly into the Arduino.
| Arduino | bsd-3-clause | damellis/ESP,damellis/ESP |
a9d3de9c49f99052e63374dd7c9975ded3a5fe66 | Dremelfuge.ino | Dremelfuge.ino | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
*/
#include <LiquidCrystal.h> // include the library code for display
// because it's a file inside of the Arduino.... | Change name of variable keeping track of whether initial, do-only-once instructions were already called--to make it more readable. Also move true assignment to inside that conditional block. | Change name of variable keeping track of whether initial, do-only-once instructions were already called--to make it more readable. Also move true assignment to inside that conditional block.
| Arduino | mit | karinassuni/dremelfuge |
42ac39ac9409f82fe53aa6bbd3c9b11975e64980 | sensorSlave/sensorSlave.ino | sensorSlave/sensorSlave.ino | #include <Wire.h>
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
//#define LOG_SERIAL
//TODO
//
// store read frequency in EEPROM
// write read frequency via I2C
// read frequency via I2C
const int sensorPins[][2] = {
{
A0,4 }
,{
A1,3 }
,{
A2,2 }
,{
A3,1 ... | #include <Wire.h>
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
//#define LOG_SERIAL
#define HARDCODEDADRESS 8
//TODO
//
// store read frequency in EEPROM
// write read frequency via I2C
// read frequency via I2C
const int sensorPins[][2] = {
{
A0,4 }
,{
A1,3 }
,{
A2,2 ... | Add temp option for hardcoded adress | Add temp option for hardcoded adress
| Arduino | apache-2.0 | yopzolo/ArduinoI2CMoistureSensor |
dde29687c2fa5e1727d89bd580719f6bb8df25ec | examples/rfid_default_keys/rfid_default_keys.ino | examples/rfid_default_keys/rfid_default_keys.ino | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | Update rfid_default_keys.ino | Update rfid_default_keys.ino
Added new pin layout info; standardizing format and info | Arduino | unlicense | CapeSepias/rfid,miguelbalboa/rfid,Rotzbua/rfid,mangine/mraa_MFRC522,Rotzbua/rfid,hramrach/rfid,northDacoder/rfid,juantejedavz/rfid,prikevs/rfid,sophiekovalevsky/rfid,mirko314/rfid,tamchau2809/rfid,smallkid/rfid,irhastofa/rfid,r44947/rfid,webdevbrian/rfid,LaloHao/rfid,1upon0/rfid,yaalsn/rfid,lpr0lpd/rfid |
43209541ee13409c53303eab5dba484f3e00c3d7 | examples/ChangeUID/ChangeUID.ino | examples/ChangeUID/ChangeUID.ino | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | Update ChangeUID.ino | Update ChangeUID.ino
Added new pin layout info; standardizing format and info | Arduino | unlicense | juantejedavz/rfid,mirko314/rfid,tamchau2809/rfid,sophiekovalevsky/rfid,LaloHao/rfid,r44947/rfid,irhastofa/rfid,mangine/mraa_MFRC522,1upon0/rfid,CapeSepias/rfid,webdevbrian/rfid,prikevs/rfid,northDacoder/rfid,hramrach/rfid,lpr0lpd/rfid,Rotzbua/rfid,yaalsn/rfid,smallkid/rfid,Rotzbua/rfid,miguelbalboa/rfid |
1f13085dae9cfb397e49dd76971c883207019c7b | spark-Web-Tinker.ino | spark-Web-Tinker.ino | // This #include statement was automatically added by the Spark IDE.
#include "http_parser.h"
#include "HttpResponse.h"
#include "HttpRequest.h"
#include "slre.h"
#include <map>
#include <list>
#include "SparkTime.h"
UDP UDPClient;
SparkTime rtc;
unsigned long currentTime;
unsigned long lastTime = 0UL;
String timeSt... | // This #include statement was automatically added by the Spark IDE.
#include "http_parser.h"
#include "HttpResponse.h"
#include "HttpRequest.h"
#include "slre.h"
#include <map>
#include <list>
#include "SparkTime.h"
UDP UDPClient;
SparkTime rtc;
unsigned long currentTime;
unsigned long lastTime = 0UL;
String timeSt... | Update spark-Web-Tinker.ino | Update spark-Web-Tinker.ino
Added NTP Client,
Added Timestamp in json (dig/ana) states. | Arduino | agpl-3.0 | 0ddie/sparkcore-local-http-server-rest-json,captainigloo/sparkcore-local-http-server-rest-json,captainigloo/sparkcore-local-http-server-rest-json,0ddie/sparkcore-local-http-server-rest-json |
77c61178387d5664d3f34be3a278852161c58b54 | src/Full_decoder.ino | src/Full_decoder.ino | /*
If serial output is desired uncommment the #undef line. For production, i.e.
without computer connected this line should be commented out.
*/
#define DEBUG_OUTPUT
//#undef DEBUG_OUTPUT
#ifdef DEBUG_OUTPUT
#define USE_SERIAL
#define DEBUG(x) Serial.print(x)
#define DEBUGLN(x) Serial.println(x)
#else
#define DEBUG(x... | /*
If serial output is desired uncommment the #undef line. For production, i.e.
without computer connected this line should be commented out.
*/
#define DEBUG_OUTPUT
//#undef DEBUG_OUTPUT
#ifdef DEBUG_OUTPUT
#define USE_SERIAL
#define DEBUG(x) Serial.print(x)
#define DEBUGLN(x) Serial.println(x)
#else
#define DEBUG(x... | Fix serial initialisation, solving all detections problems | Fix serial initialisation, solving all detections problems
| Arduino | mit | dirkjankrijnders/universal_decoder,dirkjankrijnders/universal_decoder |
2db2b9c6baf48e17fd06d93097d3d41f6bcad0e0 | buttonPress/buttonPress.ino | buttonPress/buttonPress.ino | int inPin = 7; // the pin number for input (for me a push button)
int ledPin = 13;
int current; // Current state of the button
// (LOW is pressed b/c i'm using the pullup resistors)
long millis_held; // How long the button was held (milliseconds)
long secs_held; // How long the b... | #include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
int inPin = 7; // the pin number for input (for me a push button)
int ledPin = 13;
int current; // Current state of the button
// (LOW is pressed b/c i'm using the pullup resistors)
long millis_held; // How long the button was hel... | add radio send code | add radio send code
| Arduino | mit | SebastianFlo/party-button |
f8d3963d20c41bb6cb4575e52ac8f2a94b6bdb4b | bytewise_tx/bytewise_tx.ino | bytewise_tx/bytewise_tx.ino | #include <SPI.h>
#define PACKET_BODY_LENGTH 2
bool transmitMany = false;
int bytesSent = 0;
int CHIPSELECT = 16;
int incomingByte = 0;
uint16_t echo[PACKET_BODY_LENGTH] = {0x0, 0xbbbb};
uint16_t stat[PACKET_BODY_LENGTH] = {0x1, 0xaaaa};
uint16_t idle_[PACKET_BODY_LENGTH] = {0x2, 0xcccc};
uint16_t shutdown_[PACKET_BODY_... | #include <SPI.h>
#define PACKET_BODY_LENGTH 2
bool transmitMany = false;
int bytesSent = 0;
int CHIPSELECT = 16;
int incomingByte = 0;
uint16_t echo[PACKET_BODY_LENGTH] = {0x0, 0xbbbb};
uint16_t stat[PACKET_BODY_LENGTH] = {0x1, 0xaaaa};
uint16_t idle_[PACKET_BODY_LENGTH] = {0x2, 0xcccc};
uint16_t shutdown_[PACKET_BODY_... | Update tx read | Update tx read
| Arduino | mit | stanford-ssi/satellites-teensyMasterSlave,stanford-ssi/satellites-teensyMasterSlave,stanford-ssi/satellites-teensyMasterSlave,stanford-ssi/satellites-teensyMasterSlave |
02d8a7efba8ea5a550bcd97343339a81d4940032 | examples/esp8266_lib_test/esp8266_lib_test.ino | examples/esp8266_lib_test/esp8266_lib_test.ino | #define ESP8266_SW_RX 9
#define ESP8266_SW_TX 8
#include "esp8266_lib.h"
SoftwareSerial swSerial(8,9);
Esp8266 esp8266(&swSerial);
const char mySSID[] = "tzuming";
const char myPSK[] = "5102991912";
const char server[] = "example.com";
const char httpRequest[] = "GET / HTTP/1.1\r\n"
... | #define ESP8266_SW_RX 9
#define ESP8266_SW_TX 8
#include "esp8266_lib.h"
SoftwareSerial swSerial(8,9);
Esp8266 esp8266(&swSerial);
const char mySSID[] = "xzy_123";
const char myPSK[] = "111222333444";
const char server[] = "example.com";
const char httpRequest[] = "GET / HTTP/1.1\r\n"
... | change ssid before pushing out. | change ssid before pushing out.
| Arduino | mit | monkey-jsun/arduino-esp8266-atcmd,monkey-jsun/arduino-esp8266-atcmd |
52245cc866d179026d2d53851612286bc31198bb | CoreIR.ino | CoreIR.ino | //****CONFIGURATION OPTIONS****
//change transponder ID # by setting a different transponder number
//available values are 1-6
//****CONFIGURATION END****
/*
*
* I-lap "transponder" compatible IR transmitter for RC timing system
*
* Type in a 7-digit ID and an alternate ID into the define fields before compiling.
* No... | /*
*
* I-lap "transponder" compatible IR transmitter for RC timing system
*
* Type in a 7-digit ID and an alternate ID into the define fields before compiling.
* Note that using non-random ID numbers will increase your chances of encountering
* another unit using the same ID.
*
* IDs starting with 0 and those with ma... | Remove some excess comments | Remove some excess comments
| Arduino | mit | slacker87/CoreIR,slacker87/CoreIR |
be924b11425e2de7109b29aee7369ee49f86de78 | SmartAlarmClock/SmartAlarmClock.ino | SmartAlarmClock/SmartAlarmClock.ino | // Smart Alarm Clock
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Released under an MIT license (http://opensource.org/licenses/MIT)
#include <TouchScreen.h>
#include <TFT.h>
#include <Process.h>
// Functionality:
// Sets alarm based on earliest event in google calendar.
// Refresh button forces an up... | // Smart Alarm Clock
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Released under an MIT license (http://opensource.org/licenses/MIT)
#include <TouchScreen.h>
#include <TFT.h>
#include <Process.h>
// Functionality:
// Sets alarm based on earliest event in google calendar.
// Refresh button forces an up... | Update SmartAlarmClock.ino | Update SmartAlarmClock.ino | Arduino | mit | punker76/SmartAlarmClock,tdicola/SmartAlarmClock |
8bf98e6d12f2410ec99736352884635b856529ee | build/shared/examples/WING_Analog/WING_Analog.ino | build/shared/examples/WING_Analog/WING_Analog.ino | /*
Gadget Factory
Analog Wing Example
Hardware:
This example circuit is wired for an Analog Wing connected to CH, to use with any of the other hardware click the link to modify the schematic to adjust for your hardware.
http://store.gadgetfactory.net/analog-grove-wing/
Special Application Notes:
The P... | /*
Gadget Factory
Analog Wing Example
Hardware:
This example circuit is wired for an Analog Wing connected to CH, to use with any of the other hardware click the link to modify the schematic to adjust for your hardware.
http://store.gadgetfactory.net/analog-grove-wing/
Special Application Notes:
The P... | Update Wing_Analog with common numbering | Update Wing_Analog with common numbering
| Arduino | lgpl-2.1 | rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab,rcook/DesignLab |
6b570a8b9433f10d8acd2c73f4ad0485ca3e0821 | WeatherThing.ino | WeatherThing.ino | #include "display.h"
#include "sensor.h"
#include <LiquidCrystal.h> // Arduino LCD library
#include <Arduino.h> // enables use of byte pics
void setup() {
LCD::setup();
Sensor::setup();
}
void loop() {
int temp = Sensor::readTemp();
LCD::displayTemp(temp);
delay(5000);
LCD::clearScreen();
}
| #include "display.h"
#include "sensor.h"
#include <LiquidCrystal.h> // Arduino LCD library
#include <Arduino.h> // enables use of byte pics
void setup() {
Display::setup();
Sensor::setup();
}
void loop() {
int temp = Sensor::readTemp();
int hum = Sensor::readHum();
Display::displayTemp(temp);
Display::d... | Update lcd to display and add loop functionality | Update lcd to display and add loop functionality | Arduino | mit | satelliteworkshops/arduino-workshop,satelliteworkshops/arduino-workshop,satelliteworkshops/arduino-workshop |
08eaf71fd3bbaa72314a76cf85539ffa03faf916 | esp8266/trigger/trigger.ino | esp8266/trigger/trigger.ino | /***************************************************
Adafruit IO Trigger Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board:
----> https://www.adafruit.com/product/2471
Adafruit invests time and resources providing this open source code... | /***************************************************
Adafruit IO Trigger Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board:
----> https://www.adafruit.com/product/2471
Adafruit invests time and resources providing this open source code... | add function prototypes (now req'd for esp8266) | add function prototypes (now req'd for esp8266)
| Arduino | mit | adafruit/adafruit-io-basics,adafruit/adafruit-io-basics |
2a89e3642a65e6f4caf503549693144fb47c23d0 | Examples/recover/recover.ino | Examples/recover/recover.ino | /*
* recover - recover from forgotten serial settings
*
* Uses cmdMode2 to set the HC05 to 19200 baud, no parity, ones stop bit
* (19200N1). 19200N1 is supported by both the hardware and software
* serial ports on the Arduino.
*
* Debugging is enabled, so if you open the 'Serial Monitor' you can see
* the proce... | /*
* recover - recover from forgotten serial settings
*
* Uses cmdMode2 to set the HC05 to 19200 baud, no parity, ones stop bit
* (19200N1). 19200N1 is supported by both the hardware and software
* serial ports on the Arduino.
*
* Debugging is enabled, so if you open the 'Serial Monitor' you can see
* the proce... | Add a startup message | Add a startup message
On branch parityAndStopBits
modified: Examples/recover/recover.ino
| Arduino | mit | jdunmire/HC05 |
93ab19c68714864274d23c4c5215be02351375e7 | main/main.ino | main/main.ino | /*
ZoomMRT-3B_MIDI_USB
Created: 13/3/2017
Author: HyDz
USB Midified ZoomMRT-3B for Traktor
*/
#define MidiChannel 2 // channel 3 (channel 1 has value 0)
#include "MIDIUSB.h"
void controlChange(byte channel, byte control, byte value) {
midiEventPacket_t event = {0x0B, 0xB0 | channel, control, value};
... | /*
ZoomMRT-3B_MIDI_USB
Created: 13/3/2017
Author: HyDz
USB Midified ZoomMRT-3B for Traktor
*/
#define MidiChannel 2 // channel 3 (channel 1 has value 0)
#include "MIDIUSB.h"
void controlChange(byte channel, byte control, byte value) {
midiEventPacket_t event = {0x0B, 0xB0 | channel, control, value};
... | Update main.ino | Update main.ino | Arduino | mit | HyDz/ZoomMRT-3B_MIDI_USB |
e3fda0f331dcd146c2025f201f21df3b70d1ef81 | arduino/OpenROV/OpenROV.ino | arduino/OpenROV/OpenROV.ino | #include <Servo.h>
#include <Arduino.h>
#include "Motors.h"
#include "Command.h"
#include "Device.h"
#include "Timer.h"
Motors motors(9, 10, 11);
Command cmd;
Device vout("vout", 0, vout.analog, vout.in);
Device light("light", 5, light.analog, light.out);
Timer time;
Servo tilt;
// IMPORTANT!
// array[0] will be the ... | #include <Servo.h>
#include <Arduino.h>
#include "Motors.h"
#include "Command.h"
#include "Device.h"
#include "Timer.h"
Motors motors(9, 10, 11);
Command cmd;
Device vout("vout", 0, vout.analog, vout.in);
Device iout("iout", 3, iout.analog, iout.in);
Device light("light", 5, light.analog, light.out);
Timer time;
Serv... | Update arduino/OpenROV/OpenROV.ino | Update arduino/OpenROV/OpenROV.ino
add sensor support for cape current - iout | Arduino | mit | ZonaElka/testOpenROV,bmvakili/openrov-software,MysteriousChanger/burrito-cockpid,codewithpassion/openrov-software,LeeCheongAh/openrov-software,MysteriousChanger/burrito-cockpid,ChangerR/burrito-cockpid,bmvakili/openrov-software,ZonaElka/testOpenROV,BrianAdams/openrov-software,codewithpassion/openrov-software,ChangerR/b... |
7ddab16e9add1cbca307f114bf00d9c7ea5d64cf | code/lissajous/lissajous.ino | code/lissajous/lissajous.ino | // This is based on Sweep
// by BARRAGAN <http://barraganstudio.com>
#include <Servo.h>
// Create the servo objects
Servo servox;
Servo servoy;
double pos = 0; // Position incrementer
float spd = 0.005; // This value seems to work for reasonable speed.
float facter; // Ratio between servox and servoy periods.
flo... | // This is based on Sweep
// by BARRAGAN <http://barraganstudio.com>
#include <Servo.h>
// Create the servo objects
Servo servox;
Servo servoy;
double pos = 0; // Position incrementer
float spd = 0.005; // This value seems to work for reasonable speed.
float facter; // Ratio between servox and servoy periods.
flo... | Clean up code and remove jupyter integration | Clean up code and remove jupyter integration
| Arduino | mit | jbeyers/lissajous,jbeyers/lissajous,jbeyers/lissajous |
cda103cabfb760dbaffb1d1f886d9a498e889f20 | arduino/balcony_garden/balcony_garden.ino | arduino/balcony_garden/balcony_garden.ino | // Author: Brian Scully
// Copyright (c) 2016 Agponics
#include <Arduino.h>
#include "cmd_protocol.h"
#include "base_device.h"
#include "relay_switch.h"
#include "dht22_sensor.h"
#include "ds18b20_sensor.h"
#define DELAY 500
#define START_PIN_RELAY_SWTCHS 2 // pin 2: main kill switch
... | // Author: Brian Scully
// Copyright (c) 2016 Agponics
#include <Arduino.h>
#include "cmd_protocol.h"
#include "base_device.h"
#include "analog_float_switch.h"
#include "relay_switch.h"
#include "dht22_sensor.h"
#include "ds18b20_sensor.h"
#define DELAY 500
#define START_PIN_FLOAT_SWTCH 0 // pin 0: analog float sw... | add analog float switch reporting | add analog float switch reporting
| Arduino | artistic-2.0 | Agponics/balcony_garden_pi |
65ef6e817746c361d8167abe2a14117fabb88396 | examples/text4Directions/text4Directions.ino | examples/text4Directions/text4Directions.ino | // Draw Texts in the four directions of the TFT by Frankie.Chu
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later v... | // Draw Texts in the four directions of the TFT by Frankie.Chu
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later v... | Update text4Directions.ino | Update text4Directions.ino | Arduino | mit | jediguy13/TFT_Touch_Shield_V1,jediguy13/TFT_Touch_Shield_V1 |
18d87f757db7d410f4585becd19cc55fee7bc51a | source/Arduino_32u4_Code/Arduino_32u4_Code.ino | source/Arduino_32u4_Code/Arduino_32u4_Code.ino | /*
* ESPloitV2
* WiFi controlled HID Keyboard Emulator
* By Corey Harding of www.Exploit.Agency / www.LegacySecurityGroup.com
* Special thanks to minkione for helping port/test original V1 code to the Cactus Micro rev2
* ESPloit is distributed under the MIT License. The license and copyright notice can not be remo... | /*
* ESPloitV2
* WiFi controlled HID Keyboard Emulator
* By Corey Harding of www.Exploit.Agency / www.LegacySecurityGroup.com
* Special thanks to minkione for helping port/test original V1 code to the Cactus Micro rev2
* ESPloit is distributed under the MIT License. The license and copyright notice can not be remo... | Improve Speed | Improve Speed
| Arduino | mit | exploitagency/ESPloitV2,exploitagency/ESPloitV2,exploitagency/ESPloitV2 |
dc80a3b186759c61dd60aeedc2db7a44a9b0fec2 | engine-room/engine_arduino/engine_arduino.ino | engine-room/engine_arduino/engine_arduino.ino | #include <PololuLedStrip.h>
#include <LiquidCrystal.h>
#define STRIP_LENGTH 41
#define GRIDSIZE 7
#define DEBUG_FLAG true
#define USE_SERIAL true
// GRB color order...
#define RED rgb_color(0, 255, 0)
#define GREEN rgb_color(255, 0, 0)
#define BLUE rgb_color(0, 0, 255)
#define YELLOW rgb_color(255, 255, 0)
#define ... | #include <PololuLedStrip.h>
#include <LiquidCrystal.h>
#define STRIP_LENGTH 41
#define GRIDSIZE 7
#define DEBUG_FLAG true
#define USE_SERIAL true
// GRB color order...
#define RED rgb_color(0, 255, 0)
#define GREEN rgb_color(255, 0, 0)
#define BLUE rgb_color(0, 0, 255)
#define YELLOW rgb_color(255, 255, 0)
#define ... | prepare for merge | prepare for merge
| Arduino | mit | bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne |
c81869de40e7ec3becbe8c4911328e6c1355fffd | examples/UbidotsGetValue/UbidotsGetValue.ino | examples/UbidotsGetValue/UbidotsGetValue.ino | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define US... | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define US... | Update UbidotsGetValue.ino | Update UbidotsGetValue.ino | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
f933185ab2820393b101616134bc21fdc02d58d9 | main.ino | main.ino | #include "SI1145.h"
#include "HDC1000.h"
#include "HttpClient.h"
SI1145 uvIndex = SI1145();
HDC1000 tempSensor = HDC1000();
float temperature;
float humidity;
int uv;
int ir;
int visible;
int solarVoltage;
int batteryVoltage;
bool daytime;
typedef enum {
STATE_PROGRAM = 0,
STATE_BOOT,
STATE_WIFI_CONNECTING,
... | #include "SI1145.h"
#include "HDC1000.h"
#include "HttpClient.h"
SI1145 uvIndex = SI1145();
HDC1000 tempSensor = HDC1000();
float temperature;
float humidity;
int uv;
int ir;
int visible;
float solarVoltage;
float batteryVoltage;
bool daytime;
typedef enum {
STATE_PROGRAM = 0,
STATE_BOOT,
STATE_WIFI_CONNECTING... | convert all voltage values to floats | convert all voltage values to floats
| Arduino | mit | xtralean/solar-weather-station |
db475c9effc1561c5e0301f3f2f4c51ea5a6908d | njmakerday_20160318/temperature_humidity.ino | njmakerday_20160318/temperature_humidity.ino | #include "Arduino.h"
#include "Adafruit_HDC1000.h"
#include <Wire.h>
Adafruit_HDC1000 hdc = Adafruit_HDC1000();
const int hdc_sda = 14;
const int hdc_scl = 2;
float currentTempC = 0.00;
float currentTempF = 32.00;
void drawTempGraph() {
String out = "";
char temp[100];
out += "<svg xmlns=\"http://www.w3.org/20... | #include "Arduino.h"
#include "Adafruit_HDC1000.h"
#include <Wire.h>
Adafruit_HDC1000 hdc = Adafruit_HDC1000();
const int hdc_sda = 14;
const int hdc_scl = 2;
float currentTempC = 0.00;
float currentTempF = 32.00;
void drawTempGraph() {
String out = "";
char temp[100];
out += "<svg xmlns=\"http://www.w3.org/20... | Add Humidity Graphing | Add Humidity Graphing
| Arduino | mit | ProfeC/arduino,ProfeC/arduino,ProfeC/arduino,ProfeC/arduino |
8d680f301fbef4944f491ddc6f2dfb22781454d8 | GatesPuzzle/GatesPuzzle.ino | GatesPuzzle/GatesPuzzle.ino | /**
*
* BEST 2013 Logic Gate Puzzle Display
*
*
* Austin Reuland
* Westwood Robotics
*/
//Button Input Pins
int btnPins[10] = {2,3,4,5,6,7,8,9,10,11};
//LED Output Pins
int ledPins[8] = {12,13,A0,A1,A2,A3,A4,A5};
//Button States (True/1, False/0)
int btnStates[10];
//Button Value Groups
int btnSets[3] = {0,0,0... | /**
*
* BEST 2013 Logic Gate Puzzle Display
*
*
* Austin Reuland
* Westwood Robotics
*/
//Button Input Pins
int btnPins[10] = {2,3,4,5,6,7,8,9,10,11};
//LED Output Pins
int ledPins[8] = {12,13,A0,A1,A2,A3,A4,A5};
//Button States (True/1, False/0)
int btnStates[10];
//Button Value Groups
int btnSets[3] = {0,0,0... | Remove Serial Setup | Remove Serial Setup
Fixed Parentheses and Commented Out Serial Setup | Arduino | mit | WestwoodRobotics/BEST-2013,WestwoodRobotics/BEST-2013 |
0f4e8f00d7d22fd43eeb9aba01426f66052a026f | ChickenDoorController/ChickenDoorController.ino | ChickenDoorController/ChickenDoorController.ino | /*
Name: ChickenDoorController.ino
Created: 4/3/2017 9:16:16 PM
Author: Chris Uthe
GitHub: https://github.com/chrisuthe/CoopDoor
*/
#include <math.h>
#include <Dusk2Dawn.h>
#include <EEPROM.h>
#include <Wire.h>
//#include <OneWire.h>
//#include <DallasTemperature.h>
#include "RTClib.h"
//Define what pins thi... | /*
Name: ChickenDoorController.ino
Created: 4/3/2017 9:16:16 PM
Author: Chris Uthe
GitHub: https://github.com/chrisuthe/CoopDoor
*/
#include <math.h>
#include <Dusk2Dawn.h>
#include <EEPROM.h>
#include <Wire.h>
//#include <OneWire.h>
//#include <DallasTemperature.h>
#include "RTClib.h"
//Define what pins thi... | Update ChickenDoorController.ino | Update ChickenDoorController.ino
Format Debug statements
| Arduino | mit | chrisuthe/CoopDoor,chrisuthe/CoopDoor |
a31bb82226fe7b062a924c2ea3ed2d6dca590714 | testsuite/REV20Sensors/REV20Sensors.ino | testsuite/REV20Sensors/REV20Sensors.ino | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | Update REV20Sensors.ino | Update REV20Sensors.ino | Arduino | apache-2.0 | opentrv/OpenTRV-TRV2 |
a6f40f83a21aad739290bd9894d44b547d9f82cb | moteino/node_heater/node_heater.ino | moteino/node_heater/node_heater.ino | #include <RFM69.h>
#include <RFM69_ATC.h>
#include "LowPower.h"
#define DEBUG
#include "DebugUtils.h"
// Device
//#define FREQUENCY RF69_868MHZ
#define FREQUENCY RF69_915MHZ
#define ENCRYPT_KEY "0123456789abcdef" // 16 bytes
#define IS_RFM69HW
#define ENABLE_ATC // Auto Transmission Control
// Pins
#define L... | #include <RFM69.h>
#include <RFM69_ATC.h>
#include "LowPower.h"
#define DEBUG
#include "DebugUtils.h"
// Device
//#define FREQUENCY RF69_868MHZ
#define FREQUENCY RF69_915MHZ
#define ENCRYPT_KEY "0123456789abcdef" // 16 bytes
#define IS_RFM69HW
#define ENABLE_ATC // Auto Transmission Control
// Pins
#define L... | Add button press update | Add button press update
| Arduino | mit | yschua/heater-control,yschua/heater-control,yschua/heater-control,yschua/heater-control |
988cf74261742feb6a764cb35a022e7324c64158 | steppercontrol/steppercontrol.ino | steppercontrol/steppercontrol.ino | int motorPin = 9;
int switchPin = 7;
int motorStep = 0;
int maxStep = 200;
int minimumStepDelay = 2;
String motorState = String("off");
void makeStep() {
digitalWrite(motorPin, HIGH);
digitalWrite(motorPin, LOW);
motorStep += 1;
if (motorStep > maxStep) {
motorStep = 0;
}
}
void resetMotor() {
for (... | int enablePin = 4;
int MS1Pin = 5;
int MS2Pin = 6;
int MS3Pin = 7;
int resetPin = 9;
int sleepPin = 10;
int motorPin = 11;
int directionPin = 12;
int switchPin = 13;
// Stepping: Full, half, quarter, eigth, sixteenth
int[] stepping = {
B000,
B100,
B010,
B110,
B111
}
int motorStep = 0;
int maxStep = 200;
i... | Add correct pinout for all optional pins | Add correct pinout for all optional pins
| Arduino | mit | kirberich/3dscanner |
2ff9e3e6efa5c170f8a38fd16334b99509232f69 | Valokepakko.ino | Valokepakko.ino | #include <avr/pgmspace.h>
#include "image.h"
#include "math.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
const int LED_PIN = 6;
// We use the Memsic 2125 Dual-axis Accelerometer.
// Accelerometer pins:
const int ACCEL_X_PIN = 2;
const int ACCEL_Y_PIN = 3;
const int LEDS = 60;
/... | #include <avr/pgmspace.h>
#include "image.h"
#include "math.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
const int LED_PIN = 6;
// We use the Memsic 2125 Dual-axis Accelerometer.
// Accelerometer pins:
const int ACCEL_X_PIN = 2;
const int ACCEL_Y_PIN = 3;
const int LEDS = 60;
/... | Refactor color lookup to function | Refactor color lookup to function
| Arduino | mit | myrjola/Valokepakko,myrjola/Valokepakko,myrjola/Valokepakko |
82ad7fd169f2283f183c95e7ff073b66d417538e | examples/SodaqOne-TTN-Mapper-binary/SodaqOne-TTN-Mapper-binary.ino | examples/SodaqOne-TTN-Mapper-binary/SodaqOne-TTN-Mapper-binary.ino | /*
* Author: JP Meijers
* Date: 2016-09-02
*
* Transmit GPS coordinates via TTN. This happens as fast as possible, while still keeping to
* the 1% duty cycle rules enforced by the RN2483's built in LoRaWAN stack. Even though this is
* allowed by the radio regulations of the 868MHz band, the fair use policy of TTN... | /*
* Author: JP Meijers
* Date: 2016-09-02
*
* Transmit GPS coordinates via TTN. This happens as fast as possible, while still keeping to
* the 1% duty cycle rules enforced by the RN2483's built in LoRaWAN stack. Even though this is
* allowed by the radio regulations of the 868MHz band, the fair use policy of TTN... | Revert change * examples/SodaqOne-TTN-Mapper-binary/SodaqOne-TTN-Mapper-binary.ino: | Revert change
* examples/SodaqOne-TTN-Mapper-binary/SodaqOne-TTN-Mapper-binary.ino:
| Arduino | apache-2.0 | jpmeijers/RN2483-Arduino-Library |
d958e045232e5484736f1bf96bf7d60858f9a97d | Arduino/noise_multiplier/noise_multiplier.ino | Arduino/noise_multiplier/noise_multiplier.ino | #include "AES.h"
#define COLLECTING 0
#define CONDITIONING 1
AES128 aes128;
byte key[32] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F};
int state = COLLECTING;
void setup()
{
// Defining PB1 and PB2 as outputs by setting PORTB1 and PORTB2
... | #include "AES.h"
#define CHAIN_SIZE 2
#define BLOCK_SIZE 16
#define SAMPLE_SIZE BLOCK_SIZE * CHAIN_SIZE
AES128 aes128;
byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F};
byte sourcePool[SAMPLE_SIZE];
void setup()
{
// Defining PB1 ... | Add source pool | Add source pool
| Arduino | mit | robseward/Ziffer |
ba24535b661a6368d441f20a723958d3f108a4b3 | examples/FTDebouncer_demo/FTDebouncer_demo.ino | examples/FTDebouncer_demo/FTDebouncer_demo.ino | #if !defined(nullptr)
#define nullptr NULL
#endif
#include "FTDebouncer.h"
FTDebouncer pinDebouncer(30);
void setup(){
Serial.begin(57600);
pinDebouncer.addPin(2, HIGH, INPUT_PULLUP);
// NOTE:
// INPUT_PULLDOWN is only supported by some microcontrollers
//pinDebouncer.addPin(3, LOW, INPUT_PULLDOWN);
pinDebou... | #if !defined(nullptr)
#define nullptr NULL
#endif
#include "FTDebouncer.h"
FTDebouncer pinDebouncer(30);
void setup(){
Serial.begin(57600);
pinDebouncer.addPin(2, HIGH, INPUT_PULLUP);
// NOTE:
// INPUT_PULLDOWN is only supported by some microcontrollers
//pinDebouncer.addPin(3, LOW, INPUT_PULLDOWN);
pinDebou... | Use non-deprecated methos in demo | Use non-deprecated methos in demo
| Arduino | mit | ubidefeo/FTDebouncer |
322fef10234d6dfbe36e02e2591317859738c502 | arduino/PrometheusSensor.ino | arduino/PrometheusSensor.ino | /* DHTServer - ESP8266 Webserver with a DHT sensor as an input
Based on ESP8266Webserver, DHTexample, and BlinkWithoutDelay (thank you)
Version 1.0 5/3/2014 Version 1.0 Mike Barela for Adafruit Industries
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <DHT.h>
#define DHTTYPE DHT22
#define DHTP... |
/* DHTServer - ESP8266 Webserver with a DHT sensor as an input
Based on ESP8266Webserver, DHTexample, and BlinkWithoutDelay (thank you)
Version 1.0 5/3/2014 Version 1.0 Mike Barela for Adafruit Industries
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <DHT.h>
#include <Wire.h>
#include <Adaf... | Add bmp180 board | Add bmp180 board
| Arduino | apache-2.0 | z2amiller/snippets |
8253bc910c5437397b96a735c16535d90bc57c8c | Valokepakko.ino | Valokepakko.ino | #include <avr/pgmspace.h>
#include <math.h>
#include <Adafruit_NeoPixel.h>
#include "image.h"
#ifdef __AVR__
#include <avr/power.h>
#endif
/****************************************************/
/* Here you choose which kind of interface is used. */
/* */
/* TIMER Tim... | #include <avr/pgmspace.h>
#include <math.h>
#include <Adafruit_NeoPixel.h>
#include "image.h"
#ifdef __AVR__
#include <avr/power.h>
#endif
/****************************************************/
/* Here you choose which kind of interface is used. */
/* */
/* TIMER Tim... | Add grayshade falloff to black | Add grayshade falloff to black
| Arduino | mit | myrjola/Valokepakko,myrjola/Valokepakko,myrjola/Valokepakko |
892e0d37f2ba601f6a1c0187c246655c121e98f5 | esp4scratch/esp4scratch.ino | esp4scratch/esp4scratch.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <EEPROM.h>
#include <FS.h>
#include "WiFiConfServer.h"
#define BAUD 9600
#define LED 5
void setup() {
Serial.begin(BAUD);
if (!SPIFFS.begin()) {
Serial.println("Failed to mount file system")... | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <EEPROM.h>
#include <FS.h>
#include "WiFiConfServer.h"
#define BAUD 9600
#define LED 5
void setup() {
Serial.begin(BAUD);
if (!SPIFFS.begin()) {
Serial.println("Failed to mount file system")... | Fix to remove registered Scratch from other machine. | Fix to remove registered Scratch from other machine. | Arduino | mit | yokobond/scratch-wifi-board,yokobond/scratch-wifi-board |
ca5a61c6eba132d7e78731d0c5d18fbb3e9b996e | arduino/scetch/scetch.ino | arduino/scetch/scetch.ino | const byte powerPins[] = {53, 51, 49, 47, 45, 43, 41, 39};
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte powerLevel = 255;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte latchToEeMillis = 100;
c... | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte powerLevel = 50;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte latchToEeMillis = 100;
const byte eeToEmMillis = 100;
c... | Add power control | Add power control
| Arduino | mit | antego/laser_control |
722ecccb312c057a70bfa7dee1110205dad80d18 | arduino/sender/sender.ino | arduino/sender/sender.ino | /*
One PIR sensor detects motion at the bottom of the stairs: DOWN.
Another detects motion at the top of the stairs: UP.
Sends an RF message when one both sensors have been triggered,
indicating the direction of travel.
The message is sent multiple times to give it the best chance of getting through.
*/
#includ... | /*
One PIR sensor detects motion at the bottom of the stairs: DOWN.
Another detects motion at the top of the stairs: UP.
Sends an RF message when one both sensors have been triggered,
indicating the direction of travel.
The message is sent multiple times to give it the best chance of getting through.
*/
#includ... | Deal with two interupts setting each other off | Deal with two interupts setting each other off
| Arduino | mit | theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle |
9d9bc71b731d9f07804cfbeffc7d9cfa36ed10ad | arduino-makefile/examples/BaconDemo/BaconDemo.ino | arduino-makefile/examples/BaconDemo/BaconDemo.ino | //
// BaconDemo
//
// Copyright (c) 2013 Parav Nagarsheth
// Push Button Connected to P8_19, Digital Pin 7
int pushButton = 7;
void setup() {
// initialise digital pins as inputs
pinMode(pushButton, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
// read the inp... | //
// BaconDemo
//
// Copyright (c) 2013 Parav Nagarsheth
// Push Button Connected to P8_19, Digital Pin 7
int pushButton = 7;
int sliderPot = 20;
void setup() {
// initialise digital pins as inputs
pinMode(pushButton, INPUT);
}
// the loop routine runs over and over again forever:
void loop()... | Add analog example to BaconDemo | Add analog example to BaconDemo
The slider value is read and displayed on the console
| Arduino | lgpl-2.1 | bugobliterator/BUAGI,bugobliterator/BUAGI,prpplague/Userspace-Arduino,prpplague/Userspace-Arduino,bugobliterator/BUAGI,bugobliterator/BUAGI,prpplague/Userspace-Arduino,prpplague/Userspace-Arduino,bugobliterator/BUAGI,bugobliterator/BUAGI |
cd31523285dae8c1094855e250d302d208f7e44d | Kochen.ino | Kochen.ino | int kochzeit = 90;
int anzahlHopfengaben = 3;
int* hopfengaben=0;
int aktuelleHopfengabe=1;
State stateReachKochTemp = State(reachKochTemp);
State stateWaitKochDauer = State(prepareKochDauer,waitKochDauer,NULL);
FSM fsmKochProzess = FSM(stateReachKochTemp);
void enterKochzeit() {
encoderValue = encoder->getValue();... | int kochzeit = 90;
int anzahlHopfengaben = 3;
int* hopfengaben=0;
int aktuelleHopfengabe=1;
State stateReachKochTemp = State(reachKochTemp);
State stateWaitKochDauer = State(prepareKochDauer,waitKochDauer,NULL);
FSM fsmKochProzess = FSM(stateReachKochTemp);
void enterKochzeit() {
encoderValue = encoder->getValue();... | Update Kochen.ino | Update Kochen.ino
Timer ":" animiert | Arduino | mit | herbstmensch/BrewDuino,herbstmensch/BrewDuino |
14c165b7d1b7bd670af54b670024d1a1a671e51b | sketches/control/single_bench/single_bench.ino | sketches/control/single_bench/single_bench.ino | /**
* Control the BlinkMs for a single bench with one painting. Fire off
* the appropriate MaxMs at the correct intervals during the daily
* operational time.
*
* The MaxMs that actually control the light pattern for one group
* of LED clusters (Blasters) are preloaded with their light scripts.
* The MaxMs are c... | /**
* Control the BlinkMs for a single bench with one painting. Fire off
* the appropriate MaxMs at the correct intervals during the daily
* operational time.
*
* The MaxMs that actually control the light pattern for one group
* of LED clusters (Blasters) are preloaded with their light scripts.
* The MaxMs are c... | Change order of task initiation | Change order of task initiation
Control the initiation of the MAXM1 task from the OPER_TASK. The MAXM1
task already controls the initiation of the MAXM2 task.
Convert various magic values to constants and document.
| Arduino | mit | wmadill/grant-lighting,wmadill/grant-lighting |
4560a5ee666de126a14aa29629a90ca31495636c | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.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.o... | /*******************************************************************************
* 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.o... | add remote function | add remote function
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
451e80c35615b09bd81872feae5e90901bbb7938 | lcd_temperature_display.ino | lcd_temperature_display.ino | // vim: sw=2 ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <... | // vim: sw=2 ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <... | Add debugging to high_temp/low_temp updating | Add debugging to high_temp/low_temp updating
I sense this still isn't working right, so I want to keep
an eye on it...
| Arduino | mit | rtucker/lcd_temperature_display |
1352d5be62190e69afc7084f8e61c77251c43c7c | example/mpxv6115v.ino | example/mpxv6115v.ino | #include "MPXV6115V.h"
#include "DRV8833.h"
#include "Arduino.h"
#include "EEPROM.h"
#include "MAX7219.h"
//************************************************NESNE ATAMALARI***********************************************************
LedControl lc=LedControl(12,11,10,4); //MAX7219 segment pin ve nesne atamaları
DRV8833... | #include "MPXV6115V.h"
#include "DRV8833.h"
#include "Arduino.h"
#include "EEPROM.h"
#include "MAX7219.h"
//************************************************NESNE ATAMALARI***********************************************************
LedControl lc=LedControl(12,11,10,4); //MAX7219 segment pin ve nesne atamaları
DRV8833... | Update mpxv6115v.ino | Update mpxv6115v.ino | Arduino | apache-2.0 | tunataskintuna35/MPXV6115Vacuum |
129a356e64755335d34a985469130478aa0faf72 | examples/TMC26XMotorTester/TMC26XMotorTester.ino | examples/TMC26XMotorTester/TMC26XMotorTester.ino | /*
TMC26XMotorTest.ino - - TMC26X Stepper library Example for Wiring/Arduino
Copyright (c) 2011, Interactive Matter, Marcus Nowotny
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without ... | /*
TMC26XMotorTest.ino - - TMC26X Stepper library Example for Wiring/Arduino
Copyright (c) 2011, Interactive Matter, Marcus Nowotny
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without ... | fix for ENABLE pin | fix for ENABLE pin
| Arduino | mit | interactive-matter/TMC26XStepper |
1ea6406f35ecce2e4da23f38f659a8221b07f377 | examples/rfid_default_keys/rfid_default_keys.ino | examples/rfid_default_keys/rfid_default_keys.ino | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | /*
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public d... | Update rfid_default_keys.ino (#268) | Update rfid_default_keys.ino (#268)
try to change the order of the known keys and meet the bug described at http://arduino.stackexchange.com/a/14316 | Arduino | unlicense | Rotzbua/rfid,miguelbalboa/rfid,Rotzbua/rfid |
81a143e292f3fce3dfb6ac054aa7825a5ab24095 | ESP-Now/espnow-sensorNode/espnow-sensorNode.ino | ESP-Now/espnow-sensorNode/espnow-sensorNode.ino | /*
Testing ESP-Now
See https://espressif.com/en/products/software/esp-now/overview
ESP-Now enables fast lightwieght connectionless communication between ESP8266's.
So for example a remote sensor node could send a reading using ESP-Now in just a few
hundred milliseconds and deepSleep the rest of the time and so... | /*
Testing ESP-Now
See https://espressif.com/en/products/software/esp-now/overview
ESP-Now enables fast lightwieght connectionless communication between ESP8266's.
So for example a remote sensor node could send a reading using ESP-Now in just a few
hundred milliseconds and deepSleep the rest of the time and so... | Update espnow-sensorNode.ino | Update espnow-sensorNode.ino | Arduino | cc0-1.0 | HarringayMakerSpace/IoT |
241c4f702611f56d1a7e3cd97e068c660ecffa44 | WizardView.ino | WizardView.ino | #include <stdint.h>
#include "receiver.h"
#define PIN_LED 13
#define PIN_SPI_CLK 2
#define PIN_SPI_DATA 3
#define PIN_SPI_SS_RX1 4
#define PIN_SPI_SS_RX2 5
#define PIN_SPI_SS_RX3 6
#define PIN_SPI_SS_RX4 7
#define PIN_RSSI_RX1 A0
#define PIN_RSSI_RX2 A1
#define PIN_RSSI_RX3 A2
#define PIN_RSSI_RX4 A3
#define SERIAL... | #include <stdint.h>
#include "receiver.h"
#define PIN_LED 13
#define PIN_SPI_CLK 2
#define PIN_SPI_DATA 3
#define PIN_SPI_SS_RX1 4
#define PIN_SPI_SS_RX2 5
#define PIN_SPI_SS_RX3 6
#define PIN_SPI_SS_RX4 7
#define PIN_RSSI_RX1 A0
#define PIN_RSSI_RX2 A1
#define PIN_RSSI_RX3 A2
#define PIN_RSSI_RX4 A3
#define SERIAL... | Fix wrong frequency. | Fix wrong frequency. | Arduino | mit | PropNuts/wizardtracker-hardware,PropNuts/wizardtracker-hardware |
46c7e84e5d583825a89482bf0f0cb45ee4661654 | base2clock.ino | base2clock.ino | /***************************
*
* base 2 clock code for arduino
* Copyleft (C) 2015 Daniel K. Spicer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... | /***************************
*
* base 2 clock code for arduino
* Copyleft (C) 2015 Daniel K. Spicer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... | Check for change of state before altering led pin state. | Check for change of state before altering led pin state. | Arduino | apache-2.0 | linuxmania/base2clock |
e3eab71806f0371e42c183129542d6a2dca2636e | OpenDeck_MCU/OpenDeck_MCU.ino | OpenDeck_MCU/OpenDeck_MCU.ino | /*
OpenDeck platform firmware v2.0
Last revision date: 2015-05-08
Author: Igor Petrovic
*/
//disable default serial object
#include "OpenDeck.h"
void setup() {
//setup
openDeck.init();
}
void loop() {
//check incoming MIDI messages
openDeck.checkMIDIIn();
//check buttons
openDeck.r... | /*
OpenDeck platform firmware v2.0
Last revision date: 2015-05-08
Author: Igor Petrovic
*/
#include "OpenDeck.h"
void setup() {
//setup
openDeck.init();
}
void loop() {
//check incoming MIDI messages
openDeck.checkMIDIIn();
//check buttons
openDeck.readButtons();
//check analog ... | remove comment | remove comment
| Arduino | apache-2.0 | paradajz/OpenDeck,paradajz/OpenDeck,paradajz/OpenDeck,paradajz/OpenDeck,paradajz/OpenDeck,paradajz/OpenDeck |
0ee9c3e118ba6c2dba8ee8c92d3e4b56f42956c5 | PM2.5/PlanTower/PlanTower.ino | PM2.5/PlanTower/PlanTower.ino | #include <SoftwareSerial.h>
#define SET_PIN 12
#define SENSOR_BAUD_RATE 9600
#define DEBUG_BARUD_RATE 115200
#define _DBG_RXPIN_ 2
#define _DBG_TXPIN_ 3
#define SOFTSERIAL
#ifdef SOFTSERIAL
SoftwareSerial mySerial(_DBG_RXPIN_,_DBG_TXPIN_);
#define DebugSerial Serial
#else
#define mySerial Serial
SoftwareSerial Debu... | unsigned char ide_workaround = 0;
#include <SoftwareSerial.h>
#define SET_PIN 12
#define SENSOR_BAUD_RATE 9600
#define DEBUG_BARUD_RATE 115200
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define mySerial Serial3
#define DebugSerial Serial
#else
#define _DBG_RXPIN_ 2
#define _DBG_TXPIN_ 3
SoftwareS... | support Mega2560 | support Mega2560
| Arduino | apache-2.0 | johnymoo/Arduino,johnymoo/Arduino,johnymoo/Arduino |
443d8961ae632271717d9e0e0147351da66d2bb1 | arduino/ws2812_controller/ws2812_controller.ino | arduino/ws2812_controller/ws2812_controller.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WebSocketsServer.h>
#include <Hash.h>
#include <WiFiUdp.h>
#include <ws2812_i2s.h>
// Set this to the number of LEDs in your LED strip
#define NUM_LEDS 260
#define BUFFER_LEN 1024
#define PRINT_FPS 1
// Wifi and socket settings
const char* ssid = "YOUR_WIFI_... | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WebSocketsServer.h>
#include <Hash.h>
#include <WiFiUdp.h>
#include <ws2812_i2s.h>
// Set this to the number of LEDs in your LED strip
#define NUM_LEDS 260
#define BUFFER_LEN 1024
#define PRINT_FPS 1
// Wifi and socket settings
const char* ssid = "YOUR_WIFI_... | make "if" statement instead of just ifdef | make "if" statement instead of just ifdef | Arduino | mit | joeybab3/audio-reactive-led-strip,scottlawsonbc/audio-reactive-led-strip,scottlawsonbc/audio-reactive-led-strip,joeybab3/audio-reactive-led-strip |
180e38efa9a70e022d120ef4fb2f00c870297cda | prevyuduino/prevyuduino.ino | prevyuduino/prevyuduino.ino | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | Change timing for pumping | Change timing for pumping
| Arduino | mit | baptistelabat/prevyu,baptistelabat/prevyu,baptistelabat/prevyu |
e59655bfa8e99b4eda706b8ad2fcf2c3281e5c0f | firmware/PCB_V02/PCB_V02.ino | firmware/PCB_V02/PCB_V02.ino | #include <aJSON.h>
/*
-------------------------------------------------
| Zachary Nelson
| znelson1@ford.com
|
| **To be used with Shift Knob PCBs**
|
| This program reads in a JSON stream and controls
| the following 3 components accordingly:
|
| 1. 7 segment display
| 2. Haptic feedback motor
| 3. RGB LEDs
|
| Bel... | #include <aJSON.h>
/*
-------------------------------------------------
| Zachary Nelson
| znelson1@ford.com
|
| **To be used with Shift Knob PCBs**
|
| This program reads in a JSON stream and controls
| the following 3 components accordingly:
|
| 1. 7 segment display
| 2. Haptic feedback motor
| 3. RGB LEDs
|
| Bel... | add more comments describing the fucntionality of the code. | add more comments describing the fucntionality of the code.
| Arduino | bsd-3-clause | openxc/shiftknob-android |
b2af783d5eb4fe505cbe21936cee8d7b8a057b9f | projects/musicbox/firmware/MusicBox/MusicBox.ino | projects/musicbox/firmware/MusicBox/MusicBox.ino |
//
// 1) LoopBe1 Internal MIDI loopback
// http://www.nerds.de/en/loopbe1.html
// 2) Serial to MIDI:
// http://projectgus.github.io/hairless-midiserial/
// 3) Set Baud to 9600
// 4) Connect Hairless Serial MIDI to LoopBe1 Internal output
// 5) Set LoopBe1 Internal output as an Input to Ableton
//
class MidiS... |
//
// 1) LoopBe1 Internal MIDI loopback
// http://www.nerds.de/en/loopbe1.html
// 2) Serial to MIDI:
// http://projectgus.github.io/hairless-midiserial/
// 3) Set Baud to 9600
// 4) Connect Hairless Serial MIDI to LoopBe1 Internal output
// 5) Set LoopBe1 Internal output as an Input to Ableton
//
class MidiS... | Support transition velocity and multiple sensors | Support transition velocity and multiple sensors
| Arduino | artistic-2.0 | mutac/art,mutac/art |
ff59371d715a98a4594c841f1472d169e4dd1384 | examples/IRRemoteControlDemo/IRRemoteControlDemo.ino | examples/IRRemoteControlDemo/IRRemoteControlDemo.ino | /*
* IRRemoteControle: IRRemoteControlDemo - demonstrates receiving/sending IR codes.
* Created by Cristiano Borges - STI - Fatesg
* August, 2017
*/
#include "IRRemoteControl.h"
IRRecv irRecv;
IRSend irSend;
const int IR_RECV_PIN = 2;
const int MAX_IR_BUFFER_LENGTH = 650;
unsigned int irBuffer[MAX_IR_BUFFER_LEN... | /*
* IRRemoteControl: IRRemoteControlDemo - demonstrates receiving/sending IR codes.
* Created by Cristiano Borges - STI - Fatesg
* August, 2017
*/
#include "IRRemoteControl.h"
IRRecv irRecv;
IRSend irSend;
const int IR_RECV_PIN = 2;
const int MAX_IR_BUFFER_LENGTH = 650;
unsigned int irBuffer[MAX_IR_BUFFER_LENG... | Update comment in IRRemoteControlDemo.ino | Update comment in IRRemoteControlDemo.ino | Arduino | mit | cristborges/IRRemoteControl,cristborges/IRRemoteControl |
b6c2b1ac152c0ece78a7c9ce359791b92c828ed1 | Arduino/AlphaChairArduino/AlphaChairArduino.ino | Arduino/AlphaChairArduino/AlphaChairArduino.ino | #include <SoftwareSerial.h>
#include <Thread.h>
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
// Mosfet channel
int MOSFET_C1 = 10;
int MOSFET_C2 = 7;
// UNO board
int I... | #include <SoftwareSerial.h>
#include <Thread.h>
#define PPR_ON "a"
#define PPR_OFF "b"
#define FSR_ON "c"
#define FSR_OFF "d"
#define TMP_ON "e"
#define TMP_OFF "f"
Thread fsrThread = Thread(); // For measuring Pressure data in other thread
// Mosfet channel
int MOSFET_C1 = 10;
int MOSFET_C2 = 7;
// UNO board
int I... | change arduino BTSerial write msg | change arduino BTSerial write msg
| Arduino | apache-2.0 | quki/AlphaChair |
69edb68099f0a356eb6a679f643042fff266ffd5 | arduino/lmremote/lmremote.ino | arduino/lmremote/lmremote.ino | #include <avr/wdt.h>
#include <avr/sleep.h>
#include <RF12.h>
#include <Ports.h>
#define LMREMOTE_SERIAL 115200
// Node Idenfier for the RFM12B (2-30)
const unsigned char _rfNodeId = 2;
// RFM12B band RF12_433MHZ, RF12_868MHZ, RF12_915MHZ
const unsigned char _rfBand = RF12_915MHZ;
// How long to sleep between probe ... | #include <avr/wdt.h>
#include <avr/sleep.h>
#include <RF12.h>
#include <Ports.h>
#define LMREMOTE_SERIAL 115200
// Node Idenfier for the RFM12B (2-30)
const unsigned char _rfNodeId = 2;
// RFM12B band RF12_433MHZ, RF12_868MHZ, RF12_915MHZ
const unsigned char _rfBand = RF12_915MHZ;
// How long to sleep between probe m... | Add temperature oversampling (1 bit), early wake RFM chip, transmit every 30s, sleep mode 2 while waiting for TX | [lmr] Add temperature oversampling (1 bit), early wake RFM chip, transmit every 30s, sleep mode 2 while waiting for TX
| Arduino | mit | dwright134/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,sh... |
edf3afd9411e9d8c0553198f5e1d351614adde20 | basic/TheThingsUno/workshop/project/project.ino | basic/TheThingsUno/workshop/project/project.ino | #define DEBUG
#include "TheThingsUno.h"
const byte devAddr[4] = { 0x02, 0xDE, 0xAE, 0x00 };
const byte appSKey[16] = { 0x0D, 0x0E, 0x0A, 0x0D, 0x0B, 0x0E, 0x0E, 0x0F, 0x0C, 0x0A, 0x0F, 0x0E, 0x0B, 0x0A, 0x0B, 0x0E };
const byte nwkSKey[16] = { 0x0D, 0x0E, 0x0A, 0x0D, 0x0B, 0x0E, 0x0E, 0x0F, 0x0C, 0x0A, 0x0F, 0x0E, 0x... | #define DEBUG
#include "TheThingsUno.h"
const byte devAddr[4] = { /* copy DevAddr here */ };
const byte appSKey[16] = { /* copy AppSKey here */ };
const byte nwkSKey[16] = { /* copy NwkSKey here */ };
#define debugSerial Serial
#define loraSerial Serial1
// These are the input pins of your sensors
#define TEMPSENSO... | Remove pre-filled DevAddr and Keys | Remove pre-filled DevAddr and Keys | Arduino | mit | TheThingsNetwork/workshops,TheThingsNetwork/workshops |
31094f9ac542e341d9309857ffe4330b758a3887 | examples/Drivers/CosaDHTevent/CosaDHTevent.ino | examples/Drivers/CosaDHTevent/CosaDHTevent.ino | /**
* @file CosaDHTevent.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | /**
* @file CosaDHTevent.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | Adjust for Mega. | Adjust for Mega.
| Arduino | lgpl-2.1 | kc9jud/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cosa,dansut/Cosa,mikaelpatel/Cosa |
50f815ece95e0e5739182da3be26e19dc05f9345 | examples/MultipleSteppers/MultipleSteppers.ino | examples/MultipleSteppers/MultipleSteppers.ino | /*==========================================================================
* The sketch shows how to move more than one motor.
*
* If more than one motor is moved by one controller all motors will arrive at
* their targets at the same time. E.g., if the motors are part of a
* x/y transport system, the transp... | /*==========================================================================
* The sketch shows how to move more than one motor.
*
* If more than one motor is moved by one controller all motors will arrive at
* their targets at the same time. E.g., if the motors are part of a
* x/y transport system, the transp... | Update MultipleSteppers.ino | Update MultipleSteppers.ino | Arduino | mit | luni64/TeensyStep,luni64/TeensyStep |
303858a1ab99f6ee4aeda1a06b40f227fc6d7856 | embedded-particle/sense-motion.ino | embedded-particle/sense-motion.ino | /*
This version is meant for the black AMN3211 slight motion detector.
The detector can be installed directly onto the proto board with
GND pin connecting to spark core's D0
OUT pin connecting to D1
VDD pin connecting to D2
We're using digital out pins for power and ground because it's
convenient and doesn't requir... | /*
This version is meant for the black AMN3211 slight motion detector.
The detector can be installed directly onto the proto board with
GND pin connecting to spark core's D0
OUT pin connecting to D1
VDD pin connecting to D2
We're using digital out pins for power and ground because it's
convenient and doesn't requir... | change PIR sensitivity | change PIR sensitivity
| Arduino | mit | ReidWilliams/node-hue,ReidWilliams/node-hue |
46d182856517316529afc08028605a9563fd228b | esp8266/TestServer/TestServer.ino | esp8266/TestServer/TestServer.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <PubSubClient.h>
#include <EEPROM.h>
#include <mdns.h>
#include "ipv4_helpers.h"
#include "secrets.h"
#include "persist_data.h"
#include "persist_data.cpp" // WHY IS THIS NEEDED?? The linker can't find instances of Persistent.
#i... | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <PubSubClient.h>
#include <EEPROM.h>
#include <mdns.h>
#include "ipv4_helpers.h"
#include "secrets.h"
#include "persist_data.h"
#include "persist_data.cpp" // WHY IS THIS NEEDED?? The linker can't find instances of Persistent.
#i... | Add full MQTT addressing to esp8266 firmware. | Add full MQTT addressing to esp8266 firmware.
| Arduino | mit | mrdunk/home_automation_2,mrdunk/home_automation_2,mrdunk/home_automation_2,mrdunk/home_automation_2 |
86f0ea6365fcbb02cc20e112381e43e183e1eb4c | a_variable_declarations.ino | a_variable_declarations.ino | // pins for the encoder inputs
int rightCount = 0;
float Pos=0;
//double targetCount = 1000;//-1000; // later overwritten by PSARJ value
float PosErr = 0;
unsigned long time;
float tmpSpeed = 0;
float tmpSpeed2 = 0;
// === for PID ========
int Kp = 50; // Proportional Gain of PID
int Ki = 4; // Integral Gain of PID... | // pins for the encoder inputs
String test;
int rightCount = 0;
float Pos=0;
//double targetCount = 1000;//-1000; // later overwritten by PSARJ value
float PosErr = 0;
unsigned long time;
float tmpSpeed = 0;
float tmpSpeed2 = 0;
// === for PID ========
int Kp = 50; // Proportional Gain of PID
int Ki = 4... | Update a_variable_declarations.ino | Update a_variable_declarations.ino
Change to use serial input | Arduino | mit | ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic |
240d2da778c3ccca7518ba09ec6f4f8c3abbace1 | examples/Car/SimpleCar/SimpleCar.ino | examples/Car/SimpleCar/SimpleCar.ino | #include <Smartcar.h>
ArduinoRuntime arduinoRuntime;
BrushedMotor leftMotor(arduinoRuntime, smartcarlib::pins::v2::leftMotorPins);
BrushedMotor rightMotor(arduinoRuntime, smartcarlib::pins::v2::rightMotorPins);
DifferentialControl control(leftMotor, rightMotor);
SimpleCar car(control);
void setup()
{
// Move for... | #include <Smartcar.h>
ArduinoRuntime arduinoRuntime;
BrushedMotor leftMotor(arduinoRuntime, smartcarlib::pins::v2::leftMotorPins);
BrushedMotor rightMotor(arduinoRuntime, smartcarlib::pins::v2::rightMotorPins);
DifferentialControl control(leftMotor, rightMotor);
SimpleCar car(control);
void setup()
{
// Move for... | Fix turning command | Fix turning command | Arduino | mit | platisd/smartcar_shield,platisd/smartcar_shield |
db29217b423db5dc944817b3c8dc3841e6ecd0e8 | examples/Blink/CosaBlinkTemp/CosaBlinkTemp.ino | examples/Blink/CosaBlinkTemp/CosaBlinkTemp.ino | /**
* @file CosaBlinkTemp.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | /**
* @file CosaBlinkTemp.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | Improve pin configuration for ATtiny. | Improve pin configuration for ATtiny.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,kc9jud/Cosa,rrobinet/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,kc9jud/Cosa,kc9jud/Cosa,rrobinet/Cosa,jeditekunum/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa |
f8029d725f88713437f71ed8e723f5d6c899bd0d | dee-oh-tee.ino | dee-oh-tee.ino | /**
* A simple library for drawing fun shapes with a laser that's attached to a pan/tilt
* servo. (Cat not included.)
*
* This type of servo works on angles, but I find it easier to think in Cartesian
* coordinates. Most of the functions in this library take x- and y-coordinates. The
* origin (center) is at x =... | /**
* A simple library for drawing fun shapes with a laser that's attached to a pan/tilt
* servo. (Cat not included.)
*
* This type of servo works on angles, but I find it easier to think in Cartesian
* coordinates. Most of the functions in this library take x- and y-coordinates. The
* origin (center) is at x =... | Remove Serial references | Remove Serial references
| Arduino | apache-2.0 | acj/dee-oh-tee |
78c741a17f0abb2040760489892c36b4326d99d5 | examples/BasicESPWebConfig/BasicESPWebConfig.ino | examples/BasicESPWebConfig/BasicESPWebConfig.ino | #include <ESP8266WiFi.h>
#include <ESPWebConfig.h>
#include <ESP8266HTTPClient.h>
/*
Configure Wifi after boot. No need to "hard code" SSID and password in code.
First boot (or after reset):
Device will be an access point named ESP_<ipnumber>, which you access to
configure normal WIFI and other parameters.
User ... | #include <ESP8266WiFi.h>
#include <ESPWebConfig.h>
#include <ESP8266HTTPClient.h>
/*
Configure Wifi after boot. No need to "hard code" SSID and password in code.
First boot (or after reset):
Device will be an access point named ESP_<ipnumber>, which you access to
configure normal WIFI and other parameters.
User ... | Fix error in example | Fix error in example
| Arduino | mit | mnomn/ESPWebConfig,mnomn/ESPWebConfig,mnomn/ESPWebConfig |
165d6545793a47989dbef0eddffea4f5739629c7 | examples/CustomTimedThread/CustomTimedThread.ino | examples/CustomTimedThread/CustomTimedThread.ino | /*
This is an example from ArduinoThread. You can find more information
in https://github.com/ivanseidel/ArduinoThread.
Coded by Ivan Seidel, Jun/2014 - ivanseidel@gmail.com
Dont be afraid. 90% is commented lines. READ them, they will teach you.
*/
#include <Thread.h>
#include <ThreadController.h>
/*
This exam... | /*
This is an example from ArduinoThread. You can find more information
in https://github.com/ivanseidel/ArduinoThread.
Coded by Ivan Seidel, Jun/2014 - ivanseidel@gmail.com
Dont be afraid. 90% is commented lines. READ them, they will teach you.
*/
#include <Thread.h>
#include <ThreadController.h>
/*
This exam... | fix bug in example CustomTimedThread when overriding shouldRun | fix bug in example CustomTimedThread when overriding shouldRun
| Arduino | mit | ivanseidel/ArduinoThread |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.