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 |
|---|---|---|---|---|---|---|---|---|---|
4bd5a9c578f47492a30553b1828d4d7947d21d6a | webserver.ino | webserver.ino | //http://www.esp8266.com/viewtopic.php?f=29&t=2153
//holds the current upload
File fsUploadFile;
void setupWebServer() {
////////////////////////////////////////////////////////////////////////////////////
//the web interface pages alphabetically
//handle the index page
webServer.on( "/", []() {
webServ... | //http://www.esp8266.com/viewtopic.php?f=29&t=2153
//holds the current upload
File fsUploadFile;
void setupWebServer() {
////////////////////////////////////////////////////////////////////////////////////
//the web interface pages alphabetically
//handle the index page
webServer.on( "/", []() {
webServ... | Add '?action=delete' argument to web requests. | Add '?action=delete' argument to web requests.
To delete files from the SPIFF disk.
For example calling '192.168.2.3/index.htm?action=delete'
would delete '/index.htm' from the SPIFF disk.
| Arduino | mit | CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2 |
d72c4ede5f2d47afba6a2fc39d30b01f5eaa4ca2 | examples/BoardsAndShields/Arduino_Zero_M0_Serial/Arduino_Zero_M0_Serial.ino | examples/BoardsAndShields/Arduino_Zero_M0_Serial/Arduino_Zero_M0_Serial.ino | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | Update Arduino_Zero_M0_Serial.ino | Update Arduino_Zero_M0_Serial.ino | Arduino | mit | ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
acbee1015944ba79ef94fde6f0ac9a2e3c5d3b27 | libraries/ESP8266AVRISP/examples/Arduino_Wifi_AVRISP/Arduino_Wifi_AVRISP.ino | libraries/ESP8266AVRISP/examples/Arduino_Wifi_AVRISP/Arduino_Wifi_AVRISP.ino | #include <SPI.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266AVRISP.h>
const char* host = "esp8266-avrisp";
const char* ssid = "**********";
const char* pass = "**********";
const uint16_t port = 328;
const uint8_t reset_pin = 5;
ESP8266AVRISP avrprog(port, reset_pin);
void setup() {
Seria... | #include <SPI.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266AVRISP.h>
const char* host = "esp8266-avrisp";
const char* ssid = "**********";
const char* pass = "**********";
const uint16_t port = 328;
const uint8_t reset_pin = 5;
ESP8266AVRISP avrprog(port, reset_pin);
void setup() {
Seria... | Put WiFi into station mode in examples | Put WiFi into station mode in examples
I was surprised that many of the examples implicitly create an
unsecured access point with complete access to my application, which
was based off the WiFiWebServer example. I'm sure I'm not the only one
surprised by this behaviour.
Putting the WiFi into station mode prevents the... | Arduino | lgpl-2.1 | jes/Arduino,jes/Arduino,jes/Arduino,jes/Arduino,jes/Arduino |
255cd2e51784748e5ad657efa9a44b3257e2b175 | hardware/whoaboard/avr/libraries/WhoaSense/examples/extra3_theramin/extra3_theramin.ino | hardware/whoaboard/avr/libraries/WhoaSense/examples/extra3_theramin/extra3_theramin.ino | /* This example shows how to use the WhoaSense library to view the raw signal
* coming from the whoa board, and to create logic around that.
*
* For this example, we will assume your EL element is connected to channel 1.
* Please make sure you do this!
*
* To start with this exercise, try tuning the th... | /* This example shows how to use the WhoaSense to turn EL materials into a visual theramin.
* It combines concepts from example 1 (Dimming via pulse width modulation) and example 5
* (hand tuning a parameter to trigger effects).
*
* This example works best with wound up wire or EL strips/panels. Surface ... | Add comments to theramin demo | Add comments to theramin demo
| Arduino | apache-2.0 | foolish-products/whoaboard_getstarted,foolish-products/whoaboard_getstarted,foolish-products/whoaboard_getstarted |
18f94824d7e0374f2f24a4e81d30fbf1c8457ce2 | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | #include <IRremote.h>
#include <Wire.h>
/*
Standalone Sketch to use with a Arduino UNO and a
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ... | #include <IRremote.h>
#include <Wire.h>
/*
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino D2
int IR_receive_recv_PIN = 6;
int IR_receive_GND... | Update _04-mqtt-lcd-dust-sensor-nano.ino | Update _04-mqtt-lcd-dust-sensor-nano.ino | Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
e682d5de558a58c6dddf117f001642a67ba7e20c | firmware/examples/am2315test.ino | firmware/examples/am2315test.ino | #include <Wire.h>
#include <Adafruit_AM2315.h>
/***************************************************
This is an example for the AM2315 Humidity + Temp sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> https://www.adafruit.com/products/1293
These displays use I2C to communicate, 2 ... | #include <spark_wiring.h>
#include <Adafruit_AM2315.h>
/***************************************************
This is an example for the AM2315 Humidity + Temp sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> https://www.adafruit.com/products/1293
These displays use I2C to communi... | Update am2315test.ino | Update am2315test.ino | Arduino | bsd-3-clause | pewenn/Adafruit_AM2315 |
0ff7aaf9d9242acbbc97edb6a817cd7318bc4a06 | examples/LLShitFullTest/LLShitFullTest.ino | examples/LLShitFullTest/LLShitFullTest.ino | #include "Arduino.h"
#include <SD.h>
#include <SPI.h>
#include <Time.h>
#include <LLShit.h>
#define SDCARD_PIN 4
#define SDCARD_SUPPORT_PIN 10
namespace TESTMETRICS {
enum{
START_IDLE,
FULL_LOGGER_BEGIN,
FULL_LOGGER_INSTANCE_MADE,
END_IDLE,
NUM_RAM_VALUES
};
enum{
LOG_1_FILE,
LOG_22... | #include "Arduino.h"
#include <SD.h>
#include <SPI.h>
#include <Time.h>
#include <LLShit.h>
#define SDCARD_PIN 4
#define SDCARD_SUPPORT_PIN 10
namespace TESTMETRICS {
enum{
START_IDLE,
FULL_LOGGER_BEGIN,
FULL_LOGGER_INSTANCE_MADE,
END_IDLE,
NUM_RAM_VALUES
};
enum{
LOG_1_FILE,
LOG_22... | Update ram checks | Update ram checks
| Arduino | mit | soundspawn/LLShit |
dc612109b3fcd4b2084c7f029d6dbc96560c42bd | src/arduino101/science-journal-arduino/science-journal-arduino.ino | src/arduino101/science-journal-arduino/science-journal-arduino.ino | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Add config change handler. | Add config change handler.
| Arduino | apache-2.0 | dakoner/science-journal-arduino,google/science-journal-arduino,dakoner/science-journal-arduino,precision/science-journal-arduino,precision/science-journal-arduino,google/science-journal-arduino |
cf5f8c855fcd26cd948dd4639928d390ddcb7030 | Arduino/MS561101BA_altitude/MS561101BA_altitude.ino | Arduino/MS561101BA_altitude/MS561101BA_altitude.ino | /*
MS561101BA_altitude.pde - Computes altitude from sea level using pressure readings from the sensor.
The algorithm uses the Hypsometric formula as explained in http://keisan.casio.com/has10/SpecExec.cgi?path=06000000.Science%2F02100100.Earth%20science%2F12000300.Altitude%20from%20atmospheric%20pressure%2Fdefault.xml&... | /*
MS561101BA_altitude.pde - Computes altitude from sea level using pressure readings from the sensor.
The algorithm uses the Hypsometric formula as explained in http://keisan.casio.com/has10/SpecExec.cgi?path=06000000.Science%2F02100100.Earth%20science%2F12000300.Altitude%20from%20atmospheric%20pressure%2Fdefault.xml&... | Change baud rate to use default one for RC communication | Change baud rate to use default one for RC communication
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
515c78801c9294372aa39dfc77018992d37544c4 | esp8266_160528_MPL115A2.ino | esp8266_160528_MPL115A2.ino | #include <Wire.h>
#include "lib_160602_calcAltitude.h"
#include "esp8266_160602_udpTxToLogger.h"
/*
* v0.4 2016 Jun. 2
* - average over 100 measurements
* - PrintPressureAndAltitude() takes [prs] argument
* - add [esp8266_160602_calcAltitude.ino]
* v0.3 2016 Jun. 2
* - add calcPressure_hPa()
* - rena... | #include <Wire.h>
#include "lib_160602_calcAltitude.h"
#include "esp8266_160602_udpTxToLogger.h"
/*
* v0.5 2016 Jun. 2
* - send to udpLogger
* v0.4 2016 Jun. 2
* - average over 100 measurements
* - PrintPressureAndAltitude() takes [prs] argument
* - add [esp8266_160602_calcAltitude.ino]
* v0.3 2016 Ju... | send to udpLogger | send to udpLogger
| Arduino | mit | yasokada/esp8266_160528_MPL115A2 |
19b9e9f510b5fc8aaffdeb215604715ab5d4655b | HHI_switches_gripper/HHI_switches_gripper.ino | HHI_switches_gripper/HHI_switches_gripper.ino | /* Arduino Code for an EMG SpikerShield to control a TENS device, LED lights, and a gripper */
#include <Servo.h> //Includes the Gripper Servo Library
Servo ServoGripper; //Declares the Name of the Servo to be ServoGripper -- this is all if you want to control a gripper hand as well
#define NUM_LED 6 //sets the max... | /* Arduino Code for an EMG SpikerShield to control a TENS device, LED lights, and a gripper */
#include <Servo.h> //Includes the Gripper Servo Library
Servo ServoGripper; //Declares the Name of the Servo to be ServoGripper -- this is all if you want to control a gripper hand as well
#define NUM_LED 6 //sets the max... | Remove button handling | Remove button handling
Also removes some commented-out code.
| Arduino | mit | thusoy/hhi-experiments |
3b0562e4ae23d4e9b15e480299c2f81865fbfa75 | Attic_Controller/Attic_Controller.ino | Attic_Controller/Attic_Controller.ino | //----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers will require extensive tweaking.
//
// Handles communicating with the roof sensors, as well as reading a... | //----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers will require extensive tweaking.
//
// Handles communicating with the roof sensors, as well as reading a... | Correct ordering for strict compilers | Correct ordering for strict compilers
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
6a5ce2691c33acc035791bffe0d4925a8dfe72bb | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// ------- Settings ---------------------------------------------------
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
const char *printerType = "A2-raw"; // contr... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// ------- Settings ---------------------------------------------------
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
const char *printerType = "A2-raw"; // contr... | Add more debug to ID generation. | Add more debug to ID generation.
| Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
d2b45b6520d5ec1ccd8770238246a3ba8d31023b | glass/glass.ino | glass/glass.ino | /*
glass.ino
This code is running on the glass, taking control of IR tranmission, XBee communication, and BT communication.
XBee messages from client are routed to Google Glass for display purpose.
BT messages from Google Glass either trigger IR transmission, or are being delivered to clients. As before, we a... | /*
glass.ino
This code is running on the glass, taking control of IR tranmission, XBee communication, and BT communication.
XBee messages from client are routed to Google Glass for display purpose.
BT messages from Google Glass either trigger IR transmission, or are being delivered to clients. As before, we a... | break each msg so no packages exceeds 10 bytes | break each msg so no packages exceeds 10 bytes
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
3ddc6ee9306e95cb922232f912afc7aab17d1eb2 | src/carStart.ino | src/carStart.ino | /**************************************************************************/
/*!
This example will wait for any ISO14443A card or tag, and
depending on the size of the UID will attempt to read from it.
If the card has a 4-byte UID it is probably a Mifare
Classic card, and the following steps are ta... | #include <SPI.h>
#include <PN532_SPI.h>
#include "PN532.h"
#include <EEPROM.h>
#include <NfcAdapter.h>
PN532_SPI pn532spi(SPI, 10);
PN532 nfc(pn532spi);
NfcAdapter nfcAdaptor = NfcAdapter(pn532spi);
//init constants
int ledPin = 7;
int ledControl = 6;
int addr = 0;
byte value;
bool isControlMode = false;
String ... | update sketch | update sketch
| Arduino | unlicense | BenGlasser/arduino-carstarter,BenGlasser/arduino-carstarter |
48412541b4f95486214cc917df42aef55adcd0f2 | examples/selftest/selftest.ino | examples/selftest/selftest.ino | #include <avr/boot.h>
#include <SPI.h>
#include <tsunami.h>
#define LED_PIN 13
#define RUN_REPEATEDLY true
char err[255];
typedef bool (*testfunction)(void);
typedef struct {
char *name;
testfunction func;
} test_t;
void log_value(char *name, int32_t value) {
char buf[32];
sprintf(buf, "# %s = %ld", name, ... | #include <avr/boot.h>
#include <SPI.h>
#include <tsunami.h>
#define LED_PIN 13
#define RUN_REPEATEDLY true
char err[255];
typedef bool (*testfunction)(void);
typedef struct {
char *name;
testfunction func;
} test_t;
void log_value(char *name, int32_t value) {
char buf[32];
sprintf(buf, "# %s = %ld", name, ... | Update selftest.ino | Update selftest.ino | Arduino | bsd-3-clause | arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino,arachnidlabs/tsunami-arduino |
34e5af178bb17bc578bce05faa5051e8c5f7311e | examples/ESP8266OccupancySensor/ESP8266OccupancySensor.ino | examples/ESP8266OccupancySensor/ESP8266OccupancySensor.ino | //*****************************************************************************
//
// ESP8266OccupancySensor - An example of how to use the Exosite library
// on the Sparkfun ESP8266 Thing with a PIR motion
// sensor to detect the occupancy status of a room
//
// Requir... | //*****************************************************************************
//
// ESP8266OccupancySensor - An example of how to use the Exosite library
// on the Sparkfun ESP8266 Thing with a PIR motion
// sensor to detect the occupancy status of a room
//
// Requir... | fix leftover comment | fix leftover comment
| Arduino | bsd-3-clause | exosite-garage/arduino_exosite_library |
0b3cf33fdb1dc1cd2eb64c807087ea3db9797260 | examples/BeepOnce/BeepOnce.ino | examples/BeepOnce/BeepOnce.ino | /*
EasyBuzzer - BeepOnce Example
This example shows you how to make a single beep at given frequency.
Copyright (c) 2017, Evert Arias
MIT License
*/
#include <EasyBuzzer.h>
// This function will be called when the beeping sequence ends.
void finished() {
// This function stop the beeping.
EasyBuzzer.stopBeep()... | /*
EasyBuzzer - Beep Once Example
This example shows you how to make a single beep at given frequency.
Copyright (c) 2017, Evert Arias
MIT License
*/
#include <EasyBuzzer.h>
// This function will be called when the beeping sequence ends.
void finished() {
// This function stop the beeping.
EasyBuzzer.stopBeep(... | Update BeepOnce.ino | Update BeepOnce.ino | Arduino | mit | evert-arias/EasyBuzzer,evert-arias/EasyBuzzer |
a6a62f20e329e9c1074eb89240defaa566cb39ed | examples/adc_test/adc_test.ino | examples/adc_test/adc_test.ino | /* Test suite for the ADC library
*/
#include <ADC.h>
ADC *adc = new ADC(); // adc object
#if defined(ADC_TEENSY_LC) // teensy LC
#define PINS 13
#define DIG_PINS 13
#define PINS_DIFF 2
uint8_t adc_pins[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A11, A12};
uint8_t adc_pins_dig[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A1... | /* Test suite for the ADC library
*/
#include <ADC.h>
ADC *adc = new ADC(); // adc object
#if defined(ADC_TEENSY_LC) // teensy LC
#define PINS 13
#define DIG_PINS 13
#define PINS_DIFF 2
uint8_t adc_pins[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A11, A12};
uint8_t adc_pins_dig[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A1... | fix number of pins for T4 | fix number of pins for T4
| Arduino | mit | pedvide/ADC,pedvide/ADC |
3f9ccdffdd39451b30d16dd2f013f2e5b91c8031 | arduino/sketch/LeonardoETH.ino | arduino/sketch/LeonardoETH.ino | #include <WebUSB.h>
#include <Conceptinetics.h>
// @TODO: Add a description
WebUSB WebUSBSerial(1, "localhost:1337");
#define Serial WebUSBSerial
// Amount of DMX channels
#define channels 512
// dmx_master(channels , pin);
// channels: Amount of DMX channels
// pin: Pin to do read / write operations on the DMX shie... | #include <WebUSB.h>
#include <Conceptinetics.h>
// @TODO: Add a description
WebUSB WebUSBSerial(1, "localhost:1337");
#define Serial WebUSBSerial
// Amount of DMX channels
#define channels 512
// dmx_master(channels , pin);
// channels: Amount of DMX channels
// pin: Pin to do read / write operations on the DMX shie... | Set initial data to 0 | fix(webusb): Set initial data to 0
Initialize the "incoming" array of data to 0, so that when nothing is send to the USB DMX
Controller, all channels are turned off by default.
Fixes #32
| Arduino | mit | NERDDISCO/VisionLord,NERDDISCO/VisionLord,NERDDISCO/VisionLord,NERDDISCO/VisionLord,NERDDISCO/VisionLord,NERDDISCO/VisionLord |
93650e833c64ef21e7318b22e37d125328169ce8 | bolt-arduino.ino | bolt-arduino.ino | #ifndef BOLTARDUINO
#define BOLTARDUINO
#include "button.h"
#include "led.h"
#include "screen.h"
#include "game.h"
#include "const.h"
#include "clock.h"
void setup() {
Serial.begin(115200);
//Attach interrupt for 64 button shield
attachInterrupt(digitalPinToInterrupt(P_BUTTON_INTERRUPT), button_ISR, FALLING)... | #ifndef BOLTARDUINO
#define BOLTARDUINO
#include "button.h"
#include "led.h"
#include "screen.h"
#include "game.h"
#include "const.h"
#include "clock.h"
#include "controller.h"
void setup() {
Serial.begin(115200);
//Attach interrupt for 64 button shield
attachInterrupt(digitalPinToInterrupt(P_BUTTON_INTERRUP... | Add missing import to main .ino file | Add missing import to main .ino file
| Arduino | mit | SUPERETDUPER/bolt-arduino |
6e4339e8d612c8e1b37c9c2e97523d46265de765 | 2018-Firefighter/2018-Firefighter.ino | 2018-Firefighter/2018-Firefighter.ino | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo ... | #include <Servo.h>
#include <Ultrasonic.h>
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define FRONT_US_TRIG 3
Servo ... | Update 2018-Firefighter.ino | Update 2018-Firefighter.ino | Arduino | mit | GW-Robotics/2018-Firefighter |
99e90394af6c4856b6d924c7f4f30451403b7b51 | arduinofences.ino | arduinofences.ino | /*
* Web Server
*
* A simple web server example using the WiShield 1.0
*/
#include <WiShield.h>
#include <IRremote.h>
int RECV_PIN = 4;
int BUTTON_PIN = 5;
int STATUS_PIN = 13;
IRrecv irrecv(RECV_PIN);
IRsend irsend;
decode_results results;
#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2
// Wirele... | /*
* Web Server
*
* A simple web server example using the WiShield 1.0
*/
#include <WiShield.h>
#include <IRremote.h>
int RECV_PIN = 4;
int BUTTON_PIN = 5;
int STATUS_PIN = 13;
IRrecv irrecv(RECV_PIN);
IRsend irsend;
decode_results results;
#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2
// Wirele... | Put IR loop outside Re-enabled wifi | Put IR loop outside
Re-enabled wifi
| Arduino | bsd-2-clause | straypacket/arduinofences |
906aa80e5a4d280cd7f20468a98ffd9e4d9dfc2b | AnimatedGIFs.ino | AnimatedGIFs.ino | /*
* Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels
*
* Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
*
* Written by: Craig A. Lindley
*
* Copyright (c) 2014 Craig A. Lindley
* Refactoring by Louis Beaudoin (Pixelmatix)
*
* Permission is hereby granted, free of char... | /*
* Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels
*
* Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com
*
* Written by: Craig A. Lindley
*
* Copyright (c) 2014 Craig A. Lindley
* Refactoring by Louis Beaudoin (Pixelmatix)
*
* Permission is hereby granted, free of char... | Add comment on 64x64 panel support | Add comment on 64x64 panel support
| Arduino | mit | pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs |
2d1d8666e5bfd8989e5a83d39d32cc4e59ad6f6b | tests/bluetooth/src/sketch.ino | tests/bluetooth/src/sketch.ino | /*
Test for Bluetooth module
HC-06 RS232
Setup:
http://playground.arduino.cc/uploads/Learning/bluetooth.gif
*/
#include <SoftwareSerial.h>
#define LEDpin 13
#define BluRX 0
#define BluTX 1
SoftwareSerial bluSerial(BluRX, BluTX);
void setup() {
Serial.begin(9600);
pinMode(BluRX, INPUT);
... | /*
Test for Bluetooth module
HC-06 RS232
Setup:
http://playground.arduino.cc/uploads/Learning/bluetooth.gif
*/
#include <SoftwareSerial.h>
#define LEDpin 8
#define bluRX 2
#define bluTX 3
SoftwareSerial bluSerial(bluRX, bluTX);
char val;
void setup() {
Serial.begin(9600);
pinMode(13, OUTP... | remove useless code | remove useless code
| Arduino | mit | pedroscaff/sensor_platform,pedroscaff/sensor_platform |
ae608014a4cf2b4875946f05ef4424dbf75f8cd5 | 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 |
127f8b6c2a5a82498e91a7288691d55791880b7a | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | // Firmware for the CIWS Residential Datalogger
// Arduino IDE ver. 1.8.7
// Utah Water Research Lab
// Updated: 10/25/2018
// Daniel Henshaw and Josh Tracy
// Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it... | Update Firmware.ino | Update Firmware.ino | Arduino | bsd-3-clause | UCHIC/WaterMonitor |
6d4c65b364e95efa2f86f12d0a8a1500d91f9df9 | src/blinky.ino | src/blinky.ino | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
Adafruit_NeoPixel... | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
#define BASE_BRIGH... | add toggling patterns with setup button | add toggling patterns with setup button
| Arduino | apache-2.0 | byxorna/particle-neopixel-ring-blinky |
967c602ec5e689633107a9f7632ff5261165d713 | examples/VWI/CosaVWIkey/CosaVWIkey.ino | examples/VWI/CosaVWIkey/CosaVWIkey.ino | /**
* @file CosaVWIkey.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... | /**
* @file CosaVWIkey.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... | Allow CosaVWIkey to work on all variants. | Allow CosaVWIkey to work on all variants.
| Arduino | lgpl-2.1 | SinishaDjukic/Meshwork,kc9jud/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,rrobinet/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,kc9jud/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,jeditekunum/Cosa,mikaelpatel/Cosa,rrobinet... |
80122ff225891b1032dc63e7a0e49c3b0c811da3 | RadioReceiver/RadioReceiver.ino | RadioReceiver/RadioReceiver.ino | // receiver.pde
//
// Simple example of how to use VirtualWire to receive messages
// Implements a simplex (one-way) receiver with an Rx-B1 module
//
// See VirtualWire.h for detailed API docs
// Author: Mike McCauley (mikem@open.com.au)
// Copyright (C) 2008 Mike McCauley
// $Id: receiver.pde,v 1.3 2009/03/30 00:07:24... | // receiver.pde
//
// Simple example of how to use VirtualWire to receive messages
// Implements a simplex (one-way) receiver with an Rx-B1 module
//
// See VirtualWire.h for detailed API docs
// Author: Mike McCauley (mikem@open.com.au)
// Copyright (C) 2008 Mike McCauley
// $Id: receiver.pde,v 1.3 2009/03/30 00:07:24... | Reduce number of int. sent to 6 | Reduce number of int. sent to 6
| Arduino | mit | hailspuds/SensorProject---Receiver |
28f8ab561098abaf03ee95a051c6c95637f4b477 | Receiver_test/Receiver_test.ino | Receiver_test/Receiver_test.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define MSG_ADDR msg[0]
#define MSG_UNUSED01 msg[1]
#define MSG_CMD msg[2]
#define MSG_MOD1 msg[3]
#define MSG_MOD2 msg[4]
#define MSG_MOD3 msg[5]
#define MSG_... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define MSG_ADDR msg[0]
#define MSG_UNUSED01 msg[1]
#define MSG_CMD msg[2]
#define MSG_MOD1 msg[3]
#define MSG_MOD2 msg[4]
#define MSG_MOD3 msg[5]
#define MSG_... | Add BrightWheel | Add BrightWheel
Use BrightWheel for selecting colors from a palette. It uses maximum
luminocity for every color.
Use SmoothWheel for color fades. It uses a more consistant luminocity
for every color.
| Arduino | mit | RichardBronosky/lantern-sequencer,RichardBronosky/lantern-sequencer |
d36a76b5309fa98e32de8d41922c527e9672b992 | aquacontrol2.ino | aquacontrol2.ino | #include <Time.h>
#include <TimeLib.h>
#include <WiFiUdp.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
#include <FS.h>
#include <Ticker.h>
#include "SSD1306.h" //https://github.com/squix78/esp8266-oled-ssd1306
extern "C" {
#include "user_interface.h"
}
//https://gist.github.com/dogrocker/f998dde4dbac923c47c1
... | #include <Time.h>
#include <TimeLib.h>
#include <WiFiUdp.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
#include <FS.h>
#include <Ticker.h>
#include "SSD1306.h" //https://github.com/squix78/esp8266-oled-ssd1306
extern "C" {
#include "user_interface.h"
}
//https://gist.github.com/dogrocker/f998dde4dbac923c47c1
... | Disable memorylogging. | Disable memorylogging.
| Arduino | mit | CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2 |
4248e5b806f039fbd4e92156db90769d62d54703 | src/blinky.ino | src/blinky.ino | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
#define HSV_BRIGHT... | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
#define HSV_BRIGHT... | make center LED mirror patterns for rainbow | make center LED mirror patterns for rainbow
| Arduino | apache-2.0 | byxorna/particle-neopixel-ring-blinky |
8000d4be71f74ce912467b90f3f74524be5ef7ae | arduino_files/neopixel_bluetooth_picker/neopixel_bluetooth_picker.ino | arduino_files/neopixel_bluetooth_picker/neopixel_bluetooth_picker.ino | /*********************************************************************
This is an example for our nRF51822 based Bluefruit LE modules
Pick one up today in the adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
product... | /*********************************************************************
This is an example for our nRF51822 based Bluefruit LE modules
Pick one up today in the adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
product... | Update neopixel_bluetooth_picker.ino | Update neopixel_bluetooth_picker.ino | Arduino | mit | MauricePeek513/MySneakerProject,MauricePeek513/MySneakerProject,MauricePeek513/MySneakerProject |
8b4cadc32b3819c8e66dbfb7c776d5a2a4465253 | Segment16Sign.ino | Segment16Sign.ino | #include <FastLED.h>
#include <Segment16.h>
Segment16 display;
uint32_t incomingByte = 0, input = 0; // for incoming serial data
void setup(){
Serial.begin(9600);
while (!Serial) {} // wait for Leonard
Serial.println("Type any character to start");
while (Serial.read() <= 0) {}
delay(200); // Catch Due ... | #include <FastLED.h>
#include <Segment16.h>
Segment16 display;
uint32_t incomingByte = 0, input = 0; // for incoming serial data
void setup(){
Serial.begin(9600);
Serial1.begin(9600);
while (!Serial || !Serial1) {} // wait for Leonard
String prompt = "Type any character to start";
Serial.println(prompt)... | Add Serial1 | Add Serial1
| Arduino | mit | bguest/Segment16Sign,bguest/Segment16Sign |
ffa95f67e90df3507d71b2cbdce57fff4c8d07c6 | coffee-scale.ino | coffee-scale.ino | #include <RunningAverage.h>
#include <HX711.h>
#include "TimerDisplay.h"
#include "GramsDisplay.h"
#define DISP_TIMER_CLK 2
#define DISP_TIMER_DIO 3
#define DISP_SCALE_CLK 8
#define DISP_SCALE_DIO 9
#define SCALE_DT A2
#define SCALE_SCK A1
#define FILTER_SIZE 10
#define SCALE_FACTOR 1874
#define SCALE_OF... | #include <RunningAverage.h>
#include <HX711.h>
#include "TimerDisplay.h"
#include "GramsDisplay.h"
#define DISP_TIMER_CLK 2
#define DISP_TIMER_DIO 3
#define DISP_SCALE_CLK 8
#define DISP_SCALE_DIO 9
#define SCALE_DT A2
#define SCALE_SCK A1
#define FILTER_SIZE 10
#define SCALE_FACTOR 1874
#define SCALE_OF... | Put opening braces on separate line | Put opening braces on separate line
| Arduino | mit | mortenfyhn/coffee-scales |
9a6ade7e78ec80411ede56ecc57675ad05c78846 | examples/mkr1010/mkr1010.ino | examples/mkr1010/mkr1010.ino | /**
* Example that connects an Arduino MKR 1010 to the Losant
* IoT platform. This example reports state to Losant whenever a button is
* pressed. It also listens for the "toggle" command to turn the LED on and off.
*
* This example assumes the following connections:
* Button connected to pin 14.
* LED connected... | /**
* Example that connects an Arduino MKR 1010 to the Losant
* IoT platform. This example reports state to Losant whenever a button is
* pressed. It also listens for the "toggle" command to turn the LED on and off.
*
* This example assumes the following connections:
* Button connected to pin 14.
* LED connected... | update mkr1010 example | update mkr1010 example
| Arduino | mit | Losant/losant-mqtt-arduino,Losant/losant-sdk-arduino,Losant/losant-mqtt-arduino,Losant/losant-sdk-arduino |
a6afd711d48a7e76b156cdb1332999d5073a29dd | client/client.ino | client/client.ino | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | change simple toggle clients to 'power' instead of lampclient with 'brightness' | change simple toggle clients to 'power' instead of lampclient with 'brightness'
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
e3aa90f1346eebc8845763f08142181128a66b03 | UltrasonicRanger/examples/UltraDisOnSeeedSerialLcd/UltraDisOnSeeedSerialLcd.ino | UltrasonicRanger/examples/UltraDisOnSeeedSerialLcd/UltraDisOnSeeedSerialLcd.ino | /***************************************************************************/
// Function: Measure the distance to obstacles in front and display the
// result on seeedstudio serialLcd. Make sure you installed the
// serialLCD, SofewareSerial and Ultrasonic library.
// Hardware: Grove - Ultrasonic Ranger... | /***************************************************************************/
// Function: Measure the distance to obstacles in front and display the
// result on seeedstudio serialLcd. Make sure you installed the
// serialLCD, SofewareSerial and Ultrasonic library.
// Hardware: Grove - Ultrasonic Ranger... | Update UltraDisOnSeeedSerialLcd.ino | Update UltraDisOnSeeedSerialLcd.ino
Change the serial pin because of the Grove - Base Shield without D11/D12 interface. | Arduino | mit | Amahmoud1994/Grove_Ultrasonic_Ranger,Seeed-Studio/Grove_Ultrasonic_Ranger |
f92b4e21a4d699887aeff899bbceb472e432062b | frontdoor/frontdoor.ino | frontdoor/frontdoor.ino | #include <SPI.h>
#include <RF24.h>
#include <nRF24L01.h>
#include <RF24_config.h>
//We always have to include the library
#include "LedControl.h"
#include "font.h"
static LedControl lc = LedControl(/*data*/ 2, /*clk*/ 4, /*cs*/ 3, /*#devices*/ 2);
static long int address = 0x66996699L; // So that's 0x0066996699
s... | #include <stdint.h>
#include <SPI.h>
#include <RF24.h>
//We always have to include the library
#include "LedControl.h"
#include "font.h"
static LedControl lc = LedControl(/*data*/ 2, /*clk*/ 4, /*cs*/ 3, /*#devices*/ 2);
static uint64_t address = 0x66996699LL; // So that's 0x0066996699
static RF24 rf(/*ce*/ 9, /*... | Work in progress | Work in progress
| Arduino | bsd-2-clause | bertrik/matrixscroller,bertrik/matrixscroller |
e049a745b885fd3fe65bf9b3a3cb660f0c2b6f32 | frontdoor/frontdoor.ino | frontdoor/frontdoor.ino | #include <stdint.h>
#include <SPI.h>
#include <RF24.h>
//We always have to include the library
#include "LedControl.h"
#include "font.h"
static LedControl lc = LedControl(/*data*/ 2, /*clk*/ 4, /*cs*/ 3, /*#devices*/ 2);
static uint64_t address = 0x66996699LL; // So that's 0x0066996699
static RF24 rf(/*ce*/ 9, /*... | #include <stdint.h>
#include <SPI.h>
#include <RF24.h>
//We always have to include the library
#include "LedControl.h"
#include "font.h"
static LedControl lc = LedControl(/*data*/ 2, /*clk*/ 4, /*cs*/ 3, /*#devices*/ 2);
static uint64_t address = 0x66996699LL; // So that's 0x0066996699
static RF24 rf(/*ce*/ 9, /*... | Update NRF reception logic, this should hopefully get rid of the reception weirdness (receiving the previous message when a new message is sent) | Update NRF reception logic, this should hopefully get rid of the reception weirdness
(receiving the previous message when a new message is sent)
| Arduino | bsd-2-clause | bertrik/matrixscroller,bertrik/matrixscroller |
98b27ff231d562af2ce764f6600184746c313c29 | examples/DMASpi_example1/DMASpi_example1.ino | examples/DMASpi_example1/DMASpi_example1.ino | #include <ChipSelect.h>
#include <DmaSpi.h>
// create a chip select object. This one uses the pin that the built-in LED is connected to.
ActiveLowChipSelect<LED_BUILTIN> cs;
void setup() {
DMASPI0.begin();
// create a transfer object
DmaSpi0::Transfer trx(nullptr, 100, nullptr, 0xFF, &cs);
// and register it... | #include <ChipSelect.h>
#include <DmaSpi.h>
// create a chip select object. This one uses pin 14.
ActiveLowChipSelect<14> cs;
void setup() {
DMASPI0.begin();
// create a transfer object
DmaSpi0::Transfer trx(nullptr, 100, nullptr, 0xFF, &cs);
// and register it. If the DMA SPI is idle, it will immediately st... | Update DMASpi_example1.ino | Update DMASpi_example1.ino
Picked a better CS pin - this was LED_BUILTIN (13) before, which is SCK. Bad. | Arduino | mit | crteensy/DmaSpi |
c7aa4a53b4eb5288e7017dbcaa4262e06c0d3cd4 | examples/Parser-KeyValue/Parser-KeyValue.ino | examples/Parser-KeyValue/Parser-KeyValue.ino | /* Copyright 2016 Pascal Vizeli <pvizeli@syshack.ch>
* BSD License
*
* https://github.com/pvizeli/CmdParser
*/
////
// This example is a demo for CmdParser.
// It parse a command line from string buffer or CmdBuffer.
////
#include <CmdParser.hpp>
CmdParser cmdParser;
char myTestCmd[] = "run sensor=\"Set my val\... | /* Copyright 2016 Pascal Vizeli <pvizeli@syshack.ch>
* BSD License
*
* https://github.com/pvizeli/CmdParser
*/
////
// This example is a demo for CmdParser.
// It parse a command line from string buffer or CmdBuffer.
////
#include <CmdParser.hpp>
CmdParser cmdParser;
char myTestCmd[] = "run sensor=\"Set my val\... | fix example | fix example
| Arduino | bsd-3-clause | pvizeli/CmdParser |
63d97fa4be80e40899c5000a5e33234b0a93eae2 | V1_0.ino | V1_0.ino | #include <avr/io.h>
#include <avr/interrupt.h>
#include <util/crc16.h>
#include <SPI.h>
#include <RFM22.h>
#include <TinyGPS.h>
#define ASCII 7 // ASCII 7 or 8
#define STOPBITS 2 // Either 1 or 2
#define TXDELAY 0 // Delay between sentence TX's
#define RTTY_BAUD 50 // Baud rate for use with R... | #include <avr/io.h>
#include <avr/interrupt.h>
#include <util/crc16.h>
#include <SPI.h>
#include <RFM22.h>
#include <TinyGPS.h>
#define ASCII 7 // ASCII 7 or 8
#define STOPBITS 2 // Either 1 or 2
#define TXDELAY 0 // Delay between sentence TX's
#define RTTY_BAUD 50 // Baud rate for use with R... | fix buffer overflow bugs | fix buffer overflow bugs
| Arduino | bsd-2-clause | bertrik/picoballoon |
5c9908a0d5cee4633151ee7da735a48365867667 | example/MAIN.ino | example/MAIN.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ฤฑ
DRV88... | #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ฤฑ
DRV88... | Update MAIN.ino | Update MAIN.ino | Arduino | apache-2.0 | tunataskintuna35/MPXV6115Vacuum |
dc5612d086698fc78dafac42a1779b1ff7c6313a | Computer_Switch/Computer_Switch.ino | Computer_Switch/Computer_Switch.ino | //----------------------------------------------------------------------------------------------------------------
// Computer_Switch.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers may require extensive tweaking.
//
// This runs a small webserver hosting a tiny API to remotely power on... | //----------------------------------------------------------------------------------------------------------------
// Computer_Switch.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers may require extensive tweaking.
//
// This runs a small webserver hosting a tiny API to remotely power on... | Fix SendGratuitousARP() | Fix SendGratuitousARP()
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
c7a9774c1d78cc26772401337d7f86f217fa6237 | Event_Printer/Event_Printer.ino | Event_Printer/Event_Printer.ino |
#include <SPI.h>
#include <mcp_can.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 0
#define PRINT_STATUS_TO_TFT 1
/* Helper Macros */
#define... |
#include <SPI.h>
#include <mcp_can.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 0
#define PRINT_STATUS_TO_TFT 1
/* Helper Macros */
#define... | Fix the info button support | Fix the info button support
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
a77a00508c025b7f19a56b96ccdb654f2c8001ea | Arduino/HMC5883L_raw/HMC5883L_raw.ino | Arduino/HMC5883L_raw/HMC5883L_raw.ino | // I2C device class (I2Cdev) demonstration Arduino sketch for HMC5883L class
// 10/7/2011 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-04 - Added Heading Calculation in degrees
// 2011-10-07 - initial re... | // I2C device class (I2Cdev) demonstration Arduino sketch for HMC5883L class
// 10/7/2011 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-04 - Added Heading Calculation in degrees
// 2011-10-07 - initial re... | Enable bypass on MPU6050 to be able to read magnetometer according to hint given on Drotek forum http://www.drotek.fr/forum/viewtopic.php?f=10&t=204 | Enable bypass on MPU6050 to be able to read magnetometer according to hint given on Drotek forum
http://www.drotek.fr/forum/viewtopic.php?f=10&t=204
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
32b8a4a04b7809474664a8bedb28a94fb28c75a0 | protocol/modbus/lab/rs485_smodbus_master.ino | protocol/modbus/lab/rs485_smodbus_master.ino | #include <SimpleModbusMaster.h>
#define baud 19200
#define timeout 1000
#define polling 2000
#define retry_count 10
#define TxEnablePin 2
#define LED 9
//ID slave node
#define ID 10
#define TOTAL_NO_OF_REGISTERS 1
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // leave this last entry
};
Packet packets[TOTAL_... | #include <SimpleModbusMaster.h>
#define baud 19200
#define timeout 1000
#define polling 2000
#define retry_count 10
#define TxEnablePin 2
#define LED 9
//ID slave node
#define SLAVEID 10
#define SLAVEADDREG 1
#define rnoreg 1
#define TOTAL_NO_OF_REGISTERS 2
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // le... | Update rs485_smodbus_master.ino | Update rs485_smodbus_master.ino | Arduino | mit | pumanzor/security,pumanzor/security,pumanzor/security |
ed5c77d430e7a0073cc9366c4333f150b8f466c3 | dfrdb/dfrdb.ino | dfrdb/dfrdb.ino | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL: (hold pin 0 for this use)
ELE: (hold pin 1 for this use)
THR: 3
RUD: 2
power ... | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL: (hold pin 0 for this use)
ELE: (hold pin 1 for this use)
THR: 3
RUD: 2
power ... | fix mixing bracket | fix mixing bracket
| Arduino | mit | KFW/DF_Romeo_Drive_Bot |
621556ed872b54832c5efa89e9b578b431a9b5a3 | Segment16Sign.ino | Segment16Sign.ino | #include <FastLED.h>
#include <Segment16.h>
Segment16 display;
void setup(){
Serial.begin(9600);
}
void loop(){
display.show();
delay(2);
}
| #include <FastLED.h>
#include <Segment16.h>
Segment16 display;
void setup(){
Serial.begin(9600);
while (!Serial) {} // wait for Leonardo
Serial.println("Type any character to start");
while (Serial.read() <= 0) {}
delay(200); // Catch Due reset problem
// assume the user typed a valid character and no r... | Add debug stuff | Add debug stuff
| Arduino | mit | bguest/Segment16Sign,bguest/Segment16Sign |
d688f03d29e3e28144066fdc8cfe8c11e7cb7e8a | Teensy/Teensy.ino | Teensy/Teensy.ino | /******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | /******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | add Serial1.flush(); for out buffer | add Serial1.flush(); for out buffer | Arduino | mit | munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights |
1a0a0169d44cc16706d6a0c6c29d531477f5da0b | libraries/DS3231/examples/CosaDS3231/CosaDS3231.ino | libraries/DS3231/examples/CosaDS3231/CosaDS3231.ino | /**
* @file CosaDS3231.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | /**
* @file CosaDS3231.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | Adjust temperature print-out. | Adjust temperature print-out.
| Arduino | lgpl-2.1 | dansut/Cosa,dansut/Cosa,dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa |
d5560327ddbd85a299deec8ad3e7bd4850357ea6 | Weather_Station/Solar-Weather-Station-V2.0-wifi_mgr.ino | Weather_Station/Solar-Weather-Station-V2.0-wifi_mgr.ino | //----------------------------------------------------------------------------------------------------
// Project Name : Solar Powered WiFi Weather Station V2.0
// Authors: Keith Hungerford and Debasish Dutta
// Website : www.opengreenenergy.com
// This code is derived from the example code of farmerkeith_BMP280.h ... | //----------------------------------------------------------------------------------------------------
// Project Name : Solar Powered WiFi Weather Station V2.0
// Authors: Keith Hungerford and Debasish Dutta
// Website : www.opengreenenergy.com
// This code is derived from the example code of farmerkeith_BMP280.h ... | Update Solar-Weather-Station-V2.0-wifi_mgr.ino | Update Solar-Weather-Station-V2.0-wifi_mgr.ino | Arduino | apache-2.0 | chancsc/SC_SmartThings,chancsc/SC_SmartThings |
9ff1d591f4e21837157af92e12a2ecfccb9f482f | main/main.ino | main/main.ino | /*
* ZoomMRT-3B_MIDI_USB
*
* Created: 13/3/2017
* Author: HyDz
* USB Midified ZoomMRT-3B for Traktor
*
*/
#include "MIDIUSB.h"
#include "inputs.h"
#include "outputs.h"
#include "interruptsfunctions.h"
const int MidiChannel = 2; // channel 3 (channel 1 has value 0)
//Pulse per quarter note. Each beat has 2... | /*
* ZoomMRT-3B_MIDI_USB
*
* Created: 13/3/2017
* Author: HyDz
* USB Midified ZoomMRT-3B for Traktor
*
*/
#include "MIDIUSB.h"
#include "inputs.h"
#include "outputs.h"
#include "interruptsfunctions.h"
const int MidiChannel = 2; // channel 3 (channel 1 has value 0)
//Pulse per quarter note. Each beat has 2... | Update main.ino | Update main.ino | Arduino | mit | HyDz/ZoomMRT-3B_MIDI_USB |
d12a009a51bde7615c782465c64a950e39466243 | arduino/PiezoBuzzerSerialRead/PiezoBuzzerSerialRead.ino | arduino/PiezoBuzzerSerialRead/PiezoBuzzerSerialRead.ino | /* Arduino tutorial - Buzzer / Piezo Speaker
More info and circuit: http://www.ardumotive.com/how-to-use-a-buzzer-en.html
Dev: Michalis Vasilakis // Date: 9/6/2015 // www.ardumotive.com */
const int buzzer1 = 9; // buzzer to arduino pin 9
const int ledPin = 13; // on-board LED
int flip = 0;
int onTime = 100;
in... | /* Original code from: http://www.ardumotive.com/how-to-use-a-buzzer-en.html
Modified by @cacheflowe */
const int buzzer1 = 9; // buzzer to arduino pin 9
const int ledPin = 13; // on-board LED
int flip = 0;
int onTime = 100;
int offTime = 100;
int toneHz = 100;
bool gotNewInput = false;
void setup(){
pinMode(bu... | Update PiezoBuzzerSerialRead.ino | Update PiezoBuzzerSerialRead.ino
| Arduino | mit | cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic |
dfdc1d21503713c33d7fb3df36a756c1991c96f7 | WemosD1-CodeCoverageLEDStrip/CoverallsCodeCoverageLEDStrip/CoverallsCodeCoverageLEDStrip.ino | WemosD1-CodeCoverageLEDStrip/CoverallsCodeCoverageLEDStrip/CoverallsCodeCoverageLEDStrip.ino | /*
* This is arduino client that changes LED stripe colors according to percentage of code coverage.
* For now the colors would change every 10%, so in total 10 different colors.
*
* 90 - 100: 00FF00
* 80 - 90: FFCC00
* 70 - 80: FF9900
* 60 - 70: FF6600
* 50 - 60: FF3300
* < 50: FF0000
*/
#include <... | /*
* This is arduino client that changes LED stripe colors according to percentage of code coverage.
* For now the colors would change every 10%, so in total 10 different colors.
*
* 90 - 100: 00FF00
* 80 - 90: FFCC00
* 70 - 80: FF9900
* 60 - 70: FF6600
* 50 - 60: FF3300
* < 50: FF0000
*/
#include <... | Add placeholder for wifi ssid and password | Add placeholder for wifi ssid and password
| Arduino | mit | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife |
cdf4e014126bd279da014ca5164fb798cfa10bb2 | firmware.ino | firmware.ino | #include "led.h"
#include "display.h"
#include "motor.h"
#include "communication.h"
const int LED_RED_PIN = 11;
const int LED_GREEN_PIN = 9;
const int LED_BLUE_PIN = 10;
const int DISPLAY_DATA_PIN = 4; // Pin connected to Pin 14 of 74HC595
const int DISPLAY_CLOCK_PIN = 2; // Pin connected to Pin 11 of 74HC595
cons... | #include <SwitecX25.h>
#include "led.h"
#include "display.h"
#include "motor.h"
#include "communication.h"
const int LED_RED_PIN = 11;
const int LED_GREEN_PIN = 9;
const int LED_BLUE_PIN = 10;
const int DISPLAY_DATA_PIN = 4; // Pin connected to Pin 14 of 74HC595
const int DISPLAY_CLOCK_PIN = 2; // Pin connected to... | Include SwitecX25 library in .ino to trigger Arduino library compilation. | Include SwitecX25 library in .ino to trigger Arduino library compilation.
| Arduino | bsd-3-clause | openxc-retro-gauge/retro-gauge-firmware,openxc-retro-gauge/retro-gauge-firmware |
de91130a375b34b4b03433cc9384c267365d779a | module/module.ino | module/module.ino | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMode(speakerPin, OUTPUT);
// Set up serial communic... | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMode(speakerPin, OUTPUT);
// Set up serial communic... | Clean up | Clean up
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
828f4f03524cad081949b6348805e2fc5e725a06 | arduino/kegbot/kegbot.ino | arduino/kegbot/kegbot.ino | // ***Use the AVRISP mkII programer***
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsServer.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266mDNS.h>
#include "HX711.h"
#include "DHT.h"
const char* ssid = "";
const char* password = "";
String serverUrl = "h... | // ***Use the AVRISP mkII programer***
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsServer.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266mDNS.h>
#include "HX711.h"
#include "DHT.h"
const char* ssid = "";
const char* password = "";
String serverUrl = "h... | update settings path | update settings path
| Arduino | mpl-2.0 | drifterz28/kegbot,drifterz28/kegbot |
d56dda3c4dd9f3dd4cadbc73c0e51f09384208be | arduino/scetch/scetch.ino | arduino/scetch/scetch.ino | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;
const byte guideLaserPin = 29;
const byte powerLevel = 20;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte ... | const byte adjPowerPin = 45;
const byte latchPin = 37;
const byte eePin = 35;
const byte emPin = 33;
const byte prrPin = 31;
const byte buttonPin = A0;
const byte ledPin = 13;
const byte guideLaserPin = 29;
const byte powerLevel = 20;
const byte auxToPowerMillis = 100;
const byte powerToLatchMillis = 100;
const byte ... | fix submitPower call | fix submitPower call
| Arduino | mit | antego/laser_control |
0cad6be33aae34fd20c20d31fae95876bb45f054 | examples/Phone/Phone.ino | examples/Phone/Phone.ino | /*
* This is the official Phoenard Arduino Phone OS sketch. The software supports
* various cool features/operations you can do by default. All functionality
* is implemented with general-purpose widgets and Phoenard library functions.
* Feel free to tweak this to your hearts content!
* -/-
*
* The default funct... | /*
* This is the official Phoenard Arduino Phone OS sketch. The software supports
* various cool features/operations you can do by default. All functionality
* is implemented with general-purpose widgets and Phoenard library functions.
* Feel free to tweak this to your hearts content!
* -/-
*
* The default funct... | fix rare glitch when entering pin | Phone: fix rare glitch when entering pin
Probably uninitialized data getting drawn
| Arduino | mit | Phoenard/Phoenard,wrh3c/Phoenard,Phoenard/Phoenard,wrh3c/Phoenard |
19d5de7c669afe102208f6d2bc477fb28bee8a6a | examples/ClockStepper/ClockStepper.ino | examples/ClockStepper/ClockStepper.ino | /*
* Clock Microstepping demo
*
* Moves the stepper motor like the seconds hand of a watch.
*
* Copyright (C)2015-2017 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Ardui... | /*
* Clock Microstepping demo
*
* Moves the stepper motor like the seconds hand of a watch.
*
* Copyright (C)2015-2017 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Ardui... | Update ClockStepper.ino | Update ClockStepper.ino
Repair call "BasicStepperDriver" | Arduino | mit | laurb9/StepperDriver |
b53997d1d6df772fd7bbb93b3420a642cd933f02 | examples/acceleration/acceleration.ino | examples/acceleration/acceleration.ino | /*
acceleration.ino
Example of LEGOPowerFunctions library
modified by Mateusz Jaros / The JarOS
04.05.2015
CONNECTIONS:
*Arduino
IR LED connected by 220 Ohm resistor to 10 pin.
*LEGO
Two motors connected to battery box by IR receiver(set on 1st channel).
This sket... | /*
acceleration.ino
Example of LEGOPowerFunctions library,
created by Mateusz Jaros / The JarOS
04.05.2015
CONNECTIONS:
*Arduino
IR LED connected by 220 Ohm resistor to 10 pin.
*LEGO
Two motors connected to battery box by IR receiver(set on 1st channel).
This sket... | Update acceleration.ino | Update acceleration.ino | Arduino | cc0-1.0 | TheJarOS/LegoPowerFunctions-Arduino-Library |
c659233649e212cc3c1b5278dfbf654e24a60735 | client/client.ino | client/client.ino | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | fix led timeout bug | fix led timeout bug
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
7bd5fbadf93dfd23e7b4023e50c0e2d4a6929de8 | examples/RF12/poller/poller.ino | examples/RF12/poller/poller.ino | // Polls a number of "pollee" nodes as fast as possible to get data from them.
// 2011-11-23 <jcw@equi4.com> http://opensource.org/licenses/mit-license.php
//
// Warning: this test will flood the radio band so nothing else gets through!
//
// Maximum rates will only be achieved if all nodes 1 .. NUM_NODES are powered
/... | // Polls a number of "pollee" nodes as fast as possible to get data from them.
// 2011-11-23 <jcw@equi4.com> http://opensource.org/licenses/mit-license.php
//
// Warning: this test will flood the radio band so nothing else gets through!
//
// Maximum rates will only be achieved if all nodes 1 .. NUM_NODES are powered
/... | add missing cast | add missing cast
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
814d54ecfe07b56c40c1de751ee291bcf7c85370 | Mqtt/mqtt.ino | Mqtt/mqtt.ino | #include <ESP8266WiFi.h>
#include <DHT.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#include <SoftwareSerial.h>
#define WLAN_SSID "Ren"
#define WLAN_PASS "ewpsoldiermx9pua6j"
#define arduino_status "arduino/ac/status" // STATUS subscribe/publish
#define ar... | #include <ESP8266WiFi.h>
#include <DHT.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#include <SoftwareSerial.h>
#define WLAN_SSID "Your ssid"
#define WLAN_PASS "Your password"
#define arduino_status "arduino/ac/status" // STATUS subscribe/publis... | Update mqtt.ino | Update mqtt.ino | Arduino | mit | MRuniversee/Project_AC |
cc715b5a684a2a89be22d1661b27bd809b0cfcaf | Mqtt/mqtt.ino | Mqtt/mqtt.ino | #include <ESP8266WiFi.h>
#include <DHT.h> // Humidity & Temperature sensor library
#include "Adafruit_MQTT.h" //
#include "Adafruit_MQTT_Client.h" // Mqtt library from adafruit
#define WLAN_SSID "Your ssid"
#define WLAN_PASS "Your password"
... | #include <ESP8266WiFi.h>
#include <DHT.h> // Humidity & Temperature sensor library
#include "Adafruit_MQTT.h" //
#include "Adafruit_MQTT_Client.h" // Mqtt library from adafruit
#define WLAN_SSID "Your ssid"
#define WLAN_PASS "Your password"
... | Update mqtt.ino | Update mqtt.ino | Arduino | mit | MRuniversee/Project_AC |
09454535c24409a811e12ac6e2895ff0c50e2f09 | TX/TX.ino | TX/TX.ino | #include <cc1101.h>
#define pksize 61
const char * strbuf = "Test Message";
byte txbuf[pksize] = {0};
byte txsize;
unsigned long txnum = 0;
unsigned int i;
void setup() {
// start computer communication
Serial.begin(9600);
// wait for everything to become ready
delay(100);
// initialize radio communic... | #include <cc1101.h>
#define pksize 61
byte txbuf[pksize] = {0};
byte txsize = 0;
unsigned long txnum = 0;
int i = 0;
byte transmit = 0;
void setup() {
// start computer communication
Serial.begin(9600);
// wait for everything to become ready
delay(100);
// initialize radio communication
Radio.Init()... | add working transmit | add working transmit
| Arduino | mit | fkmclane/derailleurs,fkmclane/derailleurs,fkmclane/derailleurs |
52bdc61ae03b2265f0cb60f985ce551b322ffc79 | code/code.ino | code/code.ino | #define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#include <Wire.h>
#include "PID.h"
void Task100Hz(void);
extern void initI2CMPU(void);
extern void getMPUValues(void);
extern void printMPUValues(void);
extern void measureIMUSensors(void);
e... | #define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200
#include <SD.h>
#include <Wire.h>
#include "PID.h"
void Task100Hz(void);
extern void initI2CMPU(void);
extern void getMPUValues(void);
extern void printMPUValues(void);
extern void measureIMU... | Update code.ino | Update code.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
f98717d0c0d873190b9dc1f014fb9c6fdaf5b16e | main.ino | main.ino | #define TEMP_SENSOR_PIN D6
void setup() {
Serial.println("Starting up");
Spark.publish("Starting up");
}
void loop() {
Serial.println("Starting to read temperature.");
readSensorData();
Serial.println("Done reading temperature.");
delay(10000);
}
void readSensorData() {
pinMode(TEMP_SENSOR_PIN, OUTP... | #define TEMP_SENSOR_PIN D6
void setup() {
Serial.println("Starting up");
Spark.publish("Starting up");
}
void loop() {
Serial.println("Starting to read temperature.");
readSensorData();
Serial.println("Done reading temperature.");
delay(10000);
}
void readSensorData() {
pinMode(TEMP_SENSOR_PIN, OUTP... | Fix name conflict in latest version of SDK. | Fix name conflict in latest version of SDK.
| Arduino | mit | charleskorn/weather-thingy-particle,charleskorn/weather-thingy-particle,charleskorn/weather-thingy-particle |
2b9777bd5762dd34296fc86274d6bce10accb651 | arduino/edison2fiware.ino | arduino/edison2fiware.ino |
//################# LIBRARIES ################
#include <SPI.h>
#include <WiFi.h>
//################# WIFI DETAILS #################
char ssid[] = "xxxxx"; // your network SSID (name)
char pass[] = "xxxxx"; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; ... |
//################# LIBRARIES ################
#include <SPI.h>
#include <WiFi.h>
//################# WIFI DETAILS #################
char ssid[] = "xxxxx"; // your network SSID (name)
char pass[] = "xxxxx"; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; ... | update edison2fiware | update edison2fiware
| Arduino | agpl-3.0 | telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison |
7014f3dc71fa38965a0ea795e2547e59116e9373 | examples/RFID-Cloner/RFID-Cloner.ino | examples/RFID-Cloner/RFID-Cloner.ino | /*
Copy the RFID card data into variables and then
scan the second empty card to copy all the date
* ----------------------------------------------------------------------------
* Example sketch/program which will try the most used default keys listed in
* https://code.google.com/p/mfcuk/wiki/MifareClassicDefaultK... | /*
* Copy the RFID card data into variables and then
* scan the second empty card to copy all the date
* ----------------------------------------------------------------------------
* Example sketch/program which will try the most used default keys listed in
* https://code.google.com/p/mfcuk/wiki/MifareClassicDe... | fix old return type | fix old return type
byte -> MFRC522:::PICC_Type
| Arduino | unlicense | Rotzbua/rfid,hramrach/rfid,miguelbalboa/rfid,Rotzbua/rfid |
afa162c0101c9aae3f9c37d3cb21992a61d03a95 | examples/_0010_Blink/_0010_Blink.ino | examples/_0010_Blink/_0010_Blink.ino | //#define ESPERT_BOARD_ESPRESSO_LITE2
#ifdef ESPERT_BOARD_ESPRESSO_LITE2
static const int PIN_LED = 2; // ESPresso Lite v2.0
#else
static const int PIN_LED = 16; // ESPresso Lite
#endif
void setup() {
Serial.begin(115200);
pinMode(PIN_LED, OUTPUT);
}
void loop() {
digitalWrite(PIN_LED, LOW);
Serial.println("... | /*
* EPresso 1.0 LED_BUILTIN = 16;
* EPresso 2.0 LED_BUILTIN = 2;
*/
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
Serial.println("LED: On");
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("LED: Off");
delay(1000)... | use pre-defined LED_BUILTIN variable. | use pre-defined LED_BUILTIN variable.
| Arduino | mit | JimmySoftware/ESPert,JimmySoftware/ESPert,JimmySoftware/ESPert |
2fdde3f4a499b031faba729e6fb373d8142d2612 | sanro/sanro.ino | sanro/sanro.ino | /***************************************************************
* *
* Taiko Sanro - Arduino *
* Support Arduino models with ATmega32u4 microprocessors *
* ... | /***************************************************************
* *
* Taiko Sanro - Arduino *
* Support Arduino models with ATmega32u4 microprocessors *
* ... | Update sanro.ino | Update sanro.ino | Arduino | mit | ShikyC/Sanro-Arduino |
c6c4e70e8fa52c6e2c0fbaf0cc4dafc3806a0595 | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
#include <Sensirion.h>
// soil related setup
#define dataPin 3
#define clockPin 4
Sensirion soilSensor = Sensirion(dataPin, clockPin);
float soilTemperature;
float soilMoisture;
float dewpoint;
// air temperature related setup
#define DHTPIN 2 ... | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
#include <Sensirion.h>
// soil related setup
#define dataPin 3
#define clockPin 4
Sensirion soilSensor = Sensirion(dataPin, clockPin);
float soilTemperature;
float soilMoisture;
float dewpoint;
// air temperature related setup
#define DHTPIN 2 ... | Add setter for LDRValue | Add setter for LDRValue
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden |
e523630031284fb4437d70393a2465673a4a1ca6 | examples/connect_IP/connect_IP.ino | examples/connect_IP/connect_IP.ino | // ------------------------------------
// ๅบๅฎIPใขใใฌในใงWifiๆฅ็ถ
// ------------------------------------
#include <TESP8266.h>
// Wifi
String SSID = "xxx";
String PASSWORD = "xxx";
// ใฐใญใผใใซๅคๆฐ
TESP8266 httpClient(Serial);
void setup() {
// HardwareSerialใฎ้ไฟก้ๅบฆ(115.2kbps)
Serial.begin(115200);
//... | // ------------------------------------
// ๅบๅฎIPใขใใฌในใงWifiๆฅ็ถ
// ------------------------------------
#include <TESP8266.h>
// Wifi
const char* SSID = "xxx";
const char* PASSWORD = "xxx";
// ใฐใญใผใใซๅคๆฐ
TESP8266 httpClient(Serial);
void setup() {
// HardwareSerialใฎ้ไฟก้ๅบฆ(115.2kbps)
Serial.beg... | Update connect_IP.ino | Update connect_IP.ino | Arduino | mit | TakeshiOkamoto/TESP8266,TakeshiOkamoto/TESP8266 |
edb78cec9ec101a28326a314390affd47dca564f | stairs/main.ino | stairs/main.ino | // Use the FastLED library.
#include <FastLED.h>
// Serial DEBUG mode on/off
#undef DEBUG_POTS
// Analog input pins.
//
// .-------.
// | O O |
// | O O O |
// '-------'
//
// The device has five potentiometer inputs. The top left is a switch with 10
// different values, while the other four have a variable input b... | // Use the FastLED library.
#include <FastLED.h>
// Serial DEBUG mode on/off
#undef DEBUG_POTS
// Analog input pins.
//
// .-------.
// | O O |
// | O O O |
// '-------'
//
// The device has five potentiometer inputs. The top left is a switch with 10
// different values, while the other four have a variable input b... | Improve formatting | Improve formatting
| Arduino | mit | ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight |
005ea538a64c9b8b7d3b5954b8ad37db0330880b | games/pogpong.ino | games/pogpong.ino | #include <TVout.h>
#include <fontALL.h>
#include "schematic.h"
#include "TVOlogo.h"
TVout TV;
int xb = 60;
int yb = 60;
int xj1 = 0;
int xj2 = 0;
int i = 1;
int j = 1;
int ponto1 = 0;
int ponto2 = 0;
void setup() {
TV.begin(NTSC,120,96);
randomSeed(analogRead(0));
TV.select_font(font4x6);
for(int k=0; k < ... | #include <TVout.h>
#include <fontALL.h>
#include "schematic.h"
#include "TVOlogo.h"
#define HRES 144 //Resolucao TV
#define VRES 96 //
#define TV_MODE NTSC
#define REFRESH_RATE 5
#define FONT8 font8x8 //Fonte padrao
#define PLAYER1 2 //Potenciometro player 1
#define PLAYER2 1 //Potenciom... | Update pogpong.ino | Update pogpong.ino | Arduino | mit | HackerSpaceMaringa/PolySpaceGames,HackerSpaceMaringa/PolySpaceGames |
c3b39ab48ea5898205b4f731ab7af2919dde02e8 | iot/iot.ino | iot/iot.ino | #include <Servo.h>
int LED_PIN = 13;
int SERVO_PIN = 9;
int BUTTON_PIN = 8;
Servo servo;
int servo_pos = 0;
int servo_state = 0;
int servo_delay = 0;
void setup() {
Serial.begin(9600);
// Initialize LED output
pinMode(LED_PIN, OUTPUT);
// Initialize button input
pinMode(BUTTON_PIN, INPUT);
// Initia... | #include <Servo.h>
int LED_PIN = 13;
int SERVO_PIN = 9;
int BUTTON_PIN = 8;
int SPEAKER_PIN = 6;
Servo servo;
int servo_pos = 90;
int servo_state = 0;
int servo_delay = 0;
void setup() {
Serial.begin(9600);
// Initialize LED output
pinMode(LED_PIN, OUTPUT);
// Initialize button input
pinMode(BUTTON_PIN, ... | Add piezoelectric speaker | Add piezoelectric speaker
| Arduino | mit | MunazR/EngHack-IOT,MunazR/EngHack-IOT |
3ee52229e5eceb17d1168bf06260ab9fa0a16f4f | examples/ShowArrow/ShowArrow.ino | examples/ShowArrow/ShowArrow.ino | #include "microbit_Screen.h"
void setup() {
SCREEN.begin();
}
void loop() {
for (int i = 0; i < 8; i++)
SCREEN.showArrow(i);
}
| #include "microbit_Screen.h"
void setup() {
SCREEN.begin();
}
void loop() {
// CW
for (int i = 0; i < 8; i++)
SCREEN.showArrow((ArrowNames)i);
// CCW
SCREEN.showArrow(ArrowNames::North);
SCREEN.showArrow(ArrowNames::NorthWest);
SCREEN.showArrow(ArrowNames::West);
SCREEN.showArrow(ArrowNames::South... | Update ShowArrow.ino | Update ShowArrow.ino | Arduino | mit | ht-deko/microbit_Screen |
cd7c85affb4a4f9b4d3f7eebc6d48b4759b085d9 | examples/mqtt_test/mqtt_test.ino | examples/mqtt_test/mqtt_test.ino | #include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <MqttWrapper.h>
#include <PubSubClient.h>
const char* ssid = "ClickExec-IAP";
const char* pass = "click2499";
// const char* ssid = "OpenWrt_NAT_500GP.101";
// const char* pass = "activegateway";
#define WIFI_MAX_RETRIES 1500
#define WIFI_CONNECT_DELA... | #include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <MqttWrapper.h>
#include <PubSubClient.h>
const char* ssid = "OpenWrt_NAT_500GP.101";
const char* pass = "activegateway";
#define WIFI_MAX_RETRIES 1500
#define WIFI_CONNECT_DELAY_MS 20
MqttWrapper *mqtt;
void callback(const MQTT::Publish& pub) {
... | Test cmmc ap | Test cmmc ap
| Arduino | mit | cmmakerclub/CMMC_Connector,cmmakerclub/CMMC_Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector |
c57d5a004e1278dd93a15deedc0776667f9a4a24 | firmware/environmental-array.ino | firmware/environmental-array.ino | //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Environmental Data Array data collection firmware
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/*
Copyright (c) 2016 Martin F. Falatic
Licensed under the Apache License, Version 2.0 (... | //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Environmental Data Array data collection firmware
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/*
Copyright (c) 2016 Martin F. Falatic
Licensed under the Apache License, Version 2.0 (... | Add some serial debugging for hard failures | Add some serial debugging for hard failures
The Photon sometimes drops completely offline, and it's not clear if the device is hanging or simply unable to communicate. This should help determine that.
| Arduino | apache-2.0 | MartyMacGyver/EnvironmentalSensorManager,MartyMacGyver/EnvironmentalSensorManager,MartyMacGyver/EnvironmentalSensorManager |
cb8d6ba15c7b63d3739a34abdb03938ceb492206 | stairs/main.ino | stairs/main.ino | // Use the FastLED library.
#include <FastLED.h>
// Serial DEBUG mode on/off
#undef DEBUG_POTS
// Analog input pins.
//
// .-------.
// | O O |
// | O O O |
// '-------'
//
// The device has five potentiometer inputs. The top left is a switch with 10
// different values, while the other four have a variable input b... | // Use the FastLED library.
#include <FastLED.h>
// Serial DEBUG mode on/off
#undef DEBUG_POTS
// Analog input pins.
//
// .-------.
// | O O |
// | O O O |
// '-------'
//
// The device has five potentiometer inputs. The top left is a switch with 10
// different values, while the other four have a variable input b... | implement rainbow mode | stairs: implement rainbow mode
| Arduino | mit | ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight |
058a1a16c0475af21f1ae64a81ff48a265147f82 | examples/BasicShutters/BasicShutters.ino | examples/BasicShutters/BasicShutters.ino | #include <Shutters.h>
#include <EEPROM.h>
const byte eepromOffset = 0;
const unsigned long upCourseTime = 30 * 1000;
const unsigned long downCourseTime = 45 * 1000;
const float calibrationRatio = 0.1;
void shuttersOperationHandler(Shutters* s, ShuttersOperation operation) {
switch (operation) {
case ShuttersOpe... | #include <Shutters.h>
#include <EEPROM.h>
const byte eepromOffset = 0;
const unsigned long upCourseTime = 30 * 1000;
const unsigned long downCourseTime = 45 * 1000;
const float calibrationRatio = 0.1;
void shuttersOperationHandler(Shutters* s, ShuttersOperation operation) {
switch (operation) {
case ShuttersOpe... | Fix example | :bug: Fix example
| Arduino | mit | marvinroger/arduino-shutters |
3b6cce4625e9ea6cdca75200f3783cc095ae1cdf | linefollow/linefollow.ino | linefollow/linefollow.ino |
/***********************************************************************
* Adapted from Exp6_2_LineFollowing_IRSensors -- RedBot Experiment 6
***********************************************************************/
#include <RedBot.h>
RedBotSensor left = RedBotSensor(A3); // initialize a left sensor object on A3
... |
/***********************************************************************
* Adapted from Exp6_2_LineFollowing_IRSensors -- RedBot Experiment 6
***********************************************************************/
#include <RedBot.h>
RedBotSensor left = RedBotSensor(A3); // initialize a left sensor object on A3
... | Put speed into a variable before seeting; | Put speed into a variable before seeting;
| Arduino | agpl-3.0 | cstroe/cosmin-public,cstroe/cosmin-public,cstroe/cosmin-public |
1b548cb3001356990b15fd55e062e12d19f3fc58 | rx/src/rx.ino | rx/src/rx.ino | /*-------------------------------------------------------------
Bee Monitor V2.0
ArduinoRx - Receive data via RF, decod and print to serial - Arduino connected to web-connected Raspberry Pi via USB serial
Glyn Hudson 10/4/12
OpenEnergyMonitor.org
BeeMonitor.org
GNU GPL V3
//RF module: http://openenergymonitor.org/em... | /*-------------------------------------------------------------
Bee Monitor V2.0
ArduinoRx - Receive data via RF, decod and print to serial - Arduino connected to web-connected Raspberry Pi via USB serial
Glyn Hudson 10/4/12
OpenEnergyMonitor.org
BeeMonitor.org
GNU GPL V3
//RF module: http://openenergymonitor.org/em... | modify serial print method | modify serial print method
| Arduino | mit | glynhudson/BeeMonV2,glynhudson/BeeMonV2 |
4ef8d733dcd443b2ae63d39cc551b782e250c1e2 | examples/esp8266/WebSocketClientSocketIO/WebSocketClientSocketIO.ino | examples/esp8266/WebSocketClientSocketIO/WebSocketClientSocketIO.ino | /*
* WebSocketClientSocketIO.ino
*
* Created on: 06.06.2016
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ArduinoJson.h>
#include <WebSocketsClient.h>
#include <Hash.h>
ESP8266WiFiMulti WiFiMulti;
SocketIOclient socketIO;
#define USE_SERIAL ... | /*
* WebSocketClientSocketIO.ino
*
* Created on: 06.06.2016
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ArduinoJson.h>
#include <WebSocketsClient.h>
#include <SocketIOclient.h>
#include <Hash.h>
ESP8266WiFiMulti WiFiMulti;
SocketIOclient soc... | add missing include | add missing include
| Arduino | lgpl-2.1 | Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets |
ba63387bab65e4935fc40d7a4d7365d85ecc5e42 | playground/ServoTest/ServoTest.ino | playground/ServoTest/ServoTest.ino | /*
ServoTest
Test the positioning accuracy of a servo motor.
For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/ServoTest
*/
#include <Servo.h>
#define SERVO_PIN 9
#define STEP_DELAY 1000
#define IDEAL_MIN_PW 600
#define IDEAL_MAX_PW 2320
Servo myservo;... | /*
ServoTest
Test the positioning accuracy of a servo motor.
For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/ServoTest
*/
#include <Servo.h>
#define SERVO_PIN 9
#define STEP_DELAY 1000
// custom min/max pulse width settings that best suit my servos
/... | add some notes | [ServoTest] add some notes | Arduino | mit | tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects |
e32643f1d8daf7491b10de21b48c1f13664d18c3 | client/client.ino | client/client.ino | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | /*
client.ino
This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication.
Examples of clients include, for now, lamps and laptops.
Lamps ... | remove a delay that cause slow response | debug: remove a delay that cause slow response
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
a9b5115363a248df43e805e9146e394419af68d7 | src/wsn/Alive.ino | src/wsn/Alive.ino | #include <Arduino.h>
#include <RF12.h>
#include <radioutils.h>
int counter = 0; //
int msgCounter = 0;
void setup () {
Serial.begin(57600);
Serial.println("\n[Alive Send]");
#if !DEBUG
rf12_initialize(ID, RF12_868MHZ, GROUP);
#endif
}
void loop () {
//if incoming message received
if(rf12_recvDone()){
... | #include <Arduino.h>
#include <RF12.h>
#include <radioutils.h>
int counter = 0; //
int msgCounter = 0;
radioUtils ru = radioUtils();
void setup () {
Serial.begin(57600);
Serial.println("\n[Alive Send]");
#if !DEBUG
rf12_initialize(ID, RF12_868MHZ, GROUP);
#endif
}
void loop () {
//if incoming message rec... | send alive headers filled with radioUtils | send alive headers filled with radioUtils
| Arduino | mit | LukeMcNemee/Arduino,LukeMcNemee/Arduino |
ac043c474d402986c7d125bd099e441c93b7a0a2 | Software/OpenCM9.04/RovMain/RovMain.ino | Software/OpenCM9.04/RovMain/RovMain.ino | //----------------------------------------------------------------------------
// ํ๋ก๊ทธ๋จ๋ช
: RovMain
//
// ๋ง๋ ์ด :
//
// ๋ ์ง :
//
// ์ต์ข
์์ :
//
// MPU_Type :
//
// ํ์ผ๋ช
: RovMain.ino
//----------------------------------------------------------------------------
#include "RSP.h... | //----------------------------------------------------------------------------
// ํ๋ก๊ทธ๋จ๋ช
: RovMain
//
// ๋ง๋ ์ด :
//
// ๋ ์ง :
//
// ์ต์ข
์์ :
//
// MPU_Type :
//
// ํ์ผ๋ช
: RovMain.ino
//----------------------------------------------------------------------------
#include <Servo... | Modify pwm write Method | Modify pwm write Method | Arduino | mit | oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov |
3c9692413e5d0e01f1a609c196ee3020539dea06 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/dynamixel/dynamixel.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/dynamixel/dynamixel.ino | #include <OMDynamixel.h>
#include <vector>
#define DXL_SIZE 3
#define BAUD_RATE 57600
#define DEG2RAD (M_PI / 180.0)
#define RAD2DEG (180.0 / M_PI)
std::vector<float> goal_position;
std::vector<float> present_position;
OMDynamixel dxl(BAUD_RATE);
void setup()
{
Serial.begin(57600);
while(!Serial);
dxl.init(... | add test code | add test code
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR | |
5ca229ea24d0035d10d3e9d3c4b735200520eb5e | mech/mech.ino | mech/mech.ino | // Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor
// Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold"
// Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot"
// Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear).
// Measured 2964 steps 360 degrees rev... | // Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor
// Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold"
// Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot"
// Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear).
// Measured 2964 steps 360 degrees rev... | Repair Arduino compilation. | Repair Arduino compilation.
| Arduino | mit | dkaukov/ratu,dkaukov/ratu |
3eae2d031cd5cffb061b01bfe5bf346ac4cf8366 | examples/ArtnetNeopixel/ArtnetNeopixel.ino | examples/ArtnetNeopixel/ArtnetNeopixel.ino | #include <Artnet.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <Adafruit_NeoPixel.h>
// Neopixel settings
const int ledsPerStrip = 492; // change for your setup
const byte dataPin = 2;
Adafruit_NeoPixel leds = Adafruit_NeoPixel(ledsPerStrip, dataPin, NEO_GRB + NEO_KHZ800);
// Artnet sett... | #include <Artnet.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <Adafruit_NeoPixel.h>
// Neopixel settings
const int ledsPerStrip = 492; // change for your setup
const byte dataPin = 2;
Adafruit_NeoPixel leds = Adafruit_NeoPixel(ledsPerStrip, dataPin, NEO_GRB + NEO_KHZ800);
// Artnet sett... | Fix for Arduino compilation | Fix for Arduino compilation
| Arduino | mit | Stef-Sijben/Particle-Artnet |
6d0c0598f8b04bff4df43381396d67d99211d517 | examples/02-Utility/EchoBLE/EchoBLE.ino | examples/02-Utility/EchoBLE/EchoBLE.ino | /*
* EchoBLE
*
* Created: Ira Ray Jenkins, Creare, July 2020
* Purpose: Demonstrates BLE functionality of the Tympan BC127 Bluetooth module. Data
received via BLE will be echo'd back.
*
*/
#include <Tympan_Library.h>
Tympan myTympan(TympanRev::D);
usb_serial_class *USB_Serial;
HardwareSerial *BT_Serial;
String resp... | /*
* EchoBLE
*
* Created: Ira Ray Jenkins, Creare, July 2020
* Purpose: Demonstrates BLE functionality of the Tympan BC127 Bluetooth module. Data
received via BLE will be echo'd back.
*
*/
#include <Tympan_Library.h>
Tympan myTympan(TympanRev::D);
usb_serial_class *USB_Serial;
HardwareSerial *BT_Serial;
String resp... | Set BC127 to use BLE mode for android devices. | Set BC127 to use BLE mode for android devices.
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
c34d91a3a3dcc94a19c174090dcced83aa205034 | dayrider/dayrider.ino | dayrider/dayrider.ino | #include <Dagu4Motor.h>
#include <Encoder.h>
#include <Bridge.h>
#include <Mailbox.h>
#include "Movement.h"
#include <Adafruit_NeoPixel.h>
#include "NeoPixel.h"
#include "CollisionSensor.h"
Movement movement = Movement(5, 4, 3, 2, 11, 12, 9, 8);
// NeoPixel - KIT emulation :D
#define PIXEL_PIN 6
#define PIXEL_COUNT ... | #include <Dagu4Motor.h>
#include <Encoder.h>
#include <Bridge.h>
#include <Mailbox.h>
#include "Movement.h"
#include <Adafruit_NeoPixel.h>
#include "NeoPixel.h"
#include "CollisionSensor.h"
Movement movement = Movement(5, 4, 3, 2, 11, 12, 9, 8);
// NeoPixel - KIT emulation :D
#define PIXEL_PIN 6
#define PIXEL_COUNT ... | Enable sensor | Enable sensor
| Arduino | mit | Projectplace/Dayrider |
635c05de6cdc006c0f067b899ac56cb9ee064ee4 | Arduino/spectrum_i2c/spectrum_i2c.ino | Arduino/spectrum_i2c/spectrum_i2c.ino | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[9];
#define SIZE 1024
#define SLICE 32
byte huge[SIZE];
long energy[SIZE/SLICE];
int p = 0;
long t;
long start;
float bpm = 120;
boolean offBeat = true;
boolean sentBeat = false;
void setup() {
start = t = milli... | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[9];
#define SIZE 1024
#define SLICE 32
byte huge[SIZE];
long energy[SIZE/SLICE];
int p = 0;
long t;
long start;
float bpm = 120;
boolean offBeat = true;
boolean sentBeat = false;
long MAX_VOLUME = (255 << 2);
long M... | Add first cut of volume normalization | Add first cut of volume normalization
| Arduino | unlicense | jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights |
23f5ea922796e3edfc96d5072033fc54952cfb19 | HBridgePWM/HBridgePWM.ino | HBridgePWM/HBridgePWM.ino | // constants won't change. Used here to
// set pin numbers:
const int HbridgeEnablePin = 13;
const int HbridgeLogicPin1 = 4;
const int HbridgeLogicPin2 = 5;
int sensorValue = 0; // value read from the potentiometer
// These constants won't change. They're used to give names
// to the pins used:
const int anal... | /*
Author: Baptiste LABAT (Nautilabs)
Project: robokite
Date : March 2013
This file ensures the control of a continuous current motor and gearbox through an H-bridge.
A Pulse Width Modulation is used. The algorithm uses varying cycle frequency to allow control at low rotation speed.
Due to minimum quantity of energy to... | Add comments and change minimal time as a global parameter | Add comments and change minimal time as a global parameter
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
3aaf5873d09bdcb2a32392ba1f38ba4b086c54fe | examples/Benchmarks/CosaRTCBenchmark/CosaRTCBenchmark.ino | examples/Benchmarks/CosaRTCBenchmark/CosaRTCBenchmark.ino | /**
* @file CosRTCBenchmark.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012, 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 ... | /**
* @file CosRTCBenchmark.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012, 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 ... | Update RTC test cases; additional measurement of baseline. | Update RTC test cases; additional measurement of baseline.
| Arduino | lgpl-2.1 | rrobinet/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,kc9jud/Cosa,kc9jud/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,rrobinet/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,dansut/Cosa,jeditekunum/Cosa,SinishaDjukic/Meshwork,jeditekun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.