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 |
|---|---|---|---|---|---|---|---|---|---|
eda49dc32124014dd4b3d277fe15b5f8cabe84d6 | examples/BoardsAndShields/ESP8266_DirectConnect/ESP8266_DirectConnect.ino | examples/BoardsAndShields/ESP8266_DirectConnect/ESP8266_DirectConnect.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 ESP8266_DirectConnect.ino | Update ESP8266_DirectConnect.ino | Arduino | mit | sstocker46/blynk-library,csicar/blynk-library,johan--/blynk-library,csicar/blynk-library,CedricFinance/blynk-library,johan--/blynk-library,okhiroyuki/blynk-library,blynkkk/blynk-library,radut/blynk-library,sstocker46/blynk-library,okhiroyuki/blynk-library,csicar/blynk-library,johan--/blynk-library,sstocker46/blynk-libr... |
0c536b1a06657b74b969dc68b11daf2c2548cf50 | src/src.ino | src/src.ino | #include <Adafruit_NeoPixel.h>
#include <algorithm>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 2 // Actually 04 on Makerfocus D1 Mini
#define TRIG_PIN 1 // Actually TX on Makerfocus D1 Mini
#define ECHO_PIN 0 // Actually D3 on Makerfocus D1 Mini
#define FADE_TIME 1
#define TUNING 9 // Tunes range-fi... | #include <Adafruit_NeoPixel.h>
#include <algorithm>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 2 // Actually 04 on Makerfocus D1 Mini
#define TRIG_PIN 1 // Actually TX on Makerfocus D1 Mini
#define ECHO_PIN 0 // Actually D3 on Makerfocus D1 Mini
#define FADE_TIME 1
#define TUNING 9 // Tunes range-fi... | Fix colors | Fix colors
| Arduino | mit | Nase00/st_rfls |
68dd55e3f4835c92fc8b5a814a6cf2a775850d8a | Christmas/Christmas.ino | Christmas/Christmas.ino | /*
ChristmasTree
by Ben Torkington <ben@torkington.com>
16 December 2016
*/
// change the following two lines to match the number of LEDs you have connected
#define PINMIN 2 // the first pin with an LED connected
#define PINMAX 12 // the last pin with an LED connected
// the setup function runs on... | /*
ChristmasTree
by Ben Torkington <ben@torkington.com>
16 December 2016
*/
// change the following two lines to match the number of LEDs you have connected
#define PINMIN 2 // the first pin with an LED connected
#define PINMAX 12 // the last pin with an LED connected
// the setup function runs on... | add lamp test | add lamp test
| Arduino | mit | bentorkington/arduinoxmas |
5c96cc514d028c4873da2b34b9fbbb5b9220a0c4 | arduino/Main/Main.ino | arduino/Main/Main.ino | #include <Wire.h>
#include "LCD.h"
#include "Motor.h"
#define I2C_ADDRESS 0x1A
#define I2C_BUFFER_SIZE 32
#define LCD_TX_PIN 10
#define LCD_ROWS 4
#define LCD_COLUMNS 20
#define LCD_ADDRESS 0x00
#define LCD_COMMAND_WRITE 0x00
#define LCD_COMMAND_SET_CURSOR 0x01
#define LCD_COMMAND_SET_BRIGHTNESS 0x02
#define LCD_COMMA... | #include <Wire.h>
#include <RingBufCPP.h>
#include "LCD.h"
#include "Motor.h"
#define I2C_ADDRESS 0x1A
#define I2C_BUFFER_SIZE 32
#define MAX_NUM_ELEMENTS 30
#define LCD_TX_PIN 10
#define LCD_ROWS 4
#define LCD_COLUMNS 20
#define LCD_ADDRESS 0x00
#define LCD_COMMAND_WRITE 0x00
#define LCD_COMMAND_SET_CURSOR 0x01
#defi... | Use a ring buffer between the interrupt and main loop | Use a ring buffer between the interrupt and main loop
| Arduino | mit | FrontierRobotics/pathfinder |
6012295f7cc0e5420ed279e9c46d447dac2723c6 | examples/mqtt_esp8266/mqtt_esp8266.ino | examples/mqtt_esp8266/mqtt_esp8266.ino | /***************************************************
Adafruit MQTT Library ESP8266 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 ... | /***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Ada... | Fix example for Milkcocoa | Fix example for Milkcocoa
| Arduino | mit | milk-cocoa/Adafruit_MQTT_Library |
08f1fb69feade2417ed68b4474994a7727cd93f5 | examples/BasicUsage/BasicUsage.ino | examples/BasicUsage/BasicUsage.ino | #include <IonDB.h>
void
setup(
) {
Serial.begin(9600);
/* Instantiate your dictionary */
Dictionary < int, int > *dict = new SkipList < int, int > (key_type_numeric_signed, sizeof(int), sizeof(int), 7);
/* Insert a record with key 3 and value 10 */
dict->insert(3, 10);
dict->insert(4, 16);
dict->insert(4, 17... | #include <IonDB.h>
void
setup(
) {
Serial.begin(9600);
/* Instantiate your dictionary */
Dictionary < int, int > *dict = new SkipList < int, int > (key_type_numeric_signed, sizeof(int), sizeof(int), 7);
/* Insert a record with key 3 and value 10 */
dict->insert(3, 10);
dict->insert(4, 16);
dict->insert(4, 17... | remove debug stmt from example | remove debug stmt from example
| Arduino | bsd-3-clause | iondbproject/iondb,iondbproject/iondb |
a4aff83ea10652c4e2d453138a7e3d66e406014a | ComboKeypad/Keypad.ino | ComboKeypad/Keypad.ino | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | Update Keypad.ino | Update Keypad.ino | Arduino | mit | TeodorLys/Arduino_Projects |
a2f357abf4992576247fb119f1877a302a0e131c | ESP8266-12E/ESP8266-12E.ino | ESP8266-12E/ESP8266-12E.ino | #include <SoftwareSerial.h>
#include <ESP8266WiFi.h>
#define PIN1 1
#define PIN2 2
#define PIN3 3
WiFiClient client;
String apiWrite = "DRW5K6F91WT954LA"; //The Key for write data to channel
String apiRead = "QW4PODDM2Q96LA24"; //The Key for read data from channel
const char* ssid = "familywong88";
const char* pas... | #include <SoftwareSerial.h>
#include <ESP8266WiFi.h>
#define PIN1 1
#define PIN2 2
#define PIN3 3
WiFiClient client;
String apiWrite = "DRW5K6F91WT954LA"; //The Key for write data to channel
String apiRead = "QW4PODDM2Q96LA24"; //The Key for read data from channel
const char* ssid = "familywong88";
const char* pas... | prepare to write another wifi access function | prepare to write another wifi access function
| Arduino | mit | Raydivine/IoT-for-Modern-Agriculture,Raydivine/IoT-for-Modern-Agriculture |
61a23218b8d32966465cf2eed94eb61dac01dcab | src/esp8266-ticker/esp8266-ticker.ino | src/esp8266-ticker/esp8266-ticker.ino | #include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <ESP8266WiFi.h>
const char WiFiAPPSK[] = "sparfun";
#define PIN 5
#define NUMPIXELS 64
#define PIXELS_PER_CHAR 6
#define DELAY 100
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(8, 8, PIN,
NEO_MATRIX_TOP + NEO_MATRI... | #include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <ESP8266WiFi.h>
const char WiFiAPPSK[] = "sparkfun";
#define PIN 5
#define NUMPIXELS 64
#define PIXELS_PER_CHAR 6
#define DELAY 100
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(8, 8, PIN,
NEO_MATRIX_TOP + NEO_MATR... | Fix aberrant typo, but oddly the Sparkfun ESP8266 Thing Dev still has a mind of it's own regarding SSID and password, despite this code! | Fix aberrant typo, but oddly the Sparkfun ESP8266 Thing Dev still has a mind of it's own regarding SSID and password, despite this code!
| Arduino | mit | fweiss/badge,fweiss/badge |
3620e4f5976ddfbbfa9c3ad21f87c4c2cd7f85b2 | clock/clock.ino | clock/clock.ino | /*************************************************************
CIRCADIAN CLOCK project by Anais Moisy
Requirements:
- Arduino Yun
- Stepper motor
- Motor shield
- NeoPixel Ring
Demo & Details @
- https://player.vimeo.com/video/127464892
- http://anaismoisy.com/essay-cardican-clock/
*********************************... | /*************************************************************
CIRCADIAN CLOCK project by Anais Moisy
Requirements:
- Arduino Yun
- Stepper motor
- Motor shield
- NeoPixel Ring
Demo & Details @
- https://player.vimeo.com/video/127464892
- http://anaismoisy.com/essay-cardican-clock/
*********************************... | Tidy & formatting | Tidy & formatting
| Arduino | mit | Anais-moisy/arduino-circadian-clock |
69925586512a74369892fe3ab6d74e3d477371e7 | garage.ino | garage.ino | /****************************************************************************
// Adafruit IO Digital Input Example
// Tutorial Link: https://learn.adafruit.com/adafruit-io-basics-digital-input
//
// Adafruit invests time and resources providing this open source code.
// Please support Adafruit and open source hardware ... | /****************************************************************************
// Adafruit IO Digital Input Example
// Tutorial Link: https://learn.adafruit.com/adafruit-io-basics-digital-input
//
// Adafruit invests time and resources providing this open source code.
// Please support Adafruit and open source hardware ... | Add files via upload | Add files via upload
Changes to permit commands other than 0/1 (garage door button to open/close) to be received.
The iOS app uses this to get a quick response when it starts up rather than waiting as long as 10 seconds to show the status of the garage doors.
Currently the code assumes the command is "STATUS" | Arduino | mit | jim-calvin/garage,jim-calvin/garage |
dfbe6a1e11e8e9cfb4b856a1c0b1d2a514b7863e | examples/mqtt_esp8266/mqtt_esp8266.ino | examples/mqtt_esp8266/mqtt_esp8266.ino | /***************************************************
Adafruit MQTT Library ESP8266 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 ... | /***************************************************
Adafruit MQTT Library ESP8266 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 ... | remove client id from esp example | remove client id from esp example
| Arduino | mit | adafruit/Adafruit_MQTT_Library |
c6eab4d8b37552e1f7a5ed2201fa5ca1488451f5 | laddstation/sub-module/tempsensor.ino | laddstation/sub-module/tempsensor.ino | #include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 2 on the Arduino
#define ONE_WIRE_BUS 2
// Setup a oneWire instance to communicate with any OneWire devices
// (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temper... | /************************************************************************
This sketch reads the temperature from a 1-Wire device and then publishes
to the Particle cloud. From there, IFTTT can be used to log the date,
time, and temperature to a Google Spreadsheet. Read more in our tutorial
here: https://docs.particle.i... | Update tempsensor.ino | Update tempsensor.ino
Updated to Particle demo code.
https://docs.particle.io/tutorials/topics/maker-kit | Arduino | mit | designgreenhouse/solarXopen |
5072cadb1bb79f185d8910fff4fdde7442a2100c | examples/SerialPrinterEnableInterrupt/SerialPrinterEnableInterrupt.ino | examples/SerialPrinterEnableInterrupt/SerialPrinterEnableInterrupt.ino | /*
This example is basically the same as SimpleSerialPrinter but utilize
the EnableInterrupt library. EnableInterrupt make pin change
interrupts available and thus allows to use arbitrary pins.
*/
// EnableInterrupt from https://github.com/GreyGnome/EnableInterrupt
// include it before RadiationWatch.h
#include "Enab... | /*
This example is basically the same as SimpleSerialPrinter but utilize
the EnableInterrupt library.
The EnableInterrupt library make pin change interrupts available and
thus allows to use arbitrary pins.
See a list of pins supported here:
https://github.com/GreyGnome/EnableInterrupt/wiki/Usage#pin--port-bestiary
Y... | Add link to EnableInterupt pin beastiary | Add link to EnableInterupt pin beastiary
| Arduino | mit | MonsieurV/ArduinoPocketGeiger |
9150ca6866dbcc16c90d379c68686f641f7856a2 | KSPboard.ino | KSPboard.ino | /// Justin Lee <justin at kitten dot pink>
//
// Arduino driver for the KSPboard game
// controller. See LICENSE and README
// for more information.
/// pin configurations and constants
//
#define ENABLE 1
#define DISABLE 0
#define FULL 0xFF
#define HALF 0x7F
#define ZERO 0x00
// serial
#define SERIAL_SPEED 11520... | /// Justin Lee <justin at kitten dot pink>
//
// Arduino driver for the KSPboard game
// controller. See LICENSE and README
// for more information.
/// pin configurations and constants
//
#define ENABLE 1
#define DISABLE 0
#define FULL 0xFF
#define HALF 0x7F
#define ZERO 0x00
// serial
#define SERIAL_SPEED 11520... | Remove Redundant Call | Remove Redundant Call
It was being called right away in the first loop anyway.
| Arduino | agpl-3.0 | justinnamilee/KSPboard,justinnamilee/KSPboard |
000b2740075cade63f81e19d9adf3d6a0ae6abd4 | examples/sleep/enableWakeOnConnect.ino | examples/sleep/enableWakeOnConnect.ino | void setup() {
// Configure Bean to wake up when a client connects
Bean.enableWakeOnConnect(true);
}
// Loop runs once when a client connects and continues running as long as a
// client is connected
void loop() {
// Check if client has disconnected
bool connected = Bean.getConnectionState();
if (connected) ... | void setup() {
// Configure Bean to wake up when a client connects
Bean.enableWakeOnConnect(true);
}
// Loop runs once at program start.
// When a client connects, Bean wakes up and runs loop again.
// Loop continues to run as long as a client is connected.
void loop() {
// Check if client has disconnected
bo... | improve enableWakeOnConnect.ino | docs: improve enableWakeOnConnect.ino
| Arduino | lgpl-2.1 | PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware |
1d18a4a05e1e5fb67d31b055d5d29fc724f270b0 | examples/BoardsAndShields/TheAirBoard_BLE_Link/TheAirBoard_BLE_Link.ino | examples/BoardsAndShields/TheAirBoard_BLE_Link/TheAirBoard_BLE_Link.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, t... | /**************************************************************
*
* 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, t... | Update TheAirBoard_BLE_Link.ino | Update TheAirBoard_BLE_Link.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library |
8bff84608cef94d21487931dd8b54f2a2dabeb5a | example/mpxv6115v.ino | example/mpxv6115v.ino | #include "MPXV6115V.h"
int vacuum
Serial.begin(9600);
void setup()
{
}
void loop()
{
}
| #include "MPXV6115V.h"
#include "DRV8833.h"
#include "Arduino.h"
#include "EEPROM.h"
#include "MAX7219.h"
const int vacuum=A0;
const int temp=A1;
const int batt=A2;
const int up=2;
const int down=4;
float vakum;
int setting=250;
int tolerance=25;
void setup()
{
pinMode(up,INPUT);
pinMode(down,INPUT);
... | Update mpxv6115v.ino | Update mpxv6115v.ino | Arduino | apache-2.0 | tunataskintuna35/MPXV6115Vacuum |
89e24433ac2fcdaa3cd9230612b5c1e172df4ef0 | fuzzy_logic.ino | fuzzy_logic.ino | // NM - Negative Medium
// NS - Negative Small
// ZO - Zero
// PS - Positive Small
// PM - Positive Medium
void initFuzzyLogic(){
FuzzyInput* ballPosition = new FuzzyInput(1);
ballPosition->addFuzzySet(position_nm);
ballPosition->addFuzzySet(position_ns);
ballPosition->addFuzzySet(position_zo);
ballPosit... | // NM - Negative Medium
// NS - Negative Small
// ZO - Zero
// PS - Positive Small
// PM - Positive Medium
void initFuzzyLogic(){
FuzzyInput* ballPosition = new FuzzyInput(1);
ballPosition->addFuzzySet(position_nm);
ballPosition->addFuzzySet(position_ns);
ballPosition->addFuzzySet(position_zo);
ballPosit... | arrange fuzzy logic | arrange fuzzy logic
| Arduino | mit | hugomarquez/ball_and_beam |
eb74ade23348ef8b55480f3f7326eff956678c7b | old/examples/ILI9341_T3_DMALIB_VIDEODEMO/ILI9341_T3_DMALIB_VIDEODEMO.ino | old/examples/ILI9341_T3_DMALIB_VIDEODEMO/ILI9341_T3_DMALIB_VIDEODEMO.ino |
//
//Demovideo see :
//
//https://drive.google.com/drive/folders/0Bx2Jw84lqebkelF3MHg2eWVzb0U
//
// This sketch works with std 180MHz and less, but better with 240MHZ, or 144MHz and overclocked F_BUS to the max.
//
#define USE_AUDIO 1
#include <SPI.h>
#include <ILI9341_t3DMA.h>
#include <SdFat.h>
/*
#define TFT_DC... |
//
//Demovideo see :
//
//https://drive.google.com/drive/folders/0Bx2Jw84lqebkelF3MHg2eWVzb0U
//
// This sketch works with std 180MHz and less, but better with 240MHZ, or 144MHz and overclocked F_BUS to the max.
//
//For Audio, Edit the Audio-library and remove all files which #include "SD.h" - sorry, no other way.
//... | Update ILI9341_T3_DMALIB_VIDEODEMO.ino | Update ILI9341_T3_DMALIB_VIDEODEMO.ino | Arduino | mit | FrankBoesing/ILI9341_t3DMA |
7f0223e45ec780199c65c3ef75ac09025d75bc71 | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
// The printerType controls the format of the data sent from the server... | Disable debugging again. | Disable debugging again.
Sketch size without debugging is 27444 bytes.
| Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
bb2240941e3908c043dd8b11f884d6fcf94e98ab | RoverMain/RoverMain.ino | RoverMain/RoverMain.ino | #include <EDB.h>
#include <EEPROM.h>
#define TABLE_SIZE 1024// max size in ATMega328
#include <Adafruit_NeoPixel.h> // Adafruit NeoPixel Library
typedef struct {
byte action;
byte prev_ctx; // maybe we can use the first four bits for the prev and last four for next
//byte desired_ctx;
byte score;
byte id;
} Acti... | #include <EDB.h>
#include <EEPROM.h>
#define TABLE_SIZE 1024// max size in ATMega328
#include <Adafruit_NeoPixel.h> // Adafruit NeoPixel Library
typedef struct {
byte action;
byte prev_ctx; // maybe we can use the first four bits for the prev and last four for next
//byte desired_ctx;
byte score;
byte id;
} Acti... | Make the names for the action masks more clear (ACTION# instead of A#). Also copy switch/case statement for the showing the context we want to try to change to. | Make the names for the action masks more clear (ACTION# instead of A#).
Also copy switch/case statement for the showing the context we want to
try to change to.
| Arduino | mit | RoboBrainz/Thought-Reactive-Robot-Friend |
8aa1405052a2716f65f5bd524cc6c52912d2371e | examples/NoisePlusPalette/NoisePlusPalette.ino | examples/NoisePlusPalette/NoisePlusPalette.ino | #include<FastLED.h>
#define LED_PIN 3
#define BRIGHTNESS 96
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
const uint8_t kMatrixWidth = 16;
const uint8_t kMatrixHeight = 16;
const bool kMatrixSerpentineLayout = true;
// This example combines two features of FastLED to produce a remarkable range of
// e... | #include<FastLED.h>
#define LED_PIN 3
#define BRIGHTNESS 96
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
const uint8_t kMatrixWidth = 16;
const uint8_t kMatrixHeight = 16;
const bool kMatrixSerpentineLayout = true;
// This example combines two features of FastLED to produce a remarkable range of
// e... | change 'byte' to 'uint8_t' | change 'byte' to 'uint8_t'
| Arduino | mit | corbinstreehouse/FastLED,wilhelmryan/FastLED,eshkrab/FastLED-esp32,yaneexy/FastLED,ryankenney/FastLED,liyanage/FastLED,NicoHood/FastLED,corbinstreehouse/FastLED,FastLED/FastLED,tullo-x86/FastLED,kcouck/FastLED,PaulStoffregen/FastLED,yaneexy/FastLED,MiketheChap/FastLED,MattDurr/FastLED,PaulStoffregen/FastLED,felixLam/Fa... |
a8928ec41b822fa8881f90e7cc009401d0b8ed33 | examples/Ports/uploadJNZ/uploadJNZ.ino | examples/Ports/uploadJNZ/uploadJNZ.ino | // This turns a JeeNode (or other 3.3V Arduino clone) into a programmer for the
// JeeNode Zero, loading a copy of Mecrisp Forth on it via the ROM boot loader.
#include "ParitySerial.h"
#define RX_PIN 7 // P4D: digital pin on JeePort #4
#define TX_PIN 17 // P4A: analog pin on JeePort #4
#define RESET_PI... | // This turns a JeeNode (or other 3.3V Arduino clone) into a programmer for the
// JeeNode Zero, loading a copy of Mecrisp Forth on it via the ROM boot loader.
#include "ParitySerial.h"
#define RX_PIN 7 // P4D: digital pin on JeePort #4
#define TX_PIN 17 // P4A: analog pin on JeePort #4
#define RESET_P... | add status LEDs | add status LEDs
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
db47f8f3b313422aeb5922d2588ed28616be186a | examples/mqtt_esp8266/mqtt_esp8266.ino | examples/mqtt_esp8266/mqtt_esp8266.ino | /***************************************************
Adafruit MQTT Library ESP8266 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 ... | /***************************************************
Adafruit MQTT Library ESP8266 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 ... | remove unnecessary ping(), delay() & added WDT reset for connection failures | remove unnecessary ping(), delay() & added WDT reset for connection failures
| Arduino | mit | adafruit/Adafruit_MQTT_Library |
3dde265dd8457c6bd5aca72af902b4a34a039622 | buttonPress/buttonPress.ino | buttonPress/buttonPress.ino | #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... | #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... | Send serial status | feature(arduino): Send serial status | Arduino | mit | SebastianFlo/party-button |
4562d13561d7cb78ea93dd126d3df07125ef2ec3 | examples/cymatic-curtains-with-triangles/cymatic-curtains-with-triangles.ino | examples/cymatic-curtains-with-triangles/cymatic-curtains-with-triangles.ino | #include "pixelmap/pixelmap.h"
#include <FastLED.h>
#include <Logging.h>
// Uncomment to turn off assertions
#define NDEBUG
// Weird thing I had to do to get the Logging library working with teensy
extern "C"{
int _getpid(){ return -1;}
int _kill(int pid, int sig){ return -1; }
int _write(){return -1;}
}
#defi... | #include "pixelmap/pixelmap.h"
#include <FastLED.h>
#include <Logging.h>
// Uncomment to turn off assertions
#define NDEBUG
// Weird thing I had to do to get the Logging library working with teensy
extern "C"{
int _getpid(){ return -1;}
int _kill(int pid, int sig){ return -1; }
int _write(){return -1;}
}
#defi... | Fix order of curtains | Fix order of curtains
| Arduino | mit | nijotz/pixl |
a469c3f7d24bf5b8ad445d6f4f0645263ede8b9c | MStation/MStation.ino | MStation/MStation.ino | //
// FILE: MStation.ino
// AUTHOR: Edgar Cherkasov
// VERSION: 0.1.1
// PURPOSE: Code for DIY meteostation
// URL:
//
// Released to the public domain
//
#include <dht.h>
#include <LiquidCrystal.h>
#include <OneWire.h>
#define DS18B20_ID 0x28
#define DHT11_PIN 2
#define LED 13
#define DS18B20_TRYOUT 5
#defin... | //
// FILE: MStation.ino
// AUTHOR: Edgar Cherkasov
// VERSION: 0.1.1
// PURPOSE: Code for DIY meteostation
// URL:
//
// Released to the public domain
//
#include <dht.h>
#include <LiquidCrystal.h>
#include <OneWire.h>
#define DS18B20_ID 0x28
#define DHT11_PIN 2
#define LED 13
#define DS18B20_TRYOUT 5
#defin... | Change to russian | Change to russian
| Arduino | mit | edgar-ch/mstation,edgar-ch/mstation |
269888fe6e25658cfe6a31e18d9eeb6740055d7e | MqttLEDs/MqttLEDs.ino | MqttLEDs/MqttLEDs.ino | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | add support for clearing before setting range | src: add support for clearing before setting range
| Arduino | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
54e28d7a1c8d1792712d927d3408121382328e26 | Kirbi/testing/imutesting/imutesting.ino | Kirbi/testing/imutesting/imutesting.ino | #include "Wire.h"
#include "ICM20948.h"
ICM20948 icm(Wire2, (uint8_t)0x68);
void setup() {
// put your setup code here, to run once:
pinMode(9, OUTPUT);
digitalWrite(9, LOW);
Serial.begin(115200);
//Wire with SDA 8 and SCL 7 for Kirbi. Wire2 with SDA 4 and SCL3
Wire2.begin();
Wire2.setSDA(8);
Wire2.se... | #include "Wire.h"
#include "ICM20948.h"
ICM20948 icm(Wire2, (uint8_t)0x68);
void setup() {
delay(1000);
// put your setup code here, to run once:
pinMode(9, OUTPUT);
digitalWrite(9, LOW);
Serial.begin(115200);
//Wire with SDA 8 and SCL 7 for Kirbi. Wire2 with SDA 4 and SCL3 for Gucci.
Wire2.begin();
... | Fix imutesting.ino | Fix imutesting.ino
| Arduino | mit | simplyellow/auto-sumo |
c4a87d3c00ef5ccfe1b8d6261af4755e3b068741 | ScriptingAccessory/firmware/acc/acc.ino | ScriptingAccessory/firmware/acc/acc.ino | #include <AcceleroMMA7361.h>
AcceleroMMA7361 accelero;
int x;
int y;
int z;
int pre_x;
int cnt = 0;
int ave = 0;
int history[100];
int num_data = 0;
int index = 0;
static int num_for_ave = 20;
static int threshold = 80;
void setup()
{
Serial.begin(9600);
accelero.begin(13, 12, 11, 10, A0, A1, A2);
accelero.set... | /* Copyright 2012 Google Inc.
*
* 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 version.
*
* This library is dist... | implement for accelerometer code | implement for accelerometer code
| Arduino | apache-2.0 | kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory |
aceb243bf8f25351fbeb78bf32714c52048f9bba | src/du.ino | src/du.ino | #include <Servo.h>
char messageBuffer[11];
int index = 0;
char cmd[3];
char pin[3];
char val[3];
char aux[4];
bool debug = false;
Servo servo;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else if (x... | #include <Servo.h>
char messageBuffer[11];
int index = 0;
char cmd[3];
char pin[3];
char val[3];
char aux[4];
bool debug = false;
Servo servo;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else if (x... | copy 3 bytes for position data instead of 2 | [bugfix] copy 3 bytes for position data instead of 2
| Arduino | mit | rwaldron/duino |
01b3ef80db6e9c8279e2ffd912dd0349e135d4ec | src/du.ino | src/du.ino |
char messageBuffer[6];
int index = 0;
char cmd[3];
char pin[3];
char val[3];
bool debug = false;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else if (x == '.') process(); // end
else messageBuf... |
char messageBuffer[6];
int index = 0;
char cmd[3];
char pin[3];
char val[3];
bool debug = false;
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char x = Serial.read();
if (x == '!') index = 0; // start
else if (x == '.') process(); // end
else messageBuf... | add digitalRead, cleanup | [major] add digitalRead, cleanup
| Arduino | mit | rwaldron/duino |
0824453dbd2a41252e209cd5efcb552f0cfe6454 | Software/HandModule/HandModule.ino | Software/HandModule/HandModule.ino | /**
* Arjuna Hand Module
*
* Copyright (c) 2015 Arjuna
*
* Developed by:
* Ilham Imaduddin
* Piquitha Della Audyna
*
* Gadjah Mada University
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | /**
* Arjuna Hand Module
*
* Copyright (c) 2015 Arjuna
*
* Developed by:
* Ilham Imaduddin
* Piquitha Della Audyna
*
* Gadjah Mada University
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | Add Hand Selector | Add Hand Selector
| Arduino | mit | ArjunaElins/Arjuna,ArjunaElins/Arjuna |
e7d166017faf2ff05b5ee3749d7bc77183c495e8 | capteurQ/capteurQ.ino | capteurQ/capteurQ.ino |
/*
capteurQ
Copyright (c) 2017 IOT-4DL
Licensed under the MIT license.
*/
/*
* HC-05 will be paired with default PIN : 1234
*/
#include "DHT.h"
#include "DigitalPin.h"
// use software serial port to communicate with bluetooth module hc-05
#include "SoftwareSerial.h"
//#include <DHT.h> ... |
/*
capteurQ
Copyright (c) 2017 IOT-4DL
Licensed under the MIT license.
*/
/*
* HC-05 will be paired with default PIN : 1234
*/
#include "DHT.h"
#include "DigitalPin.h"
// use software serial port to communicate with bluetooth module hc-05
#include "SoftwareSerial.h"
//#include <DHT.h> ... | send analog value by bluetooth | send analog value by bluetooth
| Arduino | mit | IOT-4DL/capteurQ |
e4b65ff852866bb273031130f27a20b58e9fb0ba | Xmas2013/rainbowBands/rainbowBands.ino | Xmas2013/rainbowBands/rainbowBands.ino | #include <G35String.h>
//#define TWO_STRINGS
#ifdef TWO_STRINGS
#define LIGHT_COUNT 50
#define G35_PIN1 9
#define G35_PIN2 10
#define NUM_BULBS 10
#define NUM_GROUPS 5
G35String lights1(G35_PIN1, LIGHT_COUNT);
G35String lights2(G35_PIN2, LIGHT_COUNT);
#else
#define LIGHT_COUNT 49
#define G35_PIN 9
... | #include <G35String.h>
//#define TWO_STRINGS
#ifdef TWO_STRINGS
#define LIGHT_COUNT 50
#define G35_PIN1 9
#define G35_PIN2 10
#define NUM_BULBS 10
#define NUM_GROUPS 5
G35String lights1(G35_PIN1, LIGHT_COUNT);
G35String lights2(G35_PIN2, LIGHT_COUNT);
#else
#define LIGHT_COUNT 49
#define G35_PIN 9
... | Simplify the coding. Doh! | Simplify the coding. Doh!
| Arduino | unlicense | davidb24v/G35Stuff |
93079eb31060809622989cbf4f119a9d9efd619f | examples/IRrecord/IRrecord.ino | examples/IRrecord/IRrecord.ino | /*
* IRrecord: record and play back IR signals as a minimal
* An IR detector/demodulator must be connected to the input RECV_PIN.
* An IR LED must be connected to the output PWM pin 3.
* A button must be connected to the input BUTTON_PIN; this is the
* send button.
* A visible LED can be connected to STATUS_PIN ... | /*
* IRrecord: record and play back IR signals as a minimal
* An IR detector/demodulator must be connected to the input RECV_PIN.
* An IR LED must be connected to the output PWM pin 3.
* A button must be connected to the input BUTTON_PIN; this is the
* send button.
* A visible LED can be connected to STATUS_PIN ... | Add SAMSUNG to IRRecord.ino | Add SAMSUNG to IRRecord.ino
It wasn't included and said: "Unexpected codeType 7" | Arduino | lgpl-2.1 | AnalysIR/Arduino-IRremote,shirriff/Arduino-IRremote,shirriff/Arduino-IRremote,z3t0/Arduino-IRremote,Seeed-Studio/IRSendRev,z3t0/Arduino-IRremote,AnalysIR/Arduino-IRremote,Seeed-Studio/IRSendRev |
8445c2828e81a09787eee865e23e0f61ba7ec286 | vfobox.ino | vfobox.ino | /*
DDS code based on Pete Juliano's super simple DDS code
http://www.jessystems.com/Images/Arduino/AD9850_Signal_Generator.txt
Rotary Encoder code based on my ATmega328 port
http://blog.templaro.com/reading-a-rotary-encoder-demo-code-for-atmega328/
of Oleg Mazurov's code written for ATmega644p
https://www.circuitsath... | /*
DDS code based on Pete Juliano's super simple DDS code
http://www.jessystems.com/Images/Arduino/AD9850_Signal_Generator.txt
Rotary Encoder code based on my ATmega328 port
http://blog.templaro.com/reading-a-rotary-encoder-demo-code-for-atmega328/
of Oleg Mazurov's code written for ATmega644p
https://www.circuitsath... | read memory pushbuttons | read memory pushbuttons
| Arduino | mit | dhakajack/ad9850vfo |
cb9a58fccb54084e75121f98b9531be9b2b88866 | lcd_temperature_display.ino | lcd_temperature_display.ino | // vim: ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <rtuck... | // vim: 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 <... | Update modeline to add sw=2 | Update modeline to add sw=2
| Arduino | mit | rtucker/lcd_temperature_display |
6f230fb45b98ae262289123ae0a70c93b59eff9e | Functions.ino | Functions.ino |
void makeComInterface(){
SCmd.addCommand("v",sendVersion);
SCmd.addCommand("EM",enableMotors);
SCmd.addCommand("SC",stepperModeConfigure);
SCmd.addCommand("SP",setPen);
SCmd.addCommand("SM",stepperMove);
SCmd.addCommand("SE",ignore);
SCmd.addCommand("TP",togglePen);
SCmd.addCommand("PO",ignore); //... |
void makeComInterface(){
SCmd.addCommand("v",sendVersion);
SCmd.addCommand("EM",enableMotors);
SCmd.addCommand("SC",stepperModeConfigure);
SCmd.addCommand("SP",setPen);
SCmd.addCommand("SM",stepperMove);
SCmd.addCommand("SE",ignore);
SCmd.addCommand("TP",togglePen);
SCmd.addCommand("PO",ignore); //... | Allow movement buffering | Allow movement buffering
| Arduino | mit | bartebor/EggDuino |
bc8d8c0d6c6f38d2d5c794dfb637143076136a11 | zimodem/zimodem.ino | zimodem/zimodem.ino | /*
Copyright 2016-2017 Bo Zimmerman
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 in ... | /*
Copyright 2016-2017 Bo Zimmerman
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 in ... | Fix for esp12e :( | Fix for esp12e :(
git-svn-id: d8bfcd070c2c81762cca1b3912331324182919ba@17198 0d6f1817-ed0e-0410-87c9-987e46238f29
| Arduino | apache-2.0 | bozimmerman/Zimodem,bozimmerman/Zimodem |
3d8a44b39d1482a5bb50bdc7f11a668705319b88 | examples/kanjiDisp/kanjiDisp.ino | examples/kanjiDisp/kanjiDisp.ino | #include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "../../Humblesoft_ILI9341.h"
IMPORT_BIN("ILGH16XB.FNT", font_h);
IMPORT_BIN("ILGZ16XB.FNT", font_z);
extern uint8_t font_h[], font_z[];
Humblesoft_ILI9341 tft = Humblesoft_ILI9341();
void setup() {
Serial.begin(19200);
delay(100);
Serial.println... | #include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "Humblesoft_ILI9341.h"
IMPORT_BIN("fontx/ILGH16XB.FNT", font_h);
IMPORT_BIN("fontx/ILGZ16XB.FNT", font_z);
extern uint8_t font_h[], font_z[];
Humblesoft_ILI9341 tft = Humblesoft_ILI9341();
void setup() {
delay(100);
tft.begin();
tft.setFontx(fon... | delete debug print and move font position | delete debug print and move font position
| Arduino | mit | h-nari/Humblesoft_ILI9341 |
00fab75616ac64f9110003f482654f4394ff1407 | inverted-pendulum.ino | inverted-pendulum.ino | // Inverted pendulum - for Teensy 3.2
#include "Encoder.h"
#include "Pendulum.h"
#include "PIDControl.h"
#include "SimpleShell.h"
#define LEFT HIGH
#define RIGHT LOW
#define TRACK_ENCODER_PIN_A 0
#define TRACK_ENCODER_PIN_B 1
#define PENDULUM_ENCODER_PIN_A 2
#define PENDULUM_ENCODER_PIN_B 3
#define LEFT_BUMP_PIN 4
#d... | // Inverted pendulum - for Teensy 3.2
#include "Encoder.h"
#include "Pendulum.h"
#include "PIDControl.h"
#include "SimpleShell.h"
#define LEFT HIGH
#define RIGHT LOW
#define TRACK_ENCODER_PIN_A 0
#define TRACK_ENCODER_PIN_B 1
#define PENDULUM_ENCODER_PIN_A 2
#define PENDULUM_ENCODER_PIN_B 3
#define LEFT_BUMP_PIN 4
#d... | Update with time | Update with time
| Arduino | mit | andrewadare/inverted-pendulum |
13059087ba82456877426ee9311dd5ff93199029 | weather-clock.ino | weather-clock.ino |
#include <SPI.h>
#include "WiFi101.h"
#include "keys.h"
#include "ArduinoJson.h"
// using json = nlohmann::json;
char ssid[] = "Human Condition Global 2.4GHz"; // your network SSID (name)
char pass[] = WIFI_PASS; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your ... |
#include <SPI.h>
#include "WiFi101.h"
#include "keys.h"
#include "ArduinoJson.h"
// using json = nlohmann::json;
char ssid[] = WIFI_NAME; // your network SSID (name)
char pass[] = WIFI_PASS; // your network password (use for WPA, or use as key for WEP)
int keyIndex = 0; // your network key Index numb... | add json char arr and parseObject fn | add json char arr and parseObject fn
| Arduino | mit | mgalicer/weather-clock |
182341e047e02da535707d0ce630888e8cb5ba59 | Cymatic-Triangles/Cymatic-Triangles.ino | Cymatic-Triangles/Cymatic-Triangles.ino | #include <FastLED.h>
#include <math.h>
#include "EEPROM.h"
#define NUM_LEDS 57 // Number of LED's in the strip
#define DATA_PIN 6 // Data out
#define ANALOG_PIN_L 1 // Left audio channel
#define ANALOG_PIN_R 0 // Right audio channel
#define REFRESH_POT_PIN 2 // Left pot
#define SENSITIVITY_POT_PIN 3 // Right pot
#defi... | #include <FastLED.h>
#include <math.h>
#include "EEPROM.h"
#define NUM_LEDS 57 // Number of LED's in the strip
#define DATA_PIN 6 // Data out
#define ANALOG_PIN_L 1 // Left audio channel
#define ANALOG_PIN_R 0 // Right audio channel
#define REFRESH_POT_PIN 2 // Left pot
#define SENSITIVITY_POT_PIN 3 // Right pot
#defi... | Tweak max amplitude | Tweak max amplitude
| Arduino | artistic-2.0 | CymaSpace/Light-Installations |
a0275f7a9dda89ea001aaec2084b3bdc491fb74c | scripts/mt_loader_usb/mt_loader_usb.ino | scripts/mt_loader_usb/mt_loader_usb.ino |
#define BOARD_PWR A4
#define BOARD_DETECT 7
#define BOARD_BOOT A0
#define DEBOUNCE_TIME 250
#define DETECT_TIME 500
void setup()
{
pinMode(BOARD_PWR, OUTPUT);
pinMode(BOARD_DETECT, INPUT);
pinMode(BOARD_BOOT, OUTPUT);
digitalWrite(BOARD_BOOT, LOW);
digitalWrite(BOARD_PWR, LOW);
Serial.begin(... |
#define BOARD_PWR A4
#define BOARD_DETECT 7
#define BOARD_BOOT A0
#define DEBOUNCE_TIME 250
#define DETECT_TIME 500
void setup()
{
pinMode(BOARD_PWR, OUTPUT);
pinMode(BOARD_DETECT, INPUT);
pinMode(BOARD_BOOT, OUTPUT);
digitalWrite(BOARD_BOOT, LOW);
digitalWrite(BOARD_PWR, LOW);
Serial.begin(... | Switch BOOT pin before power down delay. | Switch BOOT pin before power down delay. | Arduino | mit | brewbit/model-t,brewbit/model-t,brewbit/model-t |
a0657bc9fefd30a8f7a37cb94ba1a299051bdc81 | SlotCar.ino | SlotCar.ino |
#include <EnableInterrupt.h>
#include "Pins.h"
#include "Events.h"
#define LANES 2
uint8_t leader=99;
uint16_t elapsed; // in tenths of a second
uint16_t laptime[LANES]; // in tenths of a second
uint16_t lastlaptime[LANES]; // in tenths of a second
uint8_t lap[LANES];
void setup() {
delay(3000);
displayInit();
... |
#include <EnableInterrupt.h>
#include "Pins.h"
#include "Events.h"
#define LANES 2
uint8_t leader=99;
uint16_t elapsed; // in tenths of a second
uint16_t laptime[LANES]; // in tenths of a second
uint16_t lastlaptime[LANES]; // in tenths of a second
uint8_t lap[LANES];
void setup() {
delay(3000);
displayInit();
... | enable car detect only after start pressed; add messages for how to start and when to go | enable car detect only after start pressed; add messages for how to start and when to go
| Arduino | mit | shimniok/OMSlotCar |
4f071b991aec6185be8365592f063782e9fccf95 | examples/02-Utility/SDWavPlayer/SDWavPlayer.ino | examples/02-Utility/SDWavPlayer/SDWavPlayer.ino | /*
* SDWavPlayer
*
* Created: Chip Audette, OpenAudio, Dec 2019
* Based On: WaveFilePlayer from Paul Stoffregen, PJRC, Teensy
*
* Play back a WAV file through the Typman.
*
*/
#include <Tympan_Library.h>
#include "AudioSDPlayer_F32.h"
//set the sample rate and block size
const float sample_rate_Hz = (int)(... | /*
* SDWavPlayer
*
* Created: Chip Audette, OpenAudio, Dec 2019
* Based On: WaveFilePlayer from Paul Stoffregen, PJRC, Teensy
*
* Play back a WAV file through the Typman.
*
* For access to WAV files, please visit https://www.pjrc.com/teensy/td_libs_AudioDataFiles.html.
*
*/
#include <Tympan_Library.h>
#i... | Add a link to available wav files for SDWavPlayer example | Add a link to available wav files for SDWavPlayer example
| Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
4e83453aba074e59e5f166549f5b5acd7265b49f | src/arduino/touchy.ino | src/arduino/touchy.ino | // Adapted from https://github.com/Illutron/AdvancedTouchSensing
#define SET(x,y) (x |=(1<<y)) // Bit set/clear macros
#define CLR(x,y) (x &= (~(1<<y))) // |
#define CHK(x,y) (x & (1<<y)) // |
#define TOG(x,y) (x^=(1<<y)) // +
#define N 160 // Number of frequencies
int num_freqs = 160;
float results[... | // Adapted from https://github.com/Illutron/AdvancedTouchSensing
#define SET(x,y) (x |=(1<<y)) // Bit set/clear macros
#define CLR(x,y) (x &= (~(1<<y))) // |
#define CHK(x,y) (x & (1<<y)) // |
#define TOG(x,y) (x^=(1<<y)) // +
int num_freqs = 160;
float results[num_freqs];
float freq[num_freqs];
// No... | Add data-sending functions | Add data-sending functions
| Arduino | mit | drichert/touchy |
11fcc3313426e92ccb64b7bde42ab51d104d2e9c | basicPowerMonitor.ino | basicPowerMonitor.ino | #include "ThingSpeak.h"
#include <SPI.h>
#include <EthernetV2_0.h>
#include "EmonLib.h"
EnergyMonitor circuit_1;
EnergyMonitor circuit_2;
EnergyMonitor circuit_3;
EthernetClient client;
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
unsigned long myChannelNumber = xxxxx;
const char * my... | /**
* Power Monitor sketch, this monitors the energy usage on analog ports using
* the emonlib. It updates a phant server roughly every 4s with the data. It also monitors errors
* and in conjunction with a watchdog timer, will attempt a reset if the amount of errors that occur
* exceed a certain value. Th... | Update Power Monitor | Update Power Monitor
It now talks to a Phant server instead of thingspeak, plus many other tweaks. | Arduino | mit | JadinAndrews/el-IOT,JadinAndrews/el-IOT |
510e5894477416b36a7d4444e49f96922702a9c4 | Arduino/BlueCube/BlueCube.ino | Arduino/BlueCube/BlueCube.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... | Change replyidx to bufferIndex which better matches what it is used for. | Change replyidx to bufferIndex which better matches what it is used for.
| Arduino | bsd-3-clause | neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube |
957d7d480f6ae238923524427c2e2a04a45a7468 | libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino | libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino | /*
Esplora Led calibration
This sketch shows you how to read and calibrate the light sensor.
Because light levels vary from one location to another, you need to calibrate the
sensor for each location. To do this, you read the sensor for a few seconds,
and save the highest and lowest readings as maximum and mi... | /*
Esplora Led calibration
This sketch shows you how to read and calibrate the light sensor.
Because light levels vary from one location to another, you need to calibrate the
sensor for each location. To do this, you read the sensor for a few seconds,
and save the highest and lowest readings as maximum and mi... | Revert "Small change to EsploraLightCalibrator example" | Revert "Small change to EsploraLightCalibrator example"
This reverts commit 7e5ca6244baefbdadaf16b735ff5624d979e3d21.
| Arduino | lgpl-2.1 | gurbrinder/Arduino,leftbrainstrain/Arduino-ESP8266,plaintea/esp8266-Arduino,zenmanenergy/Arduino,ogferreiro/Arduino,radut/Arduino,mattvenn/Arduino,kidswong999/Arduino,vbextreme/Arduino,jaimemaretoli/Arduino,UDOOboard/Arduino,eggfly/arduino,jaej-dev/Arduino,jomolinare/Arduino,NeuralSpaz/Arduino,NaSymbol/Arduino,vbextrem... |
6c537b86f281a9ddd5147d64b54e5fbab6131b45 | spark-as-client/spark-as-client.ino | spark-as-client/spark-as-client.ino | TCPClient client;
byte server[] = { 74, 125, 224, 72 }; // Google
// found somewhere IPAddress server(192, 168, 1, 122); instead of the above line
void setup()
{
pinMode(D7, OUTPUT); // output means information out of the spark device
// Make sure your Serial Terminal app is closed before powering your ... | TCPClient client;
byte server[] = { 74, 125, 224, 72 }; // Google
// found somewhere IPAddress server(192, 168, 1, 122); instead of the above line
//IPAddress localAddr = Network.localIP();
//Serial.print(localAddr);
//Serial.print(" on ");
//Serial.println(Network.SSID());
//Serial.print("Pinging 5 times: ");
//Seri... | Update spark-as-client.ino | Update spark-as-client.ino | Arduino | mit | hpssjellis/spark-core-socket-client-or-server |
dfd6353c7c2d2c089970b8f0b53d1c362b28c706 | firmware/examples/keypad_test/keypad_test.ino | firmware/examples/keypad_test/keypad_test.ino |
/* keypad_test.inohttps://github.com/SorX14/ADP5589_Arduino/tree/master/examples/keypad_test
* April 10, 2016 Dean Miller
* MIT license
*
* use with ADP5589 keypad controller library:
* https://github.com/deanm1278/ADP5589_Arduino
*
* ADP5589 Datasheet:
* http://www.analog.com/media/en/technical-documentat... |
/* keypad_test.inohttps://github.com/SorX14/ADP5589_Arduino/tree/master/examples/keypad_test
* April 10, 2016 Dean Miller
* MIT license
*
* use with ADP5589 keypad controller library:
* https://github.com/deanm1278/ADP5589_Arduino
*
* ADP5589 Datasheet:
* http://www.analog.com/media/en/technical-documentat... | Update keypad_test.ino | Update keypad_test.ino | Arduino | mit | SorX14/ADP5589_Arduino |
73f8ec68de565bfc6eec69374b5391ebae07454c | examples/StallGuard/StallGuard.ino | examples/StallGuard/StallGuard.ino | /**
* Author Teemu Mäntykallio
*
* Plot TMC2130 motor load using the stallGuard value.
* You can finetune the reading by changing the STALL_VALUE.
* This will let you control at which load the value will read 0
* and the stall flag will be triggered. This will also set pin DIAG1 high.
* A higher STALL_VALUE wil... | /**
* Author Teemu Mäntykallio
*
* Plot TMC2130 motor load using the stallGuard value.
* You can finetune the reading by changing the STALL_VALUE.
* This will let you control at which load the value will read 0
* and the stall flag will be triggered. This will also set pin DIAG1 high.
* A higher STALL_VALUE wil... | Move initiating pins to main sketch | Move initiating pins to main sketch
| Arduino | agpl-3.0 | teemuatlut/TMC2130Stepper |
f444a43d3f3a8c66e4455788a79bbce32ad0bb3f | ringbuf/mkrzero-timer-adc/mkrzero-timer-adc.ino | ringbuf/mkrzero-timer-adc/mkrzero-timer-adc.ino | //#define USE_DIAGNOSTICS
//#define USE_BINARY
//#define USE_SPI
const int sampleRate = 3700;
const long serialRate = 2000000;
const long spiClockRate = 12000000;
const int bufferCapacity = 2048;
// DIAGNOSTICS
// no yes
// SPI 23500 16000
// UART bin 20000 17000
// UART 4400 ... | //#define USE_DIAGNOSTICS
//#define USE_BINARY
// DIAGNOSTICS
// no yes
// UART bin 20000 17000
// UART txt 4400 3000
#include "wiring_private.h"
#include "Data.h"
#include "RingBuf.h"
#include "ADC.h"
#include "Timer.h"
const int sampleRate = 3000;
const long serialRate = 2... | Remove SPI support from rpi-uart-reciever | Remove SPI support from rpi-uart-reciever
| Arduino | mit | isaias-b/arduino-examples,isaias-b/arduino-examples,isaias-b/arduino-examples |
f97aa74ad4fc5b21e30d59b2e9704d981d722f0d | DCF77/ExampleArduino/Dcf772015/Dcf77.ino | DCF77/ExampleArduino/Dcf772015/Dcf77.ino | /*
Author : J.M. Lietaer, Belgium, Europe - jmlietaer (at) gmail (dot) com
User level : Total Arduino Noob
Date written : March 06, 2010
Program : Example program for DCF77 Library
DCF77 - Read data from a DCF77 module and display date/time
System : Arduino Duemilanove... | /*
Author : J.M. Lietaer, Belgium, Europe - dcf77 (at) lietaer (dot) be
User level : Total Arduino Noob
Date written : March 06, 2010
Program : Example program for DCF77 Library
DCF77 - Read data from a DCF77 module and display date/time
System : Arduino Duemilanove AT... | update e-mail address | update e-mail address | Arduino | mit | jmlietaer/jml.ElectronicEngineeringTechnology |
58155a7d962de9b4deb0ed924c0d48d9a8099f88 | alarm.ino | alarm.ino | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define DEFAULT_TIME 1420070400UL // 1/1/2015 00:00:00 GMT
#define BUTTON_PULLUP true
#define BUTTON_INVERT... | #include <EEPROMAnything.h>
#include <AnalogButtons.h>
#include <Button.h>
#include <DS1307.h>
#include <EEPROM.h>
#include <Timer.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
#define DEFAULT_TIME 1420070400UL // 1/1/2015 00:00:00 GMT
#define BUTTON_PULLUP true
#define BUTTON_INVERT... | Add menu timeout and more comments. | Add menu timeout and more comments.
| Arduino | mit | jtwalters/arduino-alarm,jtwalters/arduino-alarm,jtwalters/arduino-alarm |
8b13c97aabc9cd01d431f6b6e71214fe0579c93d | example/mpxv6115v.ino | example/mpxv6115v.ino | #include "MPXV6115V.h"
#include "DRV8833.h"
#include "Arduino.h"
#include "EEPROM.h"
#include "MAX7219.h"
LedControl lc=LedControl(12,11,10,4); //MAX7219 segment pin ve nesne atamaları
DRV8833 driver=DRV8833(); //DRV8833 sınıfı bir nesne olarak tanımlandırıldı
MPXV6115V mpxv6115v(A0); //MPXV6115V nesne atam... | #include "MPXV6115V.h"
#include "DRV8833.h"
#include "Arduino.h"
#include "EEPROM.h"
#include "MAX7219.h"
LedControl lc=LedControl(12,11,10,4); //MAX7219 segment pin ve nesne atamaları
DRV8833 driver=DRV8833(); //DRV8833 sınıfı bir nesne olarak tanımlandırıldı
MPXV6115V mpxv6115v(A0); //MPXV6115V nesne atam... | Update mpxv6115v.ino | Update mpxv6115v.ino | Arduino | apache-2.0 | tunataskintuna35/MPXV6115Vacuum |
d054589834325d59fd47af682b0761679f8f6a81 | examples/RF12/radioBlip2/radioBlip2.ino | examples/RF12/radioBlip2/radioBlip2.ino | /// @dir radioBlip2
/// Send out a radio packet every minute, consuming as little power as possible.
// 2012-05-09 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
#include <avr/sleep.h>
#define BLIP_NODE 22 // wireless node ID to use for sending blips
#define BLIP_GRP 5 // wirel... | /// @dir radioBlip2
/// Send out a radio packet every minute, consuming as little power as possible.
// 2012-05-09 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
#include <avr/sleep.h>
#define BLIP_NODE 22 // wireless node ID to use for sending blips
#define BLIP_GRP 5 // wirel... | fix vccRead ADMUX config for ATtiny84 | fix vccRead ADMUX config for ATtiny84
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
7819021fed70c29dc61403bf677f9a352cab587e | pingpong/pingpong.ino | pingpong/pingpong.ino | const int p1Pin = 2;
const int p2Pin = 3;
int p1Score = 0;
int p2Score = 0;
int lastp1State, lastp2State = 1; // HIGH when open
int p1State, p2State = 1;
void setup()
{
pinMode(p1Pin, INPUT);
pinMode(p2Pin, INPUT);
Serial.begin(9600);
showScore();
}
void loop()
{
p1State = digitalRead(p1Pin);
if (p1Stat... | const int p1Pin = 2;
const int p2Pin = 3;
int p1Score = 0;
int p2Score = 0;
int lastp1State, lastp2State = 1; // HIGH when open
int p1State, p2State = 1;
void setup()
{
pinMode(p1Pin, INPUT);
pinMode(p2Pin, INPUT);
Serial.begin(9600);
showScore();
}
void loop()
{
p1State = digitalRead(p1Pin);
if (p1Stat... | add some delay, remove old flag | add some delay, remove old flag
| Arduino | mit | rubyist/pingduino,rubyist/pingduino |
b6581ce4ca2f50d9806f04a2640ba79b2b8a793d | 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 "RSP.h... | Update RovMain.ino | Update RovMain.ino | Arduino | mit | oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov,oroca/oroca_rov |
b3a936f842e4d8375cf605a65704f56592893204 | Skulleyes.ino | Skulleyes.ino | /***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED Matrix backpacks
----> http://www.adafruit.com/products/872
----> http://www.adafruit.com/products/871
----> http://www.adafruit.com/products/870
These displ... | /***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED Matrix backpacks
----> http://www.adafruit.com/products/872
----> http://www.adafruit.com/products/871
----> http://www.adafruit.com/products/870
These displ... | Update checks for talking, handle checks for talking | Update checks for talking, handle checks for talking
| Arduino | mit | ledlogic/Skulleyes |
0cd40e603a70a0a262920ea0531dd0b57ea8c870 | YaesuTest/YaesuTest.ino | YaesuTest/YaesuTest.ino | //
// File : YaesuCAT.ino
//
// Purpose: Test program for Yaesu CAT
//
// $Id$
//
#define DEBUG
#include <CATutil.h>
#include <YaesuCAT.h>
/** LED which indicates that TX loop is 'locked'. */
#define TX_LOCKED_LED 13
#ifdef DEBUG
// http://arduiniana.org/libraries/streaming/
#include <Streaming.h>
// UAR... | //
// File : YaesuCAT.ino
//
// Purpose: Test program for Yaesu CAT
//
// $Id$
//
#define DEBUG
#include <CATutil.h>
#include <YaesuCAT.h>
/** LED which indicates that TX loop is 'locked'. */
#define TX_LOCKED_LED 13
#ifdef DEBUG
// http://arduiniana.org/libraries/streaming/
#include <Streaming.h>
// UAR... | test code | test code
| Arduino | mit | thjm/Sketches,thjm/Sketches,thjm/Sketches |
76136ef78ef5798670d40a06c8e68bcb5c2a9a9a | Christmas/Christmas.ino | Christmas/Christmas.ino | /*
ChristmasTree
by Ben Torkington <ben@torkington.com>
16 December 2016
*/
// change the following two lines to match the number of LEDs you have connected
#define PINMIN 3 // the first pin with an LED connected
#define PINMAX 13 // the last pin with an LED connected
// the setup function ru... | /*
ChristmasTree
by Ben Torkington <ben@torkington.com>
16 December 2016
*/
// change the following two lines to match the number of LEDs you have connected
#define PINMIN 2 // the first pin with an LED connected
#define PINMAX 12 // the last pin with an LED connected
// the setup function runs on... | use pin 2 instead of 13 | use pin 2 instead of 13
| Arduino | mit | bentorkington/arduinoxmas |
e842838a2362fa3ca7b5c30c397ebfc68f1fabfc | examples/JsonParserExample/JsonParserExample.ino | examples/JsonParserExample/JsonParserExample.ino | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
//
// This example shows how to deserialize a JSON document with ArduinoJson.
#include <ArduinoJson.h>
void setup() {
// Initialize serial port
Serial.begin(9600);
while (!Serial) continue;
// Allocate the JSO... | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
//
// This example shows how to deserialize a JSON document with ArduinoJson.
#include <ArduinoJson.h>
void setup() {
// Initialize serial port
Serial.begin(9600);
while (!Serial) continue;
// Allocate the JSO... | fix a spelling error of JsonParserExample.ino | fix a spelling error of JsonParserExample.ino
| Arduino | mit | bblanchon/ArduinoJson,bblanchon/ArduinoJson,bblanchon/ArduinoJson |
f0e97737f7839ccdab93420a341b009b2d951485 | examples/mqtt_winc1500/mqtt_winc1500.ino | examples/mqtt_winc1500/mqtt_winc1500.ino | /***************************************************
Adafruit MQTT Library WINC1500 Example
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MI... | /***************************************************
Adafruit MQTT Library WINC1500 Example
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MI... | update to wifi101 library | update to wifi101 library
| Arduino | mit | adafruit/Adafruit_MQTT_Library |
bbf54e40374e56dd8128b05d4d1d660815eb8287 | testing/arduino/servo-radar3-ros-v3.ino | testing/arduino/servo-radar3-ros-v3.ino | #include "Arduino.h"
#include "Servo.h"
#include "NewPing.h"
#include "ros.h"
#include "ros/time.h"
#include "sensor_msgs/Range.h" // Ultrasonic Range
#include "sensor_msgs/JointState.h" // Servo Angle
// ROS
ros::NodeHandle nh;
sensor_msgs::Range rangeMessage;
ros::Publisher rangePublisher1("/ultrasound1", &rangeM... | #include "Arduino.h"
#include "Servo.h"
#include "NewPing.h"
#include "ros.h"
#include "ros/time.h"
#include "sensor_msgs/Range.h" // Ultrasonic Range
#include "sensor_msgs/JointState.h" // Servo Angle
// ROS
ros::NodeHandle nh;
sensor_msgs::Range rangeMessage;
ros::Publisher rangePublisher1("/ultrasound/1", &range... | rename publisher and topics | rename publisher and topics
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
3760602b188f3a8b9d8e423416951a29a735848b | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 37... | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 37... | Put the character arrays in a struct to structure the code a little more. | Put the character arrays in a struct to structure the code a little more.
Also added a High/Low/Current display in the “calibration menu” thingie.
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
448e480a88afd8fb9e98f13df83bb899aab78691 | examples/shiftRegs/sr4_keys/sr4_keys.ino | examples/shiftRegs/sr4_keys/sr4_keys.ino | /* sr4_keys.ino
This sketch is a simple 2-layer keyboard with two rows of PISO shift registers
| Left | **0** | **1** | | Right | **0** | **1** |
|-------|-------|-------| |-------|-------|-------|
| **1** | l | 6 | | **1** | r | 7 |
*/
// ################## GLOBAL ###################
// ============... | /* sr4_keys.ino
This sketch is a simple 2-layer keyboard with two rows of PISO shift registers
| Left | **0** | **1** | | Right | **0** | **1** |
|-------|-------|-------| |-------|-------|-------|
| **1** | l | 6 | | **1** | r | 7 |
*/
// ################## GLOBAL ###################
// ============... | rename Scanner_ShiftRegsPISOSingleRow to Scanner_ShiftRegsRead, Scanner_ShiftRegsPISOMultiRow to Scanner_ShiftRegsReadStrobed | rename Scanner_ShiftRegsPISOSingleRow to Scanner_ShiftRegsRead, Scanner_ShiftRegsPISOMultiRow to Scanner_ShiftRegsReadStrobed
| Arduino | mit | wolfv6/keybrd_DH,wolfv6/keybrd_DH |
d7e26e04722f85f815caee1961bd908566f1ce8f | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | Abort if there are problems with the SD Card. | Abort if there are problems with the SD Card.
If there are problems opening the SD card for access then there's no
point continuing as we can't cache the data.
Slightly controversially, I've chosen the bump the error codes (number
of LED flashes) of a DHCP failure and cache failure. I don't think this
is too much of... | Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
c762b7b2adca1e80fd78feb91e4f320b650a8507 | files/template_gisgk/template_gisgk.ino | files/template_gisgk/template_gisgk.ino | /*
SenseBox Citizen Sensingplatform
Version: 1.2
Date: 2015-01-06
Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/
Author: Jan Wirwahn
Note: Version with additional sensors for GIS-GK@ifgi
*/
#include <Wire.h>
#include <SPI.h>
#include <EthernetV2_0.h>
#include <DHT.h>
#include <Barometer.h>
#include ... | /*
SenseBox Citizen Sensingplatform
Version: 1.2
Date: 2015-01-06
Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/
Author: Jan Wirwahn
Note: Version with additional sensors for GIS-GK@ifgi
*/
#include <Wire.h>
#include <SPI.h>
#include <EthernetV2_0.h>
#include <DHT.h>
#include <Barometer.h>
#include ... | Update template_gisgk.ino | Update template_gisgk.ino
Bugfix: UV-Index was ignored when uploading measurements | Arduino | mit | mpfeil/OpenSenseMap-API,chk1/OpenSenseMap-API,mpfeil/OpenSenseMap-API,sensebox/OpenSenseMap-API,sensebox/OpenSenseMap-API |
39cabff7c245087938419ac39cb453f92636d706 | TClab/TClab_Firmware/TClab_Firmware.ino | TClab/TClab_Firmware/TClab_Firmware.ino | /*
Temperature Control Lab Firmware
This firmware is initially loaded into the Temperature Control Laboratory Arduino.
The firmware scans the serial port looking for case-insensitive commands:
Q int set Heater 1 and 2, range 0 to 255, subject to limits
Q1 int set Heater 1, range 0 to 255 subject to ... | /*
Temperature Control Lab Firmware
This firmware is initially loaded into the Temperature Control Laboratory Arduino.
The firmware scans the serial port looking for case-insensitive commands:
Q int set Heater 1 and 2, range 0 to 255, subject to limits
Q1 int set Heater 1, range 0 to 255 subject to ... | add comments | add comments
| Arduino | apache-2.0 | APMonitor/arduino,APMonitor/arduino,APMonitor/arduino |
05038160ff88b2d3cf68134640ea832551e0cde9 | _03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino | _03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino | #include "HX711.h"
#include <Wire.h>
#include <Average.h>
HX711 scale(A0, A1);
#define DEBUG_OUT 1
const int nemoisonPin = 9;
volatile int measured = 0;
volatile int tosend = 0;
long startMills;
void setup()
{
Serial.begin(38400);
if ( DEBUG_OUT ) {
Serial.println("pet pad scale started");
delay(100);... | #include "HX711.h"
#include <Wire.h>
#include <Average.h>
HX711 scale(A0, A1);
#define DEBUG_OUT 0
const int nemoisonPin = 9;
volatile int measured = 0;
volatile int tosend = 0;
long startMills;
void setup()
{
Serial.begin(38400);
if ( DEBUG_OUT ) {
Serial.println("pet pad scale started");
delay(100);... | debug of scale | debug of scale
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
7d1e72cc17238db44eef7590bfb79a49248807a3 | sketch_sep22a/sketch_sep22a.ino | sketch_sep22a/sketch_sep22a.ino | /* Phone dial input - By Koen van Vliet <8by8mail@gmail.com>
* Get input from a rotary dial found in old phones.
*
* Notes on rotary dial wireing:
* The rest wire typically the red wire in dials from dutch PTT phones
* The count pulse wire is typically the blue wire
* The common (ground) wire is typically the ... | /* Phone dial input - By Koen van Vliet <8by8mail@gmail.com>
* Get input from a rotary dial found in old phones.
*
* Notes on rotary dial wireing:
* The rest wire typically the red wire in dials from dutch PTT phones
* The count pulse wire is typically the blue wire
* The common (ground) wire is typically the ... | change the dailed number | change the dailed number
| Arduino | mit | tingyez/JunkDJ,tingyez/JunkDJ |
f9eb863054fbae668233bd0c2fdcbc1785f11e09 | code/PABS/PABS.ino | code/PABS/PABS.ino | #include <LedControl.h>
#include <EnableInterrupt.h>
#include "SystemMethods.h"
#include "TestMode.h"
#include "WwwMode.h"
#include "OwnGameMode.h"
#include "BrainRingMode.h"
#include "BrainRingWithTimerMode.h"
#include "GameModeBase.h"
#include "Constants.h"
#include "TimerOne.h"
GameModeBase* gameMode;
void setup... | #include <LedControl.h>
#include <EnableInterrupt.h>
#include "SystemMethods.h"
#include "TestMode.h"
#include "WwwMode.h"
#include "OwnGameMode.h"
#include "BrainRingMode.h"
#include "BrainRingWithTimerMode.h"
#include "GameModeBase.h"
#include "Constants.h"
#include "TimerOne.h"
GameModeBase* gameMode;
void setup... | set more userfriendly numbers | set more userfriendly numbers
| Arduino | mit | Lipotam/PABS |
5e5da621282925666139aaba2b95530f904f0344 | examples/BH1750FVI_Simple/BH1750FVI_Simple.ino | examples/BH1750FVI_Simple/BH1750FVI_Simple.ino | /*
This is a simple example to test the BH1750 Light sensor
Connect the sensor to a NodeMCU ESP8266:
VCC <-> 3V3 [grey]
GND <-> Gnd [purple]
SDA <-> D2 [green]
SCL <-> D1 [blue]
ADDR <-> RX [yellow]
*/
#include <Wire.h>
#include <BH1750FVI.h>
// Settings
uint8_t ADDRESSPIN = 13... | /*
This is a simple example to test the BH1750 Light sensor
Connect the sensor to a NodeMCU ESP8266:
VCC <-> 3V3 [grey]
GND <-> Gnd [purple]
SDA <-> D2 [green]
SCL <-> D1 [blue]
ADDR <-> RX [yellow]
*/
#include <Wire.h>
#include <BH1750FVI.h>
// Settings
uint8_t ADDRESSPIN = 13... | Update BH1750FVI_Simple.ino | Update BH1750FVI_Simple.ino
Serial.print is now Arduino compatible | Arduino | mit | PeterEmbedded/BH1750FVI |
635301747e105ddedeb9da567563a5d1db2ee875 | ArduinoSensorBoard/ArduinoSensorBoard.ino | ArduinoSensorBoard/ArduinoSensorBoard.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "DHT.h"
#include <EEPROM.h>
//#include "printf.h"
#define DHTPIN 2
#define DHTTYPE DHT11
RF24 radio(8,9);
DHT dht(DHTPIN, DHTTYPE);
byte incomingByte = 0;
const uint64_t pipes[2] = {
0xF0F0F0F001LL, 0xF0F0F0F002LL };
const byte shortAddr = 0x02;... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "DHT.h"
#include <EEPROM.h>
//#include "printf.h"
#define DHTPIN 2
#define DHTTYPE DHT11
#define ADDRBASE 0xF0F0F0F000LL
byte serialIncomingByte = 0;
int sensorValues[32] = {};
int rwBytes[] = {
10};
int rwPins[] = {
3};
int isUpdate = 0;
in... | Add sending updates | Add sending updates
Change buffer from EEPROM to RAM
Now ASB writing to buffer ONLY changed values
Now ASB Sending packet every time when buffer changes
| Arduino | apache-2.0 | Ertinfagor/RCHome,Ertinfagor/RCHome,Ertinfagor/RCHome |
a0155361357f4f1d52e473480dbd3166864378be | temperature-relay.ino | temperature-relay.ino | #include "OneWire.h"
#include "WebServer.h"
#include "HttpClient.h"
#include "elapsedMillis.h"
#include <list>
#include <string>
#include "Sensors.h"
#include "ApiKeys.h"
using namespace std;
#define SCAN_INTERVAL 60000
#define TEMP_INTERVAL 10000
#define BLINK_INTERVAL 5000
#define POWER_INTERVAL 120000
#define WEAT... | #include "OneWire.h"
#include "WebServer.h"
#include "HttpClient.h"
#include "elapsedMillis.h"
#include <list>
#include <string>
#include "Sensors.h"
#include "ApiKeys.h"
using namespace std;
#define SCAN_INTERVAL 60000
#define TEMP_INTERVAL 10000
#define BLINK_INTERVAL 5000
#define POWER_INTERVAL 120000
#define WEAT... | Fix return codes for power on/off | Fix return codes for power on/off
| Arduino | mit | jeffutter/temperature-relay |
93470dda20623ebb562f156c6cdef44382658b5f | starsynctrackers.ino | starsynctrackers.ino | //
// If using Motorshield requires the Adafruit_Motorshield v2 library
// https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library
// And you need AccelStepper fork with AFMotor support with library
// https://github.com/adafruit/AccelStepper
// if using adafruit motor shield v1 then you need v1 library
//' ... | //
// If using Motorshield requires the Adafruit_Motorshield v2 library
// https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library
// And you need AccelStepper fork with AFMotor support with library
// https://github.com/adafruit/AccelStepper
// if using adafruit motor shield v1 then you need v1 library
//' ... | Set reset speed to 300. | Set reset speed to 300.
| Arduino | lgpl-2.1 | bluthen/starsynctrackers,bluthen/starsynctrackers,bluthen/starsynctrackers |
5138a3ee7f83f22ab49f3448515cfb6ffac95837 | Arduino/ADXL335/ADXL335.ino | Arduino/ADXL335/ADXL335.ino | 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... | int zpin = A3;
int ypin = A4;
int xpin = A5;
// These are only used if you're plugging the ADXL335 (on the
// Adafruit breakout board) directly into the analog input pins
// of your Arduino. See comment below.
int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
void setup() {
Serial.begin(9600);
// Uncomment the... | Fix to ADXL335 Arduino code comments. | Fix to ADXL335 Arduino code comments.
| Arduino | bsd-3-clause | damellis/ESP,damellis/ESP |
ac25f1c73e35100c43e418dc3b0ed3e94d884aab | CAN_haz_bus/CAN_haz_bus.ino | CAN_haz_bus/CAN_haz_bus.ino | // Protocol:
// PC->Duino: <size><cmd><data> where size includes cmd and data but not the size byte itself
// Duino->PC: @<size><cmd><data> where size includes cmd and data
#include <SPI.h>
#include "mcp_can.h"
#define MAX_BUF_SIZE 207
#define CMD_LOG 0x2f
#define CMD_LOG_HEX 0x2e
... | // Protocol:
// PC->Duino: <size><cmd><data> where size includes cmd and data but not the size byte itself
// Duino->PC: @<size><cmd><data> where size includes cmd and data
#include <SPI.h>
#include "mcp_can.h"
#define MAX_BUF_SIZE 207
#define CMD_LOG 0x2f
#define CMD_LOG_HEX 0x2e
... | Add logic to retransmit CAN message if sending fails. Timeout after 10 failures | Add logic to retransmit CAN message if sending fails. Timeout after 10 failures
| Arduino | bsd-2-clause | atlas0fd00m/CanCat,atlas0fd00m/CanCat,timbrom/CanCat,timbrom/CanCat,timbrom/CanCat,atlas0fd00m/CanCat |
4725902c0134a03f88687982464c15dfc135c1b2 | examples/Unit/IR/IR.ino | examples/Unit/IR/IR.ino | /*
*******************************************************************************
* Copyright (c) 2021 by M5Stack
* Equipped with M5Core sample source code
* 配套 M5Core 示例源代码
* Visit the website for more information:https://docs.m5stack.com/en/unit/ir
* 获取更多资料请访问:https://docs.... | /*
*******************************************************************************
* Copyright (c) 2021 by M5Stack
* Equipped with M5Core sample source code
* 配套 M5Core 示例源代码
* Visit the website for more information:https://docs.m5stack.com/en/unit/ir
* 获取更多资料请访问:https://docs.... | Update IR.ino | Update IR.ino | Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
ef4f3c8b8c4905f892829df9472b0142b23b7327 | arduino/teleinfo/src/jarvis-teleinfo.ino | arduino/teleinfo/src/jarvis-teleinfo.ino | /*
* Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | /*
* Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Build the MQTT output | Build the MQTT output
Signed-off-by: Nicolas Lamirault <57a11b2dec5b8363280015e1663433805cc2169e@gmail.com>
| Arduino | apache-2.0 | zeiot/jarvis,zeiot/jarvis,zeiot/jarvis,zeiot/jarvis |
7e0001de0a17885a0cf19a55e099565deebdf9ca | iGPS.ino | iGPS.ino | /*
* GPS解析
* 包括:
* 时间、日期、经纬度、海拔
*/
#include <SoftwareSerial.h>
#include "LCD4884.h"
#define GPS_TX 12
#define GPS_RX 13
#define GPRMC "$GPRMC" // 推荐最小定位信息
#define GPVTG "$GPVTG" // 地面速度信息
#define GPGGA "$GPGGA" // 获取海拔高度
#define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量
#define VALID "A" // A=Valid 有效
#define INVALID "... | /*
* GPS解析
* 包括:
* 时间、日期、经纬度、海拔
*/
#include <SoftwareSerial.h>
#include "LCD4884.h"
#define GPS_TX 12
#define GPS_RX 13
#define GPRMC "$GPRMC" // 推荐最小定位信息
#define GPVTG "$GPVTG" // 地面速度信息
#define GPGGA "$GPGGA" // 获取海拔高度
#define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量
#define VALID "A" // A=Valid 有效
#define INVALID "... | Update iGPS.ino | Update iGPS.ino
修正字符串至浮点数转换 | Arduino | apache-2.0 | snowolf-zlex/iGPS,snowolf-zlex/iGPS |
4701ccab551f32e74dfab75f31456742b414822d | rswtch2/rswtch2.ino | rswtch2/rswtch2.ino | /*
* $OpenBSD: template.ino,v 1.1 2012/04/24 06:37:32 jasper Exp $
*
* Arduino projects run something like this:
* main() {
* init(); // arduino private setup
* setup(); // your setup goes here
* while(1) {
* loop(); // your main loop
* }
* }
*
* Arduino reference is at /usr/local/share/doc/arduino/re... | /*
* $OpenBSD: template.ino,v 1.1 2012/04/24 06:37:32 jasper Exp $
*
* Arduino projects run something like this:
* main() {
* init(); // arduino private setup
* setup(); // your setup goes here
* while(1) {
* loop(); // your main loop
* }
* }
*
* Arduino reference is at /usr/local/share/doc/arduino/re... | Remove comment. | Remove comment.
| Arduino | bsd-2-clause | dbolgheroni/rswtch |
bca3050ae797ba89a595e02880cfc50d1c889b00 | cc784Arduino.ino | cc784Arduino.ino | #include <PString.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <SoftwareSerial.h>
#include "sessionlogger.h"
#include "colorcells784.h"
#include "html.h"
/*
* TODOS: (x done, 0 dicarded, - undone)
*
* x add bail out logic that fails message if send rate is low (i.e. no... | #include <PString.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <SoftwareSerial.h>
#include "sessionlogger.h"
#include "colorcells784.h"
#include "html.h"
/*
* Special thanks to: http://www.textfixer.com/html/compress-html-compression.php for compressing my awful html
* ... | Move TODOS out of code and into Issue tracking | Move TODOS out of code and into Issue tracking | Arduino | mit | grubbyhacker/cc784Arduino |
e2fbf8f3110661fb289531db5259555b9ed86eac | tests/BlynkBuildTest/BlynkBuildTest.ino | tests/BlynkBuildTest/BlynkBuildTest.ino | /**************************************************************
* This is just a test of Blynk library build in Arduino IDE
*
* You should NOT flash this program
* to your hardware or try to run it.
*
**************************************************************/
#if defined(ARDUINO_AVR_GEMMA) \... | /**************************************************************
* This is just a test of Blynk library build in Arduino IDE
*
* You should NOT flash this program
* to your hardware or try to run it.
*
**************************************************************/
#if defined(ARDUINO_AVR_GEMMA) \... | Fix for NO_FLOAT | Fix for NO_FLOAT
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library |
7be3d83625250836f899b1c1c60f87615491bcaa | EvilMousePrank_Sketch/EvilMousePrank_Sketch.ino | EvilMousePrank_Sketch/EvilMousePrank_Sketch.ino | // Evil Mouse Prank for Arduino Yun
// Arduino Yun Sketch
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Scale factor applied to mouse X axis. Value of 1 is normal, -1 is inverted.
char mouseXScale = 1;
// Scale factor applied to mouse Y axis. Value of 1 is normal, -1 is inverted.
char mouseYScale = 1;
// Sc... | // Evil Mouse Prank for Arduino Yun
// Arduino Yun Sketch
// Copyright 2014 Tony DiCola (tony@tonydicola.com)
// Released under an MIT license (http://opensource.org/licenses/MIT)
// Scale factor applied to mouse X axis. Value of 1 is normal, -1 is inverted.
char mouseXScale = 1;
// Scale factor applied to mouse Y ax... | Update comments. | Update comments. | Arduino | mit | tdicola/EvilMousePrank |
2a5b270f8a7db1fc4149458f1b04a9e1d75e972e | temp/decodeUBX.ino | temp/decodeUBX.ino | void decodeUBX(void)
{
if (UBX_class == 0x01)
{
switch (UBX_id)
{
case 0x02: //NAV-POSLLH
{
GPSdata[0] = message[4]; //longitude-0
GPSdata[1] = message[5]; //longitude-1
GPSdata[2] = message[6]; //longitude-2
GPSdata[3] = message[7]; //longi... | void decodeUBX(void)
{
if (UBX_class == 0x01)
{
switch (UBX_id)
{
case 0x02: //NAV-POSLLH
{
GPSdata[0] = message[4]; //longitude-0
GPSdata[1] = message[5]; //longitude-1
GPSdata[2] = message[6]; //longitude-2
GPSdata[3] = message[7];... | Update decodeUBX.ino | Update decodeUBX.ino | Arduino | apache-2.0 | volodink/ubx-decoder-embedded,volodink/ubx-decoder-embedded,volodink/ubx-decoder-embedded |
549b888afbabc1ada5ff1366ba155ec5a1cfcafe | nunchuck.ino | nunchuck.ino | #include "gamecubecontroller.h"
#include <string.h>
#define SOFT_I2C // currently, HardWire doesn't work well for hotplugging
// Also, it probably won't well with SPI remap
//#define MANUAL_DECRYPT
#ifdef SOFT_I2C
#include <SoftWire.h>
TwoWire MyWire(MY_SCL, MY_SDA, SOFT_STANDARD);
#else
#include <... | #include "gamecubecontroller.h"
#include <string.h>
#define SOFT_I2C // currently, HardWire doesn't work well for hotplugging
// Also, it probably won't well with SPI remap
//#define MANUAL_DECRYPT
#ifdef SOFT_I2C
#include <SoftWire.h>
SoftWire MyWire(MY_SCL, MY_SDA, SOFT_STANDARD);
#else
#include ... | update to match latest core | update to match latest core | Arduino | mit | arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter |
5b17000309a6601ecc65b020e2941dfe6b45fbee | examples/Widgets/Email/Email.ino | examples/Widgets/Email/Email.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... | fix #143 | fix #143
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
2f33333f91b83d35c3d4dbda85f7e8e0c9b800f9 | examples/MB85RS1MT/MB85RS1MT.ino | examples/MB85RS1MT/MB85RS1MT.ino | /**************************************************************************/
/*!
@file MB85RS1MT.ino
@author Christophe Persoz for SPI version
@license BSD (see license.txt)
This sketch connects the FRAM chips.
Once ok, it read/write Byte, Short, Long at different addresses.
Dump the ful... | /**************************************************************************/
/*!
@file MB85RS1MT.ino
@author Christophe Persoz for SPI version
@license BSD (see license.txt)
This sketch connects the FRAM chips.
Reads and Writes differents kinds of data type into F-RAM
Dump the full memor... | Update to v0.6 - Add READ/WRITE an array of 8-bits or 16-bits values. | Update to v0.6 - Add READ/WRITE an array of 8-bits or 16-bits values.
| Arduino | bsd-3-clause | christophepersoz/FRAM_MB85RS_SPI |
a540ba55a12de84dd12371a4388304050babd13c | wolke/fan1/fan1.ino | wolke/fan1/fan1.ino | void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
| // Test
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
| improve title | improve title
| Arduino | apache-2.0 | jadami10/crossbarexamples,oberstet/crossbarexamples,crossbario/crossbar-examples,oberstet/crossbarexamples,crossbario/crossbarexamples,johnnywell/crossbarexamples,romick/crossbarexamples,meejah/crossbarexamples,johnnywell/crossbarexamples,crossbario/crossbarexamples,markope/crossbarexamples,johnnywell/crossbarexamples,... |
1d13b6df2af91b1117ca6c194740b9aa07a7849b | robot/robot.ino | robot/robot.ino | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <LiquidCrystal.h>
//#include <SoftwareSerial.h>
//pin 21 adalah SDA
//pin 22 adalah SLC
//Ini servo driver (defaults address 0x41 di i2c nya)
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
#define MIN_PULSE_WIDTH 500
#define MAX_PULS... | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <LiquidCrystal.h>
//#include <SoftwareSerial.h>
//pin 21 adalah SDA
//pin 22 adalah SLC
//Ini servo driver (defaults address 0x41 di i2c nya)
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41);
#define MIN_PULSE_WIDTH 500
#define MAX_PULS... | fix eror | fix eror
| Arduino | mit | anisku11/robot |
16ba348ba15309fefb77fc9253fbb788b4c5ce23 | arduino/sensor_manager/sensor_manager.ino | arduino/sensor_manager/sensor_manager.ino | #include <NewPing.h>
#include <Sonar.h>
#include <Tach.h>
#define SENSOR_SONAR 14
#define SENSOR_TACH_0 2
#define SENSOR_TACH_1 3
#define MAX_DISTANCE 300
#define LED13 13
#define FREQ 20
void tach_0_dispatcher();
void tach_1_dispatcher();
Sonar sonar(SENSOR_SONAR, MAX_DISTANCE);
Tach tach_0(SENSOR_TACH_0, tach_0_di... | #include <NewPing.h>
#include <Sonar.h>
#include <Tach.h>
#define SENSOR_SONAR 14
#define SENSOR_TACH_0 2
#define SENSOR_TACH_1 3
#define MAX_DISTANCE 300
#define LED13 13
#define FREQ 20
void tach_0_dispatcher();
void tach_1_dispatcher();
Sonar sonar(SENSOR_SONAR, MAX_DISTANCE);
Tach tach_0(SENSOR_TACH_0, tach_0_di... | Print values for the serial plotter. | Print values for the serial plotter.
| Arduino | mit | dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab,dennisdunn/botlab |
939f9428617c7cfd527f54d1045919c24090517f | Arduino/Arduino.ino | Arduino/Arduino.ino | #include "MeMegaPi.h"
#include <SoftwareSerial.h>
bool spd = true;
int moveSpeed = 100;
int minSpeed = 20;
int maxSpeed = 200;
int servoX = 90;
int servoY = 90;
String _buffer = "";
String _commands[6];
MePS2 joystick(PORT_16);
MeMegaPiDCMotor motorLeft(PORT1A);
MeMegaPiDCMotor motorRight(PORT1B);
MeMegaPiDCMotor arm... | #include "MeMegaPi.h"
#include <SoftwareSerial.h>
bool spd = true;
int moveSpeed = 100;
int minSpeed = 20;
int maxSpeed = 200;
int servoX = 90;
int servoY = 90;
String _buffer = "";
String _commands[6];
MePS2 joystick(PORT_16);
MeMegaPiDCMotor motorLeft(PORT1A);
MeMegaPiDCMotor motorRight(PORT1B);
MeMegaPiDCMotor arm... | Update Arduino.ino | Update Arduino.ino | Arduino | mit | xeecos/FacePi,xeecos/FacePi,xeecos/FacePi |
fed2786873f0f5a94de31be63c394c341546df95 | battlestation/arduino/arduino.ino | battlestation/arduino/arduino.ino | /*
This file is part of the Siege Battlestation Indicator.
Siege Battlestation Indicator 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 3 of the License, or (at your option)
... | /*
This file is part of the Siege Battlestation Indicator.
Siege Battlestation Indicator 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 3 of the License, or (at your option)
... | Terminate the cmd before exec | Terminate the cmd before exec
| Arduino | bsd-2-clause | WalterCReel3/siege,WalterCReel3/siege,WalterCReel3/siege,WalterCReel3/siege |
7876f3787f97be664a959b546c32bb417a714819 | zg01/zg01.ino | zg01/zg01.ino | #include <RF24.h>
#include <nRF24L01.h>
#include <RF24_config.h>
#include <SPI.h>
#include <stdint.h>
#include "zg01_fsm.h"
#define PIN_CLOCK 2
#define PIN_DATA 3
static long int address = 0x66996699L; // So that's 0x0066996699
const int tries = 1;
static uint8_t buffer[5];
static RF24 rf(/*ce*/ 8, /*cs*/ 1... | #include <RF24.h>
#include <nRF24L01.h>
#include <RF24_config.h>
#include <SPI.h>
#include <stdint.h>
#include "zg01_fsm.h"
#define PIN_CLOCK 2
#define PIN_DATA 3
static long int address = 0x66996699L; // So that's 0x0066996699
const int tries = 1;
static uint8_t buffer[5];
static RF24 rf(/*ce*/ 8, /*cs*/ 1... | Increase serial port speed from 9600 to 115200 (logging one frame at 9600 bps takes about 15 ms) | Increase serial port speed from 9600 to 115200 (logging one frame at 9600 bps takes about 15 ms)
| Arduino | mit | vvzvlad/co2sensor_esp8266,revspace/co2sensor,vvzvlad/co2sensor_esp8266,revspace/co2sensor |
8de17e3c7f5e02594e515acfc812416197d1c6d4 | vibrate_alarm_clock.ino | vibrate_alarm_clock.ino | #include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <RTClib.h>
#include <RTC_DS1307.h>
#include "tune.h"
#define BUTTON_ALARM_SET_PIN A4
#define BUTTON_TIME_SET_PIN A5
#define LCD_OFF_PIN 6 //D6
#define MOTOR_PIN1 A3
#define MOTOR_PIN2 A2
#define MOTOR_SLEEP_PIN 7 //D7
... | #include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <RTClib.h>
#include <RTC_DS1307.h>
#include "tune.h"
#define BUTTON_ALARM_SET_PIN A4
#define BUTTON_TIME_SET_PIN A5
#define LCD_OFF_PIN 6 //D6
#define MOTOR_PIN1 A3
#define MOTOR_PIN2 A2
#define MOTOR_SLEEP_PIN 7 //D7
... | correct bug where cannot stop on alarm when lcd is set to off | correct bug where cannot stop on alarm when lcd is set to off
| Arduino | mit | yeokm1/vibrate_alarm_clock,yeokm1/vibrate_alarm_clock |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.