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 |
|---|---|---|---|---|---|---|---|---|---|
9ffc038ad23b9d9d7a580ca6bd75e8d71bf27a15 | aquacontrol32.ino | aquacontrol32.ino | #include "SPI.h" //should be installed together with ESP32 Arduino install
#include <SD.h> //should be installed together with ESP32 Arduino install
#include <ESPmDNS.h> //should be installed together with ESP32 Arduino install
#include <Preferences.h> //shou... | #include "SPI.h" //should be installed together with ESP32 Arduino install
#include <SD.h> //should be installed together with ESP32 Arduino install
#include <ESPmDNS.h> //should be installed together with ESP32 Arduino install
#include <Preferences.h> //shou... | Refactor 'void setup()'. | Refactor 'void setup()'.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
8458aeeddfa055abb196914ecfa381a17eb6f003 | examples/ReadNUID/ReadNUID.ino | examples/ReadNUID/ReadNUID.ino | /*
* --------------------------------------------------------------------------------------------------------------------
* Example sketch/program showing how to read new NUID from a PICC to serial.
* --------------------------------------------------------------------------------------------------------------------... | /*
* --------------------------------------------------------------------------------------------------------------------
* Example sketch/program showing how to read new NUID from a PICC to serial.
* --------------------------------------------------------------------------------------------------------------------... | Update ReadNUID.ino | Update ReadNUID.ino
Fixed decimal helper function
| Arduino | unlicense | miguelbalboa/rfid |
21bb156ad24bd0dafba3f65c289641a9c4b959ff | NerfKeyboardRemapper.ino | NerfKeyboardRemapper.ino | #include <hidboot.h>
#include <usbhub.h>
#include <LiquidCrystal.h>
#define FORCE_SHIFT 0x80
#define FORCE_ALTGR 0x40
#define PURIFY 0x3F
#define LETTERS_START 0x04
#define LETTERS_END 0x1D
#define LETTERS_CNT 26
#define NUMBERS_START 0x1E
#define NUMBERS_END 0x27
#define NUMBERS_CNT 10
#define SPE_START 0x2D
#define ... | #include <hidboot.h>
#include <usbhub.h>
#include <LiquidCrystal.h>
#define FORCE_SHIFT 0x100
#define FORCE_ALTGR 0x200
#define PURIFY 0xFF
#define LETTERS_START 0x04
#define LETTERS_END 0x1D
#define LETTERS_CNT 26
#define NUMBERS_START 0x1E
#define NUMBERS_END 0x27
#define NUMBERS_CNT 10
#define SPE_START 0x2D
#defin... | Fix for <> | Fix for <>
| Arduino | mit | NoobLad/NerfKeyboardRemapper |
5a3af575a73ccab436ee0c19499b038128aacc83 | Firmware/R2-Quadcopter/PID.ino | Firmware/R2-Quadcopter/PID.ino | // Fonction qui calcule l'output du controlleur
void pid_compute() {
// Executer le PID et en tirer le resultat
if (!auto_stabilisation_mode) {
pid_roll_out = ROLL_PID_KP * roll_error + ROLL_PID_KI * Integral_roll_error * dt + ROLL_PID_KD * Derivative_roll_error / dt;
if(pid_roll_out > ROLL_PID_MAX)pid_roll... | // Fonction qui calcule l'output du controlleur
void pid_compute() {
// Executer le PID et en tirer le resultat
if (!auto_stabilisation_mode) {
pid_roll_out = ROLL_PID_KP * roll_error + ROLL_PID_KI * Integral_roll_error * dt + ROLL_PID_KD * Derivative_roll_error / dt;
pid_pitch_out = PITCH_PID_KP * pitch_er... | Revert "Extreme PID values chilled" | Revert "Extreme PID values chilled"
This reverts commit a2ac3c59975fdf41813c3cb0f8170cf9cc2396f9.
| Arduino | mit | bybel/R2-Quadcopter |
8b8c881ecd1621ed9f533709919c5992a1c450a9 | Guzheng/Guzheng.ino | Guzheng/Guzheng.ino | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
*/
// Some defines
#define THRESHOLD 700
// Values for different notes
int note8 = 0x68;
int note7 = 0x47;
int note6 = 0x45;
int note5 = 0x43;
int note4 = 0x41;
int note3 = 0x40;
int note2 = 0x3E;
int note1 = 0x3C;
void setup()
{
// Initialize serial... | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
*/
// Some defines
#define THRESHOLD 700
#define VOLUME 0x7F
#define LASTPORT 4
#define DELAY 10
// MIDI command defines
#define NOTEON 0x90
#define NOTEOFF 0x80
#define CHANGEINSTRUMENT 0xC0
// Values for different notes
int note8 = 0x68;
int note7 = ... | Replace hardcoded values with #defines | Replace hardcoded values with #defines
| Arduino | mit | PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp |
e95ea968ffcde208b300d8bf6fa79d538a134764 | scripts-arduino/bp_led_lp.ino | scripts-arduino/bp_led_lp.ino | // ######## CONST ########
const int BUTTON_PIN = 3; // the number of the pushbutton pin
const int LED_PIN = 2; // the number of the LED pin
const String CONST_ID = "01"; // the main Id
const String CONST_TYPE = "01"; // the id of press button
// ######## DEF ########
#define LONGPRESS... | // ######## CONST ########
const int BUTTON_PIN = 3; // the number of the pushbutton pin
const int LED_PIN = 2; // the number of the LED pin
const String CONST_ID = "01"; // the main Id
const String CONST_TYPE = "01"; // the id of press button
// ######## DEF ########
#define LONGPRESS... | test long press button | test long press button
| Arduino | mit | lbsb/wybo-working-hours-tracker,lbsb/wybo-working-hours-tracker,lbsb/wybo-working-hours-tracker |
23e53c4cd00b7f7b3762bf72df245229ae4af36e | _2048no/_2048no.ino | _2048no/_2048no.ino | #include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include "_2048no.h"
void setup() {
// Initialyze matrix
_matrix.begin();
_matrix.setBrightness(20);
// Initialyze grid and random
memset(_grid, 0, 16);
randomSeed(analogRead(0));
// Insert 2 number to start ... | #include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include "_2048no.h"
void setup() {
// Initialyze matrix
_matrix.begin();
_matrix.setBrightness(20);
// Initialyze grid and random
memset(_grid, 0, 16);
randomSeed(analogRead(0));
// Insert 2 number to start ... | Fix bad function declaration | Fix bad function declaration
| Arduino | mit | benVigie/2048no |
24bdea68decccb63db039789432ce57d611518ef | esp8266_160221_msgStorageLib.ino | esp8266_160221_msgStorageLib.ino |
// Message Storage/Load Library
#include <stdint.h>
#include "msgStorage.h"
/*
* v0.11 2016 Feb. 23
* - fix MsgServer_Save() > for s_messageCount==0, FileSys_commit() was necessary
* - fix MsgServer_Load() > assign to s_messageCount
* - add message save/load
* + add Test_MsgServer_SaveLoad()
* + add MsgSer... |
// Message Storage/Load Library
#include <stdint.h>
#include "msgStorage.h"
/*
* v0.12 2016 Mar. 4
* - add MsgServer_GetSenderNameOf1stMessage()
* v0.11 2016 Feb. 23
* - fix MsgServer_Save() > for s_messageCount==0, FileSys_commit() was necessary
* - fix MsgServer_Load() > assign to s_messageCount
* - add m... | add MsgServer_GetSenderNameOf1stMessage() | msgStorageLib: add MsgServer_GetSenderNameOf1stMessage()
| Arduino | mit | yasokada/esp8266_160220_BYOP |
e5d74a1c7f5937b85870071f1f5d0d9446dcf7c2 | examples/RFID_UART/RFID_UART.ino | examples/RFID_UART/RFID_UART.ino | // RFID_UART.ino
#include <SoftwareSerial.h>
#include <SeeedRFID.h>
#define RFID_RX_PIN 10
#define RFID_TX_PIN 11
#ifdef 1
int DEBUG = 1;
#endif
SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);
void setup() {
Serial.begin(9600);
Serial.println("Hello, 2bk!");
}
void loop() {
if(RFID.isAvailable()){
RFID.cardNumb... | // RFID_UART.ino
#include <SoftwareSerial.h>
#include <SeeedRFID.h>
#define RFID_RX_PIN 10
#define RFID_TX_PIN 11
// #define DEBUG
#define TEST
SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);
RFIDdata tag;
void setup() {
Serial.begin(57600);
Serial.println("Hello, double bk!");
}
void loop() {
if(RFID.isAvailable()... | Update examples | Update examples
| Arduino | mit | stsrc/RFID,stsrc/RFID,stsrc/RFID,nicolsc/RFID_Library,stsrc/RFID,stsrc/RFID,Seeed-Studio/RFID_Library |
0217cd51888a35cf8e5638462fddd77e38f067a7 | src/TempGauge/TempGauge.ino | src/TempGauge/TempGauge.ino | #include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <Wire.h>
#include <RTClib.h>
#include <OneWire.h>
#include <WiFiSettings.h>
// CC3000 configuration
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5 // VBAT and CS can be any two pins
#... | #include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <Wire.h>
#include <RTClib.h>
#include <OneWire.h>
#include "WiFiSettings.h"
// CC3000 configuration
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5 // VBAT and CS can be any two pins
#... | Add a bunch of logging, configuration, etc. | Add a bunch of logging, configuration, etc.
Something is wrong though. Sending data seems to hang pretty often but
I'm not sure why.
| Arduino | mit | AlarmingCow/brew-monitor-arduino-client |
85c94dd7594e94b18d35ed13d25d57ba60c92083 | Lee_Retirement/Lee_Retirement.ino | Lee_Retirement/Lee_Retirement.ino | /*
* Lee's retirement countdown clock
*
* I'm using a SainSmart LCD shield with an Uno, and a DS1370 RTC to make it accurate
*
* Links to the Amazon items I used:
* http://www.amazon.com/gp/product/B0076FWAH8
* http://www.amazon.com/gp/product/B00LZCTMJM
*/
/*
set up for the RTC
Libraries used are at
http... | /*
* Lee's retirement countdown clock
*
* I'm using a SainSmart LCD shield with an Uno, and a DS1370 RTC to make it accurate
*
* Links to the Amazon items I used:
* http://www.amazon.com/gp/product/B0076FWAH8
* http://www.amazon.com/gp/product/B00LZCTMJM
*/
/*
set up for the RTC
Libraries used are at
http... | Save brightness setting in EEPROM | Save brightness setting in EEPROM
| Arduino | apache-2.0 | dannysauer/misc_arduino |
6209e2de411489646eab0849ef1f9384a1013e72 | arduino/due/due.ino | arduino/due/due.ino |
#include "pinclass.h"
/** attached to the high side of an LED */
const OutputPin<LED_BUILTIN> lamp;
/** by putting a LOW in the items below, a true turns the lamp on */
const OutputPin<PIN_LED_RXL,LOW> RX;
const OutputPin<PIN_LED_TXL,LOW> TX;
//olimex protoshield:
const OutputPin<3> red;
const OutputPin<4> green;
co... |
#include "pinclass.h"
/** attached to the high side of an LED */
const OutputPin<LED_BUILTIN> lamp;
/** by putting a LOW in the items below, a true turns the lamp on */
const OutputPin<PIN_LED_RXL,LOW> RX;
const OutputPin<PIN_LED_TXL,LOW> TX;
//olimex protoshield:
const OutputPin<3> red;
const OutputPin<4> green;
co... | add autostart to cyclictimer | add autostart to cyclictimer
| Arduino | mit | 980f/dro,980f/dro,980f/dro,980f/dro |
07154b470c95901351c9451841cd0d1f9855b958 | OS_HelperFunctions.ino | OS_HelperFunctions.ino | //------------------------------------------------------------------------------------------------
// This file contains various peripheral functions required for OpenStage.ino. When using the
// Arduino IDE it is automatically appended to OpenStage.ino during the Arduino compile process.
//
// The functions that do t... | //------------------------------------------------------------------------------------------------
// This file contains various peripheral functions required for OpenStage.ino. When using the
// Arduino IDE it is automatically appended to OpenStage.ino during the Arduino compile process.
//
// The functions that do t... | remove serial port reporting from dButtonMove() | remove serial port reporting from dButtonMove()
| Arduino | agpl-3.0 | raacampbell13/openstage,raacampbell13/openstage |
c82c0d417e2e28b813c7476f612fb6e5489b8561 | 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_ADC_0_PINS 13
#define DIG_ADC_1_PINS 0
#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_ADC_0[] = {... | test both ADCs separatedly, reset settings after each test | test both ADCs separatedly, reset settings after each test
improve all testing printing
| Arduino | mit | pedvide/ADC,pedvide/ADC |
c2915406d4d9a98ef7d903d5b6b94e72bc784da8 | ksp-gegi-mini/ksp-gegi-mini.ino | ksp-gegi-mini/ksp-gegi-mini.ino |
#include <Arduino.h>
// IDE: Arduino Mini, ATmega168
// dł kabelków 15-20cm
// przełączniki2: niebieski do GND, biały do pinu, wszystkie zamontowane tak, aby niebieski był w środku, biały na dole, a niepodłączone u góry (wtedy gałka w górę==załączenie)
// przełączniki3: środkowy (ciemny) do GND, boczne do pinów, zam... |
#include <Arduino.h>
// IDE: Arduino Mini, ATmega168
// dł kabelków 15-20cm
// diody LED z uC: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu
// przełączniki2: niebieski do GND, biały do pinu, wszystkie zamontowane tak, aby niebieski był w środku, biały na dole, a niepodłą... | bring back info about LED connections | bring back info about LED connections
| Arduino | mit | ytmytm/ksp-gegi |
357a40cf04fa4ee0f75e24b53b22998ec9509778 | payload/payload.ino | payload/payload.ino | #include <Wire.h>
#include <Adafruit_BMP085.h>
/*
* BMP180 setup instructions:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
... | /* BMP180 setup for Arduino UNO:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
*/
#include <Wire.h>
#include <Adafruit_BMP085.h... | Generalize Barometric data to a typedefined struct and adjust functions | Generalize Barometric data to a typedefined struct and adjust functions
| Arduino | mit | nolanholden/geovis,nolanholden/geovis,nolanholden/geovis,nolanholden/payload-level1-rocket |
271514a88b6631adb2acebc5ab31633061d15bfb | arduino/ac-toggle/ac-toggle.ino | arduino/ac-toggle/ac-toggle.ino | // define the switches
int relay_1 = 2;
int relay_2 = 3;
// string to store the incoming serial data
String serial_in;
void setup() {
// set the switches to be output
pinMode(relay_1, OUTPUT);
pinMode(relay_2, OUTPUT);
// start the serial port
Serial.begin(9600);
}
void loop() {
// wait for data on ... | // brendan@horan.hk
// ac-toggle
// define the switches
int relay_1 = 2; // Physical pin D2
int relay_2 = 3; // Physical pin D3
// string to store the incoming serial data
String serial_in;
void setup() {
// set the switches to be output
pinMode(relay_1, OUTPUT);
pinMode(relay_2, OUTPUT);
// start the se... | Update ac-toggle.ino | Update ac-toggle.ino
commended code | Arduino | bsd-3-clause | brendanhoran/ac-relay |
a8bb87d0af5a3e910b12a845d671c9c79f95e6b8 | files/template.ino | files/template.ino | /*
SenseBox Citizen Sensingplatform
Version: 1.0
Date: 2014-05-11
Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/
Author: Jan Wirwahn
*/
//libraries to include
#include <DHT.h>
#include <Barometer.h>
#include <Wire.h>
#include <SPI.h>
#include <EthernetV2_0.h>
//Ethernet shield settings
#define W52... | /*
SenseBox Citizen Sensingplatform
Version: 1.0
Date: 2014-05-11
Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/
Author: Jan Wirwahn
*/
//libraries to include
#include <DHT.h>
#include <Barometer.h>
#include <Wire.h>
#include <SPI.h>
#include <EthernetV2_0.h>
//Ethernet shield settings
#define W52... | Update template.ino | Update template.ino
Fixed the millis() rollover | Arduino | mit | mpfeil/OpenSenseMap-API,chk1/OpenSenseMap-API,sensebox/OpenSenseMap-API,sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API |
41b2734aa907cf11b889977a7ef6a6a51654bd12 | 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... | Increase delay to 20ms | Increase delay to 20ms
| Arduino | mit | thusoy/hhi-experiments |
2b24031e3ab587be81b32e2d426d43edf8ff4f78 | Modules/Protocol/Protocol.ino | Modules/Protocol/Protocol.ino |
#define ver "0_3_3"
#define buffersize 12
#define cooling 3
#define coolingin A0
#define heatsink A1
unsigned long ellapsedtime = 0;
unsigned long starttime = 0;
unsigned long internaltime = 1234567;
bool coolingstate = false;
float settemperature = 0;
float coolingtemperature = 0;
float heatsinktemperature = 0... | #include <stdlib.h>
#define ver "0_3_3"
#define buffersize 12
#define cooling 3
#define coolingin A0
#define heatsink A1
unsigned long ellapsedtime = 0;
unsigned long starttime = 0;
unsigned long internaltime = 0;
bool coolingstate = false;
float settemperature = 0;
float coolingtemperature = 0;
float heatsin... | Update do Protocolo | Update do Protocolo
inclusão do comando:
- Get Status
- Set Fan
| Arduino | mit | altLab/AltoEspectro,altLab/AltoEspectro,altLab/AltoEspectro |
bec37d2ecfe40834aa0c7a47215f3318f11d22bb | testing/arduino/serial-driving.ino | testing/arduino/serial-driving.ino | // Wheel encoder
const byte interrupt1Pin = 2;
int interrupt1Count = 0;
int previousInterrupt1Count = 0;
const byte interrupt2Pin = 3;
int interrupt2Count = 0;
int previousInterrupt2Count = 0;
int previousMillis1 = 0;
int previousMillis2 = 0;
const int stepsPerRevelation = 20;
const int distanceInMMPerRevelation = 2... | // Wheel encoder
const byte interrupt1Pin = 2;
int interrupt1Count = 0;
int previousInterrupt1Count = 0;
const byte interrupt2Pin = 3;
int interrupt2Count = 0;
int previousInterrupt2Count = 0;
int previousMillis1 = 0;
int previousMillis2 = 0;
const int stepsPerRevelation = 20;
const int distanceInMMPerRevelation = 2... | extend self driving test | extend self driving test
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
87235a61814a20478231c22c40c47d2d86b42ba4 | sketch/sketch.ino | sketch/sketch.ino | /* サーボのヘッダファイルを準備 */
#include <Servo.h>
/* サーボモータの制御クラス */
class ServoIO{
Servo servo; /* サーボのピン */
/* サーボモータが可動範囲外に回転するのを防ぐ関数*/
int angleCalc(const int currentAngle, const int difference){
const int sum = currentAngle + difference;
if(sum < 5){return 0;} /* 5度以下なら0度を返す */
if(sum > 175){return... | /* サーボのヘッダファイルを準備 */
#include <Servo.h>
/* サーボモータの制御クラス */
class ServoIO{
Servo servo; /* サーボのピン */
/* サーボモータが可動範囲外に回転するのを防ぐ関数*/
int angleCalc(const int currentAngle, const int difference){
const int sum = currentAngle + difference;
if(sum < 5){return 0;} /* 5度以下なら0度を返す */
if(sum > 175){return... | Add brake to MotorIO | Add brake to MotorIO
| Arduino | mit | eliza0x/Suno |
327c98784123029a81b05ff012a7c713887df51b | src/Music/Music.ino | src/Music/Music.ino | // Compile for Uno Pro or Uno Pro Mini
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>
#include <Streaming.h> // <<-style printing
#include <Metro.h> // timers
#include <EasyTransfer.h> // data transfer between arduinos
#include <SoundMessage.h> // message structure (used with EasyTransfer)
// Serial sp... | // Compile for Uno Pro or Uno Pro Mini
#include <SPI.h>
#include <Adafruit_VS1053.h>
#include <SD.h>
#include <Streaming.h> // <<-style printing
#include <Metro.h> // timers
#include <EasyTransfer.h> // data transfer between arduinos
#include <SoundMessage.h> // message structure (used with EasyTransfer)
// Serial sp... | Make Music.ino compile | Make Music.ino compile
| Arduino | mit | akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon |
a99fab1dab9ef531849131bd38680fb9acff9caa | ESP8266/moisture_deployed.ino | ESP8266/moisture_deployed.ino | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <TimeLib.h>
const char *ssid = "";
const char *pass = "";
const int AnalogIn = A0;
int readSensor;
const char ntpServerName[] = "us.pool.ntp.org";
const int timeZone = 2;
WiFiUDP Udp;
unsigned int localPort = 9876;
time_t getNtpT... | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <TimeLib.h>
const char *ssid = "";
const char *pass = "";
const int AnalogIn = A0;
int readSensor;
const char ntpServerName[] = "us.pool.ntp.org";
const int timeZone = 2;
WiFiUDP Udp;
unsigned int localPort = 9876;
time_t getNtpT... | deploy ready | deploy ready
| Arduino | mit | domklim/soil-moisture-sensor,domklim/soil-moisture-sensor |
84561afec048befd7ea73391df3d4c956fd0b7a7 | Arduino/LightPlayer/LightPlayer.ino | Arduino/LightPlayer/LightPlayer.ino | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remote ... | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remote ... | Change Mode to be a scoped enum of type uint8_t | Change Mode to be a scoped enum of type uint8_t
| Arduino | mit | godlygeek/LightRender,MaddAddaM/LightRender |
3d345c04fd14be1a323af5b5771a61a2d1ae1e17 | payload/payload.ino | payload/payload.ino | /* BMP180 setup for Arduino UNO:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
*/
#include <Wire.h>
#include <Adafruit_BMP085.h... | /* BMP180 setup for Arduino UNO:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
*/
#include <Wire.h>
#include <Adafruit_BMP085.h... | Include file IO libraries for DAQ | Include file IO libraries for DAQ
| Arduino | mit | nolanholden/geovis,nolanholden/geovis,nolanholden/geovis,nolanholden/payload-level1-rocket |
eb09a51f894def4cc2bbe0dfb1506d09b4c11307 | Roost_lab2/Roost_lab2.ino | Roost_lab2/Roost_lab2.ino | // =============================================================================
// File: Roost_lab2.ino
// Desc: Roost! An open source implementaion of a temperature and motion
// monitoring station based on an ESP8266 with DHT11 and HC-SR501 sensors.
//
// This code is in the public domain
// ============... | // =============================================================================
// File: Roost_lab2.ino
// Desc: Roost! An open source implementaion of a temperature and motion
// monitoring station based on an ESP8266 with DHT11 and HC-SR501 sensors.
//
// This code is in the public domain
// ============... | Clean compiles on labs 1 and 2. Testing to follow. | Clean compiles on labs 1 and 2. Testing to follow.
| Arduino | mit | DidymusRex/Roost,DidymusRex/Roost,DidymusRex/Roost |
0b2079d290602f144ab558b928b97ecd37397a7e | firmware/examples/am2315test.ino | firmware/examples/am2315test.ino | #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... | // This #include statement was automatically added by the Spark IDE.
#include "Adafruit_AM2315.h"
#include <spark_wiring.h>
/***************************************************
This is an example for the AM2315 Humidity + Temp sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> https... | Update am2315test.ino | Update am2315test.ino | Arduino | bsd-3-clause | pewenn/Adafruit_AM2315 |
63f90ff2854eb0a983d5990c2b9a647404ed342d | d_BacpacCommands.ino | d_BacpacCommands.ino | #define MEWPRO_VERSION_STRING "2016020700"
void printHex(uint8_t d, boolean upper)
{
char t;
char a = upper ? 'A' : 'a';
t = d >> 4 | '0';
if (t > '9') {
t += a - '9' - 1;
}
Serial.print(t);
t = d & 0xF | '0';
if (t > '9') {
t += a - '9' - 1;
}
Serial.print(t);
}
void cameraCommand()
{
s... | #define MEWPRO_VERSION_STRING "2016020700"
void printHex(uint8_t d, boolean upper)
{
char t;
char a = upper ? 'A' : 'a';
t = d >> 4 | '0';
if (t > '9') {
t += a - '9' - 1;
}
Serial.print(t);
t = d & 0xF | '0';
if (t > '9') {
t += a - '9' - 1;
}
Serial.print(t);
}
void cameraCommand()
{
s... | fix an additional bug recently introduced | fix an additional bug recently introduced
| Arduino | mit | orangkucing/GenlockDongle |
b216f0e35c8bd57b5877003952b82783817d0342 | arduino/ble_ph_sensor/ble_ph_sensor.ino | arduino/ble_ph_sensor/ble_ph_sensor.ino | #include "string.h"
#include "LowPower.h"
#define TRUE 1
#define FALSE 0
#define STATUS_FAILED 0
#define STATUS_OK 1
#define STATUS_DATA_RECVD 2
#define DEF_NOTIF_INTERVAL 20000
#define MAX_NOTIF_ACTIVE_TIME 360000
#define CATCH_QUERY_DURATION 2000
#define MATCHED 0
#define DEPLOY_STATUS_PIN 2
#de... | #include "string.h"
#include "LowPower.h"
#define TRUE 1
#define FALSE 0
#define STATUS_FAILED 0
#define STATUS_OK 1
#define STATUS_DATA_RECVD 2
#define DEF_NOTIF_INTERVAL 20000
#define MAX_NOTIF_ACTIVE_TIME 360000
#define CATCH_QUERY_DURATION 2000
#define MATCHED 0
#define DEPLOY_STATUS_PIN 2
#de... | Update on arduino sketch for bl_batt | [Minor] Update on arduino sketch for bl_batt
| Arduino | mit | Francis-T/citas-dryad,Francis-T/citas-dryad,Francis-T/citas-dryad,Francis-T/citas-dryad |
223792baff4bc9b52bb978b39194b088d8ea2b2b | arduino/gslc_ex19_ard/gslc_ex19_ard.ino | arduino/gslc_ex19_ard/gslc_ex19_ard.ino | //
// GUIslice Library Examples
// - Calvin Hass
// - https://www.impulseadventure.com/elec/guislice-gui.html
// - https://github.com/ImpulseAdventure/GUIslice
// - Example 19 (ESP8266/ESP32):
// - Accept touch input, text button, text box
// - Antialiased Fonts
// - NOTE: This is Example demonstrates text antial... | //
// GUIslice Library Examples
// - Calvin Hass
// - https://www.impulseadventure.com/elec/guislice-gui.html
// - https://github.com/ImpulseAdventure/GUIslice
// - Example 19 (ESP8266/ESP32):
// - Accept touch input, text button, text box
// - Antialiased Fonts
// - NOTE: This is Example demonstrates text antial... | Update gslc_ex19_ard for compatibility with ESP8266 | Update gslc_ex19_ard for compatibility with ESP8266
| Arduino | mit | ImpulseAdventure/GUIslice,ImpulseAdventure/GUIslice |
3a5774488c1de22853be70916872c8bc2c68d365 | examples/Sandbox/CosaRotaryEncoder/CosaRotaryEncoder.ino | examples/Sandbox/CosaRotaryEncoder/CosaRotaryEncoder.ino | /**
* @file CosaRotaryEncoder.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 o... | /**
* @file CosaRotaryEncoder.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 o... | Adjust for ATtiny (first step). | Adjust for ATtiny (first step).
| Arduino | lgpl-2.1 | dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,SinishaDjukic/Meshwork,kc9jud/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,kc9jud/Cosa,dansut/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,kc9jud/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cosa,kc9jud/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,SinishaDjuk... |
8b18dc0d6082558b74443ee3d9b773d351c608d9 | arduino_ssr/arduino_ssr.ino | arduino_ssr/arduino_ssr.ino | #include "TimerOne.h"
#include "SPI.h" // new include
#include "avr/pgmspace.h" // new include
#include "Ethernet.h"
#include "WebServer.h"
#include <string.h>
#include <stdlib.h>
int count = 0;
int current_idx = -1;
int lengths[4] = {0, 0, 0, 50}; // Default state is IDLE
static uint8_t mac[] = { 0xDE, 0xAD, 0xB... | #include "TimerOne.h"
#include "SPI.h" // new include
#include "avr/pgmspace.h" // new include
#include "Ethernet.h"
#include "WebServer.h"
#include <string.h>
#include <stdlib.h>
int count = 0;
int current_idx = -1;
int lengths[4] = {0, 0, 0, 50}; // Default state is IDLE
static uint8_t mac[] = { 0xDE, 0xAD, 0xB... | change frequency to EDF signal | change frequency to EDF signal
| Arduino | mit | flagos/arduino-ssr |
ae1c7fdd4621d52de5d0ea287c97ff828016527f | examples/seq/seq.ino | examples/seq/seq.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Add parameter value struct and conversions. | Add parameter value struct and conversions.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
96f1a9fd40f6bdad39c66259e1a7d69f4fa2fe20 | arduino/examples/ESP32IOBoard/ESP32IOBoard.ino | arduino/examples/ESP32IOBoard/ESP32IOBoard.ino | /** \copyright
* Copyright (c) 2019, Mike Dunston
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this l... | /** \copyright
* Copyright (c) 2019, Mike Dunston
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this l... | Disable mDNS broadcasting for the ESP32IOBoard by default. (#218) | Disable mDNS broadcasting for the ESP32IOBoard by default. (#218)
* Disable mDNS broadcasting for the ESP32IOBoard by default.
By default the ESP32IOBoard should not broadcast over mDNS as this
should only be done for nodes which are acting as a hub. The
ESP32IOBoard can be a hub for other nodes to connect to via... | Arduino | bsd-2-clause | bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn |
8a92cf04ccabbbd6c4bc2846f85b12b3b0eba0a0 | Firmware/Demo.ino | Firmware/Demo.ino | //
// Demo.ino
//
CurveResult circle_translation_only(float t)
{
// Original: speed multiplier: 5000, timeStretch 0.093
float timeStretch = 0.093;
CurveResult result;
result.finished = false;
result.omega = 0;
result.vx = -cos(t * timeStretch);
result.vy = sin(t * timeStretch);
// sto... | //
// Demo.ino
//
CurveResult circle_translation_only(float t)
{
// Original: speed multiplier: 5000, timeStretch 0.093
float timeStretch = 0.093;
CurveResult result;
result.finished = false;
result.omega = 0;
result.vx = -cos(t * timeStretch);
result.vy = sin(t * timeStretch);
// sto... | reset demo_stopWithDelay to match description | reset demo_stopWithDelay to match description
| Arduino | mit | tfeldmann/Mecanum-Robot,tfeldmann/Mecanum-Robot |
3acfce5faf670fa8c3ca5bfff46cc53654d07408 | YunSmartMeasuringCupSketch/YunSmartMeasuringCupSketch.ino | YunSmartMeasuringCupSketch/YunSmartMeasuringCupSketch.ino | // Arduino Yun Smart Measuring Cup Sketch
// Use a liquid sensor to show the volume in a measuring cup on a website in real time.
// Created by Tony DiCola
// Released under an MIT license: http://opensource.org/licenses/MIT
#include <Bridge.h>
#include <YunClient.h>
#include <YunServer.h>
// Configuration values:
... | // Arduino Yun Smart Measuring Cup Sketch
// Use a liquid sensor to show the volume in a measuring cup on a website in real time.
// Created by Tony DiCola
// Released under an MIT license: http://opensource.org/licenses/MIT
#include <Bridge.h>
#include <YunClient.h>
#include <YunServer.h>
// Configuration values:
... | Update YunSmartMeasuringCupSketch.ino | Update YunSmartMeasuringCupSketch.ino | Arduino | mit | tdicola/SmartMeasuringCup |
cc4d89bebd1c878685f17fad3c6135dbb95e58d1 | Time.ino | Time.ino |
// seconds between 1900-01-01 and 1970-01-01
// also known as 2208988800UL
#define NTP_TO_UNIX ((70 * 365 + 17) * 86400)
//Arguments to SNTP client constructor:
// 1 - Primary Network Time Server URL (can be NULL)
// 2 - Secondary Network Time Server URL (also can be NULL)
// 3 - Local UTC offset in minutes (US East... |
// seconds between 1900-01-01 and 1970-01-01
// also known as 2208988800UL
#define NTP_TO_UNIX ((70 * 365 + 17) * 86400)
//Arguments to SNTP client constructor:
// 1 - Primary Network Time Server URL (can be NULL)
// 2 - Secondary Network Time Server URL (also can be NULL)
// 3 - Local UTC offset in minutes (US East... | Enable sntp code again. | Enable sntp code again.
| Arduino | mit | pndlm/keg_scribe |
971fc783ec49c6c5229481f1d1137ab6623192af | code/IMU6050.ino | code/IMU6050.ino | /*Gyro output rate: 8kHz (if we do'nt use DLPF and 1kHz if do use DLPF)
**Accelo output rate: 1kHz*/
/*All of the below regiater addresses are for the most significant bits, i.e. for bits[15:8]*/
#define GYRO_XOUT_REGISTER 0x43
#define GYRO_YOUT_REGISTER 0x45
#define GYRO_ZOUT_REGISTER 0x47
#define ACCELO_XOUT_RE... | /*Gyro output rate: 8kHz (if we do'nt use DLPF and 1kHz if do use DLPF)
**Accelo output rate: 1kHz*/
/*All of the below regiater addresses are for the most significant bits, i.e. for bits[15:8]*/
#define GYRO_XOUT_REGISTER 0x43
#define GYRO_YOUT_REGISTER 0x45
#define GYRO_ZOUT_REGISTER 0x47
#define ACCELO_XOUT_RE... | Update IMU6050.ino | Update IMU6050.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
0d6527547091e5028a5167bc8c75fd627a1d7fc4 | plant-monitor/plant-monitor.ino | plant-monitor/plant-monitor.ino | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// main status
int lastSensorStatus = 0, currentSensorStatus = 0;
char publishString[128];
// BME280 sensor
Adafruit_BME280 bme;
d... | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// main status
int lastSensorStatus = 0, currentSensorStatus = 0;
char publishString[128];
char eventString[10];
// BME280 sensor
... | implement alerts for soil and temperature | implement alerts for soil and temperature
| Arduino | apache-2.0 | mhaack/Particle-Photon-Apps |
a00db836d83f625997ed13ad57134a30018b65bd | duinoCar/duinoCar.ino | duinoCar/duinoCar.ino | #include <TimerOne.h>
#include <SD.h>
#include <TinyGPS.h>
#include <TN901.h>
#include <U8glib.h>
#include "config.h"
void setup(){
Serial.begin(9600); // Debug port
Serial2.begin(9600); // APC 220 port
Serial3.begin(4800); // read GPS port
if(!SD.begin(sdCS)){
Serial.println("Card failed, or not pre... | #include <TimerOne.h>
#include <SD.h>
#include <TinyGPS.h>
#include <TN901.h>
#include <U8glib.h>
#include "config.h"
void setup(){
Serial.begin(9600); // Debug port
Serial2.begin(9600); // APC 220 port
Serial3.begin(4800); // read GPS port
if(!SD.begin(sdCS)){
Serial.println("Card failed, or not pre... | delete some empty space | delete some empty space
| Arduino | mit | chengkun/duino-car |
eda81b97df73a708bf89fb698dade1e69634fb15 | 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 |
3dbf4137024fd99584dc0c301ec44f2b764bffa7 | Mqtt433Bridge/Mqtt433Bridge.ino | Mqtt433Bridge/Mqtt433Bridge.ino | // Copyright 2016-2018 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 <WiFiClientSecure.h>
#include <PubSubClient.h>
#include "WirelessConfig.h"
#include "RXCore433... | // Copyright 2016-2018 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 <WiFiClientSecure.h>
#include <PubSubClient.h>
#include "WirelessConfig.h"
#include "RXCore433... | use mac address for mqtt id | src: use mac address for mqtt id
- each mqtt client needs to use a unique id when it connects.
Use the mac address instead of a hard coded value.
| Arduino | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
50b8b47c338d412db129c8e0656251bc6fade22a | RIODuino/RIODuino.ino | RIODuino/RIODuino.ino | #include <Adafruit_NeoPixel.h>
#include <Wire.h>
#define LED_PIN 8
#define LED_COUNT 60
#define DEVICE_ADDRESS 0
#define STACK_HEIGHT_REGISTER 0
#define ALLIANCE_REGISTER 1
#define BLUE_ALLIANCE 0
#define RED_ALLIANCE 1
#define BLUE_COLOR 0x0000FF
#define RED_COLOR 0xFF0000
#define MAX_STACK_HEIGHT 5
Adafruit_NeoPi... | /*
* This program uses the third-party library NeoPixel.
* You must download and install this library in order to compile and upload the code.
* You can download it for free at http://github.com/adafruit/Adafruit_NeoPixel
*/
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
#define LED_PIN 8
#define LED_COUNT 60
... | Update RIODuino codebase | Update RIODuino codebase
| Arduino | bsd-3-clause | frc-4931/2015-Robot,Zabot/2015-Robot |
ed2d508ea611b58ed33f40f60ac9aa38db017c49 | sketchbook/printer/printer.ino | sketchbook/printer/printer.ino | #include <Motor.h>
int posX = 0;
int posY = 0;
int posZ = 0;
boolean configured = false;
Motor motorX(2, 3, 4, 5);
Motor motorY(6, 7, 8, 9);
Motor motorZ(10, 11, 12, 13);
void setup() {
Serial.begin(9600);
while(!Serial);
}
void setPos(int & pos, Motor & motor) {
if (!configured) {
errConf();
... | #include <Motor.h>
int posX = 0;
int posY = 0;
int posZ = 0;
boolean configured = false;
Motor motorX(2, 3, 4, 5);
Motor motorY(6, 7, 8, 9);
Motor motorZ(10, 11, 12, 13);
void setup() {
Serial.begin(9600);
while(!Serial);
}
void setPos(int & pos, Motor & motor) {
if (!configured) {
errConf();
... | fix return() | fix return()
| Arduino | mit | lennart96/printer,lennart96/printer,lennart96/printer |
195c996be804566a6c761e859a0acd358b1bd712 | 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
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... | fix string transmission | fix string transmission
| Arduino | mit | fkmclane/derailleurs,fkmclane/derailleurs,fkmclane/derailleurs |
3f074629529d0be7519e7c89db6d2575e2b0067d | meteo_in/meteo_in.ino | meteo_in/meteo_in.ino | // Uncomment define DEBUG line to build with debug logs (on serial)
// This line MUST be before meteo_common.h include to make any effect
//#define DEBUG
#include <DHT.h> // Temp and humidity
#include <Wire.h> // Pressure
#include <Adafruit_BMP085.h> // Pressure
#include <meteo_common.h> // Common function for meteo
... | // Uncomment define DEBUG line to build with debug logs (on serial)
// This line MUST be before meteo_common.h include to make any effect
//#define DEBUG
#include <DHT.h> // Temp and humidity
#include <Wire.h> // Pressure
#include <Adafruit_BMP085.h> // Pressure
#include <meteo_common.h> // Common function for meteo
... | Fix LEDs ports numbers | Fix LEDs ports numbers
| Arduino | apache-2.0 | jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo |
e6ff3ee122a7fc5e476f89da3e4455d3411a3e29 | Vsens/src/sketch.ino | Vsens/src/sketch.ino | /*
Vsens sketch
measures the voltage on analog pin and prints the result to the serial port
Do not connect more than 5 volts directly to an Arduino pin!!
*/
// +V from battery is connected to analog pin 0
#define measurePin A0
#define activityLED 13
// *** declare constants
const float ref5V = 5.0; // refere... | /*
Vsens sketch
measures the voltage on analog pin and prints the result to the serial port
Do not connect more than 5 volts directly to an Arduino pin!!
*/
// +V from battery is connected to analog pin 0
#define measurePin A0
#define activityLED 13
// *** declare constants
const float ref5V = 5.14; // refere... | add reference voltage | add reference voltage
| Arduino | mit | Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino |
14bdc8510426fa06bfbe9dd548d83b6c2d706097 | Guzheng/Guzheng.ino | Guzheng/Guzheng.ino | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
*/
// Some defines
#define THRESHOLD 700
#define VOLUME 0x7F
#define LASTPORT 4
#define DELAY 10
// MIDI command defines
#define NOTEON 0x90
#define NOTEOFF 0x80
#define CHANGEINSTRUMENT 0xC0
// Values for different notes
int note8 = 0x68;
int note7 = ... | /* Code for laser guzheng
* Copyright (C) 2016 Jason Lu
*
*/
// Some defines
#define THRESHOLD 500
#define VOLUME 0x7F
#define LASTPORT 4
#define DELAY 10
// MIDI command defines
#define NOTEON 0x90
#define NOTEOFF 0x80
#define CHANGEINSTRUMENT 0xC0
// Values for different notes
int note8 = 0x48;
int note7 = 0x... | Add note set switching capabilities | Add note set switching capabilities
| Arduino | mit | PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp |
cebadce72a27d9779353fd42ec7a9dabb6497ef0 | EmotionalClothing.ino | EmotionalClothing.ino | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(1, 0, 9, 8, 7, 6);
String fileNames[4] = {"BUGS2.WAV", "DAFFY1.WAV", "BUGS1.WAV", "DAFFY2.WAV"};
const int button = A3;
SdReader card; // This object hol... | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(1, 0, 9, 8, 7, 6);
const int button = A3;
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the information... | Remove test code and songs | Remove test code and songs
| Arduino | mit | IgorGee/Emotional-Clothing |
21b0ee96a9ab5bda79865d46e776de3688df576e | src/Gortobot_v3c.ino | src/Gortobot_v3c.ino | /* Gortobot v3c */
// Gortobot_v3c.ino handles program modes, includes, pin assignments,
// objects, global constants & variables, setup() & loop()
// TODO:
// config switches?
// change isbd to use hardware serial
// battery classes, abstract, fake
// gps classes, abstract, fake
// Program Modes (config)
#include ... | /* Gortobot v3c */
// Gortobot_v3c.ino handles program modes, includes, pin assignments,
// objects, global constants & variables, setup() & loop()
// TODO:
// config switches?
// change isbd to use hardware serial
// battery classes, abstract, fake
// gps classes, abstract, fake
// Program Modes (config)
#include ... | Configure for 5 minute logs and put on roof | Configure for 5 minute logs and put on roof
| Arduino | mit | cgorton1313/gortobot,cgorton1313/gortobot |
d50506b1c677015b19b83ba79b2d5332dbd61789 | payload/payload.ino | payload/payload.ino | /* BMP180 setup for Arduino UNO:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
*/
#include <Wire.h>
#include <Adafruit_BMP085.h... | /* BMP180 setup for Arduino UNO:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V or 5.0V
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* ----------------------------------------
*/
#include <Wire.h>
#include <Adafruit_BMP085.h... | Implement the BmpData struct; delete the COPY and MOVE operations | Implement the BmpData struct; delete the COPY and MOVE operations
| Arduino | mit | nolanholden/geovis,nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis |
c61fc4260e62e1240c7b7eecd098d1dfac90c0c8 | 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... | Update mech.ino | Update mech.ino | Arduino | mit | dkaukov/ratu,dkaukov/ratu |
0f8567a655aa0aab6e402d94d12a710740d925db | examples/gpsLogger/gpsLogger.ino | examples/gpsLogger/gpsLogger.ino | #include "Wire.h"
#include "SPI.h"
#include "Servo.h"
#include "DroneLibs.h"
List<Waypoint> *eeList;
const uint32_t UPDATE_INTERVAL = 4000;
LEA6H gps;
void setup(){
eeList = EEPROMlist::getInstance();
Serial.begin(9600);
gps.begin();
showList();
Serial.println("Press C to clear");
}
vo... | #include "Wire.h"
#include "SPI.h"
#include "Servo.h"
#include "DroneLibs.h"
List<Waypoint> *eeList;
const uint32_t UPDATE_INTERVAL = 4000;
LEA6H gps;
void setup(){
eeList = EEPROMlist::getInstance();
Serial.begin(9600);
gps.begin();
showList();
Serial.println("Press C to clear");
}
vo... | fix sensor status compare bug | fix sensor status compare bug
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
911800eabd915ba59cd7c8da7a94b04ad478bf91 | src/iWork.ino | src/iWork.ino | // This #include statement was automatically added by the Particle IDE.
#include <clickButton.h>
#include "Adafruit_GFX.h"
#include "Adafruit_SSD1306.h"
//PIN PHOTON => PIN OLED
#define OLED_MOSI D0 //=>D1
#define OLED_CLK D1 //=>D0
#define OLED_DC D2 //=>DC
#define OLED_CS D3 //=>CS
#define OLED_RESET ... | // This #include statement was automatically added by the Particle IDE.
#include <clickButton.h>
#include "Adafruit_GFX.h"
#include "Adafruit_SSD1306.h"
//PIN PHOTON => PIN OLED
#define OLED_MOSI D0 //=>D1
#define OLED_CLK D1 //=>D0
#define OLED_DC D2 //=>DC
#define OLED_CS D3 //=>CS
#define OLED_RESET ... | Delete T_TIMEOUT because not needed | Delete T_TIMEOUT because not needed
| Arduino | mit | circlesmiler/iwork,circlesmiler/iwork |
5919daafd34acb8425291989953f3013831edd37 | src/Gortobot_v3c.ino | src/Gortobot_v3c.ino | /* Gortobot v3c */
// TODO:
// battery classes, abstract, fake
// gps classes, abstract, fake
// vref maxes at 4.096, do something about this
// Program Modes (config)
#include "configs/config.h"
// Includes
#include <EEPROM.h> // for saving the runNum after each re-start
#include <IridiumSBD.h>
#include <Narcolepti... | /* Gortobot v3c */
// TODO:
// battery classes, abstract, fake
// gps classes, abstract, fake
// vref maxes at 4.096, do something about this
// Program Modes (config)
#include "configs/config.h"
// Includes
#include <EEPROM.h> // for saving the runNum after each re-start
#include <IridiumSBD.h>
#include <Narcolepti... | Fix the failed tx retry time (it was in minutes instead of seconds) | Fix the failed tx retry time (it was in minutes instead of seconds)
| Arduino | mit | cgorton1313/gortobot,cgorton1313/gortobot |
466b038e0df1c9314b590e0a2dd01d644a60376a | _66-slack-bot/_66-slack-bot.ino | _66-slack-bot/_66-slack-bot.ino | // slackbot testing using https://github.com/urish/arduino-slack-bot
/**
Arduino Real-Time Slack Bot
Copyright (C) 2016, Uri Shaked.
Licensed under the MIT License
*/
/*
modified by chaeplin @ gmail.com
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <ESP8266HTTPCl... | // 80MHZ NODEMCU V.1
// slackbot testing using https://github.com/urish/arduino-slack-bot
/**
Arduino Real-Time Slack Bot
Copyright (C) 2016, Uri Shaked.
Licensed under the MIT License
*/
/*
modified by chaeplin @ gmail.com
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#i... | add ota and disable irrecv while sending ir | add ota and disable irrecv while sending ir
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
054826b8ab7b9b54431abc5a14f2fcaa4278de7f | volvo_hid.ino | volvo_hid.ino | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#define DEBUG false
#include "HID-Project.h"
#include "SoftwareSerial.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
... | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#define DEBUG false
#include "HID-Project.h"
#include "SoftwareSerial.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
... | Refactor button handling | Refactor button handling
| Arduino | mit | laurynas/volvo_hid |
ee284ba1f3ecce93b1fde76bf0f813f774d697a8 | Arduino/Arduino.ino | Arduino/Arduino.ino | // arduino.ino
#include <stdio.h>
#include <adk.h>
#define LED_GREEN 22
#define LED_YELLOW 24
#define LED_RED 26
#define BUFFSIZE 255
#define MAX_POWER 400
#define DELAY 50 // Smaller delay breaks everything about communication
// Android --> Arduino codes
#define CMD_NULL_VALUE 0
#define CMD_MOVE_FORWARD 1
#defin... | // arduino.ino
#include <stdio.h>
#include <adk.h>
#define LED_GREEN 22
#define LED_YELLOW 24
#define LED_RED 26
#define BUFFSIZE 255
#define MAX_POWER 400
#define DELAY 50 // Smaller delay breaks everything about communication
// Android --> Arduino codes
#define CMD_NULL_VALUE 0
#define CMD_MOVE_FORWARD 1
#defin... | fix on sensors debug string2 | fix on sensors debug string2
| Arduino | bsd-2-clause | mariotsi/mobile-robot-arduino-android,DMIAlumni/mobile-tanker |
3efaac97ff43ecade3925bc92e5789e9c6628e36 | otto/otto.ino | otto/otto.ino | #include <limits.h>
#include <Servo.h>
#define RIGHT_ANKLE_PIN 5
#define LEFT_ANKLE_PIN 4
#define RIGHT_HIP_PIN 3
#define LEFT_HIP_PIN 2
#define RIGHT_ANKLE_POS_MIN 1050
#define RIGHT_ANKLE_POS_MIDDLE 1510
#define RIGHT_ANKLE_POS_MAX 1860
#define LEFT_ANKLE_POS_MIN ... | #include <limits.h>
#include <Servo.h>
#define RIGHT_ANKLE_POS_MIN 1050
#define RIGHT_ANKLE_POS_MIDDLE 1510
#define RIGHT_ANKLE_POS_MAX 1860
#define LEFT_ANKLE_POS_MIN 1140
#define LEFT_ANKLE_POS_MIDDLE 1490
#define LEFT_ANKLE_POS_MAX 2190
#define RIGHT_HIP_POS_MIN 950
#define RIGHT_HIP_PO... | Use SR04 to check for obstacles and stop movement 10cm in front if them | Use SR04 to check for obstacles and stop movement 10cm in front if them
| Arduino | bsd-3-clause | mprochnow/arduino_sketchbook |
2f21058492089e6028bd8b1f12fc3ca80a361049 | minirum/minirum.ino | minirum/minirum.ino | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <aJSON.h>
const int send_pin = 12;
const int recv_pin = 14;
const char* ssid = "**********";
const char* password = "**********";
char* localName = "minirum-";
String histIRcode;
ESP8266WebServer web... | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <aJSON.h>
const int send_pin = 12;
const int recv_pin = 14;
const char* ssid = "**********";
const char* password = "**********";
char* localName = "minirum-";
String histIRcode;
ESP8266WebServer web... | Add simple web console | Add simple web console
| Arduino | mit | 9SQ/minIRum |
74148fd930f910ce6041f614c8b70a65de53c5e5 | Pince/Moteur_deplacement/Moteur_deplacement.ino | Pince/Moteur_deplacement/Moteur_deplacement.ino | /**
* \file Moteur_deplacement.cpp
* \brief Code de déplacement de la pince
* \author Olivier Jombart
* \date décembre 2016
*/
//____________________________________________________________________________________________________
// I2C
#include <Wire.h>
#include "i2cCommunication.h"
//_______________... | /**
* \file Moteur_deplacement.cpp
* \brief Code de déplacement de la pince
* \author Olivier Jombart
* \date décembre 2016
*/
//____________________________________________________________________________________________________
// I2C
#include <Wire.h>
#include "i2cCommunication.h"
//_______________... | Update moteur deplacement Rectification interruption | Update moteur deplacement
Rectification interruption
| Arduino | mit | nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance |
794333ff7dcaf3b7f9882e67def72cb000f9e704 | 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... | Update Email.ino | Update Email.ino
[ci skip] | Arduino | mit | radut/blynk-library,sstocker46/blynk-library,johan--/blynk-library,al1271/blynk-library,radut/blynk-library,csicar/blynk-library,flashvnn/blynk-library,johan--/blynk-library,blynkkk/blynk-library,al1271/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,flashvnn/blynk-library,ok... |
a5f6532fe37803d7f6949e2c28a974b95b191ada | firmware/src/wax.ino | firmware/src/wax.ino | #include <SPI.h>
#include "DipConfig.h"
#include "Inputs.h"
#include "Channel.h"
#include "Output.h"
#include <Conceptinetics.h>
#define DMX_CHANNELS_PER_CHANNEL 7
#define DMX_SLAVE_CHANNELS DMX_CHANNELS_PER_CHANNEL * MAX_INPUTS
#define PIN_DIP_LATCH 8
#include "memdebug.h"
DMX_Slave dmx_slave ( DMX_SLAVE_CHANNEL... | #include <SPI.h>
#include "DipConfig.h"
#include "Inputs.h"
#include "Channel.h"
#include "Output.h"
#include <Conceptinetics.h>
#define DMX_CHANNELS_PER_CHANNEL 7
#define DMX_SLAVE_CHANNELS DMX_CHANNELS_PER_CHANNEL * MAX_INPUTS
#define PIN_DIP_LATCH 8
#include "memdebug.h"
DMX_Slave dmx_slave ( DMX_SLAVE_CHANNEL... | Make AntiFlash effect some room | Make AntiFlash effect some room
| Arduino | apache-2.0 | Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed,Miceuz/leds-got-waxed |
a2683947f43548e729cea69e36459975779b6ef4 | utils/testSketch/testSketch.ino | utils/testSketch/testSketch.ino | #include <TimerOne.h>
#define INTERROMPE_DIREITA 3
#define INTERROMPE_ESQUERDA 2
#define ACELERADOR_DIREITA 6
#define ACELERADOR_ESQUERDA 5
#define LUZ_ACELERADOR_DIREITA 12
#define LUZ_ACELERADOR_ESQUERDA 13
#define DIRECAO_DIREITA_1 7
#define DIRECAO_DIREITA_2 8
#define DIRECAO_ESQUERDA_1 10
#define DIRECAO_ESQU... | #include <TimerOne.h>
#define INTERROMPE_DIREITA 3
#define INTERROMPE_ESQUERDA 2
#define ACELERADOR_DIREITA 6
#define ACELERADOR_ESQUERDA 5
#define LUZ_ACELERADOR_DIREITA 12
#define LUZ_ACELERADOR_ESQUERDA 13
#define DIRECAO_DIREITA_1 7
#define DIRECAO_DIREITA_2 8
#define DIRECAO_ESQUERDA_1 10
#define DIRECAO_ESQU... | Update testSketch.ino | Update testSketch.ino | Arduino | mit | jefersonla/robozino,jefersonla/robozino |
748281bd041a983634f66c17a8b37e085571ef03 | wii_i2c/wii_i2c.ino | wii_i2c/wii_i2c.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at ... | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at ... | Normalize wiichuck output somewhat | Normalize wiichuck output somewhat
| Arduino | mit | lornix/expert-spork,lornix/expert-spork |
a81ad0a7004a21b2742bf5437734596c9f5f0f25 | arduino_sketch/arduino_sketch.ino | arduino_sketch/arduino_sketch.ino | #include <Arduino.h>
#include <DHT.h> // For the DHT11 temperature and humidity sensor
#include <Time.h> // For timekeeping
#include <Wire.h> // For I2C
// Define LED pins (PWM pins: 3,5,6,9,10,11 on arduino UNO)
const int RED = 11;
const int GREEN = 10;
const int BLUE = 9;
const int PUMP = 2;
c... | #include <Arduino.h>
#include <DHT.h> // For the DHT11 temperature and humidity sensor
#include <Time.h> // For timekeeping
#include <Wire.h> // For I2C
// Define LED pins (PWM pins: 3,5,6,9,10,11 on arduino UNO)
const int RED = 11;
const int GREEN = 10;
const int BLUE = 9;
const int PUMP = 2;
c... | Update defaults | Update defaults
Signed-off-by: Robin Hagman <a0ad21b4a5c77bde0f74c8a70cf9b810eabd0434@gmail.com>
| Arduino | mit | rhagman/sustainable-green-plants |
0672bf83e8902efcdfb0ef5e9dca721660ae9385 | Arduino/nodeMCU/plant/config.ino | Arduino/nodeMCU/plant/config.ino | /************************ Adafruit IO Config *******************************/
// visit io.adafruit.com if you need to create an account,
// or if you need your Adafruit IO key.
#define IO_USERNAME "diomede"
#define IO_KEY "30e0f9943a9243768e5c6af82fbbc16a"
#define MQTT_SERVER "io.adafruit.com"
#define MQTT... | /************************ Adafruit IO Config *******************************/
// visit io.adafruit.com if you need to create an account,
// or if you need your Adafruit IO key.
#define IO_USERNAME "diomede"
#define IO_KEY "30e0f9943a9243768e5c6af82fbbc16a"
#define MQTT_SERVER "io.adafruit.com"
#define MQTT... | Update config.ino | Update config.ino | Arduino | agpl-3.0 | doceo/plant,doceo/plant,doceo/plant,doceo/plant |
398d4c6d660fa979b519b2536ae16303eaa4bf81 | Arduino/Arduino.ino | Arduino/Arduino.ino | #define DEBOUNCE 8 // (ms) half a frame at 60Hz
#define PRESSEDLOGICLEVEL LOW
#define GND1 4
#define GND2 14
#define GND3 15
#define SELECT 7
#define START 12
#define UP 18
#define DOWN 2
#define LEFT 17
#define RIGHT 19
#define A 11
#define B 6
#define LED 13
byte buttons[] = {SELECT, START, UP, DOWN, LEFT, RIGHT... | #define DEBOUNCE 8 // (ms) half a frame at 60Hz
#define PRESSEDLOGICLEVEL LOW
#define GND1 4
#define GND2 15
#define GND3 11
#define SELECT 12
#define START 8
#define UP 14
#define DOWN 18
#define LEFT 16
#define RIGHT 17
#define A 7
#define B 6
#define LED 10
byte buttons[] = {SELECT, START, UP, DOWN, LEFT, RIGHT... | Update Arduino.ino | Update Arduino.ino
update pinout | Arduino | agpl-3.0 | HackerSchool/HES |
0c30491456aa01f15e0b660d7cc3e59e0428fa80 | examples/simple/simple.ino | examples/simple/simple.ino | #include "ConfigManager.h"
struct Config {
char name[20];
bool enabled;
int8 hour;
char password[20];
} config;
struct Metadata {
int8 version;
} meta;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
... | #include "ConfigManager.h"
struct Config {
char name[20];
bool enabled;
int8 hour;
char password[20];
} config;
struct Metadata {
int8 version;
} meta;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
... | Move begin down in example | Move begin down in example
| Arduino | mit | nrwiersma/ConfigManager,nrwiersma/ConfigManager |
cd3ee4de2980223f0c65595fe80804c76575d982 | sketches/spin_motor/spin_motor.ino | sketches/spin_motor/spin_motor.ino |
const int motorPin = 9;
const int knobPin = 1;
const int button = 2;
boolean lastButton = LOW;
boolean currentButton = LOW;
boolean motorOn = false;
int runningSpeed = 0; // out of 0-255
int counter = 0;
void setup()
{
// Set up the motor pin to be an output:
pinMode(motorPin, OUTPUT);
pinMode(button, INPUT)... |
const int knobs[] = {0,1};
const int motors[] = {9, 10};
int speed[] = {0,0};
int speedRunning[] = {0,0};
const int number_of_motors = sizeof(motors)/sizeof(motors[0]);
static int counter = 0;
void setup()
{
for (int m = 0; m < number_of_motors; m++) {
pinMode (motors[m], OUTPUT);
}
Serial.begin(9600);... | Switch to two motors controlled by two knobs | Switch to two motors controlled by two knobs | Arduino | mit | kigster/kiguino,kigster/kiguino |
3753741e714a3b49e9e977c2ea88c6622b912d22 | CocaCola/CocaCola.ino | CocaCola/CocaCola.ino | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | add new blink{all, lights, background} patterns | add new blink{all, lights, background} patterns
| Arduino | mit | jzucker2/HackAColaSign,jzucker2/HackAColaSign |
73d2ccb8a80ee6b652db3ae64abce5983a029a2c | EmotionalClothing.ino | EmotionalClothing.ino | /*
* WaveHC and WaveUtil libraries are provided by Adafruit.
* Source: https://github.com/adafruit/WaveHC
*
* RGB Color Sensor library (Adafruit_TCS34725) is also provided by Adafruit.
* Source: https://github.com/adafruit/Adafruit_TCS34725
*/
#include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include ... | /*
* WaveHC and WaveUtil libraries are provided by Adafruit.
* Source: https://github.com/adafruit/WaveHC
*
* RGB Color Sensor library (Adafruit_TCS34725) is also provided by Adafruit.
* Source: https://github.com/adafruit/Adafruit_TCS34725
*/
#include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include ... | Adjust threshold values | Adjust threshold values
| Arduino | mit | IgorGee/Emotional-Clothing |
657ba9064dad59f5eed152d9feab861e2d3e78c4 | software/nunradio.ino | software/nunradio.ino | #include <math.h>
#include <Wire.h>
#include "Radio.h"
#include "Voltmeter.h"
#include "ModelRegistry.h"
#include "Telemetry.h"
#include "Controller.h"
#include "PermanentStore.h"
#include "Trim.h"
#include "Led.h"
#ifdef ENABLE_ALARM
#include "Alarm.h"
#endif
Voltmeter vmeter1(A1, 0l, 1l);
Voltmeter vmeter2(A2, 0l,... | #include <math.h>
#include <Wire.h>
#include "Radio.h"
#include "Voltmeter.h"
#include "ModelRegistry.h"
#include "Telemetry.h"
#include "Controller.h"
#include "PermanentStore.h"
#include "Trim.h"
#include "Led.h"
#ifdef ENABLE_ALARM
#include "Alarm.h"
#endif
Voltmeter vmeter1(A1, 0l, 1l);
Voltmeter vmeter2(A2, 0l,... | add second voltage to debug statement | add second voltage to debug statement
| Arduino | apache-2.0 | hagleitn/GuerrillaRadio,hagleitn/GuerrillaRadio |
95bebd7adefe2835650c3c88aa2e756ab0a2814c | arduino/led_matrix/led_matrix.ino | arduino/led_matrix/led_matrix.ino |
#include <FastLED.h>
#define NUM_LEDS 16
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, x, y;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.begin(115200);
FastLED.show();
}
void loop() {
... |
#include <FastLED.h>
#define NUM_LEDS 16
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, x, y;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.begin(115200);
FastLED.show();
}
void loop() {
... | send sensible pixel data | send sensible pixel data
| Arduino | mit | Spooner/pixel-table,Spooner/pixel-table,Spooner/pixel-table |
eabcc0368c7ab77f58ad4c778ac398433383d221 | arduino/project.ino | arduino/project.ino | #include <ArduinoJson.h>
const int ledPinArmed = 12;
const int ledPinDisarmed = 13;
int incomingByte = 0;
const int buttonArmed = 4;
const int buttonDisarmed = 2;
const int buzzerAlarm = 11;
int stateArmed = 0;
int stateDisarmed = 0;
StaticJsonBuffer<200> jsonBuffer;
JsonObject& root = jsonBuffer.createObject();
vo... | #include <ArduinoJson.h>
const int ledPinArmed = 12;
const int ledPinDisarmed = 13;
int incomingByte = 0;
const int buttonArmed = 4;
const int buttonDisarmed = 2;
const int buzzerAlarm = 11;
int stateArmed = 0;
int stateDisarmed = 0;
StaticJsonBuffer<200> jsonBuffer;
JsonObject& root = jsonBuffer.createObject();
vo... | refactor in arduino project | refactor in arduino project
| Arduino | unlicense | leonardosouza/am-final-project,leonardosouza/am-final-project |
ecc2e9188b1a8f75adbc55688e2ac93d424d08cf | ha_mqtt_switch/ha_mqtt_switch.ino | ha_mqtt_switch/ha_mqtt_switch.ino | /*
MQTT switch for Home-Assistant (esp8266)
https://home-assistant.io/components/switch.mqtt/
Libraries :
- ESP8266 core for Arduino : https://github.com/esp8266/Arduino
- PubSubClient : https://github.com/knolleary/pubsubclient
- OneButton : https://github.com/mathertel/OneButton
Sources :
... | /*
MQTT switch for Home-Assistant (esp8266)
https://home-assistant.io/components/switch.mqtt/
Libraries :
- ESP8266 core for Arduino : https://github.com/esp8266/Arduino
- PubSubClient : https://github.com/knolleary/pubsubclient
- OneButton : https://github.com/mathertel/OneButton
Sources :
... | Update ha_mqtt_switch.ino | Update ha_mqtt_switch.ino | Arduino | mit | mertenats/Open-Home-Automation,mertenats/Open-Home-Automation |
7b9db526f09ddfe387e5c1f0ceb202ffe606a480 | Arduino/LightPlayer/LightPlayer.ino | Arduino/LightPlayer/LightPlayer.ino | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG 1
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remot... | #include <SPI.h>
#include <SdFat.h>
#include <FAB_LED.h>
#define DEBUG
// ports used:
// digital 4 - SD card chip select
// digital 6 - strip of 200 APA106 LEDs
// digital 11 - SPI (SD card DI)
// digital 12 - SPI (SD card DO)
// digital 13 - SPI (SD card CLK)
// analog 0 - RF remote button D
// analog 1 - RF remote ... | Add much more functionality to RF remote | Add much more functionality to RF remote
The remote wakes up in NORMAL mode.
NORMAL mode keys:
A) Cycle brightness through 8 different settings
B) Skip to next video on SD card
AB) Switch to COLOR CEILING mode
CD) Switch to COLOR FLOOR mode
BC) Switch to MISC mode
COLOR CEILING mode keys:
A) Reduce maximum level of ... | Arduino | mit | godlygeek/LightRender,MaddAddaM/LightRender |
caea28a03d5602ce912a3fea64989afbf98c3ea0 | arduino/fillbrick.ino | arduino/fillbrick.ino | //Pin connected to ST_CP of 74HC595
const int LATCHPIN = 12;
//Pin connected to SH_CP of 74HC595
const int CLOCKPIN = 11;
// Pin connected to DS of 74HC595
const int DATAPIN = 13;
// Number of pins
const int BOARDHEIGHT = 5;
// Refresh rate
const int DELAY = 200;
// Test pattern smiley face
const int data[10] = {7,1,1... | //Pin connected to ST_CP of 74HC595
const int LATCHPIN = 12;
//Pin connected to SH_CP of 74HC595
const int CLOCKPIN = 11;
// Pin connected to DS of 74HC595
const int DATAPIN = 13;
// Number of pins
const int BOARDHEIGHT = 5;
// Delay
const int DELAY = 200;
const int CHARACTER_WIDTH = 4;
const char ch_lookup[] = // Eve... | Add stringToByte font conversion | Add stringToByte font conversion
| Arduino | mit | MaxWofford/philbrick |
d1f8da98099f56a26c4e2d92b72e653265da32a0 | arduino/walt/walt.ino | arduino/walt/walt.ino | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | Add screen brightness curve recording - Teensy side | Add screen brightness curve recording - Teensy side
| Arduino | apache-2.0 | google/walt,google/walt,google/walt,google/walt |
8cba1064b3a95d40b9508dcc14af81195e57d18f | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "1.0.1"
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";
const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ... | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.0"
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";
const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ... | Move to 2.0.0 to reflect change in Homie version | Move to 2.0.0 to reflect change in Homie version
| Arduino | mit | kylegordon/homie-sonoff-touch |
a711b9eb301fcd32cb500b2b1af4137767c54828 | test_SECFRAME/test_SECFRAME.ino | test_SECFRAME/test_SECFRAME.ino | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | /*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... | test commit+push | TODO-632: test commit+push | Arduino | apache-2.0 | opentrv/OTRadioLink,opentrv/OTRadioLink,DamonHD/OTRadioLink,Denzo77/OTRadioLink,DamonHD/OTRadioLink,DamonHD/OTRadioLink,opentrv/OTRadioLink,DamonHD/OTRadioLink,Denzo77/OTRadioLink,Denzo77/OTRadioLink,opentrv/OTRadioLink,Denzo77/OTRadioLink |
27e4d9ac2d5c081f42397289a5e8da6d976eccc7 | CocaCola/CocaCola.ino | CocaCola/CocaCola.ino | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | #include "Constants.h"
void setup() {
randomSeed(analogRead(0));
for (int i = 0; i < sizeof(Lights); i++) {
pinMode(Lights[i], PATTERN_INITIALIZE);
}
}
// code above the man is ignored by the emulator
// code below it is transpiled into js and run by the emulator
// )'(
// Scenes
// roughly: any... | fix Arduino build, and add delay(…)’s where necessary | fix Arduino build, and add delay(…)’s where necessary
| Arduino | mit | jzucker2/HackAColaSign,jzucker2/HackAColaSign |
a0f3ccae4458d3f26fbfab318e7d46ed67c47cfd | sketches/CameraPoses/CameraPoses.ino | sketches/CameraPoses/CameraPoses.ino | #include <coralmicro_SD.h>
#include <coralmicro_camera.h>
#include <cstdint>
#include <memory>
#include "Arduino.h"
#include "coral_micro.h"
#include "libs/tensorflow/posenet.h"
#include "libs/tensorflow/posenet_decoder_op.h"
using namespace coralmicro::arduino;
namespace {
tflite::MicroMutableOpResolver</*tOpsCoun... | #include <coralmicro_SD.h>
#include <coralmicro_camera.h>
#include <cstdint>
#include <memory>
#include "Arduino.h"
#include "coral_micro.h"
#include "libs/tensorflow/posenet.h"
#include "libs/tensorflow/posenet_decoder_op.h"
using namespace coralmicro::arduino;
namespace {
tflite::MicroMutableOpResolver</*tOpsCoun... | Fix arduino build. | Fix arduino build.
Previously broken due to this change:
https://spacepark-review.googlesource.com/c/valiant/valiant/+/45745
Change-Id: I1eff847c8a9e666f74000997c204ac0fbda39fef
GitOrigin-RevId: 0533b3fbab37ab9be5f7afcb6aedecc6980d1626
| Arduino | apache-2.0 | google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro |
1e572bf172c0dcb7cb0d1d6488deabea7c2a793e | HBridgePWM/HBridgePWM.ino | HBridgePWM/HBridgePWM.ino | /*
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... | /*
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 possibility to use serial or analog control | Add possibility to use serial or analog control
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
58f8fdde62fcc955efa63965830bf6b84446c037 | loggertask.ino | loggertask.ino | void IRAM_ATTR loggerTask ( void * pvParameters )
{
const TickType_t loggerTaskdelayTime = ( 1000 * 120 ) / portTICK_PERIOD_MS;
while (1)
{
const char * appendError = "Failed to write to log file.";
char content[60];
uint8_t charCount = 0;
static bool systemHasBooted = tr... | void IRAM_ATTR loggerTask ( void * pvParameters )
{
const TickType_t loggerTaskdelayTime = ( 1000 * 120 ) / portTICK_PERIOD_MS;
while (1)
{
const char * appendError = "Failed to write to log file.";
char content[60];
uint8_t charCount = 0;
static bool systemHasBooted = tr... | Change function name to something more descriptive. | Change function name to something more descriptive.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
79bbcbf08af4cd2ae2ca66e95e1e46e7b42fff62 | src/du.ino | src/du.ino | #include <Servo.h>
Servo servo;
bool debug = false;
char request[12];
int index = 0;
char cmd[3];
char pin[3];
char val[4];
char aux[4];
String response = "";
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char c = Serial.read();
// Reset the request and respons... | #include <Servo.h>
Servo servo;
bool debug = false;
char request[7];
int index = 0;
char cmd[3];
char pin[3];
char val[4];
char aux[4];
String response = "";
void setup() {
Serial.begin(115200);
}
void loop() {
while(Serial.available() > 0) {
char c = Serial.read();
// Reset the request and response... | Remove hack-ish aux, servo, and ping stuff we weren't using anyway | Remove hack-ish aux, servo, and ping stuff we weren't using anyway
| Arduino | mit | Carmer/dino,MinasMazar/dino,austinbv/dino,smalruby/smalrubot,austinbv/dino,MinasMazar/dino,smalruby/smalrubot,Carmer/dino |
67a954956d8684e466cd43d62dbe88900d801bc6 | T0/src/AFE-HTTP-API-listener.ino | T0/src/AFE-HTTP-API-listener.ino | /* AFE Firmware for smart home devices
LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE
DOC: http://smart-house.adrian.czabanowski.com/afe-firmware-pl/ */
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
/* Method creates JSON respons after proces... | /* AFE Firmware for smart home devices
LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE
DOC: http://smart-house.adrian.czabanowski.com/afe-firmware-pl/ */
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
/* Method creates JSON respons after proces... | change #68 | change #68
| Arduino | mit | tschaban/AFE-Firmware,tschaban/AFE-Firmware,tschaban/AFE-Firmware,tschaban/AFE-Firmware |
6c30328b8929845b7a46a96034fa5de17faade7d | arm.ino | arm.ino | #include <Servo.h>
Servo grab;
Servo pan_arm;
Servo tilt_arm;
int cmd; //the switch variable
void setup(){
Serial.begin(9600);
grab.attach(3);
tilt_arm.attach(2);
pan_arm.attach(4);
}
void loop(){
if(Serial.available() > 0){
cmd = Serial.read(); // acceept a command
switch (cmd) {
case... | #include <Servo.h>
Servo claw;
Servo tilt;
Servo pan;
char cmd_byte;
void setup(){
claw.attach(13);
tilt.attach(12);
pan.attach(11);
}
void loop(){
swing_tilt(90);
swing_pan(20);
delay(10000);
}
void grab(int i){
claw.write(i); //closed
}
void swing_tilt(int i){
tilt.write(i); //closed
}
void s... | Update arm.ino | Update arm.ino
new setup for vertical desktop config | Arduino | mit | treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches |
c44dfb06bfdc876c21b4d40bbaa9bbc1a8a169f8 | half_expriment/half_expriment.ino | half_expriment/half_expriment.ino | const int A = 8;
const int B = 9;
const int C = 10;
const int D = 11;
int count = 12;
// speed at 20-500
const unsigned width = 20;
void setup() {
pinMode(A, OUTPUT);
pinMode(B, OUTPUT);
pinMode(C, OUTPUT);
pinMode(D, OUTPUT);
}
void loop() {
while(count > 0)
{
dig... | const int A = 8;
const int B = 9;
const int C = 10;
const int D = 11;
int count = 12;
// speed at 20-500
const unsigned width = 20;
void setup() {
pinMode(A, OUTPUT);
pinMode(B, OUTPUT);
pinMode(C, OUTPUT);
pinMode(D, OUTPUT);
}
void loop() {
while(count > 0)
{
dig... | Update half_expriment.ino | Update half_expriment.ino | Arduino | mit | Mooophy/stepper-gui-control |
74a2d1cb904ae085ec10440a9beda7028a94e67c | examples/DDS/DDS.ino | examples/DDS/DDS.ino | /* Hamshield
* Example: DDS
* This is a simple example to show how to transmit arbitrary
* tones. In this case, the sketh alternates between 1200Hz
* and 2200Hz at 1s intervals.
* Connect the HamShield to your Arduino. Screw the antenna
* into the HamShield RF jack. Connect the Arduino to wall
* power and th... | /* Hamshield
* Example: DDS
* This is a simple example to show how to transmit arbitrary
* tones. In this case, the sketh alternates between 1200Hz
* and 2200Hz at 1s intervals.
* Connect the HamShield to your Arduino. Screw the antenna
* into the HamShield RF jack. Connect the Arduino to wall
* power and th... | Update DDS.ino example for DDS library changes | Update DDS.ino example for DDS library changes
| Arduino | agpl-3.0 | EnhancedRadioDevices/HamShield,EnhancedRadioDevices/HamShield |
2961afee25f5380c46cd4dff36bbd500650bebce | src/sketch.ino | src/sketch.ino | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | Set up serial interface | Set up serial interface
Signed-off-by: Mark Knoop <f1b5a91d4d6ad523f2610114591c007e75d15084@markknoop.com>
| Arduino | agpl-3.0 | markk/loeffler-h,markk/loeffler-h |
f7e75954010ae13b1597198efde5b92db02caeb5 | examples/read9axis/read9axis.ino | examples/read9axis/read9axis.ino | #include "fabo-mpu9250.h"
#include "Wire.h"
FaBo9Axis fabo9axis;
void setup() {
// デバイス初期化
Serial.println("Checking I2C device...");
if (fabo9axis.searchDevice()) {
Serial.println("I am MPU9250");
fabo9axis.configuration();
} else {
Serial.println("device error");
while(1);
}
}
void loop() ... | #include "fabo-mpu9250.h"
#include "Wire.h"
FaBo9Axis fabo9axis;
void setup() {
Serial.begin(9600);
// デバイス初期化
Serial.println("Checking I2C device...");
if (fabo9axis.searchDevice()) {
Serial.println("I am MPU9250");
fabo9axis.configuration();
} else {
Serial.println("device error");
while(1... | Update Magnetmeter. | Update Magnetmeter.
| Arduino | apache-2.0 | FaBoPlatform/FaBo9AXIS-MPU9250-Library |
daef78103d4e4b6c5a49a8c07357a164e735c9bf | moros/moros.ino | moros/moros.ino | #include <SPI.h>
#include <TFT.h>
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10
#define CHAR_WIDTH_PX 42
#define DISPLAY_WIDTH_CHAR 4
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
int active_player = NONE;
volatile int button_pressed = NONE;
inline void ... | #include <SPI.h>
#include <TFT.h>
#define NONE -1
#define DISPLAY_FONT_SIZE 7
#define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10
#define CHAR_WIDTH_PX 42
#define DISPLAY_WIDTH_CHAR 4
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
int active_player = NONE;
volatile int button_pressed = NONE;
inline void ... | Refactor display logic | Refactor display logic
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
a01de92fad1c9b5b8a907fcdf63178ae537dd5bd | arduino/led_matrix/led_matrix.ino | arduino/led_matrix/led_matrix.ino |
#include <FastLED.h>
#define WIDTH 16
#define HEIGHT 16
#define NUM_LEDS (WIDTH * HEIGHT)
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, x, y;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.beg... |
#include <FastLED.h>
#define WIDTH 16
#define HEIGHT 16
#define NUM_LEDS (WIDTH * HEIGHT)
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, x, y;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.beg... | send sensible pixel data | send sensible pixel data
| Arduino | mit | Spooner/pixel-table,Spooner/pixel-table,Spooner/pixel-table |
119d6b377336ceb9fd097bbfc1178a221b788cf6 | EmotionalClothing.ino | EmotionalClothing.ino | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(A0, A1, 9, 8, 7, 6);
const int button = A3;
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the informatio... | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(A0, A1, 9, 8, 7, 6);
const int button = A3;
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the informatio... | Add some lcd information for UI | Add some lcd information for UI
| Arduino | mit | IgorGee/Emotional-Clothing |
c06b39d527a88bfd5541a02d17b699dcb8432a4d | NTPclock/NTPclock.ino | NTPclock/NTPclock.ino | //----------------------------------------------------------------------------------------------------------------
// Clock.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
// Some ext... | //----------------------------------------------------------------------------------------------------------------
// Clock.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
// Some ext... | Change NTP to only update every 6 hours | Change NTP to only update every 6 hours
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
10165d39637567263f6a13375d9a0caa791e1344 | code/i2c_datatest.ino | code/i2c_datatest.ino | #include <Wire.h>
#define SENSOR_ADDR 0x68;
unsigned char bytes[14];
void setup(){
Wire.begin();
Wire.beginTransmission(SENSOR_ADDR);
Wire.write(0x6b); // POWER register
Wire.write(0x00); // dont sleep
Wire.endTransmission(true);
Serial.begin(9600);
}
void loop(){
Wire.beginTransmission(SE... | #include <Wire.h>
#define SENSOR_ADDR 0x68;
unsigned char bytes[14];
void setup(){
Wire.begin();
Wire.beginTransmission(SENSOR_ADDR);
Wire.write(0x6b); // POWER register
Wire.write(0x00); // dont sleep
Wire.endTransmission(true);
Serial.begin(9600);
}
void loop(){
Wire.beginTransmission(SE... | Update i2c_datatest.ino | Update i2c_datatest.ino | Arduino | apache-2.0 | volodink/ishs-course |
d21aae90fa08ed187345b54b936215339f0f9373 | examples/WeatherStationDemo/WeatherStationDemo.ino | examples/WeatherStationDemo/WeatherStationDemo.ino | /**The MIT License (MIT)
Copyright (c) 2018 by Daniel Eichhorn - ThingPulse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | /**The MIT License (MIT)
Copyright (c) 2018 by Daniel Eichhorn - ThingPulse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | Remove dhrdata method | Remove dhrdata method
| Arduino | mit | squix78/esp8266-weather-station |
c6c2b2ed0835cd1328c4ca2822bde98d07e4041d | code/feather_code.ino | code/feather_code.ino |
/*******************************************************************************
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
Permission is hereby granted, free of charge, to anyone
obtaining a copy of this document and accompanying files,
to do whatever they want with them without any restric... |
/*******************************************************************************
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
Permission is hereby granted, free of charge, to anyone
obtaining a copy of this document and accompanying files,
to do whatever they want with them without any restric... | Update feather_code.ino | Update feather_code.ino
Code übersichtlicher gestaltet und vereinheitlicht. | Arduino | mit | officialtiger/summerschool2017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.