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 |
|---|---|---|---|---|---|---|---|---|---|
035c82f92ba5297ffc68f81fb6d1d192324ba4da | coni/arduino/main/remote/last.ino | coni/arduino/main/remote/last.ino | #define MAINSW 12 //1 su 0 e 0 su 1
#define SEL_A 28 //0 su 1
#define SEL_B 31 //0 su 2
#define BT_A A14 //0 premuto
#define BT_B A8 //1 premuto
#define SEL_Gp A5 //0 su G e 1 su p
#define passetto 10
#define vel_passetti 3000
#define NUM_CHANNELS 16
long muovi(char let, int vel, int posA, int posB, int posC = 0);
l... | #define MAINSW 12 //1 su 0 e 0 su 1
#define SEL_A 28 //0 su 1
#define SEL_B 31 //0 su 2
#define BT_A A14 //0 premuto
#define BT_B A8 //0 premuto
#define SEL_Gp A5 //0 su G e 1 su p
#define passetto 10
#define vel_passetti 3000
#define NUM_CHANNELS 16
long muovi(char let, int vel, int posA, int posB, int posC = 0);
l... | solve push button problem NC to NO | solve push button problem NC to NO
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
751c077a62f31d77657d362b3e1e8d4f198a92bd | WirelessTrigger.ino | WirelessTrigger.ino | // Standard libraries
#include <Arduino.h>
#include <printf.h>
// Servo controller
#include <Servo.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
// Smart switch utils
#include "Switch.h"
#define ROLE_SENDER 0
#define ROLE_RECEIVER 1
// SET THE TARGET ROLE HERE... | // Standard libraries
#include <Arduino.h>
#include <printf.h>
// Servo controller
#include <Servo.h>
// Radio comms
#include <RF24_config.h>
#include <nRF24L01.h>
#include <RF24.h>
// Smart switch utils
#include "Switch.h"
#define ROLE_SENDER 0
#define ROLE_RECEIVER 1
// SET THE TARGET ROLE HERE... | Fix bugs in hearbeat logic | Fix bugs in hearbeat logic
| Arduino | mit | WasabiFan/aerial-release-system,WasabiFan/aerial-release-system |
0da833bcab881e4ab753709d3cb05eb368ecc863 | ArduinoFirmwareEsp/ArduinoFirmwareEsp.ino | ArduinoFirmwareEsp/ArduinoFirmwareEsp.ino | #include "CommLgc.h"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "Configuration.h"
#include <FS.h>
#include <ArduinoJson.h>
#include <Hash.h>
#include <ESP8266WebServer.h>
int ledState = LOW; // used to set the LED state
long previousMillis = 0; ... | #include "CommLgc.h"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "Configuration.h"
#include <FS.h>
#include <ArduinoJson.h>
#include <Hash.h>
#include <ESP8266WebServer.h>
int ledState = LOW; // used to set the LED state
long previousMillis = 0; ... | change wifi led behavior | upd: change wifi led behavior
| Arduino | mit | arduino-org/arduino-firmware-esp,arduino-org/arduino-firmware-esp,arduino-org/arduino-firmware-esp,arduino-org/arduino-firmware-esp |
2c41ff3c1afaab6be92b8ee3ba50a5d874a14c45 | 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;
// Delay
const int DELAY = 200;
void sendData(byte data) {
// 001010
for (int i = 0; i < b... | //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... | Replace sendData() with shiftOut() | Replace sendData() with shiftOut()
| Arduino | mit | MaxWofford/philbrick |
73c0635402c9615e11ea0e9f18f38bb3e083a751 | examples/More/Stroboscope/Stroboscope.ino | examples/More/Stroboscope/Stroboscope.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 example | Fix example
| Arduino | mit | ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
a8a2da69ec4734781f28b87aa8ccd768d9807241 | CloudComfort/CloudComfort.ino | CloudComfort/CloudComfort.ino | // -*- mode:c -*-
/*
* CloudComfort
*/
/*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following disc... | // -*- mode:c -*-
/*
* CloudComfort
*/
/*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following disc... | Add pins 4 and 5 for connection status and A/C power status LEDs. | Add pins 4 and 5 for connection status and A/C power status LEDs.
| Arduino | bsd-3-clause | ashishmody/CloudComfort-Arduino,ashishmody/CloudComfort-Arduino |
242280bd1bc0685ab9c049adc834a2a20cf52857 | K_Nearest_Template/K_Nearest_Template.ino | K_Nearest_Template/K_Nearest_Template.ino | #include <Arduino.h>
#include <math.h>
// FIXME: Add the libraries needed for each pin
#include "Object.h"
// Define Pins for each sensor
// Distance Sensor (Height)
int test = 0;
// Define anything else needed for sensors
// K Nearest Neighbors
// FIXME: Change when necessary
const int K = [number];
// FIXME: Ch... | #include <Arduino.h>
#include <math.h>
// FIXME: Add the libraries needed for each pin
#include "Object.h"
// FIXME: Can change pin number
#define IR_SENSOR_PIN_1 6
// Define Pins for each sensor
// Distance Sensor (Height)
int test = 0;
bool wait = false;
// Define anything else needed for sensors
... | Update K_Nearest_Template.ino | Update K_Nearest_Template.ino
Made some changes | Arduino | mit | baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition |
282278cd8cd98bceace3154d2ffd0e5caf870148 | examples/advertising/setBeanName.ino | examples/advertising/setBeanName.ino | void setup() {
// We don't need to set anything up here
}
void loop() {
// Get the temperature
int temperature = Bean.getTemperature();
// Build a new name for Bean using the temperature
String name = "Temp is ";
name += temperature;
name += " C";
// Set Bean's new name
Bean.setBeanName(name);
/... | void setup() {
// Disable writing to NVRAM to preserve its lifespan,
// since we are setting a new Bean name every 15 seconds
Bean.enableConfigSave(false);
}
void loop() {
// Get the temperature
int temperature = Bean.getTemperature();
// Build a new name for Bean using the temperature
String name = "Te... | disable config save for example adv sketch | docs: disable config save for example adv sketch
| Arduino | lgpl-2.1 | PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware |
55d1cd14b1e925629c8db9a2f1c8015755dfb26d | examples/Transports/Ethernet/Ethernet.ino | examples/Transports/Ethernet/Ethernet.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 Ethernet.ino | Update Ethernet.ino | Arduino | mit | ivankravets/blynk-library,al1271/blynk-library,radut/blynk-library,radut/blynk-library,johan--/blynk-library,al1271/blynk-library,okhiroyuki/blynk-library,ivankravets/blynk-library,csicar/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,csicar/blynk-library,sstocker46/blynk-librar... |
d4680c55c124eac0e570ba3c4cfeceae4e002a93 | battery-monitor.ino | battery-monitor.ino | #define VCC 3273
#define BATTERY_PIN A0
#define R1 21440 // Resistor R1 Ohms
#define R2 3242 // Resistor R2 Ohms
#define CONNECT_WAIT_MILLIS 5000
//#define SLEEP_SECS 15
#define SLEEP_SECS 300
//#define SLEEP_SECS 3600
// Set manual mode so that if no network is available at startup, photon can go back to sleep
SYSTEM... | #define VCC 3273
#define BATTERY_PIN A0
#define R1 221200 // Resistor R1 Ohms
#define R2 21440 // Resistor R2 Ohms
#define CONNECT_WAIT_MILLIS 5000
#define LOW_THRESHOLD 12000 // milliVolts
//#define SLEEP_SECS 15 // 15 seconds
//#define SLEEP_SECS 900 // 15 minutes
#define SLEEP_SECS 3600 // 1 hour
// Set manual mode... | Add battery low event and format value of volts | Add battery low event and format value of volts
| Arduino | mit | chrisb2/battery-monitor |
088e831538b18cb7fa70379812b34446467b831b | bicicletaInteligente.ino | bicicletaInteligente.ino | /* BICICLETA INTELIGENTE. Pablo Sánchez Carmona */
#include "sensor.h"
#include "pendiente.h"
#include "bluetooth.h"
// Definición de pines
#define PIN_ACELERADOR 4 // Señal PWM
// Ponderación (para el cálculo de la aceleración)
#define A1 0.5
#define A2 0.2
#define A3 0.1
#define TASA 0.5
// Definición de variables ... | /* BICICLETA INTELIGENTE. Pablo Sánchez Carmona */
#include "sensor.h"
#include "pendiente.h"
#include "bluetooth.h"
// Definición de pines
#define PIN_ACELERADOR 4 // Señal PWM
// Ponderación (para el cálculo de la aceleración)
#define A1 0.5
#define A2 0.2
#define A3 0.1
#define TASA 0.5
// Definición d... | Update bicicletaInteligente.ino | Update bicicletaInteligente.ino
Se ha cambiado el valor de la aceleración media de 55 a 120, para conseguir un mejor funcionamiento. | Arduino | mit | Pablo19Sanchez/bicicletaInteligente,Pablo19Sanchez/bicicletaInteligente |
003cc2ed9102d5be773635d205549f1a7e0650e2 | vor-arduino/examples/bathroom/bathroom.ino | vor-arduino/examples/bathroom/bathroom.ino | #include <Bridge.h>
#include <YunClient.h>
#include "vor_utils.h"
#include "vor_led.h"
#include "vor_motion.h"
#include "vor_methane.h"
#define INTERVAL 30000
#define PAYLOAD_FORMAT "{\"id\":\"toilet8am\",\"type\":\"toilet\",\"reserved\":%s,\"methane\":%d}"
#define MOTION1_PIN 2
#define MOTION2_PIN 3
#define METHA... | #include <Bridge.h>
#include <YunClient.h>
#include "vor_utils.h"
#include "vor_led.h"
#include "vor_motion.h"
#include "vor_methane.h"
#define INTERVAL 30000
#define PAYLOAD_FORMAT "{\"id\":\"toilet8am\",\"type\":\"toilet\",\"reserved\":%s,\"methane\":%s}"
#define MOTION1_PIN 2
#define MOTION2_PIN 3
#define METHA... | Refactor bathroom example. | Refactor bathroom example.
| Arduino | mit | futurice/vor,futurice/vor,futurice/vor,futurice/vor,futurice/vor,futurice/vor |
e81ce9a3c1bf8610597f811c17c84d9816d81d0e | ArduinoFirmwareEsp/ArduinoFirmwareEsp.ino | ArduinoFirmwareEsp/ArduinoFirmwareEsp.ino | #include "CommLgc.h"
//#include "utility/wifi_utils.h"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <FS.h>
#include <ArduinoJson.h>
#include <Hash.h>
#include <ESP8266WebServer.h>
#define HOSTNAME "Arduino-Primo"
ESP8266WebServer server(80); //server UI
... | #include "CommLgc.h"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <FS.h>
#include <ArduinoJson.h>
#include <Hash.h>
#include <ESP8266WebServer.h>
ESP8266WebServer server(80); //server UI
bool SERVER_STOP = false; //check stop server
void setup() {
... | remove hostname define | fix: remove hostname define
| Arduino | mit | arduino-org/arduino-firmware-esp,andrea-83/arduino-firmware-esp,andrea-83/arduino-firmware-esp,arduino-org/arduino-firmware-esp,arduino-org/arduino-firmware-esp,arduino-org/arduino-firmware-esp,andrea-83/arduino-firmware-esp,andrea-83/arduino-firmware-esp |
b28abacd135853a8b0b3425e26ddb2d1304ab330 | ArduinoMid.ino | ArduinoMid.ino | /*
---------------------------------------------------
Arduino MID
Author: Angel Zaprianov <me@fire1.eu>
Version: 0.1 [pre-alpha]
Start Date: 09.06.2016
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
---------------... | /*
---------------------------------------------------
Arduino MID
Author: Angel Zaprianov <me@fire1.eu>
Version: 0.1 [pre-alpha]
Start Date: 09.06.2016
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
---------------... | Improve source code | Improve source code
| Arduino | mit | fire1/ArduinoMid,fire1/ArduinoMid |
f5c8e5001e7cd48cafaeac7f960ce4c06757c0d8 | shipStation/stepper_demo/stepper_demo.ino | shipStation/stepper_demo/stepper_demo.ino | #include <AccelStepper.h>
#include <MultiStepper.h>
#include <math.h>
/* Written for ST6600 stepper driver
* PUL+ 5v
* PUL- Arduino pin 9/11
* DIR+ 5v
* DIR- Arduino pin 8/10
* DC+ 24v power supply
* DC- Gnd on power supply & Gnd on Arduino
*/
// Each step is 0.12 degrees, or 0.002094395 radians
... | #include <AccelStepper.h>
//#include <MultiStepper.h>
#include <math.h>
/* Written for ST6600 stepper driver
* PUL+ 5v
* PUL- Arduino pin 9/11
* DIR+ 5v
* DIR- Arduino pin 8/10
* DC+ 24v power supply
* DC- Gnd on power supply & Gnd on Arduino
*/
// Each step is 0.12 degrees, or 0.002094395 radian... | Tweak code after watching stepper motion | Tweak code after watching stepper motion
| Arduino | mit | LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017 |
ded0aa9415f89e9819f2f39a6c91e8d0aa55dba6 | examples/ra8875-demo/ra8875-demo.ino | examples/ra8875-demo/ra8875-demo.ino | #pragma GCC diagnostic warning "-Wall"
#include "RA8875.h"
const int intPin = 0;
const int csPin = 10;
const int resetPin = 9;
RA8875 tft = RA8875(csPin, intPin);
void setup()
{
Serial.begin(9600);
// while (!Serial)
// ;
delay(2000);
Serial.println("Hello!");
if (!tft.init(480, 272, 16))
{
Ser... | #pragma GCC diagnostic warning "-Wall"
#include "RA8875.h"
const int intPin = 0;
const int csPin = 10;
const int resetPin = 9;
RA8875 tft = RA8875(csPin, intPin);
void setup()
{
Serial.begin(9600);
// while (!Serial)
// ;
delay(2000);
Serial.println("Hello!");
if (!tft.init(480, 272, 16))
{
Ser... | Update gradient test. | Update gradient test.
| Arduino | mit | xlatb/ra8875,xlatb/NiftyRA8875 |
9f620bf612c5fdc62546ff24d118de2f42beef90 | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | _04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino | #include <IRremote.h>
#include <Wire.h>
/*
Standalone Sketch to use with a Arduino UNO and a
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ... | #include <IRremote.h>
#include <Wire.h>
/*
Standalone Sketch to use with a Arduino UNO and a
Sharp Optical Dust Sensor GP2Y1010AU0F
*/
// ------------------------------------------
int measurePin = A6; //Connect dust sensor to Arduino A6 pin
int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ... | change air flow | change air flow
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
df8ad01d71d7dc5be10e287281eea5408cde89af | examples/hello/hello.ino | examples/hello/hello.ino | #include <Adafruit_GFX.h> // https://github.com/adafruit/Adafruit-GFX-Library
#include <Fontx.h> // https://github.com/h-nari/Fontx
#include <Humblesoft_GFX.h> // https://github.com/h-nari/Humblesoft_GFX
#include <Humblesoft_LedMat.h> // https://github.com/h-nari/Humblesoft_LedMat
uint8_t imgBuf[1024*4];
v... | #include <Adafruit_GFX.h> // https://github.com/adafruit/Adafruit-GFX-Library
#include <Fontx.h> // https://github.com/h-nari/Fontx
#include <Humblesoft_GFX.h> // https://github.com/h-nari/Humblesoft_GFX
#include <Humblesoft_LedMat.h> // https://github.com/h-nari/Humblesoft_LedMat
uint8_t imgBuf[1024*4];
v... | delete unused code | delete unused code
| Arduino | mit | h-nari/Humblesoft_LedMat,h-nari/Humblesoft_LedMat |
1009310636701cc60a55ad62ac4296d7f2f3826c | 0_Test_Device/Python/tclab_v2/tclab_v2.ino | 0_Test_Device/Python/tclab_v2/tclab_v2.ino | /*
TCLab Temperature Control Lab Firmware
Jeffrey Kantor, Bill Tubbs, John Hedengren, Shawn Summey
June 2020
This firmware provides a high level interface to the Temperature Control Lab. The
firmware scans the serial port for commands. Commands are case-insensitive. Any
unrecognized command results ... | /*
TCLab Temperature Control Lab Firmware
Jeffrey Kantor, Bill Tubbs, John Hedengren, Shawn Summey
February 2021
This firmware provides a high level interface to the Temperature Control Lab. The
firmware scans the serial port for commands. Commands are case-insensitive. Any
unrecognized command results in ... | Update to 2.0.1 | Update to 2.0.1
| Arduino | apache-2.0 | APMonitor/arduino,APMonitor/arduino,APMonitor/arduino |
0e7efc457dd22da80ebc063dd33024092b248e3b | Reaper/examples/CommandLoop/CommandLoop.ino | Reaper/examples/CommandLoop/CommandLoop.ino | #include <SPI.h>
#include <SdFat.h>
#include <Reaper.h>
#include <ReaperCommandProcessor.h>
const int chipSelect = SS;
Reaper reaper = Reaper(SerialUSB, chipSelect);
ReaperCommandProcessor proc(SerialUSB, reaper);
void setup()
{
pinMode(12, OUTPUT);
digitalWrite(12, LOW);
SerialUSB.begin(9600, SERIAL_8N1);
... | #include <SPI.h>
#include <SdFat.h>
#include <Reaper.h>
#include <ReaperCommandProcessor.h>
const int chipSelect = 10;
Reaper reaper = Reaper(SerialUSB, chipSelect);
ReaperCommandProcessor proc(SerialUSB, reaper);
void setup()
{
pinMode(12, OUTPUT);
digitalWrite(12, LOW);
SerialUSB.begin(9600, SERIAL_8N1);
... | use CS=10 for SD card | use CS=10 for SD card
| Arduino | mit | humulabs/reaper,humulabs/reaper,humulabs/reaper,humulabs/reaper |
909e5219cef3de9c6382cb0d7968380901180133 | _64-esp8266-atmega328p-i2c8x8-mma-8452-dash-button/a-02-atmega328p/a-02-atmega328p.ino | _64-esp8266-atmega328p-i2c8x8-mma-8452-dash-button/a-02-atmega328p/a-02-atmega328p.ino | // Clock internal 8MHz / Board : Atmega328 on breadboard
#include <LowPower.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include <avr/power.h>
#include <Wire.h>
#define adc_disable() (ADCSRA &= ~(1<<ADEN)) // disable ADC
#define adc_enable() (ADCSRA |= (1<<ADEN... | // Clock internal 8MHz / Board : Atmega328 on breadboard
#include <LowPower.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <avr/pgmspace.h>
#include <avr/power.h>
#include <Wire.h>
#define adc_disable() (ADCSRA &= ~(1<<ADEN)) // disable ADC
#define adc_enable() (ADCSRA |= (1<<ADEN... | reset esp on bbutton_downp_isr | reset esp on bbutton_downp_isr
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
72467785f8ee9d2ed34d0929b6990a5d552bc301 | z_interrupt_events.ino | z_interrupt_events.ino | // encoder event for the interrupt call
void rightEncoderEvent() {
if (digitalRead(RH_ENCODER_A) == HIGH) {
if (digitalRead(RH_ENCODER_B) == LOW) {
rightCount++;
} else {
rightCount--;
}
} else {
if (digitalRead(RH_ENCODER_B) == LOW) {
rightCount--;
} else {
rightCount++... | // encoder event for the interrupt call
void rightEncoderEvent() {
if (digitalRead(RH_ENCODER_A) == HIGH) {
if (digitalRead(RH_ENCODER_B) == LOW) {
rightCount++;
} else {
rightCount--;
}
} else {
if (digitalRead(RH_ENCODER_B) == LOW) {
rightCount--;
} else {
... | Update z_interrupt_events.ino | Update z_interrupt_events.ino
Change to use serial input | Arduino | mit | ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic |
8797a86d312c79927357d26bbd34e8a8f9a17099 | Arduino/GT-86/GT-86.ino | Arduino/GT-86/GT-86.ino | #include "Wire.h"
//#include "I2Cdev.h"
#include "MPU6050.h"
#include "HMC5883L.h"
#include <MS5611.h>
MS5611 ms5611;
MPU6050 accelgyro;
HMC5883L mag;
int16_t ax, ay, az;
int16_t gx, gy, gz;
int16_t mx, my, mz;
#define LED_PIN 13
bool blinkState = false;
void setup() {
Wire.begin();
accelgyro.setI2CMast... | #include "Wire.h"
//#include "I2Cdev.h"
#include "MPU6050.h"
#include "HMC5883L.h"
#include <MS5611.h>
MS5611 ms5611;
uint32_t time;
MPU6050 accelgyro;
HMC5883L mag;
typedef struct {
uint16_t header;
int16_t ax, ay, az;
int16_t gx, gy, gz;
int16_t mx, my, mz;
float absoluteAltitude;
uint32_t t_stemp;
... | update fixes still error in checksum | update fixes still error in checksum
| Arduino | mit | orig74/localization_tests,orig74/localization_tests |
db88a0359fa688e160ce6e691a037511c603eae3 | AndroidTVGateway/edge-agent/edge-agent.ino | AndroidTVGateway/edge-agent/edge-agent.ino | #include <SoftwareSerial.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#define DHTPIN 6
#define DHTTYPE DHT11
#define LED 13
DHT dht(DHTPIN, DHTTYPE);
SoftwareSerial XBee(2, 3); // RX, TX
void setup() {
XBee.begin(9600);
Serial.begin(9600);
dht.begin();
... | #include <SoftwareSerial.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#define DHTPIN 6
#define DHTTYPE DHT11
#define LED 13
DHT dht(DHTPIN, DHTTYPE);
SoftwareSerial XBee(2, 3); // RX, TX
void setup() {
XBee.begin(9600);
Serial.begin(9600);
dht.begin();
... | Update edge agent | Update edge agent
| Arduino | apache-2.0 | charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples |
af323a12abe02f6ad7095cca18536fc6d1791219 | examples/ReadAndWrite/ReadAndWrite.ino | examples/ReadAndWrite/ReadAndWrite.ino | /**
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public ... | /**
* ----------------------------------------------------------------------------
* This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid
* for further details and other examples.
*
* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.
*
* Released into the public ... | Update ReadAndWrite.ino | Update ReadAndWrite.ino
Updated code to account for serial behavior change in ATMEGA32U4 | Arduino | unlicense | Rotzbua/rfid,mangine/mraa_MFRC522,northDacoder/rfid,CapeSepias/rfid,irhastofa/rfid,webdevbrian/rfid,lpr0lpd/rfid,r44947/rfid,hramrach/rfid,prikevs/rfid,miguelbalboa/rfid,mirko314/rfid,Rotzbua/rfid,yaalsn/rfid,smallkid/rfid,tamchau2809/rfid,1upon0/rfid,LaloHao/rfid,juantejedavz/rfid,sophiekovalevsky/rfid |
085b6190cfe1377d53dbb5f6509bff385b20c0c1 | sensRH/src/sketch.ino | sensRH/src/sketch.ino | // Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include "DHT.h"
#define DHTPIN 4 // what pin we're connected to
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302) purchased JAN2015
/... | // Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include <DHT.h>
#define DHTPIN 4 // what pin we're connected to
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302) purchased JAN2015
/... | change include directive | change include directive
| Arduino | mit | Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino |
166e976e85cedb5ef68bccf0d1649f0474be4586 | arduino/cash-register.ino | arduino/cash-register.ino | const int obstaclePin = 7;
const int buzzerPin = 6;
const int soundDuration = 40;
const int randomError = 20;
int lastObstacleValue;
/**
* Setup the board
*/
void setup() {
// initialize serial communication:
//Serial.begin(9600);
pinMode(buzzerPin, OUTPUT);
pinMode(obstaclePin, INPUT);
lastObs... | const int obstaclePin = 2;
const int buzzerPin = 3;
const int soundDuration = 40;
const int randomError = 20;
int lastObstacleValue;
/**
* Setup the board
*/
void setup() {
// initialize serial communication:
//Serial.begin(9600);
pinMode(buzzerPin, OUTPUT);
pinMode(obstaclePin, INPUT);
lastObs... | Update cash-register.ino | Update cash-register.ino | Arduino | mit | neolao/cash-register |
b3919d17babf6ccb830e295a8aec5ab1307fbeda | arduino/rcController/rcController.ino | arduino/rcController/rcController.ino | #include <SoftwareSerial.h>
#include <Servo.h>
#define bluetoothTx 2
#define bluetoothRx 3
#define engineForwardPin 4
#define engineBackwardPin 5
#define enginePowerPin 6
#define servoPin 9
Servo servo;
SoftwareSerial bluetooth(bluetoothRx, bluetoothTx);
const int SIDE_RIGHT = 1;
const int SIDE_LEFT = 2;
int side =... | #include <SoftwareSerial.h>
#include <Servo.h>
#define bluetoothTx 2
#define bluetoothRx 3
#define engineForwardPin 4
#define engineBackwardPin 5
#define enginePowerPin 6
#define servoPin 9
Servo servo;
SoftwareSerial bluetooth(bluetoothRx, bluetoothTx);
const int SIDE_RIGHT = 1;
const int SIDE_LEFT = 2;
int side =... | fix fix fix | fix fix fix
| Arduino | mit | WojciechKo/RController |
12d86af03a5763c1b59514de45aa3d81a0e8590a | src/blinky.ino | src/blinky.ino | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
#define HSV_BRIGHT... | /*
* Project particle-neopixel-ring-blinky
* Description:
* Author:
* Date:
*/
#include "neopixel/neopixel.h"
#include "hsv.h"
#define PIXEL_COUNT 24
#define PIXEL_PIN D6
#define PIXEL_TYPE WS2812B
#define HUE_STEP 10 // 1..255, each loop increments hue by this value
#define LOOP_DELAY 100 //ms
#define HSV_BRIGHT... | disable wifi | disable wifi
| Arduino | apache-2.0 | byxorna/particle-neopixel-ring-blinky |
4726762854299f5da47e533df755c9edb929726a | rr/dragino_sht11_mqtt.ino | rr/dragino_sht11_mqtt.ino | #include <Process.h>
#include "MQTTclient.h"
#include "DHT.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SHT1x.h>
#define dataPin 2
#define clockPin 3
SHT1x sht1x(dataPin, clockPin);
#define ONE_WIRE_BUS_PIN A3
float tempC2 = 0;
float tempC3 = 0;
unsigned long time;
OneWire oneWire(ONE_WIRE_BU... | #include <Process.h>
#include "MQTTclient.h"
#include "DHT.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SHT1x.h>
#define dataPin 2
#define clockPin 3
SHT1x sht1x(dataPin, clockPin);
#define ONE_WIRE_BUS_PIN A3
float tempC2 = 0;
float tempC3 = 0;
unsigned long time;
OneWire oneWire(ONE_WIRE_BU... | Update dragino_sht11_mqtt.ino | Update dragino_sht11_mqtt.ino | Arduino | mit | pumanzor/modbus,pumanzor/modbus,pumanzor/modbus |
12ec08b2bf364a70c748dca443bce986445a0d43 | example/loop_example.ino | example/loop_example.ino | #include <Loop/Loop.h>
Loop *loop = Loop::instance();
void setup()
{
//Time Sync Every day
loop.addTimeout(1000 * 60 * 60 * 24, [](){
Spark.syncTime();
});
}
void loop()
{
loop.process();
} | #include <Loop/Loop.h>
Loop *loop = Loop::instance();
void setup()
{
//Time Sync Every day
loop->addTimeout(1000 * 60 * 60 * 24, [](){
Spark.syncTime();
});
}
void loop()
{
loop->process();
} | fix error in example | fix error in example
| Arduino | mit | tripzero/Loop |
cb499e30bc54c41a883160c2ca3a4da36c6d21a5 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Link/a_open_manipulator_link/a_open_manipulator_link.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Link/a_open_manipulator_link/a_open_manipulator_link.ino | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | fix a_omlink.ino | fix a_omlink.ino
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
3bdf6ee88f733f6f13d8306d9ee4879902376d7c | firmware/examples/readTag/readtag.ino | firmware/examples/readTag/readtag.ino | #include "pn532_i2c_particle/pn532_i2c_particle.h"
#include "pn532_i2c_particle/PN532.h"
#include "pn532_i2c_particle/NfcAdapter.h"
PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
void setup(void) {
Serial.begin(9600);
Serial.println("NDEF Reader");
nfc.begin();
}
void loop(void) {
... | #include "pn532_i2c_particle/pn532_i2c_particle.h"
#include "pn532_i2c_particle/PN532.h"
#include "pn532_i2c_particle/NfcAdapter.h"
PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
void setup(void) {
Serial.begin(9600);
Serial.println("NDEF Reader");
nfc.begin();
}
void loop(void) {
... | Update readTag to fetch just the payload from the messages on the tag | Update readTag to fetch just the payload from the messages on the tag
| Arduino | mit | reducedhackers/pn532nfcshield,reducedhackers/pn532_i2c_particle,reducedhackers/pn532nfcshield,reducedhackers/pn532_i2c_particle |
a240d650e14f86b0f5aa5628a7d5227d77c81cd3 | projects/arduino/led_matrix_256/led_matrix_256.ino | projects/arduino/led_matrix_256/led_matrix_256.ino | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#include "IRremote.h" //Remote control library
#endif
#define NUM_OF_PIXELS 256
#define MATRIX_DATA_PIN 4
#define RECEIVER_PIN 12
IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv'
decode_results results; // create instance ... | #include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#include "IRremote.h" //Remote control library
#endif
#define NUM_OF_PIXELS 256
#define MATRIX_DATA_PIN 4
#define RECEIVER_PIN 12
IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv'
decode_results results; // create instance ... | Update uint8 to uint16 so that we don't overflow on the for loop. Access the PROGMEM using the memcpy rather than direct access | Update uint8 to uint16 so that we don't overflow on the for loop. Access the PROGMEM using the memcpy rather than direct access
| Arduino | mit | borq79/cs.edu,borq79/cs.edu |
2d5c428ebb18dc281b3c42534c61adcdc1c54896 | otto/otto.ino | otto/otto.ino | #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_MIDDLE 1500
#define LEFT_ANKLE_MIDDLE 1500
#define RIGHT_HIP_MIDDLE 1300
#define LEFT_HIP_MIDDLE 1500
#define MOVE 350
#define FACTOR 2
#... | #include <Servo.h>
#define DELAY 3
struct Joint
{
const unsigned int pin;
const unsigned int posMin;
const unsigned int posMiddle;
const unsigned int posMax;
const unsigned int distMinToMiddle;
const unsigned int distMaxToMiddle;
Servo servo;
unsigned int currentPos;
... | Rewrite to make it possible to calibrate each joint position | Rewrite to make it possible to calibrate each joint position
| Arduino | bsd-3-clause | mprochnow/arduino_sketchbook |
e166b647cf15d73fccd59a5d187606aa4502850e | pong/pong.ino | pong/pong.ino | #include "game.hpp"
#include <Arduboy2.h>
#include <ArduboyTones.h>
Arduboy2 arduboy;
ArduboyTones sound{ arduboy.audio.enabled };
void
setup()
{
arduboy.begin();
arduboy.setFrameRate(30);
arduboy.setTextSize(2);
arduboy.clear();
}
void
loop()
{
if (!arduboy.nextFrame())
{
return;
}
arduboy.pollButtons();
... | #include "game.hpp"
#include <Arduboy2.h>
#include <ArduboyTones.h>
Arduboy2 arduboy;
ArduboyTones sound{ arduboy.audio.enabled };
void
setup()
{
Serial.begin(9600);
arduboy.begin();
arduboy.setFrameRate(30);
arduboy.setTextSize(2);
arduboy.clear();
}
void
loop()
{
if (!arduboy.nextFrame())
{
return;
}
ar... | Add screen mirror support | Add screen mirror support
A couple months ago, someone made an app that lets you mirror the Arduboy screen, provided you add a bit of code to it, which this commit adds.
| Arduino | mit | CrazyGuy108/Pong |
cb01ec865d273b16240f4a3f4539985b75d09142 | dee-oh-tee.ino | dee-oh-tee.ino | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int CLOCKWISE = 0;
const int COUNTERCLOC... | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int CLOCKWISE = 0;
const int COUNTERCLOC... | Add drawRectangle | Add drawRectangle
| Arduino | apache-2.0 | acj/dee-oh-tee |
dbfd6e73b103ed108261e2b12cf53bf07e6763f9 | examples/Basics/PowerOFF/PowerOFF.ino | examples/Basics/PowerOFF/PowerOFF.ino | #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// initialize the M5Stack object
M5.begin();
// Lcd display
M5.Lcd.println("This is software power off demo");
M5.Lcd.println("Press the button A to power off.");
// Set the wakeup button
M5.setWakeupButton(BUTT... | #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// initialize the M5Stack object
M5.begin();
// Lcd display
M5.Lcd.println("This is software power off demo");
M5.Lcd.println("Press the button A to power off.");
// Set the wakeup button
M5.setWakeupButton(BUTT... | add the software power off example | add the software power off example
| Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
b453e7752887f05eb7f9fee3128e267f8e59ef33 | plane/TRANSMITTER/sketch_aug08a/sketch_aug08a.ino | plane/TRANSMITTER/sketch_aug08a/sketch_aug08a.ino | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Transmitter Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
int value = 0; // set values you need to zero
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24... | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Transmitter Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
struct dataStruct{
int angleValue;
int angleValue1;
int angleValue2;
}myData;
int value =... | Update sketch_aug08a.ino | Update sketch_aug08a.ino | Arduino | apache-2.0 | mohamedalichelbi/Arduino-Plane |
2f1b90ec759761c91af7664f48668852cbafd26a | 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 BAUD 115200
#define BRIGHTNESS 32
CRGB leds[NUM_LEDS];
int r, g, b;
int x, y, yy;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRI... |
#include <FastLED.h>
#define WIDTH 16
#define HEIGHT 16
#define NUM_LEDS (WIDTH * HEIGHT)
#define PIN 6
#define BAUD 115200
#define BRIGHTNESS 8
CRGB leds[NUM_LEDS];
int r, g, b;
int x, y, yy;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIG... | Reduce led brightness to save my eyes. | Reduce led brightness to save my eyes.
| Arduino | mit | Spooner/pixel-table,Spooner/pixel-table,Spooner/pixel-table |
d65cc2d98c37cab0e74aaddf948eaabb042ee773 | arduino/tempLogger/tempLogger.ino | arduino/tempLogger/tempLogger.ino | /*
This code logs the temperature from a DS18B20 temperature sensor
and prints the temperature along with a time stamp and unique A2 using a
DS3231 Clock and a SparkFun microSD Transflash Breakout
It also reads and logs the voltage
This uses code from http://bildr.org/2011/07/ds18b20-arduino/
and https://... | /*
This code logs the temperature from a DS18B20 temperature sensor
and prints the temperature along with a time stamp using a
DS3231 Clock and a SparkFun microSD Transflash Breakout
This uses code from http://bildr.org/2011/07/ds18b20-arduino/
and https://learn.sparkfun.com/tutorials/microsd-shield-and-s... | Add files via upload | Add files via upload
Semester Final Version | Arduino | mit | MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp,MTUHIDE/CoCoTemp |
c3185ae115828cc05b432c10255dfa43d123c1e0 | bullpen_sketch/bullpen_sketch.ino | bullpen_sketch/bullpen_sketch.ino | #include <WiFi.h>
#include <WiFiServer.h>
#include <rgb_lcd.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include "controller.hpp"
#include "view.hpp"
#include "state.hpp"
#include "person.hpp"
State *s;
View *v;
Controller *c;
const String ssid = "AxiomMarketsLLC";
const String pwd = "@xiomr001z";
... | #include <WiFi.h>
#include <rgb_lcd.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include "controller.hpp"
#include "view.hpp"
#include "state.hpp"
#include "person.hpp"
State *s;
View *v;
Controller *c;
const char ssid[48] = "AxiomMarketsLLC";
const char pwd[48] = "@xiomr001z";
const int port = 800... | Add wifi init to sketch | Add wifi init to sketch
| Arduino | mit | estriz27/bullpen |
2b9bcf74d51983c9679233b8b8d3b5c83da1a869 | examples/Boards_GSM/SIM800_SIM900/SIM800_SIM900.ino | examples/Boards_GSM/SIM800_SIM900/SIM800_SIM900.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 build | Fix build
| Arduino | mit | 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,blynkkk/blynk-library |
b3c1f1c36e3c09fbd01d45e9ba5b10be1b7042b4 | examples/IRControl/IRControl.ino | examples/IRControl/IRControl.ino | #include "MqttConnection.h"
#include <IRremoteESP8266.h>
//#include <ESP8266mDNS.h>
MqttConnection * myMqtt;
#define SENSOR_ID "IR"
/************************* WiFi Access Point *********************************/
#define WLAN_SSID "SFR_34A8"
#define WLAN_PASS "ab4ingrograstanstorc"
#define MQTT_SERVER... |
#include <IRremoteESP8266.h>
#include "MqttConnection.h"
MqttConnection * myMqtt;
#define SENSOR_ID "IR"
/************************* WiFi Access Point *********************************/
#define WLAN_SSID "SFR_34A8"
#define WLAN_PASS "ab4ingrograstanstorc"
#define MQTT_SERVER "192.168.1.27"
#define ... | add sony TV test and IR control test(failing for the moment) | add sony TV test and IR control test(failing for the moment)
| Arduino | bsd-3-clause | scentelles/iot,scentelles/iot,scentelles/iot |
c77a123ae871902618798bef98c8ed15f8a663f9 | arduino/src/sketch.ino | arduino/src/sketch.ino | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN A2
#define DHTPIN 8
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
float hum = 0;
float tmp = 0;
float hid = 0;
int mq7 = 0;
int mq2 = 0;
char fmt [64];
int readMQ7() {
int value;
value = analogRead(MQ7PIN);
if (isnan(value)) {
... | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN A1
#define MQ135PIN A2
#define DHTPIN 8
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
float hum = 0;
float tmp = 0;
float hid = 0;
int mq7 = 0;
int mq2 = 0;
int mq135 = 0;
char fmt [64];
int readMQ7() {
int value;
value = analogRead... | add last gas sensor | add last gas sensor
| Arduino | mit | pedroscaff/sensor_platform,pedroscaff/sensor_platform |
42d111bcb1787c5657012838c2e70376064eb47a | 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 "constants.h"
#include "tune.h"
#define MIN_BATTERY_MILLIVOLT 3300 //You may need to calibrate this
#define MAX_BATTERY_MILLIVOLT 4300 //You may need to calibrate this
#defin... | #include <Wire.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <RTClib.h>
#include <RTC_DS1307.h>
#include "constants.h"
#include "tune.h"
#define MIN_BATTERY_MILLIVOLT 3300 //You may need to calibrate this
#define MAX_BATTERY_MILLIVOLT 4300 //You may need to calibrate this
#defin... | increment and decrement feature | increment and decrement feature
| Arduino | mit | yeokm1/vibrate_alarm_clock,yeokm1/vibrate_alarm_clock |
1d2f4e72c6448a14f1766439573b6e48a29d3265 | src/CuringChamberControl.ino | src/CuringChamberControl.ino | #include <dht.h> // For reading from the DHT22 Temperature/Humidity sensor
#define UINT32_MAX uint32_t(-1)
// This is the program:
#define TEMP_TARGET 15.0 // degrees C
#define TEMP_TOLERANCE 1.5 // degrees C
#define HUMIDITY_TARGET 65.0 // RH%
#define HUMIDITY_TOLERANCE 5.0 // RH%
#define MAX_SWITCH_RATE... | #include <dht.h> // For reading from the DHT22 Temperature/Humidity sensor
#define UINT32_MAX uint32_t(-1)
// This is the program:
float TEMP_TARGET = 15.0; // degrees C
float TEMP_TOLERANCE = 1.5; // degrees C
float HUMIDITY_TARGET = 65.0; // RH%
float HUMIDITY_TOLERANCE = 5.0; // RH%
uint32_t MAX_SWITCH... | Add missing prototype so we can compile without having them auto-inserted (addresses bug in ino). | Add missing prototype so we can compile without having them auto-inserted (addresses bug in ino).
| Arduino | mit | chennes/CuringChamberControl |
843e5998171ef3261bbfdc15ffa659b25cab29e2 | sketch_smartlock/sketch_smartlock.ino | sketch_smartlock/sketch_smartlock.ino | #include <ArduinoJson.h>
#include <LGPRS.h>
#include <LGPRSClient.h>
#include <LGPS.h>
#include <MQTTClient.h>
#define JSON_BUF_SIZE 192
#define PIN_MOTOR 0
#define PIN_LOCK_STATUS 5
#define PIN_LOCK_STEP 6
#define PIN_BUZZER 7
typedef enum {
STATUS_INVALID,
STATUS_INIT_GPRS,
STATUS_INIT_YUNBA,
STATUS_IDLE,
... | #include <ArduinoJson.h>
#include <LGPRS.h>
#include <LGPRSClient.h>
#include <LGPS.h>
#include <MQTTClient.h>
#define JSON_BUF_SIZE 192
#define PIN_MOTOR 0
#define PIN_LOCK_STATUS 5
#define PIN_LOCK_STEP 6
#define PIN_BUZZER 7
typedef enum {
STATUS_INVALID,
STATUS_INIT_GPRS,
STATUS_INIT_YUNBA,
STATUS_IDLE,
... | add commands: report, buzzer | add commands: report, buzzer
| Arduino | mit | yunbademo/yunba-smartlock,yunbademo/yunba-smartlock |
7cfe9134674d67d363c59d9940fd838a73f60aa2 | mutually-assured-destruction.ino | mutually-assured-destruction.ino | // Arduino Libraries
#include <Arduino.h>
#include <IRLib.h>
#include <Wire.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>
// MAD Libraries
#include "Accelerometer.h"
#include "Relay.h"
#include "Lights.h"
#include "RemoteControl.h"
#include "Button.h"
//////////////////////////////////////////////////... | // Arduino Libraries
#include <Arduino.h>
#include <IRLib.h>
#include <Wire.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>
// MAD Libraries
#include "Accelerometer.h"
#include "Relay.h"
#include "Lights.h"
#include "RemoteControl.h"
#include "Button.h"
//////////////////////////////////////////////////... | add delay in main loop and add minor code to toggle lights | add delay in main loop and add minor code to toggle lights
| Arduino | mit | objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction |
3ca4d2d4677aed0af20f9e5beb32418100c759a3 | meteo_lcd/meteo_lcd.ino | meteo_lcd/meteo_lcd.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
... | Add time_setup() - not tested | Add time_setup() - not tested
| Arduino | apache-2.0 | jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo |
1867781292a22a828f1a577b833b220120562bc4 | arduino/src/sensor_system/sensor_system.ino | arduino/src/sensor_system/sensor_system.ino | /*
*
* This Arduino sketch detects the activation of pressure pads by the presence
* of an item and sends the result using serial communication to the
* Processing application.
* If the Processing application responds with an affirmative delay signal,
* then the result is replaced with the signal for no activatio... | /*
*
* This Arduino sketch detects the activation of pressure pads by the presence
* of an item and sends the result using serial communication to the
* Processing application.
* If the Processing application responds with an affirmative delay signal,
* then the result is replaced with the signal for no activatio... | Clarify deceptively non-redundant error check | Clarify deceptively non-redundant error check
| Arduino | mit | jleung51/BIRD |
9b1870fca42e2acbbe566410ac8f88607e2c7084 | examples/space_kit_tester/space_kit_tester.ino | examples/space_kit_tester/space_kit_tester.ino | /*
* =====================================================================================
*
* Filename: space_kit_tester.ino
*
* Description: Simple driver for all the sensors included in the Ardusat
* Space Kit. Outputs all sensor values at a configurable
* interva... | /*
* =====================================================================================
*
* Filename: space_kit_tester.ino
*
* Description: Simple driver for all the sensors included in the Ardusat
* Space Kit. Outputs all sensor values at a configurable
* interva... | Update space_kit_tester.ino | Update space_kit_tester.ino
change serial pins | Arduino | apache-2.0 | ArduSat/ArdusatSDK,ArduSat/ArdusatSDK,ArduSat/ArdusatSDK |
2a98886bcf9baa95162d1303aafa631dda4625ec | libraries/DS1307/examples/CosaDS1307/CosaDS1307.ino | libraries/DS1307/examples/CosaDS1307/CosaDS1307.ino | /**
* @file CosaDS1307.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | /**
* @file CosaDS1307.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | Clean up. | Clean up.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa |
0b72972f904620b4bb50fa6c62bc864036535e2a | arduino/send_CAN/send_CAN.ino | arduino/send_CAN/send_CAN.ino | // demo: CAN-BUS Shield, send data
// loovee@seeed.cc
#include <mcp_can.h>
#include <SPI.h>
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(SPI_CS_PIN); // Set CS pin
void setup()
{
Serial.begin(11... | // demo: CAN-BUS Shield, send data
// loovee@seeed.cc
#include <mcp_can.h>
#include <SPI.h>
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(SPI_CS_PIN); // Set CS pin
void setup()
{
Serial.begin(11... | send CAN message for scale car motor driver. | Modify: send CAN message for scale car motor driver.
| Arduino | apache-2.0 | hdh7485/AVEES_scale_car,hdh7485/AVEES_scale_car,hdh7485/AVEES_scale_car |
7e2b6b7529b1a923d6dd49b496a5dfba6ccf255e | examples/DumpInfo/DumpInfo.ino | examples/DumpInfo/DumpInfo.ino | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | Update DumpInfo.ino | Update DumpInfo.ino
Corrected pinout in comment. Should match Mega SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). | Arduino | unlicense | mangine/mraa_MFRC522,r44947/rfid,hramrach/rfid,webdevbrian/rfid,CapeSepias/rfid,sophiekovalevsky/rfid,LaloHao/rfid,juantejedavz/rfid,lpr0lpd/rfid,tamchau2809/rfid,1upon0/rfid,prikevs/rfid,smallkid/rfid,irhastofa/rfid,northDacoder/rfid,yaalsn/rfid,Rotzbua/rfid,miguelbalboa/rfid,mirko314/rfid,Rotzbua/rfid |
7620e9defc021d2aada318b6084297182a4ee01c | arduino/giantsketchy/timer_isr.ino | arduino/giantsketchy/timer_isr.ino |
#include "robot.h"
// #define DEBUG
// Maximum step rate
#define INTERRUPT_FREQUENCY 4000
// For RAMPS 1.4, mapped to ATMeta2560
// See ./hardware/arduino/variants/mega/pins_arduino.h
/*****************************************************
#define X_STEP_PIN 54 // A0 = PF0
#define X_DIR_PIN 55 // A... |
#include "robot.h"
// #define DEBUG
// Maximum step rate
#define INTERRUPT_FREQUENCY 4000
// For RAMPS 1.4, mapped to ATMeta2560
// See ./hardware/arduino/variants/mega/pins_arduino.h
/*****************************************************
#define X_STEP_PIN 54 // A0 = PF0
#define X_DIR_PIN 55 // A... | Correct prescalar for timer2. | Correct prescalar for timer2.
| Arduino | bsd-2-clause | strangedevice/giantsketchy |
d4c50913b3930a517308443e9828a7f5166582a7 | galileo_matlab_serial_term.ino | galileo_matlab_serial_term.ino | #include "settings.h"
#include "protocol.h"
#include "peripheral.h"
#include "robot.h"
using namespace protocol;
using namespace peripheral;
using namespace robot;
byte angle;
Robot *r;
Protocol *p;
String st;
void setup() {
Peripheral *hw = new Peripheral();
p = new Protocol();
r = new Robot(p, hw);
}
void l... | #include "settings.h"
#include "protocol.h"
#include "peripheral.h"
#include "robot.h"
using namespace protocol;
using namespace peripheral;
using namespace robot;
byte angle;
Robot *r;
Protocol *p;
void setup() {
Peripheral *hw = new Peripheral();
p = new Protocol();
r = new Robot(p, hw);
}
void loop() {
/... | Remove test lines | Remove test lines
| Arduino | mit | webknjaz/mc-robot-controller |
74bf37bec9fdba2c1e0da5a544c8c252e774add6 | examples/Modules/SIM800L/HTTP/HTTP.ino | examples/Modules/SIM800L/HTTP/HTTP.ino | #include "M5Stack.h"
#include "TFTTerminal.h"
TFT_eSprite TerminalBuff = TFT_eSprite(&M5.Lcd);
TFTTerminal terminal(&TerminalBuff);
String waitRevice()
{
String recvStr;
do
{
recvStr = Serial2.readStringUntil('\n');
} while (recvStr.length() == 0);
Serial.println(recvStr);
terminal.prin... | #include "M5Stack.h"
#include "TFTTerminal.h"
TFT_eSprite TerminalBuff = TFT_eSprite(&M5.Lcd);
TFTTerminal terminal(&TerminalBuff);
String waitRevice()
{
String recvStr;
do
{
recvStr = Serial2.readStringUntil('\n');
} while (recvStr.length() == 0);
Serial.println(recvStr);
terminal.prin... | update SIM800 example | update SIM800 example
| Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
767240e47387060d22aa1db1fae8caf31ce84b83 | ArduinoPondArea/ArduinoPondArea.ino | ArduinoPondArea/ArduinoPondArea.ino | // ############################################
// CONFIG SECTION
bool veryVerboseDebug = true;
int pinA = 3; // Connected to CLK on KY-040
int pinB = 4; // Connected to DT on KY-040
int rotaryTicks = 0;
int lastRotaryTicks = 0;
const String usbFileName = "PONDS.PD";
// every n writes we manually close the file a... | // ############################################
// CONFIG SECTION
bool veryVerboseDebug = true;
int pinA = 3; // Connected to CLK on KY-040
int pinB = 4; // Connected to DT on KY-040
int rotaryTicks = 0;
int lastRotaryTicks = 0;
const String usbFileName = "PONDS.PD";
// every n writes we manually close the file a... | Fix timing issues with USB controller. | Fix timing issues with USB controller.
| Arduino | mit | lynchcb/ssupond |
2b6c1e7068cf4d51fa9918b1e2a291166b4fc77c | Examples/Relay/Relay.ino | Examples/Relay/Relay.ino | /*
* This example may switch a Light ON after Sunset and turn it OFF before Sunrise
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <ESPMetRED.h>
#include <math.h>
#include <DHT.h>
const char* MQT... | /*
* This example may switch a Light ON after Sunset and turn it OFF before Sunrise
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <FS.h>
#include <ESPMetRED.h>
#include <math.h>
#include <DHT.h>
c... | Update Relay.ino | Update Relay.ino | Arduino | mit | HobbytronicsPK/ESPMetRED |
b3a2b55a9c2a272a36bcef9130ac983ec2f807cc | SimpleJSON.ino | SimpleJSON.ino |
// What page to grab!
#define WEBSITE "mikazuki.local"
#define WEBPAGE "/import/simpleJSON"
#define IDLE_TIMEOUT_MS 3000 // Amount of time to wait (in milliseconds) with no data
// received before closing the connection. If you know the server
... |
// What page to grab!
#define WEBSITE "mikazuki.local"
#define WEBPAGE "/import/simpleJSON"
#define IDLE_TIMEOUT_MS 3000 // Amount of time to wait (in milliseconds) with no data
// received before closing the connection. If you know the server
... | Order of operations is important. | Order of operations is important.
| Arduino | mit | pndlm/keg_scribe |
189953db76bf9abe22a0819b1d8777ab0e81bf4d | arduino/temperature/src/jarvis-dht.ino | arduino/temperature/src/jarvis-dht.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 re... | /*
* 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 re... | Add wifi status informations | Add wifi status informations
Signed-off-by: Nicolas Lamirault <57a11b2dec5b8363280015e1663433805cc2169e@gmail.com>
| Arduino | apache-2.0 | zeiot/jarvis,zeiot/jarvis,zeiot/jarvis,zeiot/jarvis |
aa6b2c5368712497d0c588b20a0c8362fc3cdf5b | moros/moros.ino | moros/moros.ino | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
cl... | /*
* TODO:
* case
* flag - P0 BLOCKER S0
* -- have graphical representation of flag
* wiring diagram - P2 S3
* reset button (chronos style?) - P1
* time setting - P1
* OLEDs
*
*/
#include <SPI.h>
#include <TFT.h>
#include "printf.h"
#define NONE -1
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 5000
cl... | Make button interrupt handling a bit less crappy | Make button interrupt handling a bit less crappy
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
8f81de3fc17e377b4b0280abfc58f5e93617d44d | examples/charlieplexing_low_power_flasher.ino | examples/charlieplexing_low_power_flasher.ino | /**
Name: charlieplexing_low_power_flasher
Purpose: Burning Man 2017 Flasher Gift Project
@author Mike Tarrant
@version 1.1 Add comments and some code cleanup
1.0 Initial release
*/
#include "LowPower.h" // RocketScream library so so we can use low-power sleep for timing del... | /**
Name: charlieplexing_low_power_flasher
Purpose: Burning Man 2017 Flasher Gift Project
@author Mike Tarrant
@version 1.1 Add comments and some code cleanup
1.0 Initial release
*/
#include "LowPower.h" // RocketScream library so so we can use low-power sleep for timing del... | Update charlieplexing_low_power_flasher.ino | Update charlieplexing_low_power_flasher.ino
Code cleanup, updates | Arduino | mit | miketarrant/charlieplexing_low_power_flasher,miketarrant/charlieplexing_low_power_flasher |
90d3046ff1936e7a5ea03c72cf89ea6154003e4b | MQTT433gateway.ino | MQTT433gateway.ino | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | Add support for Esp-01 by allowing use of Gpio3 as input/output. | MQTT433gateway.ino: Add support for Esp-01 by allowing use of Gpio3 as input/output.
| Arduino | mit | puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway |
366b7c6974fa1c53e68d601363014a8dc8cf5d9a | synth_main/src/main.ino | synth_main/src/main.ino |
// For some reason these need to be included here or Arduino won't find them.
#include <Audio.h>
#include <Wire.h>
#include <SD.h>
#include <SPI.h>
#include <SerialFlash.h>
#include "synth.h"
#include "fscale.h"
#include "Arduino.h"
// Our main synth object.
Synth synth;
void setup() {
Serial.begin(115200);
//... |
// For some reason these need to be included here or Arduino won't find them.
#include <Audio.h>
#include <Wire.h>
#include <SD.h>
#include <SPI.h>
#include <SerialFlash.h>
#include "synth.h"
#include "fscale.h"
#include "Arduino.h"
// Our main synth object.
Synth synth;
void setup() {
Serial.begin(115200);
//... | Read non-key inputs less often. | Read non-key inputs less often.
| Arduino | mit | floretan/bontempi,floretan/bontempi,floretan/bontempi |
0d406189170bbf46f97332be577324d3bdcffaca | src/livingRoomNode1/livingRoomNode1.ino | src/livingRoomNode1/livingRoomNode1.ino | #include "secure.h"
#include "config.h"
#include "defines.h"
#include <RFM69.h>
#include <SPI.h>
#include <radioNode.h>
#include <debounced.h>
#include <controls.h>
#define OUTDOOE_LIGHT1_ID 0
RFM69 radio;
const PROGMEM char outdoorLight1Topic[] = "jaidan/home/outdoors/light1";
SwitchedToggleControl outdoorLight1 =... | #include "secure.h"
#include "config.h"
#include "defines.h"
#include <RFM69.h>
#include <SPI.h>
#include <radioNode.h>
#include <debounced.h>
#include <controls.h>
#define OUTDOOR_LIGHT1_ID 0
RFM69 radio;
const PROGMEM char outdoorLight1Topic[] = "jaidan/home/outdoors/light1";
SwitchedToggleControl outdoorLight1 =... | Implement first control | Implement first control
| Arduino | mit | Jaidan/jaidan-hab,Jaidan/jaidan-hab |
ef7447fcd54c3e26275d02ecd4ae9125e88889f4 | Vertex.ino | Vertex.ino | #include <Servo.h>
#include <Wire.h>
#include <PID_v1.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <Adafruit_10DOF.h>
Servo ESC1;
Servo ESC2;
Servo ESC3;
Servo ESC4;
/*
Motor setup
4 1
\ /
\___/
/ \
/ \... | #include <Servo.h>
#include <Wire.h>
#include <PID_v1.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <Adafruit_10DOF.h>
Servo ESC1;
Servo ESC2;
Servo ESC3;
Servo ESC4;
/*
Motor setup
4 1
\ /
\___/
/ \
/ \... | Correct data from accelerometer and magnetometer with gyroscope and a complementary filter | Correct data from accelerometer and magnetometer with gyroscope and a complementary filter
| Arduino | mit | petschekr/Vertex,petschekr/Vertex |
4c2d9cf665f378f9d0667bab02b37bd48e1b3843 | examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.ino | examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | Update link to ESP8266 article | Update link to ESP8266 article
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
176072c562d5c04b94d8e0a80ad9825f3a441e30 | examples/M41T00S_example/M41T00S_example.ino | examples/M41T00S_example/M41T00S_example.ino | /*
M41T00S_example.ino - example using i2c_rtc_m41t00s library
Library:: i2c_rtc_m41t00s
Author:: Doc Walker <4-20ma@wvfans.net>
Copyright:: 2009-2016 Doc Walker
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obt... | /*
M41T00S_example.ino - example using i2c_rtc_m41t00s library
Library:: i2c_rtc_m41t00s
Author:: Doc Walker <4-20ma@wvfans.net>
Copyright:: 2009-2016 Doc Walker
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obt... | Remove extraneous #includes | Remove extraneous #includes
| Arduino | apache-2.0 | 4-20ma/i2c_rtc_m41t00s |
4b63d9910093772fe950c40fad630e2967bb9431 | Accessory_Controller/Accessory_Controller.ino | Accessory_Controller/Accessory_Controller.ino |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 1
/* Helper Macros */
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b) & 0x0F)
/* Debug Macros *... |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_STATUS_TO_SERIAL_CONSOLE 1
/* Helper Macros */
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b) & 0x0F)
/* Debug Macros *... | Add support for an ABS 'button up' event | Add support for an ABS 'button up' event
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
36ff08142ef6977fb54042e08f9596aabb46116d | 10/IRSender/IRSender.ino | 10/IRSender/IRSender.ino |
#include <IRremote.h>
// 38 kHz carrier frequency
const int frequency = 38;
IRsend ir_sender;
const unsigned int rawData[] = {9100, 4450, 550, 550, 600, 1650, 600, 1650, 550, 550, 600, 550, 550, 550, 600, 550, 600, 1650, 600, 1600, 600, 1650, 600, 550, 550, 1650, 600, 550, 550, 1650, 600, 1650, 600, 550, 550, 550, ... |
#include <IRremote.h>
// 38 kHz carrier frequency
const int frequency = 38;
IRsend ir_sender;
unsigned int rawData[] = {4500, 4450, 600, 1600, 600, 1600, 600, 1650, 600, 500, 600, 500, 600, 500, 600, 500, 650, 500, 600, 1600, 600, 1600, 600, 1650, 600, 500, 600, 500, 600, 500, 600, 550, 600, 500, 600, 500, 600, 160... | Update sending pattern for Samsung TV on/off button | Update sending pattern for Samsung TV on/off button
| Arduino | apache-2.0 | apuder/iot-workshop |
918c0d54f81aeeeb6caa2e9b184f6d8e1c844eb4 | ir_targets/ir_targets.ino | ir_targets/ir_targets.ino | #include <IRremote.h>
// Constants
#define BASE_COUNT 2
#define BLUE_LASER 0
#define RED_LASER 1
// Define all the devices as global variables
IRrecv *irrecvs[BASE_COUNT];
int ledPins[] = {7,2,4};
int receiverPins[] = {8,13,13};
// Define all time related variables
unsigned long startMillis;
unsigned long elapsedTi... | #include <IRremote.h>
// Constants
#define BASE_COUNT 3
#define BLUE_LASER 0
#define RED_LASER 1
#define DEBUG_MODE true
// Define all the devices as global variables
IRrecv *irrecvs[BASE_COUNT];
int ledPins[] = {7,2,4};
int receiverPins[] = {8,13,13};
// Define all time related variables
unsigned long startMillis;... | set debug mode and write score to serial | set debug mode and write score to serial
| Arduino | mit | mokpro/bicameral_pumpkin |
bea8f0bd8917d2a596328f00ee1ef8dcaafeddd3 | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
#include <SoftwareSerial.h>
#include <Sensirion.h>
// bluetooth related setup
#define bluetoothTx 0 // RX pin on Arduino
#define bluetoothRx 1 // TX pin on Arduino
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); // Setup bluefruit chip
// soil... | /*
Arduino based self regulating kitchen garden
Created by: Jamie Neubert Pedersen
version: 1.0
*/
#include <DHT.h>
#include <SoftwareSerial.h>
#include <Sensirion.h>
// bluetooth related setup
#define bluetoothTx 0 // RX pin on Arduino
#define bluetoothRx 1 // TX pin on Arduino
SoftwareSerial bluetooth(bluetoothTx, b... | Make some changes to Arduino code | Make some changes to Arduino code
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden |
673ae0a4c6ca7d7495583cb89d1e2f1f75e36b50 | octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino | octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino | #include <ESP8266WiFi.h>
#include <ESP8266WiFiAP.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266WiFiScan.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiType.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <WiFiServer.h>
#include <WiFiUdp.h>
#include <Math.h>
#i... | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <WiFiServer.h>
#include <WiFiUdp.h>
#include <Math.h>
#include <Wire.h>
#include <prometheus.h>
#define SDAPIN 13
#define SCLPIN 12
#define SERVER_IP "10.1.20.200"
#define SERVER_PORT 9091
// TODO(z2amiller): ... | Fix OctoTemp, set up to use esp8266 2.0.1-rc2 | Fix OctoTemp, set up to use esp8266 2.0.1-rc2
| Arduino | apache-2.0 | z2amiller/snippets |
266ade9b469c20cfbe266749babf5a86db327995 | module/module.ino | module/module.ino | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
SoftwareSerial RFID(RFID_RX, RFID_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(speakerPin, OUTPUT);
pinMode(interlock, OUTPUT);
pinMode(wifi_rst, OUT... | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
SoftwareSerial RFID(RFID_RX, RFID_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(speakerPin, OUTPUT);
pinMode(interlock, OUTPUT);
pinMode(wifi_rst, OUT... | Clean up. Added safety check for number being written to card | Clean up. Added safety check for number being written to card
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
7295330d983b111d8ea662966fafdaea3ef7fb89 | Receiver_test/Receiver_test.ino | Receiver_test/Receiver_test.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define MSG_ADDR msg[0]
#define MSG_UNUSED01 msg[1]
#define MSG_CMD msg[2]
#define MSG_MOD1 msg[3]
#define MSG_MOD2 msg[4]
#define MSG_MOD3 msg[5]
#define MSG_... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define MSG_ADDR msg[0]
#define MSG_UNUSED01 msg[1]
#define MSG_CMD msg[2]
#define MSG_MOD1 msg[3]
#define MSG_MOD2 msg[4]
#define MSG_MOD3 msg[5]
#define MSG_... | Add fire flies pattern | Add fire flies pattern
| Arduino | mit | RichardBronosky/lantern-sequencer,RichardBronosky/lantern-sequencer |
190d33bd908ae514c47e68f14eb3458a04b002ae | examples/receive_check/receive_check.ino | examples/receive_check/receive_check.ino | // demo: CAN-BUS Shield, receive data with check mode
// send data coming to fast, such as less than 10ms, you can use this way
// loovee, 2014-6-13
#include <SPI.h>
#include "mcp_can.h"
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(... | // demo: CAN-BUS Shield, receive data with check mode
// send data coming to fast, such as less than 10ms, you can use this way
// loovee, 2014-6-13
#include <SPI.h>
#include "mcp_can.h"
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(... | Update receive_check.ino | Update receive_check.ino | Arduino | mit | adlerweb/CAN_BUS_Shield,wdross/CAN_BUS_Shield,adlerweb/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield,wdross/CAN_BUS_Shield |
6b9335c3cea4883e46283bbacf81c62baf73e4c4 | examples/Car/DistanceCar/DistanceCar.ino | examples/Car/DistanceCar/DistanceCar.ino | #include <Smartcar.h>
const unsigned short LEFT_ODOMETER_PIN = 2;
const unsigned short RIGHT_ODOMETER_PIN = 3;
BrushedMotor leftMotor(8, 10, 9);
BrushedMotor rightMotor(12, 13, 11);
DifferentialControl control(leftMotor, rightMotor);
GY50 gyroscope(37);
DirectionlessOdometer leftOdometer(100);
DirectionlessOdometer ... | #include <Smartcar.h>
const unsigned short LEFT_ODOMETER_PIN = 2;
const unsigned short RIGHT_ODOMETER_PIN = 3;
BrushedMotor leftMotor(8, 10, 9);
BrushedMotor rightMotor(12, 13, 11);
DifferentialControl control(leftMotor, rightMotor);
DirectionlessOdometer leftOdometer(100);
DirectionlessOdometer rightOdometer(100);
... | Remove unused gyroscope | Remove unused gyroscope | Arduino | mit | platisd/smartcar_shield,platisd/smartcar_shield |
9c1e366153971a90a319ff975a6681b74318ac2f | examples/server/server.ino | examples/server/server.ino | // Simple example showing how to run barf as a server and responding to incoming requests.
// The sketch assumes the ESP8266 connected to Serial1. I haven't tested it with SoftwareSerial, that'll probably require annoying code changes.
// Tested on a teensy, on an arduino you should only need to change the definition ... | // Simple example showing how to run barf as a server and responding to incoming requests.
// The sketch assumes the ESP8266 connected to Serial1. I haven't tested it with SoftwareSerial, that'll probably require annoying code changes.
// Tested on a teensy, on an arduino you should only need to change the definition ... | Return a response to incoming requests instead of timing out | Return a response to incoming requests instead of timing out
| Arduino | mit | kirberich/barf,kirberich/barf |
6a6bffb1e0f7fdbe2fe97a5dd4dbbc7d878a7914 | dragino/sketch.ino | dragino/sketch.ino | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"//////////
#define IOTUSERNAME "xxxxxxx"
#define IOTPASSWORD "yyyyyyy"
#define IOTDEVICE "zzzzzz"
#define USER... | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"////////////////
#define IOTUSERNAME "ioioioioio"
#define IOTPASSWORD "pppppppp"
#define IOTDEVICE "iiiiiiiii"... | Update sketch.ino | Update sketch.ino | Arduino | apache-2.0 | redlibre/iot_platform |
864d9cdf233db8828ead52fa28aae588c66f48e6 | examples/paint/paint.ino | examples/paint/paint.ino | // Paint application - Demonstate both TFT and Touch Screen
// 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 vers... | // Paint application - Demonstate both TFT and Touch Screen
// 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 vers... | Update paint.ino | Update paint.ino | Arduino | mit | jediguy13/TFT_Touch_Shield_V1,jediguy13/TFT_Touch_Shield_V1 |
6bb3873b6bb5d75d99f4dcf74beb58d1ee84bc9c | RN41/RN41.ino | RN41/RN41.ino | /*
The MIT License (MIT)
Copyright (c) 2015 AlejusMaximus
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, copy, modify, merge,... | /*
The MIT License (MIT)
Copyright (c) 2015 AlejusMaximus
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, copy, modify, merge,... | update in english | update in english
| Arduino | mit | AlejusMaximus/AndroidStudioOSX,AlejusMaximus/AndroidStudioOSX,AlejusMaximus/AndroidStudioOSX,AlejusMaximus/AndroidStudioOSX |
462d85f39ed32071cf3825d42c18912c0bc6ab5a | VoltMeter.ino | VoltMeter.ino | #include <MicroView.h>
unsigned long time;
int sensorValue;
long incremental;
float volts;
float timearr[120];
// array of voltage readings
// timearr[0:60] = reading of last minute in seconds
// timearr[60:120] = reading of last hour in minutes
int secs = 0;
int mins = 0;
#define inputPin A0
#define graphMax 4.97... | #include <MicroView.h>
unsigned long time;
int sensorValue;
long incremental;
float volts;
float timearr[120];
// array of voltage readings
// timearr[0:60] = reading of last minute in seconds
// timearr[60:120] = reading of last hour in minutes
int secs = 0;
int mins = 0;
#define inputPin A0
#define graphMax 4.97... | Add display of the last hour alternating with the last minute. | Add display of the last hour alternating with the last minute.
| Arduino | mit | unique-pear486/VoltMeter |
d89922658605ca0156905f6508f38d01982aea94 | cardWriter_V2.0/cardWriter_V2.0.ino | cardWriter_V2.0/cardWriter_V2.0.ino | #include <SPI.h>
#include <MFRC522.h>
#define RST_PIN 0 // Configurable, see typical pin layout above
#define SS_PIN 15 // Configurable, see typical pin layout above
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
byte blockNum = 7;
byte nameBlock = 4;
byte idBlock ... | #include <SPI.h>
#include <MFRC522.h>
/*
* PINOUT
* +--------------------------------+---------------+
* | WEMOS D1 ESP8266 BOARD | CONECT TO PIN |
* +--------------------------------+---------------+
* | PIN | FUCTION | ESP-8266 PIN | RC522 | RELAY |
* +------+----------+--------------+-------+-------... | Update for xinchejian | Update for xinchejian | Arduino | mit | matthewgan/DoorSystemSolution,matthewgan/DoorSystemSolution |
acdfc177bf2e669192dfeaba28302b5efda719db | jarbas.ino | jarbas.ino | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#define RELAY D1
const int HTTPS_PORT = 443;
const char* WIFI = "WIFI";
const char* PASSWORD = "PASSWORD";
const char* HOST = "hooks.slack.com";
const char* URL = "URL";
String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_... | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#define RELAY D1
const char* WIFI = "WIFI";
const char* PASSWORD = "PASSWORD";
const char* URL = "URL";
ESP8266WiFiMulti wifi;
bool turnOff = false;
bool coffeeIsReady = false;
void prepareCoffee() {
delay(9 * 60 * 1000); // Wait 9 minutes.
... | change endpoint and POST to GET | change endpoint and POST to GET
Remove POST syntax and alter it to GET (Heroku endpoint). There is no need for HOST_PORT and FINGERPRINT because the connection is now HTTP and not HTTPS. | Arduino | mit | fablabjoinville/jarbas |
53c6221af69b3e269df57de0711cfb61076074ab | Weather_mikroe_SAM3X/Weather_mikroe_SAM3X.ino | Weather_mikroe_SAM3X/Weather_mikroe_SAM3X.ino | /***************************************************************************
*
* Copyright (c) 2020 Robert Nelson <robert.nelson@digikey.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the S... | /***************************************************************************
*
* Copyright (c) 2020 Robert Nelson <robert.nelson@digikey.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the S... | Update Weather_mikroe_SAM3X.ino | Update Weather_mikroe_SAM3X.ino
add Air Quality 4 Click to Slot D
| Arduino | mit | eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc |
547c6228401f2ec1c187a5ab14d22ab47749b5a3 | scripts/McbController.ino | scripts/McbController.ino | /*
MCB Controller That Runs On The Arduino Platform for debug or very very simple controllers
A basic MCB speed control for the Ubiquity Robotics Magni Robot is implemented
This code is meant for the Arduino Nano model but because of how IDE works can easily be used
on other processors as supported by the... | /*
MCB Controller That Runs On The Arduino Platform for debug or very very simple controllers
Some basic MCB speed control for the Ubiquity Robotics Magni Robot is implemented
This code is meant for the Arduino Nano model.
This code could be used to build upon a far more complex robot based on the Ardui... | Add AutoRun modes to the Arduino Nano MCB test program | Add AutoRun modes to the Arduino Nano MCB test program
| Arduino | bsd-3-clause | UbiquityRobotics/ubiquity_motor,UbiquityRobotics/ubiquity_motor,UbiquityRobotics/ubiquity_motor |
2e06ca72bbe894f9736d7bb0661fe756fc0c391a | firmware/firmware.ino | firmware/firmware.ino | #include <Servo.h>
#include "irsharp.h"
#include "Communication.h"
#include "Hdlc.h"
#include "mcdriver.h"
#define IR_LEFT A1
#define IR_RIGHT A0
#define IR_FRONT_LEFT A2
#define IR_FRONT_RIGHT A3
#define STEERING_PWM_PIN 9
#define DRIVE_PWM_PIN 11
bc_telemetry_packet_t te... | #include <Servo.h>
#include "irsharp.h"
#include "Communication.h"
#include "Hdlc.h"
#include "mcdriver.h"
#define IR_LEFT A9
#define IR_RIGHT A8
#define IR_FRONT_LEFT A7
#define IR_FRONT_RIGHT A6
#define IR_FRONT A5
#define STEERING_PWM_PIN 4
#define DRIVE_PWM_PIN ... | define teensy IR sensor and motor ports, convert to tabs only style | define teensy IR sensor and motor ports, convert to tabs only style
| Arduino | mit | rustbuggy/sharprust,rustbuggy/sharprust,rustbuggy/sharprust |
71704b80bce72955cf600d934f60686ea2ebaf66 | KeepUntil.ino | KeepUntil.ino | #include <EEPROM.h>
#include <Keypad.h>
#include <Servo.h>
#include <DS3231.h>
#include <SoftwareSerial.h>
#define DEBUG false
#define SET_RTC false
#define SHOW_TIME false
//test change test
const byte LOCK_SERVO_PIN = 4;
const byte LOCK_OPEN = 130;
const byte LOCK_CLOSED = 90;
const byte LOCKING_SOLENOID_PIN = 3;... | #include <EEPROM.h>
#include <Keypad.h>
#include <Servo.h>
#include <DS3231.h>
#include <SoftwareSerial.h>
#define DEBUG false
#define SET_RTC false
#define SHOW_TIME false
//test change test 2
const byte LOCK_SERVO_PIN = 4;
const byte LOCK_OPEN = 130;
const byte LOCK_CLOSED = 90;
const byte LOCKING_SOLENOID_PIN = ... | test commit 2 | test commit 2
| Arduino | mit | ttosi/keepuntil,ttosi/keepuntil,ttosi/keepuntil |
ef9d8f2988630f605eca35157a27d57fb92c7afb | keypad.ino | keypad.ino | #include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include "keypad.h"
void (*action_function)(char) = keypad_set_keypad_pressed;
bool keypad_has_been_pressed = false;
#define FIFO_SIZE 8
static char presses[FIFO_SIZE];
static uint8_t head = 0;
static uint8_t tail = 0;
char buttons[KEYPAD_NUM_ROWS_... | #include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include "keypad.h"
void (*action_function)(char) = keypad_set_keypad_pressed;
bool keypad_has_been_pressed = false;
#define FIFO_SIZE 8
static char presses[FIFO_SIZE];
static uint8_t head = 0;
static uint8_t tail = 0;
char buttons[KEYPAD_NUM_ROWS_... | Complete 4x4 keypad library for mega2560 \o/ | Complete 4x4 keypad library for mega2560 \o/
| Arduino | mit | xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc |
0f06a23ccf73da667299b9df0ed0476c88cc4edf | MQTT433gateway.ino | MQTT433gateway.ino | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | rename variable hostName to mainTopic | MQTT433gateway.ino: rename variable hostName to mainTopic
| Arduino | mit | puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway |
9e191bdff713ad0c26bf2cb2ea11c5710af54c51 | gc3ds.ino | gc3ds.ino | #define DATA_PIN 7
#define CPAD_X_PIN 5
#define CPAD_Y_PIN 6
#include <EEPROM.h>
#include "Nintendo.h"
#include "nokia_lcd.h"
#include "ds_pindef.h"
#include "setting_menu.h"
void setup()
{
ds_pin_init();
map_init();
analogWrite(CPAD_X_PIN, 127);
analogWrite(CPAD_Y_PIN, 127);
lcd.clear();
lcd.gotoXY(0, 0);
lcd.... | #define DATA_PIN 7
#define CPAD_X_PIN 5
#define CPAD_Y_PIN 6
#include <EEPROM.h>
#include "Nintendo.h"
#include "nokia_lcd.h"
#include "ds_pindef.h"
#include "setting_menu.h"
void setup()
{
ds_pin_init();
map_init();
pinMode(CPAD_X_PIN, OUTPUT);
pinMode(CPAD_Y_PIN, OUTPUT);
analogWrite(CPAD_X_PIN, 127);
analogW... | clean up/bug fix | clean up/bug fix
| Arduino | mit | dekuNukem/gc3ds,dekuNukem/gc3ds |
13ecc52dc39f66c8a7e71f3c29490bf506fcdeb4 | status.ino | status.ino | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
#define BLUE 4
#define RESPONSE_OK 1
#define RESPONSE_SCALE_UP 2
#define RESPONSE_SCALE_DOWN 3
#define RESPONSE_RESTART 4
#define LIGHT_INTENSITY 10 // how bright – 1 to 255
SparkButton strip = SparkButton();
int current[12];
int... | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
#define BLUE 4
#define RESPONSE_OK 1
#define RESPONSE_SCALE_UP 2
#define RESPONSE_SCALE_DOWN 3
#define RESPONSE_RESTART 4
#define LIGHT_INTENSITY 25 // how bright – 1 to 255
SparkButton strip = SparkButton();
int current[12];
int... | make it a bit brighter | make it a bit brighter
| Arduino | mit | heroku/sparoku-status,heroku/sparoku-status |
faae27c6ccea5beeabd386cf361ece36033b0c87 | e-kettcar.ino | e-kettcar.ino | #include <Arduino.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include "Motor.h"
#include "Battery.h"
#include "GasPedal.h"
#include "Gear.h"
#include "ExponentialSmoothing.h"
#include "settings.h"
Motor motor = Motor(PIN_ENABLE_R, PIN_PWM_R, PIN_ENABLE_L, PIN_PWM_L);
Gear gear = Gear(PIN_SWITCH_FORWARD, PIN_S... | #include <Arduino.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include "Motor.h"
#include "Battery.h"
#include "GasPedal.h"
#include "Gear.h"
#include "ExponentialSmoothing.h"
#include "settings.h"
Motor motor = Motor(PIN_ENABLE_R, PIN_PWM_R, PIN_ENABLE_L, PIN_PWM_L);
Gear gear = Gear(PIN_SWITCH_FORWARD, PIN_S... | Add gear update call | Add gear update call
| Arduino | mit | schinken/E-KettCar,schinken/E-KettCar |
dd31badaf4924aa6e42142b3c6f1e661b8e322b4 | aquacontrol2.ino | aquacontrol2.ino | #include <Time.h>
#include <WiFiUdp.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
#include <FS.h>
/*
extern "C" {
#include "user_interface.h"
}
*/
//https://gist.github.com/dogrocker/f998dde4dbac923c47c1
const char *defaultHostname = "aquacontrol2";
String WIFIssid;
String WI... | #include <Time.h>
#include <WiFiUdp.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <EEPROM.h>
#include <FS.h>
/*
extern "C" {
#include "user_interface.h"
}
*/
//https://gist.github.com/dogrocker/f998dde4dbac923c47c1
const char *defaultHostname = "aquacontrol2";
String WIFIssid;
String WI... | Set memoryLogging default to false. | Set memoryLogging default to false.
No logging of free RAM over Serial.
| Arduino | mit | CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2 |
bbc6d312d356d51004b993b1928f583e5b7b4d8d | MiniSumoStraitght/MiniSumoStraitght.ino | MiniSumoStraitght/MiniSumoStraitght.ino | #include <MiniRobot.h>
MiniRobot robot;
void setup() {
}
void loop() {
if (robot.leftEdge() && robot.distanceToEnemy() == 0) {
robot.leftBack();
} else {
robot.leftForward();
}
if (robot.rightEdge() && robot.distanceToEnemy() == 0) {
robot.rightBack();
} else {
robot.rightForward();
}
}
| #include <MiniRobot.h>
MiniRobot robot;
byte status = 2;
/*
0 - don't need changes;
1 - counter only
2 - drive straight back;
3 - drive straight forward;
4 - spin around
- enemy forward;
*/
int count = 0;
void setup() {
PCMSK1 |= bit(0) | bit(1);
PCIFR |= bit(1);
PCICR |= bit(1);
pinMode(A0,INPUT); // ... | Use interrupt to IR sensors | Use interrupt to IR sensors
| Arduino | mit | makerspacelt/NTAsumoBot |
1b5f6ce49108b9ebf68397677d35887b6b19f0d6 | Ex4/Ex4.ino | Ex4/Ex4.ino | /*
www.CodeDecay.com.br
Licença de uso: Apache 2.0
Neste exercício vamos enviar uma leitura de temperatura para o Thingspeak,
de modo que ela possa ser visualizada através da Internet.
*/
/*Iremos utilizar a biblioteca WiFiEsp para facilitar as operações com o ESP */
#include "WiFiEsp.h"
/*E tambem a SoftwareSerial ... | /*
www.CodeDecay.com.br
Licença de uso: Apache 2.0
Neste exercício vamos enviar uma leitura de temperatura para o Thingspeak,
de modo que ela possa ser visualizada através da Internet.
*/
/*Iremos utilizar a biblioteca WiFiEsp para facilitar as operações com o ESP */
#include "WiFiEsp.h"
/*E tambem a SoftwareSerial ... | Update Ex4.ino | Update Ex4.ino | Arduino | apache-2.0 | codedecaybr/arduino-avancado |
f13665a484c6568b6b524c65f439d1547e3ed40a | sw-machine-control/module-robot-arm/src/main.ino | sw-machine-control/module-robot-arm/src/main.ino | #include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
//#define BLUETOOTH
//Servo Ports
#define SERVO_TURN 0 //Turn Servo
#define SERVO_LIFT 1 //Lift Servo
#define SERVO_GRAB 2 //Grab Servo
//PULSES
#define TURN_BACK 165 //(BACK)Turn Servo
#define TURN_MIDDLE 330 //(F... | #include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
//#define BLUETOOTH
//Servo Ports
#define SERVO_TURN 0 //Turn Servo
#define SERVO_LIFT 1 //Lift Servo
#define SERVO_GRAB 2 //Grab Servo
//PULSES
#define TURN_BACK 165 //(BACK)Turn Servo
#define TURN_MIDDLE 330 //(F... | change liftup pickup | change liftup pickup
| Arduino | mit | HSRLCLab/sortic150,HSRLCLab/sortic150 |
4e26cf26d7bef06249a878054c7bbd595cea1f05 | ESP8266HueEmulator/ESP8266HueEmulator.ino | ESP8266HueEmulator/ESP8266HueEmulator.ino | /**
* Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and gets its config
* and switch NeoPixels with it
**/
#include <ESP8266WiFi.h>
#include <NeoPixelBus.h>
#include <NeoPixelAnimator.h> // instead of NeoPixelAnimator branch
#include "LightService.h"
// these are only used in LightHandl... | /**
* Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and gets its config
* and switch NeoPixels with it
**/
#include <ESP8266WiFi.h>
#include <NeoPixelBus.h>
#include <NeoPixelAnimator.h> // instead of NeoPixelAnimator branch
#include "LightService.h"
// these are only used in LightHandl... | Use existing color's saturation and luminance | Use existing color's saturation and luminance
| Arduino | mit | Quanghoster/ESP8266HueEmulator |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.