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 |
|---|---|---|---|---|---|---|---|---|---|
704dae91cefb332be2adcdc6a38c582036b2c944 | sonytrackball/sonytrackball.ino | sonytrackball/sonytrackball.ino | #include <TimerOne.h>
void setup() {
Serial.begin(115200);
Timer1.initialize(100);
Timer1.attachInterrupt(timerISR);
attachInterrupt(0, xAxisISR, RISING);
pinMode(2, INPUT);
}
volatile long timeMS = 0;
volatile long lastTimeMS = 0;
volatile long xRate = 0;
volatile char dir = ' ';
void timerISR() {
t... | #include <TimerOne.h>
void setup() {
Serial.begin(115200);
Timer1.initialize(100);
Timer1.attachInterrupt(timerISR);
attachInterrupt(0, xAxisISR, RISING);
pinMode(2, INPUT);
}
volatile long timeMS = 0;
volatile long lastTimeMS = 0;
volatile long xRate = 0;
volatile char dir = ' ';
void timerISR() {
t... | disable interrupts while reading rate values | disable interrupts while reading rate values
| Arduino | mit | SimulatedSimian/arduino,SimulatedSimian/arduino |
2afaf51e37d0f5e831e98047451aa92b3e48f8c5 | gamecubecontroller.ino | gamecubecontroller.ino | // This requires these libraries:
// https://github.com/arpruss/USBHID_stm32f1
// https://github.com/arpruss/GameControllersSTM32
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// Instructions... | // This requires these libraries:
// https://github.com/arpruss/USBHID_stm32f1
// https://github.com/arpruss/GameControllersSTM32
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// Instructions... | check that usb is ready before sending | check that usb is ready before sending | Arduino | mit | arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter |
3ce5b46ee61c62ce55b4fc9df2c8e3001b13642d | rs485/RS485_UnoR3_Master.ino | rs485/RS485_UnoR3_Master.ino | #include <SimpleModbusMaster.h>
#define baud 9600
#define timeout 1000
#define polling 200
#define retry_count 10
#define TxEnablePin 2
#define LED 9
#define TOTAL_NO_OF_REGISTERS 1
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // leave this last entry
};
Packet packets[TOTAL_NO_OF_PACKETS];
unsigned int r... | #include <SimpleModbusMaster.h>
#define baud 9600
#define timeout 1000
#define polling 200
#define retry_count 10
#define TxEnablePin 2
#define LED 9
#define TOTAL_NO_OF_REGISTERS 1
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // leave this last entry
};
Packet packets[TOTAL_NO_OF_PACKETS];
unsigned int r... | Update RS485_UnoR3_Master.ino | Update RS485_UnoR3_Master.ino | Arduino | mit | pumanzor/modbus,pumanzor/modbus,pumanzor/modbus |
07e97033e5b67c2d8cc5e6a6c6c77571ad88b613 | examples/ttn-otaa-network-time/ttn-otaa-network-time.ino | examples/ttn-otaa-network-time/ttn-otaa-network-time.ino | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | Remove stray line | Remove stray line
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
de8d899f30efe5a99227d5aec2409b6e3f432b4e | examples/normal/normal.ino | examples/normal/normal.ino | #include <Ethernet.h> //for loading components required by the iot device object.
#include <PubSubClient.h>
#include <allthingstalk_arduino_standard_lib.h>
#include <SPI.h> //required to have support for signed/unsigned long type.
/*
AllThingsTalk Makers Arduino Example
### Instructions
1. S... | #include <Ethernet.h> //for loading components required by the iot device object.
#include <PubSubClient.h>
#include <allthingstalk_arduino_standard_lib.h>
#include <SPI.h> //required to have support for signed/unsigned long type.
/*
AllThingsTalk Makers Arduino Example
### Instructions
1. S... | Update normal.ino | Update normal.ino | Arduino | apache-2.0 | allthingstalk/arduino-client |
716eafe8bf1820860c192c4a36f0570e7af7f7ed | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | /*
SDWebServer - Example WebServer with SD Card backend for esp8266
Copyright (c) 2015 Hristo Gochkov. All rights reserved.
This file is part of the ESP8266WebServer library for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser G... | Revert "Revert "Edit SD Server example to use the new Write(Stream) method"" | Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
This reverts commit 163a98375637ab8e3e177bb7853303e397e39dc0.
| Arduino | lgpl-2.1 | sanyaade-iot/Arduino-1,mc-hamster/esp8266-Arduino,piersoft/esp8266-Arduino,noahchense/Arduino-1,NeuralSpaz/Arduino,SmartArduino/Arduino-1,gonium/Arduino,weera00/Arduino,radut/Arduino,mangelajo/Arduino,weera00/Arduino,Protoneer/Arduino,Cloudino/Arduino,wdoganowski/Arduino,paulo-raca/ESP8266-Arduino,spapadim/Arduino,smil... |
b43750a4c526dab915d8b9a2513d4e154e28e80c | CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino | CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino | /*
* Castle KeyPad
*
* Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 and more
*
* For Arduino (UNO or Leonardo) with added Ethernet Shield
*
* See Circuit Diagram for wiring instructions
*
* V1.04 March 2014: Arm Disarm Complete and tested as working
* V1.2 Apr... | /*
* Castle KeyPad
*
* Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 - CS350 and more
*
* For Arduino (UNO or Leonardo) with added Ethernet Shield
*
* See Circuit Diagram for wiring instructions
*
* V1.04 March 2014: Arm Disarm Complete and tested as working
* V1... | Update CastleAritechArduinoRKP.ino | Update CastleAritechArduinoRKP.ino | Arduino | apache-2.0 | OzmoOzmo/CastleAritechArduinoRKP,OzmoOzmo/CastleAritechArduinoRKP |
75c332860d4f56615d75fb6c1620444b127f7cf2 | Arduino/Sensors/Ultrasonic/HC-SR04_test/HC-SR04_test.ino | Arduino/Sensors/Ultrasonic/HC-SR04_test/HC-SR04_test.ino | /*
*
* Testing the HC-SR04 ukltrasonic sensor
*
Ultrasonic sensor Pins:
VCC: +5VDC
Trig : Trigger (INPUT) - Pin 9
Echo: Echo (OUTPUT) - Pin 8
GND: GND
*/
int trigPin = 9; //Trig
int echoPin = 8; //Echo
long duration, cm, inches;
void setup() {
//Serial Port begin
S... | /*
*
* Testing the HC-SR04 ukltrasonic sensor
*
Ultrasonic sensor Pins:
VCC: +5VDC
Trig : Trigger (INPUT) - Pin 9
Echo: Echo (OUTPUT) - Pin 8
GND: GND
*/
int trigPin = 9; //Trig
int echoPin = 8; //Echo
long duration, cm, inches;
void setup() {
//Serial Port begin
S... | Update HC-SR04_test.ino | Update HC-SR04_test.ino
| Arduino | mit | carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching |
e1a21a142b758e508a80ccdba08a3e816c7de9dc | leonardo/leo595/leo595.ino | leonardo/leo595/leo595.ino | /*
* $OpenBSD: template.ino,v 1.1 2012/04/24 06:37:32 jasper Exp $
*
* Arduino projects run something like this:
* main() {
* init(); // arduino private setup
* setup(); // your setup goes here
* while(1) {
* loop(); // your main loop
* }
* }
*
* Arduino reference is at /usr/local/share/doc/arduino/re... | /*
* $OpenBSD: template.ino,v 1.1 2012/04/24 06:37:32 jasper Exp $
*
* Arduino projects run something like this:
* main() {
* init(); // arduino private setup
* setup(); // your setup goes here
* while(1) {
* loop(); // your main loop
* }
* }
*
* Arduino reference is at /usr/local/share/doc/arduino/re... | Move bit flip to PORT writes | Move bit flip to PORT writes
| Arduino | bsd-2-clause | icepic/my-arduino-stuff,icepic/my-arduino-stuff,icepic/my-arduino-stuff,icepic/my-arduino-stuff,icepic/my-arduino-stuff |
7bd40de70d05d7f8cf55448fff82e7f50985328e | examples/klipframeworktest/klipframeworktest.ino | examples/klipframeworktest/klipframeworktest.ino | // Arduino Leonardo code test
#include <Arduino.h>
#include <avr/wdt.h>
#include <klipframework.h>
VirtualTimer timerTest;
void setup()
{
Serial.begin(115200);
// wait USB CDC connection
while (Serial==false)
{
}
kPrint("Hello world from Kliplab !\n\r");
ERROR("wtf, we are testing th... | // Arduino Leonardo code test
#include <Arduino.h>
#include <avr/wdt.h>
#include <klipframework.h>
VirtualTimer timerTest;
uint8_t queueBuffer[8];
Queue queueTest(queueBuffer,8);
void setup()
{
Serial.begin(115200);
// wait USB CDC connection
while (Serial==false)
{
}
kPrint("Hello wo... | Add queue test | Add queue test
| Arduino | mit | batitous/KlipFramework,batitous/KlipFramework |
366939c0cb172bb84b7e955edf76df572475ae2b | examples/SW01_Altitude_Measurement/SW01_Altitude_Measurement.ino | examples/SW01_Altitude_Measurement/SW01_Altitude_Measurement.ino | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/SW01/
This example request a altitude meausrement to be
made by the SW01 and display the data over the Seri... | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/SW01/
This example request a altitude meausrement to be
made by the SW01 and display the data over the Seri... | Update SW01_Altitude_Measurement.ino | Update SW01_Altitude_Measurement.ino | Arduino | mit | xinabox/xSW01 |
fab3fabacd1b603626028ff7d557003ac0daf7b5 | OBSIDEM_NEW_GAME/OBSIDEM_NEW_GAME.ino | OBSIDEM_NEW_GAME/OBSIDEM_NEW_GAME.ino | #include <SPI.h>
#include "Mfrc522.h"
//r1 pins
#define r1_shield_pin 6
#define r1_bust_pin 2
#define r1_motor_relay_pin 18
#define r1_motor_mosfet_pin 40
#define r1_large_frame_pin 39
#define r1_pedestal_pin 38
//r2 pins
#define r2_houselight_pin 37
#define r2_uv_pin 36
#define r2_entry_door_pin 24
#define r2_exi... | #include <SPI.h>
#include "Mfrc522.h"
//r1 pins
#define r1_shield_pin 6
#define r1_bust_pin 2
#define r1_motor_relay_pin 18
#define r1_motor_mosfet_pin 40
#define r1_large_frame_pin 39
#define r1_pedestal_pin 38
//r2 pins
#define r2_houselight_pin 37
#define r2_uv_pin 36
#define r2_entry_door_pin ... | Update OBSIDEM_NEW_GAME.ino | Update OBSIDEM_NEW_GAME.ino | Arduino | mit | i-goldman/OBSIDEM |
1e66c9d319436a576ea15e3912d5e80cbfcee81b | ArduinoMorseCodeDecoder.ino | ArduinoMorseCodeDecoder.ino | /**
* (c) 2017 Daniel Savaria
* Released under the MIT license
*/
#include "MorseNode.h"
#include "Symbols.h"
//------------------------------------------------------------------------------
#define ARRAY_SIZE 256
const int LED = LED_BUILTIN;
const int BUTTON = 7;
//-------------------------------------------... | /**
* (c) 2017 Daniel Savaria
* Released under the MIT license
*/
#include "MorseNode.h"
#include "Symbols.h"
//#define TFT_DISPLAY
#ifdef TFT_DISPLAY
#include <Adafruit_ST7735.h>
const int TFT_CS = 10;
const int TFT_RST = 9;
const int TFT_DC = 8;
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST... | Add option to output to Adafruit TFT screen. Fixes #4 | Add option to output to Adafruit TFT screen. Fixes #4
| Arduino | mit | DTSavaria/ArduinoMorseCodeDecoder |
5070bc9910f829b7bc5c8b69ecfb25289649ab69 | examples/mqtt_config_test/mqtt_config_test.ino | examples/mqtt_config_test/mqtt_config_test.ino | #define DEBUG_MODE
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <MqttWrapper.h>
#include <PubSubClient.h>
// const char* ssid = "OpenWrt_NAT_500GP.101";
// const char* pass = "activegateway";
// const char* ssid = "MAKERCLUB-CM";
// const char* pass = "welcomegogogo";
const char* ssid = "O... | #define DEBUG_MODE
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <MqttWrapper.h>
#include <PubSubClient.h>
#include <WiFiHelper.h>
const char* ssid = "CMMC.32";
const char* pass = "guestnetwork";
MqttWrapper *mqtt;
WiFiHelper *wifi;
void callback(const MQTT::Publish& pub) {
if (pub.payload_st... | Use wifi helper. | Use wifi helper.
| Arduino | mit | cmmakerclub/CMMC_Connector,cmmakerclub/MQTT-Connector,cmmakerclub/CMMC_Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector |
d7d5090a6a931813e3e9363490a9b70c05531adc | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | Remove the version header as it was causing errors. | Remove the version header as it was causing errors.
When the version header was present, the Arduino would download data, but then
fail because the cache size (the file on the SD) was apparently zero length. I
tried this with other dummy headers, and basically any other header seemed to
screw up the Arduino cache.
Wh... | Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
4d59e69da0a8bac78f1f64dd3029a142c7019a80 | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... | Update OpenCTD_master_m0.ino | Update OpenCTD_master_m0.ino
Missing semicolon. | Arduino | mit | OceanographyforEveryone/OpenCTD |
bfae1b537df2c49be8e8374d90117e7723925f5f | arduino_pico/arduino_pico.ino | arduino_pico/arduino_pico.ino | #include "OneWire.h"
#include "DallasTemperature.h"
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS A0
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWir... | #include "OneWire.h"
#include "DallasTemperature.h"
#include "TimerOne.h"
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 7
#define TEMPERATURE_PRECISION 12
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS)... | Revert "no timer version" | Revert "no timer version"
This reverts commit 6aa9e6ca4c24f804f4ef50f9f95500a6c012e708.
| Arduino | apache-2.0 | flagos/arduino-pico,flagos/arduino-pico |
30ed1ddce2d8872667205bf08e678cdc9c83b06c | Payphone/Arduino/Payphone/Payphone.ino | Payphone/Arduino/Payphone/Payphone.ino | /*
* Nottingham Hackspace Payphone firmware
*
* Requires the Keypad library form
* http://playground.arduino.cc/uploads/Code/keypad.zip
*
* Auth: Matt Lloyd
*
* The MIT License (MIT)
*
* Copyright (c) 2014 Matt Lloyd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of th... | /*
* Nottingham Hackspace Payphone firmware
*
* Requires the Keypad library form
* http://playground.arduino.cc/uploads/Code/keypad.zip
*
* Auth: Matt Lloyd
*
* The MIT License (MIT)
*
* Copyright (c) 2014 Matt Lloyd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of th... | Correct Arduino keypad map | Correct Arduino keypad map
| Arduino | mit | NottingHack/PBX |
c82ed6fd229da9799356ff5ee7c8bfa0fa1ac4e1 | projects/YunHub/YunHub.ino | projects/YunHub/YunHub.ino | //
// Receive RFM12B packets and log to
// 1) measurement data file = interpreted data, assuming from Temperature Node
// --> time stamp, RF12 group ID, node ID, Vcc, T
// 2) raw data file
// --> time stamp, RF12 group ID, node ID, all data byte received
//
// Blink LED #13 for each package received
//
#incl... | //
// Receive RFM12B packets and log to
// 1) measurement data file = interpreted data, assuming from Temperature Node
// --> time stamp, RF12 group ID, node ID, Vcc, T
// 2) raw data file
// --> time stamp, RF12 group ID, node ID, all data byte received
// 3) send via http to emoncms.org
//
// Blink LED #13 ... | add YunHub.ino, RF12 > SD > emoncms.org | add YunHub.ino, RF12 > SD > emoncms.org
//
// Receive RFM12B packets and log to
// 1) measurement data file = interpreted data, assuming from
Temperature Node
// --> time stamp, RF12 group ID, node ID, Vcc, T
// 2) raw data file
// --> time stamp, RF12 group ID, node ID, all data byte received
// 3) send via... | Arduino | mit | 473856/Lupinino,473856/Lupinino,473856/Lupinino,473856/Lupinino |
0c3f21979e77dbfe9ce97095c28cc43d3c5a9363 | Sniff_Arduino_Terminal/Sniff_to_arduino_serial/Sniff_to_arduino_serial.ino | Sniff_Arduino_Terminal/Sniff_to_arduino_serial/Sniff_to_arduino_serial.ino |
#include <SPI.h>
#include "mcp_can.h"
MCP_CAN CAN(9);
void setup(){
Serial.begin(115200);
START_INIT:
if(CAN_OK != CAN.begin(CAN_500KBPS)){
Serial.println("Failed to initialize CAN");
Serial.println("Retrying..");
delay(100);
goto START_INIT;
}
Serial.println("Starti... |
#include <SPI.h>
#include "mcp_can.h"
MCP_CAN CAN(9);
void setup(){
Serial.begin(115200);
START_INIT:
if(CAN_OK != CAN.begin(CAN_500KBPS)){
Serial.println("Failed to initialize CAN");
Serial.println("Retrying..");
delay(100);
goto START_INIT;
}
Serial.println("Starti... | Make the filters look in what I believe is the direction of the ABS button | Make the filters look in what I believe is the direction of the ABS button
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
c70739b0609aee115ca37a3325ae497321a705a9 | src/src.ino | src/src.ino | #include <DynamixelProtocol.h>
#include <AS5048A.h>
//TODO check if serial of maple core is in the correct pins
//HardwareSerial Serial1(&rx_buffer1, &UBRR1H, &UBRR1L, &UCSR1A, &UCSR1B, &UDR1, RXEN1, TXEN1, RXCIE1, UDRE1, U2X1);
#define SEA_ID 105
#define INVERTED
#define SEA_INSTRUCTION 0x24
#define SEA_RECT
#ifde... | #include <DynamixelProtocol.h>
#include <AS5048A.h>
#define SEA_ID 105
#define INVERTED
#define SEA_INSTRUCTION 0x24
#define SEA_RECT
#ifdef SEA_RECT
#define LED PB12
#define LED_RED PB14
#define LED_BLUE PB15
#define LED_GREEN PB13
#define SERIAL Serial1
#define EN PA11
#else
#define LED PB0
#define LED_RED PB2
... | Update src.ino | Update src.ino | Arduino | mit | fabriciopk/SEA_Firmware,fabriciopk/SEA_Firmware,fabriciopk/SEA_Firmware,fabriciopk/SEA_Firmware,fabriciopk/SEA_Firmware,fabriciopk/SEA_Firmware |
9bb928234c6348b8f75ac572806aca033c9819dc | exemples/arduino/network_uplink/network_uplink.ino | exemples/arduino/network_uplink/network_uplink.ino | // ---------------------------------------------------------------------
// This file is a example for use the library armapi with
// ARM NANO (NANO_LP with sigfox) on arduino board.
//
// This software send periodically 'Hello world' to Sigfox network or
// Lora network. The choice of the network is automatically cho... | // ---------------------------------------------------------------------
// This file is a example for use the library armapi with
// ARM NANO (NANO_LP with sigfox and NANO_LW) on arduino board.
//
// This software send periodically 'Hello world' to Sigfox network or
// Lora network. The choice of the network is autom... | update network_uplink | update network_uplink
| Arduino | mit | atim-radiocommunications/armapi,atim-radiocommunications/armapi,atim-radiocommunications/armapi |
9a74475c8d88ff2d55742f7609ce3394fda3b653 | examples/IRrecvDumpV2/IRrecvDumpV2.ino | examples/IRrecvDumpV2/IRrecvDumpV2.ino | //------------------------------------------------------------------------------
// Include the IRremote library header
//
#include <IRremote.h>
//------------------------------------------------------------------------------
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
//
int recvPin ... | //------------------------------------------------------------------------------
// Include the IRremote library header
//
#include <IRremote.h>
//------------------------------------------------------------------------------
// Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
//
int recvPin ... | fix example error message | fix example error message
| Arduino | lgpl-2.1 | AnalysIR/Arduino-IRremote,shirriff/Arduino-IRremote,YodaR10/Arduino-IRremote,z3t0/Arduino-IRremote,shirriff/Arduino-IRremote,Seeed-Studio/IRSendRev,Seeed-Studio/IRSendRev,AnalysIR/Arduino-IRremote,YodaR10/Arduino-IRremote,z3t0/Arduino-IRremote |
1fde9611be8f4cc48f9772a8db87a7696f00260a | RotaryEncoder/examples/E00_KY-040_RotaryEncoder/E00_KY-040_RotaryEncoder.ino | RotaryEncoder/examples/E00_KY-040_RotaryEncoder/E00_KY-040_RotaryEncoder.ino | // Getting Started: E00 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | // Getting Started: E00 KY-040 RotaryEncoder Demo
//
// Web Search String:
// "ky-040 rotary decoder encoder module for arduino"
//
// Functions:
// Rotate CW: count up 0..15, 0
// Rotate CCW: count down 0, 15..0
// Push Button: reset counter to 0
//
//
// Wiring:
// ... | Update E00_KY-040_RotaryEncoder.ino | Update E00_KY-040_RotaryEncoder.ino | Arduino | mit | artkeller/RotaryEncoder |
3a72af2abd108e887d7af4e5922d062e008564ba | examples/SONOFF/SONOFF.ino | examples/SONOFF/SONOFF.ino | #include "MqttConnection.h"
#include "ConfigServer.h"
#include <ESP8266WebServer.h>
MqttConnection * myMqtt;
ConfigServer * myConfigServer;
ESP8266WebServer server(80);
#define BOOT_MODE_CONFIG 1
#define BOOT_MODE_MQTT 2
#define BOOT_MODE_DEFAULT 3
#define RELAY_STATE_OFF '1'
#define RELAY_STATE_ON '2'
int ... | #include "MqttConnection.h"
#include "ConfigServer.h"
#include <ESP8266WebServer.h>
MqttConnection * myMqtt;
ConfigServer * myConfigServer;
ESP8266WebServer server(80);
#define BOOT_MODE_CONFIG 1
#define BOOT_MODE_MQTT 2
#define BOOT_MODE_DEFAULT 3
#define RELAY_STATE_OFF '1'
#define RELAY_STATE_ON '2'
int ... | fix LED as it is in reverse logic | fix LED as it is in reverse logic
| Arduino | bsd-3-clause | scentelles/iot,scentelles/iot,scentelles/iot |
6ba65b357a03ec994c53f8bf87e1ed6ca16b1908 | examples/LCD/CosaLCDspeed/CosaLCDspeed.ino | examples/LCD/CosaLCDspeed/CosaLCDspeed.ino | /**
* @file CosaLCDspeed.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | /**
* @file CosaLCDspeed.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... | Remove compiler warning on macro redefinition. | Remove compiler warning on macro redefinition.
| Arduino | lgpl-2.1 | dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,jeditekunum/Cosa,rrobinet/Cosa,kc9jud/Cosa,jeditekunum/Cosa,rrobinet/Cosa,dansut/Cosa,kc9jud/Cosa,rrobinet/Cosa,dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,rrobinet/Cosa,kc9jud/Cosa,mikaelpatel/Cosa |
90c5a1cf54e8cc2516265912141d92152a63edec | examples/ready_to_localize/ready_to_localize.ino | examples/ready_to_localize/ready_to_localize.ino | #include <Pozyx.h>
#include <Pozyx_definitions.h>
#include <Wire.h>
////////////////////////////////////////////////
////////////////// PARAMETERS //////////////////
////////////////////////////////////////////////
uint8_t num_anchors = 4;
uint16_t anchors[4] = {0x6641,0x6639,0x663D,0x6670};
int32_t heights[4] = {250... | #include <Pozyx.h>
#include <Pozyx_definitions.h>
#include <Wire.h>
////////////////////////////////////////////////
////////////////// PARAMETERS //////////////////
////////////////////////////////////////////////
uint8_t num_anchors = 4;
uint16_t anchors[4] = {0x6641,0x6639,0x663D,0x6670};
int32_t heights[4] = {250... | Update ready_to_localize.ino | Update ready_to_localize.ino | Arduino | mit | pozyxLabs/Pozyx-Arduino-library,pozyxLabs/Pozyx-Arduino-library |
9b10350309a5f17da5caab2fc74380969c4bf8cb | examples-ltc/4.RainbowTape/5_FadeColor/FadeColor.ino | examples-ltc/4.RainbowTape/5_FadeColor/FadeColor.ino | // Love to Code
// Rainbow tape "Fade Color" demo.
// This simple demo enables you to fade a pixel between two colors
// select colors codes using the "Rainbow Gadget".
// or use any color from https://github.com/chibitronics/ltc-compiler-layer/blob/master/support/html_colors.h
#include "html_colors.h"
int pix0_colo... | // Love to Code
// Rainbow tape "Fade Color" demo.
// This simple demo enables you to fade a pixel between two colors
// Example at https://www.instagram.com/p/BVjnnc-AcSA/
// select colors codes using the "Rainbow Gadget".
// or use any color from https://github.com/chibitronics/ltc-compiler-layer/blob/master/suppo... | add example URL to FadeColor | add example URL to FadeColor
| Arduino | mit | chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer |
9001bfbbdf6593daa3923ad88e8af760ecff44ef | examples/RF12/radioBlip/radioBlip.ino | examples/RF12/radioBlip/radioBlip.ino | // Send out a radio packet every minute, consuming as little power as possible
// 2010-08-29 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
static long payload;
// this must be added since we're using the watchdog for low-power waiting
ISR(WDT_vect) { Sleepy::watchdogEvent(); }
v... | // Send out a radio packet every minute, consuming as little power as possible
// 2010-08-29 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
static long payload;
// this must be added since we're using the watchdog for low-power waiting
ISR(WDT_vect) { Sleepy::watchdogEvent(); }
v... | support lower battery levels | support lower battery levels
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
594fab495a390e89616e0b98650c7dc799cb1506 | frontdesk/frontdesk.ino | frontdesk/frontdesk.ino | #include <SoftwareSerial.h>
#include <LPD8806.h>
#include "RFID.h"
#define FRONTDESK
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
int j = 0;
// nLEDs, dataPin, clockPin
LPD8806 LED = LPD8806(4, dataPin, clockPin);
int pollCounter, scannedID = 0;
unsigned char readData[bufferSize];
v... | #include <SoftwareSerial.h>
#include <LPD8806.h>
#include "RFID.h"
#define FRONTDESK
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
int j = 0;
// nLEDs, dataPin, clockPin
LPD8806 LED = LPD8806(4, dataPin, clockPin);
int pollCounter, scannedID = 0;
unsigned char readData[bufferSize];
v... | Clean up | Clean up
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
54240c3115078e3aeb18007eea74921daf3364a0 | arduino-neopixel.ino | arduino-neopixel.ino | #include <Adafruit_NeoPixel.h>
// Arduino Nano v2.x, v3.x
#define TOTAL_PIXELS 99
// common settings :::::::::
#define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限
#define DELAY_TIME 5
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter... | #include <Adafruit_NeoPixel.h>
// Arduino Nano v2.x, v3.x
#define TOTAL_PIXELS 99
// common settings :::::::::
#define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限
#define DELAY_TIME 5
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter... | change command 'l' to 'p' | change command 'l' to 'p'
| Arduino | mit | karappo/ptw-wheel |
a54e753bc936dc6c4cb0d127125efaecfea23246 | MPU6050/MPU6050_temperature/MPU6050_temperature.ino | MPU6050/MPU6050_temperature/MPU6050_temperature.ino | // read temperature from IC
#include "I2Cdev.h"
#include "MPU6050.h"
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
MPU6050 accelgyro;
void setup()
{
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
Wire.begin();
#elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE
Fastwire::set... | // read temperature from IC
#include "I2Cdev.h"
#include "MPU6050.h"
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
MPU6050 mpu;
void setup()
{
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
Wire.begin();
#elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE
Fastwire::setup(400... | rename var | mpu: rename var
| Arduino | bsd-2-clause | ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook |
2f42e38d2f812bfff3cf4330a373f6366ec694bf | firmware/examples/example.ino | firmware/examples/example.ino | /***************************************************
Library code written by Limor Fried/Ladyada for Adafruit Industries.
Example code written by Mauricio Sanchez Duque/sheva29
****************************************************/
// This #include statement was automatically added by the Particle IDE.
... | /***************************************************
This is a library for the CAP1188 I2C/SPI 8-chan Capacitive Sensor
Designed specifically to work with the CAP1188 sensor from Adafruit
----> https://www.adafruit.com/products/1602
These sensors use I2C/SPI to communicate, 2+ pins are required to
i... | Update example.ino | Update example.ino | Arduino | mit | woopsiedoozie/TreeLamp |
65b74b7075193ef36ae0fed592c490052b997e38 | examples/ESP8266_library_test/ESP8266_library_test.ino | examples/ESP8266_library_test/ESP8266_library_test.ino | #include <SoftwareSerial.h>
#include <ESP8266wifi.h>
#define sw_serial_rx_pin 4 // Connect this pin to TX on the esp8266
#define sw_serial_tx_pin 6 // Connect this pin to TX on the esp8266
#define esp8266_reset_pin 5 // Connect this pin to CH_PD on the esp8266, not reset. (let reset be unconnected)
SoftwareSerial s... | #include <SoftwareSerial.h>
#include <ESP8266wifi.h>
#define sw_serial_rx_pin 4 // Connect this pin to TX on the esp8266
#define sw_serial_tx_pin 6 // Connect this pin to RX on the esp8266
#define esp8266_reset_pin 5 // Connect this pin to CH_PD on the esp8266, not reset. (let reset be unconnected)
SoftwareSerial s... | Update ESP8266_library_test.ino | Update ESP8266_library_test.ino | Arduino | mit | ekstrand/ESP8266wifi,EstebanFuentealba/ESP8266wifi,subnet/ESP8266wifi |
021aa7035ca2fe9550272930509c2186068c583b | examples/HelloOLED/HelloOLED.ino | examples/HelloOLED/HelloOLED.ino | /*
06/01/2016
Author: Makerbro
Platforms: ESP8266
Language: C++
File: HelloOLED.ino
------------------------------------------------------------------------
Description:
Demo for OLED display showcasing writing text to the screen.
----------------------------------------------------------------------... | /*
06/01/2016
Author: Makerbro
Platforms: ESP8266
Language: C++
File: HelloOLED.ino
------------------------------------------------------------------------
Description:
Demo for OLED display showcasing writing text to the screen.
----------------------------------------------------------------------... | Update HelloOLED.ino | Update HelloOLED.ino
I deleted the unnecessary "src" subfolder from the path to "ACROBOTIC_SSD1306.h". | Arduino | mit | acrobotic/Ai_Ardulib_SSD1306,acrobotic/Ai_Ardulib_SSD1306 |
92300d73c66e282f2f7586b39bf9b080ee10dd6b | 10Docking/Docking.ino | 10Docking/Docking.ino | #include <Servo.h>
Servo magnetServo;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT); //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
int val = 789789;
if (val == 789789 || val != digitalRead(3)){
... | #include <Servo.h>
Servo magnetServo;
int val = 2;
void setup(){
Serial.begin(9600);
pinMode(2, OUTPUT); //relays for LED
pinMode(3, INPUT); //dock detection circuit
magnetServo.attach(9);
magnetServo.write(1);
digitalWrite(2, LOW);
}
void loop(){
if (val == 2){
val = digitalRead(3);
}
else ... | Update Docking.ino | Update Docking.ino | Arduino | mit | WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS |
001ad9c0b75ade942e892bcaba2998c1be41eb92 | examples/Boards_BLE/Adafruit_Bluefruit_LE/Adafruit_Bluefruit_LE.ino | examples/Boards_BLE/Adafruit_Bluefruit_LE/Adafruit_Bluefruit_LE.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 Adafruit_Bluefruit_LE.ino | Update Adafruit_Bluefruit_LE.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
3187d538a70df66a7b3c0aefe38090d2cd970fa9 | weather168_list2_57600/weather168_list2_57600.ino | weather168_list2_57600/weather168_list2_57600.ino | // light lcd on by hand.
#include <Wire.h> //I2C library
#include <Adafruit_BMP085.h> // pressure and temperature sensor library (I2C)
#include <SHT2x.h> //SHT2x temperature and humidity sensor(I2C)
#include <BH1750.h> //light sensor library (I2C)
#include <LiquidCrystal_I2C.h> //LCD1602 display (I2C)
LiquidCryst... | // light lcd on by hand.
#include <Wire.h> //I2C library
#include <Adafruit_BMP085.h> // pressure and temperature sensor library (I2C)
#include <SHT2x.h> //SHT2x temperature and humidity sensor(I2C)
#include <BH1750.h> //light sensor library (I2C)
#include <LiquidCrystal_I2C.h> //LCD1602 display (I2C)
LiquidCryst... | Update weather168_list2_57600.ino | Update weather168_list2_57600.ino | Arduino | mit | imonkey-tw/weather168_arduino,imonkey-tw/weather168_arduino |
b8bdfa5984f29f03f0295403d7cfdfb233e6854f | hook___dail/hook___dail.ino | hook___dail/hook___dail.ino | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | change speed | change speed
| Arduino | mit | tingyez/JunkDJ,tingyez/JunkDJ |
31fc1a62839db8e334531de805febd16b944425f | 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 simple error message | Add simple error message
| Arduino | mit | IgorGee/Emotional-Clothing |
ccd2181786cd03e643d0688eef25f4173c7bc591 | examples/Boards_Bluetooth/RFDuino_BLE/RFDuino_BLE.ino | examples/Boards_Bluetooth/RFDuino_BLE/RFDuino_BLE.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, tutorials: h... | /*************************************************************
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, tutorials: h... | Switch RFDuino to use BLEPeripheral | Switch RFDuino to use BLEPeripheral
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
1d968fbaebc5ef42d20f9f283e2614cd4ddd3544 | WiFiScan/WiFiScan.ino | WiFiScan/WiFiScan.ino | /*
* This sketch is customized ESP8266WiFi/WiFiScan for HSES-LCD24
*/
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "ESP8266WiFi.h"
#define WiFiMax 10
#define Y1 32
#define LH 24
#define X_SIG 260
#define X_STAT 240
#define Y_STAT0 2
#define Y_STAT 18
#define CS 2
#define D... | /*
* This sketch is customized ESP8266WiFi/WiFiScan for HSES-LCD24
*/
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "ESP8266WiFi.h"
#define WiFiMax 10
#define Y1 32
#define LH 24
#define X_SIG 260
#define X_STAT 240
#define Y_STAT0 2
#define Y_STAT 18
#define CS 2
#define D... | fix bug | fix bug
| Arduino | mit | h-nari/HSES_LCD24_Sample_programs,h-nari/HSES_LCD24_Sample_programs |
6c9d058f3c730e9e0d2fd632b2bf39a343359cb7 | firmware/examples/ADXL362_SimpleRead/ADXL362_SimpleRead.ino | firmware/examples/ADXL362_SimpleRead/ADXL362_SimpleRead.ino | /*
ADXL362_SimpleRead.ino - Simple XYZ axis reading example
for Analog Devices ADXL362 - Micropower 3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet
License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
p... | /*
ADXL362_SimpleRead.ino - Simple XYZ axis reading example
for Analog Devices ADXL362 - Micropower 3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet
License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
p... | Update ADXL362_SimpleRead.ino | Update ADXL362_SimpleRead.ino | Arduino | cc0-1.0 | gregoryfenton/adxl362 |
b0d2631439e7cf548eaadd5e99cf7c26cf68a105 | src/main.ino | src/main.ino | #include <SoftwareSerial.h>
#include "Sds011.h"
#include "Pcd8544.h"
#include "Expander.h"
#include "Dht.h"
#include "ArduinoJson.h"
#include "FS.h"
#ifdef ESP8266
#include <Wire.h>
#include <Ticker.h>
#endif
#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
#include <Ardu... | #include <SoftwareSerial.h>
#include "Sds011.h"
#include "Pcd8544.h"
#include "Expander.h"
#include "Dht.h"
#include "ArduinoJson.h"
#include "FS.h"
#ifdef ESP8266
#include <Wire.h>
#include <Ticker.h>
#endif
#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
#include <Ardu... | put SDS011 to sleep on OTA mode | main: put SDS011 to sleep on OTA mode
| Arduino | mit | kadamski/arduino_sds011,kadamski/arduino_sds011,kadamski/arduino_sds011 |
d2f4bba7b6ac9be1d4b67de114c89358bec9f176 | main/main.ino | main/main.ino | /*
ZoomMRT-3B_MIDI_USB
Created: 13/3/2017
Author: HyDz
USB Midified ZoomMRT-3B for Traktor
*/
#define ENABLE_DEBUG 0 // Set to 1 to enable serial debug out
#include "screen.h"
#include "minimidi.h"
#include "IOS.h"
void setup() {
#if ENABLE_DEBUG
Serial.begin(115200);
Serial.println("start setup")... | /*
ZoomMRT-3B_MIDI_USB
Created: 13/3/2017
Author: HyDz
USB Midified ZoomMRT-3B for Traktor
*/
#define ENABLE_DEBUG 0 // Set to 1 to enable serial debug out
#define USE_SCREEN 0 // Set to 1 to use screen, set to 0 not use
#define BENCH_TIME 0 // Set to 1 to have loop time exec in serial monitor
#... | Update main.ino | Update main.ino | Arduino | mit | HyDz/ZoomMRT-3B_MIDI_USB |
f64db92bde7980f4efad4b25f14327d64229780c | KomaRoof.ino | KomaRoof.ino | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | Implement current limiting. When we hit close limit, coast ahead at slow speed until the current limit is reached. | Implement current limiting. When we hit close limit, coast ahead at slow speed until the current limit is reached.
| Arduino | mit | vehnae/komaroof,vehnae/komaroof |
3b3b9c2069ac4832bf42fb3390fbdcdd3a887b0e | KomaRoof.ino | KomaRoof.ino | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | /*
* Copyright (c) 2016 Jari Saukkonen
*
* 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, publ... | Use timer abort only during opening and closing | Use timer abort only during opening and closing
| Arduino | mit | vehnae/komaroof,vehnae/komaroof |
7b8a36490580984b4610feeae08272739cb7df0b | arduino/libraries/VeloKey/examples/EventsTest/EventsTest.ino | arduino/libraries/VeloKey/examples/EventsTest/EventsTest.ino | #include "events.h"
#include "VeloKey.h"
//VeloKey vk = VeloKey();
RectSprite ball = RectSprite(80, 80, 4, 4, VELOKEY_WHITE);
RectSprite player1 = RectSprite(0, 80 - 15, 3, 30, VELOKEY_BLUE);
RectSprite player2 = RectSprite(160-3, 80 - 15, 3, 30, VELOKEY_GREEN);
class MyListener : public VeloKeyListener{
void onSc... | #include "events.h"
#include "VeloKey.h"
//VeloKey vk = VeloKey();
RectSprite ball = RectSprite(80, 80, 4, 4, VELOKEY_WHITE);
RectSprite player1 = RectSprite(0, 80 - 15, 3, 30, VELOKEY_BLUE);
RectSprite player2 = RectSprite(160-3, 80 - 15, 3, 30, VELOKEY_GREEN);
class MyListener : public VeloKeyListener{
void onSc... | update collision detect in EventsTest | update collision detect in EventsTest
| Arduino | mit | wyolum/VeloKey,wyolum/VeloKey,wyolum/VeloKey,wyolum/VeloKey,wyolum/VeloKey |
8710a895db3aa5ec9728eb69d174eb6ede15948d | hook___dail/hook___dail.ino | hook___dail/hook___dail.ino | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | #include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
// Below is not needed if interrupt driven. Safe to remove if not using.
#if defined(USE_MP3_REFILL_MEANS) && USE_MP3_REFILL_MEANS == USE_MP3_Timer1
#include <TimerOne.h>
#eli... | clean up | clean up
| Arduino | mit | tingyez/JunkDJ,tingyez/JunkDJ |
b9103f07cddbca791bf262913bf68e5d3ad60dda | examples/DroneSimpleRadioDrive/DroneSimpleRadioDrive.ino | examples/DroneSimpleRadioDrive/DroneSimpleRadioDrive.ino | #include <MINDS-i-Drone.h>
ServoGenerator::Servo drive, steer;
void setup() {
drive.attach(12 /* APM pin 1 */);
steer.attach(11 /* APM pin 2 */);
ServoGenerator::begin();
//set the initial throttle/direction for the ESC/servo
drive.write(90);
steer.write(90);
APMRadio::setup();
Serial.begin(9600);
... | #include <MINDS-i-Drone.h>
ServoGenerator::Servo drive, steer, backsteer;
void setup() {
drive.attach(12 /* APM pin 1 */);
steer.attach(11 /* APM pin 2 */);
backsteer.attach(8 /* APM pin 3 */);
ServoGenerator::begin();
//set the initial throttle/direction for the ESC/servo
drive.write(90);
steer.write... | Add backsteer to drone radio drive | Add backsteer to drone radio drive
| Arduino | apache-2.0 | MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone |
2263c8cf4323c3001fc09d6127681ca21bac1e47 | Arduino/SCM_OWeek_LEDStrip/SCM_OWeek_LEDStrip.ino | Arduino/SCM_OWeek_LEDStrip/SCM_OWeek_LEDStrip.ino | /*
Serial RGB controller
Reads a serial input string looking for three comma-separated
integers with a newline at the end. Values should be between
0 and 255. The sketch uses those values to set the color
of an RGB LED attached to pins 9 - 11.
The circuit:
* Common-anode RGB LED cathodes attached to pins ... | /*
Serial RGB controller
Reads a serial input string looking for three comma-separated
integers with a newline at the end. Values should be between
0 and 255. The sketch uses those values to set the color
of an RGB LED attached to pins 9 - 11.
The circuit:
* Common-anode RGB LED cathodes attached to pins ... | update arduino project | update arduino project
| Arduino | mit | fishkingsin/Digitizing_ideas-electronic_integration,fishkingsin/Digitizing_ideas-electronic_integration,fishkingsin/Digitizing_ideas-electronic_integration |
b8608f443ca02333337b8773371bda0778099487 | examples/GPRS_ReadSMS/GPRS_ReadSMS.ino | examples/GPRS_ReadSMS/GPRS_ReadSMS.ino | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial-порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// длина сообщения
#define MESSAGE_LENGTH 160
// номер сообщения в памяти сим-карты
int messageIndex = 0;
// тек... | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial-порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// длина сообщения
#define MESSAGE_LENGTH 160
// номер сообщения в памяти сим-карты
int messageIndex = 0;
// тек... | Update GPRS_ReadSMS.ino | Update GPRS_ReadSMS.ino | Arduino | mit | amperka/gprs-shield,amperka/gprs-shield |
d04e74f59007d445de53e0c4a5380e57687bc31b | examples/TWI/CosaDS3231/CosaDS3231.ino | examples/TWI/CosaDS3231/CosaDS3231.ino | /**
* @file CosaDS3231.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... | /**
* @file CosaDS3231.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the L... | Remove compiler warning. | Remove compiler warning.
| Arduino | lgpl-2.1 | rrobinet/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,kc9jud/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,dans... |
a1cfd5af5643838392fbaa3a3c2b816e5745da27 | examples/mqtt_esp8266/mqtt_esp8266.ino | examples/mqtt_esp8266/mqtt_esp8266.ino | /*
Basic ESP8266 MQTT example
This sketch demonstrates the capabilities of the pubsub library in combination
with the ESP8266 board/library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic" every two seconds
- subscribes to the topic "inTopic", printing out any messages
... | /*
Basic ESP8266 MQTT example
This sketch demonstrates the capabilities of the pubsub library in combination
with the ESP8266 board/library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic" every two seconds
- subscribes to the topic "inTopic", printing out any messages
... | Fix spelling in mqtt_esp8266 example | Fix spelling in mqtt_esp8266 example | Arduino | mit | tectiv3/pubsubclient,knolleary/pubsubclient,tectiv3/pubsubclient,knolleary/pubsubclient,knolleary/pubsubclient,tectiv3/pubsubclient |
d5b0d279b21b1d40a188a8c80bb4303224d81418 | 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 "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 ... | Use .advertise instead of .subscribe | Use .advertise instead of .subscribe
| Arduino | mit | kylegordon/homie-sonoff-touch |
8b773f5577d2a3001f18eb948a30794afb8cd67d | arduino-light-dimmer-ble/arduino-light-dimmer-ble.ino | arduino-light-dimmer-ble/arduino-light-dimmer-ble.ino | #include <EEPROM.h>
#include <stdint.h>
#define BEACON_NAME "living_room" /* 12 chars max */
#define BEACON_MAJOR "0xBEEF"
#define BEACON_MINOR "0x0001"
#define LED1 12
#define LED2 11
#define PIN_ZCROSS 3
#define SSR1_PIN A3
#define SSR2_PIN A0
#define SSR3_PIN A1
#define SSR4_PIN A2
#define INITIAL_SMOOTHING_US 20... | #include <EEPROM.h>
#include <stdint.h>
#define BEACON_NAME "living_room" /* 12 chars max */
#define BEACON_MAJOR "0xBEEF"
#define BEACON_MINOR "0x0001"
#define LED1 12
#define LED2 11
#define PIN_ZCROSS 3
#define SSR1_PIN A3
#define SSR2_PIN A0
#define SSR3_PIN A1
#define SSR4_PIN A2
#define INITIAL_SMOOTHING_US 20... | Fix watchdog time (24 min -> 240 min) | Fix watchdog time (24 min -> 240 min)
| Arduino | bsd-3-clause | primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble |
cc3d962553456b5c4d94ad6056606b1fddb73181 | enroleur-eniri/enroleur-galaxy/enroleur-galaxy.ino | enroleur-eniri/enroleur-galaxy/enroleur-galaxy.ino | //----------------------------------------------------------
//
// Lecteur enroleur de badge pour lecteur galaxy honeywell
// Claude Boisgerault le 26/02/2017
// Version 0.99
// PROJET ENIRI licence MIT
// ce programme permet de lire un numéro de badge
// avec un lecteur en protocol wiegand.
// l'enroleur récupère les ... | //----------------------------------------------------------
//
// Lecteur enroleur de badge pour lecteur galaxy honeywell
// Claude Boisgerault le 26/02/2017
// Version 0.99
// PROJET ENIRI licence MIT
// ce programme permet de lire un numéro de badge
// avec un lecteur en protocol wiegand.
// l'enroleur récupère les ... | Update enroleur-galaxy.ino | Update enroleur-galaxy.ino
correction des commentaires | Arduino | mit | pixelorum/eniri |
47baa3bf2cb6a9ea4eb84cf1bfd339b0bf35da87 | Arduino/base_subscriber.ino | Arduino/base_subscriber.ino | #include <ros.h>
#include <std_msgs/String.h>
#include <Arduino.h>
// **********
// Variables
// **********
ros::NodeHandle rosNode;
uint8_t messageData[4];
uint8_t messageTTL = 100;
uint16_t messageTimestamp = 0;
// Speed Pin, Pin A, Pin B
uint8_t motor_0[] = {3, 4, 5};
uint8_t motor_1[] = {6, 7, 8};
uint8_t moto... | #include <ros.h>
#include <std_msgs/String.h>
#include <Arduino.h>
// **********
// Variables
// **********
ros::NodeHandle rosNode;
int16_t messageData[4];
uint8_t messageTTL = 100;
uint16_t messageTimestamp = 0;
// Speed Pin, Pin A, Pin B
uint8_t motor_0[] = {3, 4, 5};
uint8_t motor_1[] = {6, 7, 8};
uint8_t moto... | fix variable | fix variable
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
962d694a02ba3860b825f5014703219689635246 | software/firmware/LogoBotPolarGraph/LogoBotPolarGraph.ino | software/firmware/LogoBotPolarGraph/LogoBotPolarGraph.ino | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <PolarBot.h>
#include <CommandQueue.h>
#include <LogobotText.h>
#include <Servo.h>
// left and right are inverted vs normal LogoBot wiring
// orientations are when looking at the drawing surface from the front
PolarBot bot(MOTOR_R_PIN_1, MOTOR_R_PIN_... | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <PolarBot.h>
#include <CommandQueue.h>
#include <LogobotText.h>
#include <Servo.h>
// left and right are inverted vs normal LogoBot wiring
// orientations are when looking at the drawing surface from the front
PolarBot bot(MOTOR_R_PIN_1, MOTOR_R_PIN_... | Enable look ahead | Enable look ahead
| Arduino | mit | snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot |
b1568fe6258d8272819cdffa1251eaee4c745bca | src/monitor-firmware.ino | src/monitor-firmware.ino | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
#include "serialstatemachine.h"
// 16-bit address bus value
unsigned int address_bus;
// 8-bit data bus value
byte data_bus;
// Status bits
byte status_bits;
enum StatusBitMask {
SB_RWBAR... | // Firmware for monitor board
#include "debounced_switch.h"
#include "edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
#include "serialstatemachine.h"
// 16-bit address bus value
unsigned int address_bus;
// 8-bit data bus value
byte data_bus;
// Status bits
byte status_bits;
enum StatusBitMask {
SB_RWBAR... | check length of commands | check length of commands
| Arduino | mit | rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri |
7104086d609dd83ca51f7c894abf727a772fa0a1 | Calibration/liveCode/overclockAccel/overclockAccel.ino | Calibration/liveCode/overclockAccel/overclockAccel.ino | /*
* Accelerometer skeleton code
*/
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <URP_LSM303.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <String.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_10DOF.h>
/* Assign a unique ID to the sensors */
Adafruit_10DOF dof = Adafr... | /*
* Accelerometer skeleton code
*/
#include <SD.h>
#include <SPI.h>
#include <Wire.h>
#include <URP_LSM303.h>
#include <Adafruit_BMP085_U.h>
#include <Adafruit_L3GD20_U.h>
#include <String.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_10DOF.h>
/* Assign a unique ID to the sensors */
Adafruit_10DOF dof();
URP_... | Add integration of magnetometer to form a simple AHRS system. | Add integration of magnetometer to form a simple AHRS system.
| Arduino | mit | UCLARocketProject/2014-2015,karikawa/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015,karikawa/2014-2015,karikawa/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015 |
72817b460642664099c6481aa5ea9dd8439b60e8 | examples/Export_Demo/Template_MKR1000/Template_MKR1000.ino | examples/Export_Demo/Template_MKR1000/Template_MKR1000.ino | /**************************************************************
* This is a DEMO. You can use it only for development and testing.
* You should open Setting.h and modify General options.
*
* If you would like to add these features to your product,
* please contact Blynk for Businesses:
*
* http:... | /**************************************************************
* This is a DEMO. You can use it only for development and testing.
* You should open Setting.h and modify General options.
*
* If you would like to add these features to your product,
* please contact Blynk for Businesses:
*
* http:... | Comment on libraries | Comment on libraries
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library |
32d88502c434d7bff692807c8d133977e38aeaff | Arduino/Base/Base.ino | Arduino/Base/Base.ino | #include <avr/wdt.h> // for watchdog timer
#include <SoftwareSerial.h>
#include <RS485.h>
#include "globals.h"
#include "XbeeCommunication.h"
#include "SIMCommunication.h"
#define XBEE_BAUD 9600
#define QMAX 1
SoftwareSerial xbee(2, 3);
XBeeCommunication xcomm("00000");//Change here for different bases
SoftwareSeria... | #include <avr/wdt.h> // for watchdog timer
#include <SoftwareSerial.h>
#include <RS485.h>
#include "globals.h"
#include "XbeeCommunication.h"
#include "SIMCommunication.h"
#define XBEE_BAUD 9600
#define QMAX 1
SoftwareSerial xbee(2, 3);
XBeeCommunication xcomm("00000");//Change here for different bases
SoftwareSeria... | Cut out N case | Cut out N case
| Arduino | mit | sachleen/Smart-Parking,sachleen/Smart-Parking,sachleen/Smart-Parking,sachleen/Smart-Parking,sachleen/Smart-Parking |
6b6f9b0c5fc109cd9167a7e8864859691ab05360 | Arduino/Sensors/IR/GP2Y0A21Yk0F_test/GP2Y0A21Yk0F_test.ino | Arduino/Sensors/IR/GP2Y0A21Yk0F_test/GP2Y0A21Yk0F_test.ino | /*
* GP2Y0A21YK0F_test
*
* Example of using SharpIR library to calculate the distance beetween the sensor and an obstacle
*
* Carlos Castellanos
* June 22, 2020
*
* based on code by Giuseppe Masino: https://github.com/qub1750ul/Arduino_SharpIR
*
* -------------------------------------------------------------... | /*
* GP2Y0A21YK0F_test
*
* Example of using SharpIR library to calculate the distance beetween the sensor and an obstacle
*
* Carlos Castellanos
* June 22, 2020
*
* based on code by Giuseppe Masino: https://github.com/qub1750ul/Arduino_SharpIR
*
* -------------------------------------------------------------... | Update GP2Y0A21Yk0F_test.ino | Update GP2Y0A21Yk0F_test.ino
| Arduino | mit | carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching |
b0079618c0940bc134a96739886a66a2dfe94846 | WizardView.ino | WizardView.ino | #include <stdint.h>
#include "receiver.h"
#define PIN_LED 13
#define PIN_SPI_CLK 2
#define PIN_SPI_DATA 3
#define PIN_SPI_SS_RX1 4
#define PIN_SPI_SS_RX2 5
#define PIN_SPI_SS_RX3 6
#define PIN_SPI_SS_RX4 7
#define PIN_RSSI_RX1 A0
#define PIN_RSSI_RX2 A1
#define PIN_RSSI_RX3 A2
#define PIN_RSSI_RX4 A3
#define SERIAL... | #include <stdint.h>
#include "receiver.h"
#define PIN_LED 13
#define PIN_SPI_CLK 2
#define PIN_SPI_DATA 3
#define PIN_SPI_SS_RX1 4
#define PIN_SPI_SS_RX2 5
#define PIN_SPI_SS_RX3 6
#define PIN_SPI_SS_RX4 7
#define PIN_RSSI_RX1 A0
#define PIN_RSSI_RX2 A1
#define PIN_RSSI_RX3 A2
#define PIN_RSSI_RX4 A3
#define SERIAL... | Reduce serial delay | Reduce serial delay
| Arduino | mit | PropNuts/wizardtracker-hardware,PropNuts/wizardtracker-hardware |
d90f6854e97645ec07f5c477a4c9baff4e83b3fd | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino | /**
* This is a kind of unit test for DEV for now
* It contains many of the public methods
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <time.h>
#define TRIGGER_PIN 0
const char* modes[] = { "NULL", "STA", "AP", "STA+AP" };
unsigned long mtime = 0;
// // #define MYOLED
// #inc... | /**
* This is a kind of unit test for DEV for now
* It contains many of the public methods
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <time.h>
#define USEOTA
// enable OTA
#ifdef USEOTA
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
bool otastarted = false;
#endif
#define TRIGGE... | Update OnDemandConfigPortal.ino | Update OnDemandConfigPortal.ino
adds ota to dev example suite
| Arduino | mit | tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager |
dcf87af9bb6931f92c3f26f2dbd88cc89e647e04 | demos/ble_my_project_template/ble_my_project_template.ino | demos/ble_my_project_template/ble_my_project_template.ino | /*Copyright (c) 2013, Nordic Semiconductor ASA
*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
* list of condi... | /*Copyright (c) 2013, Nordic Semiconductor ASA
*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
* list of condi... | Update ble_my_project_template.ino | Update ble_my_project_template.ino | Arduino | mit | NordicSemiconductor/ble-sdk-arduino,NordicSemiconductor/ble-sdk-arduino,NordicSemiconductor/nrf8001-ble-uart-spark-io,Cheong2K/ble-sdk-arduino,RedBearLab/ble-sdk-arduino,pi19404/ble-sdk-arduino,RedBearLab/ble-sdk-arduino,RedBearLab/ble-sdk-arduino,Cheong2K/ble-sdk-arduino,NordicSemiconductor/nrf8001-ble-uart-spark-io,t... |
9ecf4a60063964a583e31d15ffb7e689ed584e8d | src/main.ino | src/main.ino | /**
* Ai-Thinker RGBW Light Firmware
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Created by Sacha Telgenhof <stelgenhof at gmail dot com>
* (https://www.sachatelgenhof.... | /**
* Ai-Thinker RGBW Light Firmware
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Created by Sacha Telgenhof <stelgenhof at gmail dot com>
* (https://www.sachatelgenhof.... | Clear EEPROM space before loading factory defaults. | Clear EEPROM space before loading factory defaults.
| Arduino | mit | stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight |
f930ffe6ca3e76b65e4a50c313bdf21ce81ebecc | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.6"
// Disable this if you don't want the relay to turn on with any single tap event
#define IMMEDIATEON
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\... | #include <ClickButton.h>
#include <Homie.h>
#include <EEPROM.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "2.0.7"
// Disable this if you don't want the relay to turn on with any single tap event
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54"... | Fix up offline behaviour | Fix up offline behaviour
| Arduino | mit | kylegordon/homie-sonoff-touch |
c7d29e36d53591de6360e0e1b81ef89fca4194ed | wifitask.ino | wifitask.ino | void wifiTask( void * pvParameters )
{
const uint16_t rebootSeconds = 60 * 5;
/* trying last accesspoint */
WiFi.mode( WIFI_STA );
WiFi.begin();
//WiFi.onEvent( WiFiEvent );
ESP_LOGI( TAG, "Connecting WiFi" );
if ( xTftTaskHandle )
{
tft.setTextColor( ILI9341_WHITE , ILI9341_BLACK );
tft.prin... | void wifiTask( void * pvParameters )
{
/* trying last accesspoint */
WiFi.mode( WIFI_STA );
WiFi.begin();
//WiFi.onEvent( WiFiEvent );
ESP_LOGI( TAG, "Connecting WiFi" );
if ( xTftTaskHandle )
{
tft.setTextColor( ILI9341_WHITE , ILI9341_BLACK );
tft.println( "Connecting WiFi");
}
waitForWif... | Handle millis() rollover when waiting for SmartConfig. | Handle millis() rollover when waiting for SmartConfig.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
ffbf41bd4d06410f2946ca94f7ad302581d3f5b4 | NRF52832/Unicorn_Hat_HD/Wrench-Mask-BLE_Unicorn-Hat-HD.ino | NRF52832/Unicorn_Hat_HD/Wrench-Mask-BLE_Unicorn-Hat-HD.ino | /* Wrench Mask - BLE Version (NRF52832)
*
* Hardware Used:
* Adafruit Feather NRF52
* Pimoroni Unicorn Hat HD x2
*
* by Brandon C. Allen
*
* BLE Functions based on the bleuart example from AdaFruit:
* https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/examples... | /* Wrench Mask - BLE Version (NRF52832)
*
* Hardware Used:
* Adafruit Feather NRF52
* Pimoroni Unicorn Hat HD x2
*
* by Brandon C. Allen
*
* BLE Functions based on the bleuart example from AdaFruit:
* https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/examples... | Update Wrench-Mask-BLE_Unicorn-Hat-HD.ino | Update Wrench-Mask-BLE_Unicorn-Hat-HD.ino
Implemented optimizations recommended by miker95 from Reddit. Thanks!
https://www.reddit.com/r/arduino/comments/7olv2h/six_months_ago_i_posted_my_arduino_based_rgb/dsal5ky/ | Arduino | mit | Arudinne/RGB-Wrench-Mask |
2e61df4d10692544c866c8778dd8f0de22f230b5 | Programmer/Programmer.ino | Programmer/Programmer.ino | /*
Programmer.ino
Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino.
Data to write to flash is fed from standard SDCC produced Intel Hex format file using the
accompanying programmer.pl perl script. Start the Arduino script first and then run the
perl script.
When upload... | /*
Programmer.ino
Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino.
Data to write to flash is fed from standard SDCC produced Intel Hex format file using the
accompanying programmer.pl perl script. Start the Arduino script first and then run the
perl script.
When upload... | Use Leonardo D0 & D1 pins for Serial | Use Leonardo D0 & D1 pins for Serial
Instead of using the SoftwareSerial I now use the hardware serial pins
D0 & D1 with the Serial1 class.
| Arduino | mit | baruch/nRF24LE1_Programmer |
4cb5fc8e050b1853264b56e9bfffabab56d3395d | app/firmware/board2/board2.ino | app/firmware/board2/board2.ino | char remainData;
void setup(){
Serial.begin(9600);
Serial.flush();
initPorts();
delay(200);
}
void initPorts () {
for (int pinNumber = 0; pinNumber < 14; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop() {
while (Serial.available()) {
if (Serial.availa... | char remainData;
void setup(){
Serial.begin(9600);
Serial.flush();
initPorts();
delay(200);
}
void initPorts () {
for (int pinNumber = 0; pinNumber < 14; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop() {
while (Serial.available()) {
if (Serial.availa... | update board2.ino document format | update board2.ino document format
| Arduino | mit | songhagwon/entry-hw,kjsii123/entry-hw,entrylabs/entry-hw,songhagwon/entry-hw,songhagwon/entry-hw,entrylabs/entry-hw,songhagwon/entry-hw,kjsii123/entry-hw,kjsii123/entry-hw,songhagwon/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,entrylabs/entry-hw,kjsii123/entry-hw |
342ad8443ff77a157f97d0277a72cc9457dad5ad | tests/TestSystemInfo/TestSystemInfo.ino | tests/TestSystemInfo/TestSystemInfo.ino | # 2 "TestSystemInfo.ino"
#include <Arduino.h>
#include <Arduino_FreeRTOS.h>
#include <StandardCplusplus.h>
#include <RabirdToolkit.h>
#include <RTest.h>
#include <RRawPointer.h>
#include <RSharedPointer.h>
RTEST(TestSystemInfo)
{
auto printer = mManager->printer();
auto formatter = RFormatter(printer);
form... | # 2 "TestSystemInfo.ino"
#include <Arduino.h>
#include <Arduino_FreeRTOS.h>
#include <StandardCplusplus.h>
#include <RabirdToolkit.h>
#include <RTest.h>
#include <RRawPointer.h>
#include <RSharedPointer.h>
RTEST(TestSystemInfo)
{
auto formatter = RFormatter(mManager->printer());
formatter("Size of int : %s").ar... | Reduce a temporary variable | Reduce a temporary variable
| Arduino | mit | starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit |
552d960809a37f623d3e6fcec57cae871786f512 | arduino/dht/src/jarvis-dht.ino | arduino/dht/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 r... | /*
* Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | FIX wifi configuration | FIX wifi configuration
Signed-off-by: Nicolas Lamirault <57a11b2dec5b8363280015e1663433805cc2169e@gmail.com>
| Arduino | apache-2.0 | zeiot/jarvis,zeiot/jarvis,zeiot/jarvis,zeiot/jarvis |
b2b40c14b6c3ddca94b48c3e62b872d0f1d5393f | prevyuduino/prevyuduino.ino | prevyuduino/prevyuduino.ino | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | /*
Analog input, analog output, serial output
Reads an analog input pin, maps the result to a range from 0 to 255
and uses the result to set the pulsewidth modulation (PWM) of an output pin.
Also prints the results to the serial monitor.
The circuit:
* potentiometer connected to analog pin 0.
Center pin o... | Add pump and level sensor and securities | Add pump and level sensor and securities
| Arduino | mit | baptistelabat/prevyu,baptistelabat/prevyu,baptistelabat/prevyu |
4095b5fa5585cf0f4cd99bf75ceb9aa329b53beb | examples/ttn-otaa-network-time/ttn-otaa-network-time.ino | examples/ttn-otaa-network-time/ttn-otaa-network-time.ino | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever... | Use explicit cast to avoid compiler errors | Use explicit cast to avoid compiler errors
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
2263c84c7a910474c0e2b8b5ab96c91b49aea910 | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
// temperature related setup
#define DHTPIN 2 // Humidity and temperature sensor pin
#define DHTTYPE DHT22 // Model DHT 22 (AM2302)
DHT airSensor(DHTPIN, DHTTYPE); // setup DHT sensor
float airHumidity;
float airTemperature;
// light r... | /*
Arduino based self regulating kitchen garden
*/
#include <SHT1x.h>
#include <DHT.h>
// soil related setup
#define soilDataPin 3
#define soilClockPin 4
SHT1x soilSensor(soilDataPin, soilClockPin);
float soilTemperature;
float soilMoisture;
// air temperature related setup
#define DHTPIN 2 // Humidity an... | Add SHT10 sensor and fix some setup | Add SHT10 sensor and fix some setup
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden |
239bc8b1ea3222f59288183f24db64b56830384a | Mqtt/mqtt.ino | Mqtt/mqtt.ino | #include <ESP8266WiFi.h>
#include <DHT.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#define WLAN_SSID ""
#define WLAN_PASS ""
#define arduino_pubsub " #1 SUBSCRIPTION" //
#define arduino_response " #1 RESPONSE" //
#define arduino_temp "#2 PUBLISH " // ... | #include <ESP8266WiFi.h>
#include <DHT.h>
#include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h"
#define WLAN_SSID ""
#define WLAN_PASS ""
#define arduino_pubsub " #1 SUBSCRIPTION" //
#define arduino_response " #1 RESPONSE" //
#define arduino_temp "#2 PUBLISH " // ... | Update mqtt.ino | Update mqtt.ino | Arduino | mit | MRuniversee/Project_AC |
9afc4381813c663448ebbddf359b5cef1082954e | camera_box/camera_box.ino | camera_box/camera_box.ino | #include <Wire.h>
#include <stdlib.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#define DHTPIN 4 // DHT Temp & Humidity Pin
#define DHTTYPE DHT22 // DHT 22 (AM2302)
int CAM_01_PIN = 5;
int CAM_02_PIN = 6;
int led_pin = 13;
int led_value = LOW;
int counter = 0; // Simple counter
... | #include <Wire.h>
#include <stdlib.h>
#include <Adafruit_MMA8451.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#define DHTPIN 4 // DHT Temp & Humidity Pin
#define DHTTYPE DHT22 // DHT 22 (AM2302)
int CAM_01_PIN = 5;
int CAM_02_PIN = 6;
int led_pin = 13;
int led_value = LOW;
Adafruit_MMA8451 mma = Adafruit_MMA... | Use millis() intead of counter | Use millis() intead of counter
| Arduino | mit | panoptes/POCS,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,AstroHuntsman/POCS,AstroHuntsman/POCS,panoptes/PACE,AstroHuntsman/POCS |
23265c3ea584fa5fb2eaa138e78a1e983ec8dca2 | Arduino/MainWithEncoderMotor/MainWithEncoderMotor.ino | Arduino/MainWithEncoderMotor/MainWithEncoderMotor.ino | #include <Makeblock.h>
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Servo.h> // include the Servo library for grabbing
MePort port(PORT_1);
MeEncoderMotor motorLeft(0x8, 0x00); // Motor at PORT_2, slot1
MeEncoderMotor motorRight(0x8, 0x01); // motor at PORT_2, slot2
Servo arm; ... | #include <Makeblock.h>
#include <Arduino.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Servo.h> // include the Servo library for grabbing
MePort port(PORT_1);
MeEncoderMotor motorLeft(0x8, 0x00); // Motor at PORT_2, slot1
MeEncoderMotor motorRight(0x8, 0x01); // motor at PORT_2, slot2
Servo arm; ... | Build a method to go straight for certain meters | Build a method to go straight for certain meters
| Arduino | mit | Beck-Sisyphus/Robocup,Beck-Sisyphus/Robocup,Beck-Sisyphus/Robocup,Beck-Sisyphus/Robocup,Beck-Sisyphus/Robocup |
818889ac56479bee62536bc01f2b916a38fe3e0b | Sleepy_sender/Sleepy_sender.ino | Sleepy_sender/Sleepy_sender.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
volatile uint8_t f_wdt=0;
ISR(WDT_vect)
{
f_wdt++;
}
void enterSleep(void)
{
set_sleep_mode(SLEEP_MODE_PWR_SAVE); /* EDIT: could also use SLEEP_MODE_PWR_DOWN for low... | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
volatile uint8_t f_wdt=0;
ISR(WDT_vect)
{
f_wdt++;
}
void enterSleep(void)
{
set_sleep_mode(SLEEP_MODE_PWR_SAVE); /* EDIT: could also use SLEEP_MODE_PWR_DOWN for low... | update Sleepy sender | update Sleepy sender
| Arduino | mit | TomHodson/sensors,TomHodson/sensors |
3d689ae2ef46e84af72ac2bc0025317726c311d5 | 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 |
45bc76af8b194a33a977b5ccd75e438b45c68149 | mouse_rat.ino | mouse_rat.ino | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM9DS0.h>
#include "Adafruit_MPR121.h"
#define LSM9DS0_XM_CS 10
#define LSM9DS0_GYRO_CS 9
#define LSM9DS0_SCLK 13
#define LSM9DS0_MISO 12
#define LSM9DS0_MOSI 11
// LSM9DS0, use I2C, ID #1005
Adafruit_LSM9DS0 lsm = Adafruit_LSM9DS0(10... | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM9DS0.h>
#include "Adafruit_MPR121.h"
#define LSM9DS0_XM_CS 10
#define LSM9DS0_GYRO_CS 9
#define LSM9DS0_SCLK 13
#define LSM9DS0_MISO 12
#define LSM9DS0_MOSI 11
// LSM9DS0, use I2C, ID #1005
Adafruit_LSM9DS0 lsm = Adafruit_LSM9DS0(10... | Adjust accelerometer sensitivity | Adjust accelerometer sensitivity
| Arduino | bsd-3-clause | dropofwill/mouse-rat |
02ba9287e50ab1f30c0ce94fbac550f4a4884a51 | examples/basic/basic.ino | examples/basic/basic.ino | #include <TM16xxRAW.h>
//data_pin,clock_pin,strobe_pin
TM16xxRAW tm(3,4,5);
void setup() {
//optional:brightness(0:7),displayOn(0=off,1=on)
tm.begin();
//column,row,state(0,1)
tm.setLed(0,1,1);
}
void loop() {
byte col = random(0,8);
byte row = random(0,8);
byte val = 0;
if (bitRead(tm.getColumn(col),row)... | #include <TM16xxRAW.h>
//data_pin,clock_pin,strobe_pin
TM16xxRAW tm(3,4,5);
void setup() {
//optional:brightness(0:7),displayOn(0=off,1=on)
tm.begin();
//column,row,state(0,1)
tm.setLed(0,1,1);
}
void loop() {
randomLed2();
}
//this use column,row led addressing
void randomLed1(){
byte col = random(0,... | Update basic.ino | Update basic.ino | Arduino | mit | sumotoy/TM16xxRAW |
0315bfe0b9e428c146de458771a83d7c83f4e36d | Testing/Motor_Driver_2_Test/Motor_Driver_2_Test.ino | Testing/Motor_Driver_2_Test/Motor_Driver_2_Test.ino | int E1 = 6; //Speed 1
int M1 = 7; //Direction 1
int E2 = 5; //Speed 2
int M2 = 4; //Direction 2
//OUTPUT HIGH for Forward
//OUTPUT LOW for Reverse
void setup()
{
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop()
{
digitalWrite(M1,HIGH);
digitalWrite(M2,HIGH)... | int E1 = 6; //Speed 1 RIGHT MOTOR
int M1 = 7; //Direction 1 RIGHT MOTOR
int E2 = 5; //Speed 2 LEFT MOTOR
int M2 = 4; //Direction 2 LEFT MOTOR
//OUTPUT HIGH for Forward
//OUTPUT LOW for Reverse
void setup()
{
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop()
{
digit... | Update Motor_Driver_2_Test.ino | Update Motor_Driver_2_Test.ino | Arduino | mit | RoCTCNJ/FireFighter |
8055987ba4cc964ea6e996db40ec83de70ece1ec | lcd_temperature_display.ino | lcd_temperature_display.ino | // vim: ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <rtuck... | // vim: ts=2 et
/*
*
* LCD Temperature Display
*
* Assumes:
* LM35 temperature device (analog pin 0)
* 16x2 display connected to WickedDevices LCD shield
* Pushbutton on digital pin 7 held high by pin 8
* Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively
*
* Ryan Tucker <rtuck... | Revert crazy memory-saving technique | Revert crazy memory-saving technique
| Arduino | mit | rtucker/lcd_temperature_display |
ec81d8602c9fba07d3384c7129eb1cbea55576c6 | firmware/firmware.ino | firmware/firmware.ino | // based on https://github.com/fogleman/xy/tree/master/firmware
#include <EEPROM.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <Wire.h>
// data stored in eeprom
static union{
struct{
char name[8];
unsigned char motoADir;
unsigned char motoBDir;
unsigned char motorSwitch;
... | // based on https://github.com/fogleman/xy/tree/master/firmware
#include <EEPROM.h>
#include <Servo.h>
#include <SoftwareSerial.h>
#include <Wire.h>
// data stored in eeprom
static union{
struct{
char name[8];
unsigned char motoADir;
unsigned char motoBDir;
unsigned char motorSwitch;
... | Fix pen going down at the beginning of every run | Fix pen going down at the beginning of every run
Merge pull request #13 from jvolker/patch-1 | Arduino | mit | arnaudjuracek/xy |
bb9f6e0e3adf55fb500285a98b24d42e894e5175 | neurite.ino | neurite.ino | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Linkgo LLC
*
* 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, c... | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Linkgo LLC
*
* 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, c... | add command process | add command process
| Arduino | mit | linkgo/neurite,linkgo/neurite,linkgo/neurite,linkgo/neurite |
3d3f242887bb0df4f320db609e08ade950a7f702 | esp8266_160528_MPL115A2.ino | esp8266_160528_MPL115A2.ino | #include <Wire.h>
#include "lib_160602_calcAltitude.h"
#include "esp8266_160602_udpTxToLogger.h"
/*
* v0.8 2016 Jun. 26
* - tweak delay in loop() to have approximately 1 second in total
* v0.7 2016 Jun. 26
* - esp8266_160602_udpTxToLogger > increase connection retry from 3 to 6
* - esp8266_160602_udpTxToLog... | #include <Wire.h>
#include "lib_160602_calcAltitude.h"
#include "esp8266_160602_udpTxToLogger.h"
/*
* v0.8 2016 Jun. 26
* - modify UdpTxAltitude() to have bettern handling as csv format
* - tweak delay in loop() to have approximately 1 second in total
* v0.7 2016 Jun. 26
* - esp8266_160602_udpTxToLogger > i... | modify UdpTxAltitude() to have bettern handling as csv format | modify UdpTxAltitude() to have bettern handling as csv format
| Arduino | mit | yasokada/esp8266_160528_MPL115A2 |
fa1e8eafbd167391e8bfe089c50567bcf64425ee | firmware/examples/FastLedComparison/FastLedComparison.ino | firmware/examples/FastLedComparison/FastLedComparison.ino | #define SMARTMATRIX_ENABLED 1
#include "application.h"
#if (SMARTMATRIX_ENABLED == 1)
#include <SmartMatrix3.h>
#endif
#include "FastLED/FastLED.h"
FASTLED_USING_NAMESPACE;
#if (SMARTMATRIX_ENABLED == 1)
#define COLOR_DEPTH 24 // known working: 24, 48 - If the sketch uses type `rgb24` directl... | #define SMARTMATRIX_ENABLED 1
#include "application.h"
#if (SMARTMATRIX_ENABLED == 1)
#include "SmartMatrix3/SmartMatrix3.h"
#endif
#include "FastLEDSmartMatrix/FastLEDSmartMatrix.h"
FASTLED_USING_NAMESPACE;
#if (SMARTMATRIX_ENABLED == 1)
#define COLOR_DEPTH 24 // known working: 24, 48 - If t... | update library paths for Build and temporary FastLEDSmartMatrix | update library paths for Build and temporary FastLEDSmartMatrix
| Arduino | mit | pixelmatix/SmartMatrix-Photon-APA102,pixelmatix/SmartMatrix-Photon-APA102 |
b5fc4086fbbe8a058972aab76806bd6e773691c8 | arduino/servo_test/servo_test.ino | arduino/servo_test/servo_test.ino | #include <Servo.h>
Servo s1;
int PWMPIN = 2;
bool toggle = true;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
s1.attach(PWMPIN, 1, 2);
s1.write(0);
Serial.println("start");
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("live");
i... | #include <Servo.h>
#define PIN 2
#define PULSEMIN 1
#define PULSEMAX 1
Servo s1;
char buffer[128];
int8_t i = 0;
uint8_t speed = 0;
bool ready = false;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
s1.attach(PIN, PULSEMIN, PULSEMAX);
s1.write(90);
Serial.println("Enter a... | update arduino/servo_test to accept speed command over serial port | update arduino/servo_test to accept speed command over serial port
| Arduino | mit | fjctp/random_code,fjctp/random_code,fjctp/random_code,fjctp/random_code,fjctp/random_code,fjctp/random_code,fjctp/random_code |
67b39e3f48c963d9572b6b660808270371e1767e | peripherals/oled-dispay-sketch/oled-dispay-sketch.ino | peripherals/oled-dispay-sketch/oled-dispay-sketch.ino | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
// For OLED display
#include <U8g2lib.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
const int pinButton = 0;
void draw... | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
// For OLED display
#include <U8g2lib.h>
// For I2C
#include <Wire.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
const ... | Check I2C OLED display | oled-dispay-sketch.ino: Check I2C OLED display
Add a quick check at the beginning to verify if mini OLED
display has been attached by testing I2C address 3c. Keep
in mind that this is the default address of the supported
OLED display. Some other display models may have a
different I2C address.
Signed-off-by: Leon Ana... | Arduino | mit | AnaviTech/anavi-examples,AnaviTech/anavi-examples |
391c9108cdc1bed379cb33c62c9445c134508211 | examples/Widgets/LCD/LCD.ino | examples/Widgets/LCD/LCD.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 LCD.ino | Update LCD.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
f73be9cf0f729bcf8aaed0b89656371305e3be08 | examples/JsonFilterExample/JsonFilterExample.ino | examples/JsonFilterExample/JsonFilterExample.ino | // ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
//
// This example shows how to use DeserializationOpion::Filter
//
// https://arduinojson.org/v6/example/filter/
#include <ArduinoJson.h>
void setup() {
// Initialize serial port
Serial.begin(9600);
while (!Serial... | // ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
//
// This example shows how to use DeserializationOption::Filter
//
// https://arduinojson.org/v6/example/filter/
#include <ArduinoJson.h>
void setup() {
// Initialize serial port
Serial.begin(9600);
while (!Seria... | Fix typo. | Fix typo.
DeserializationOpion --> DeserializationOption | Arduino | mit | bblanchon/ArduinoJson,bblanchon/ArduinoJson,bblanchon/ArduinoJson |
0b4a2b8311a369de917b0aa9c86adead704faaaf | protoshield/mwsv3/mwsv3.ino | protoshield/mwsv3/mwsv3.ino | //SD card
//http://blog.oscarliang.net/sd-card-arduino/
#include <SD.h>
File sd;
//Gyro/compass SDA=A4 SCL=A5
//Removed as BMP180 sensor already uses the pins
#include <Wire.h>
//#include <HMC5883L.h>
//HMC5883L compass;
//Light garage lamp Sensor on A1
//int lightPin1 = 1;
// DS18B20 Temperature (+ 4.7kOhm resistor... | //SD card
//http://blog.oscarliang.net/sd-card-arduino/
#include <SD.h>
File sd;
//Gyro/compass SDA=A4 SCL=A5
//Removed as BMP180 sensor already uses the pins
#include <Wire.h>
//#include <HMC5883L.h>
//HMC5883L compass;
//Light garage lamp Sensor on A1
//int lightPin1 = 1;
// DS18B20 Temperature (+ 4.7kOhm resistor... | Clean up of Serial report for pySerial bridge | Clean up of Serial report for pySerial bridge | Arduino | unlicense | YannChemin/MWS,YannChemin/MWS,YannChemin/MWS,YannChemin/MWS,YannChemin/MWS,YannChemin/MWS |
da3a8c2bde2bb47d73cd4579a01a4e4808f9e624 | Arduino/Complete/src/src.ino | Arduino/Complete/src/src.ino | // Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC)
// for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See license.txt in the Sabertooth ard... | // Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC)
// for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html
// See license.txt in the Sabertooth ard... | Update links to library used | Update links to library used
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
f8b187cb3c41c4839b262428c8743e5d0c1f78b1 | examples/Widgets/LED/LED.ino | examples/Widgets/LED/LED.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 LED.ino | Update LED.ino | Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,flashvnn/blynk-library,CedricFinance/blynk-library,flashvnn/blynk-library,sstocker46/blynk-library,johan--/blynk-library,CedricFinance/blynk-library,radut/blynk-library,okhiroyuki/blynk-library,csicar/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,johan--/b... |
e88fc8a0d6977dac785c28d74be1b7b50a64dda8 | NeoPixelSwitchBox/NeoPixelSwitchBox.ino | NeoPixelSwitchBox/NeoPixelSwitchBox.ino | #include <Log.h>
#include <Potentiometer.h>
#include <Switch.h>
/*
Tasks
updateSpinKnob() should probably have a delta to allow for "close to center" to stop it
BUG (believe I fixed it): when calling stopBlinking, if the light is off, won't turn on because it won't be queried during updateBlinki... | #include <Log.h>
#include <Potentiometer.h>
#include <Switch.h>
/*
Tasks
Test fixes for:
updateSpinKnob() should probably have a delta to allow for "close to center" to stop it
BUG (believe I fixed it): when calling stopBlinking, if the light is off, won't turn on because it won't be que... | Initialize spin knob state at start, so that the toggle will work. | Initialize spin knob state at start, so that the toggle will work.
| Arduino | bsd-2-clause | llebron/arduino,llebron/arduino,llebron/arduino |
5d81b7f41294f4d53b1de92ba3a729dc8db5b6f4 | shipStation/lbcc_ship_stepper/lbcc_ship_stepper.ino | shipStation/lbcc_ship_stepper/lbcc_ship_stepper.ino | #include <SoftwareSerial.h>
#include <Wire.h>
#include <SPI.h>
#include <TinyGPS++.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
#include <math.h>
#define DEBUGGING true
#define GPSBAUD 9600
static const uint8_t RXPin = 8, TXPin = 7;
uint32_t gpsTimer = millis();
uint32_t ... | #include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <AccelStepper.h>
#include <math.h>
#include <SoftwareSerial.h>
#include <SPI.h>
#include <TinyGPS++.h>
#include <utility/imumaths.h>
#include <Wire.h>
#define DEBUGGING true
#define GPSBAUD 9600
static const uint8_t RXPin = 8, TXPin = 7;
uint32_t gpsT... | Add stepper outputs to arduino code. | Add stepper outputs to arduino code.
| Arduino | mit | LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.