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 |
|---|---|---|---|---|---|---|---|---|---|
55bee8f4674f0a6c8ad8aa2548fe286b86206485 | AndroidThings/arduino/arduino.ino | AndroidThings/arduino/arduino.ino | #include <Adafruit_NeoPixel.h>
#define PIXELS_DATA_PIN 2
#define sp Serial.print
#define spln Serial.println
const int LEDS_COUNT = 144;
const int LEDS_SIDE = 12;
const char LED_SEPARATOR = ',';
const char START = '/';
const char END = '!';
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(LEDS_COUNT, PIXELS_DATA_PI... | #include <Adafruit_NeoPixel.h>
#define PIXELS_DATA_PIN 2
#define sp Serial.print
#define spln Serial.println
const int LEDS_COUNT = 144;
const int LEDS_SIDE = 12;
const char LED_SEPARATOR = ',';
const char START = '/';
const char RED = 'r';
const char GREEN = 'g';
const char BLUE = 'b';
const char END = '!';
Ad... | Update Arduino sketch to receive optional RGB triplet before on LEDs sequence | Update Arduino sketch to receive optional RGB triplet before on LEDs sequence
| Arduino | apache-2.0 | danybony/word-clock,danybony/word-clock,danybony/word-clock,danybony/word-clock |
8702afc72ca53ad441f9012afaaec81076b8aa41 | projects/RF12_Yun_DataLogger/RF12_Yun_DataLogger.ino | projects/RF12_Yun_DataLogger/RF12_Yun_DataLogger.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
//
// Blink LED #13 for each package received
//
#incl... | Reduce cost of time stamping by factor 4 | Reduce cost of time stamping by factor 4
| Arduino | mit | 473856/Lupinino,473856/Lupinino,473856/Lupinino,473856/Lupinino |
c2897e684571e72de0f690196093fed3f305289b | code/magnetometer.ino | code/magnetometer.ino | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1// to be filled after calibration
#define M2
#define M3
#define M4
#define M5
#define M6
#define M7
#define M8
#define M9
#define B1
#define B2
#defin... | #define HMC5883_ADDRESS 0x1E
#define MODE_ADDRESS 0x02
#define DEC_ANGLE 0.5 //in degrees
#define NUM_AXIS 3
#define XAXIS 0
#define YAXIS 1
#define ZAXIS 2
#define M1 0.988692
#define M2 -0.005989
#define M3 -0.014164
#define M4 -0.005989
#define M5 1.048870
#define M6 -0.023919
#define M7 -0.014164
#define M8 -0.02... | Update magnetometer.ino | Update magnetometer.ino | Arduino | unlicense | IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK |
70038b8000c6c47c60e53fd93b179002af7438dd | examples/adsr/adsr.ino | examples/adsr/adsr.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Fix naming of member variables. | Fix naming of member variables.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
d1a8fefd22748eb0c48f74e8be4243e15fcd94eb | examples/test/test.ino | examples/test/test.ino | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | /*
* #### ####
* #### ####
* #### #### ##
* #### #### ####
* #### ############ ############ #### ########## #### ... | Remove unused display flag. | Remove unused display flag.
| Arduino | bsd-3-clause | logickworkshop/du-ino,logickworkshop/du-ino |
5125fcc48fdb5bca5a63a2082fb02508198afd2d | esp8266-MagicMushroom.ino | esp8266-MagicMushroom.ino | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <PubSubClient.h>
#include <ArduinoOTA.h>
#include <Bounce2.h>
#include <ArduinoJson.h>
#include <vector>
#include "StaticResponse.h"
#include "settings.h"
char convertBuffer[MAX_FILENAME_LENGTH];
WiFiClient wifiClient;
PubSubClient mqttClient;
ESP8266We... | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <PubSubClient.h>
#include <ArduinoOTA.h>
#include <Bounce2.h>
#include <ArduinoJson.h>
#include <vector>
#include "StaticResponse.h"
#include "settings.h"
char convertBuffer[MAX_FILENAME_LENGTH];
WiFiClient wifiClient;
PubSubClient mqttClient;
ESP8266We... | Use static MQTT port | Use static MQTT port
| Arduino | mit | b4ckspace/MagicMushroom,b4ckspace/MagicMushroom,b4ckspace/MagicMushroom |
98927ce0cd24a35209882cff2c1bcac3f518dc21 | Arduino/TurquoiseBicuspidATTinyBLE.ino | Arduino/TurquoiseBicuspidATTinyBLE.ino | #include <SoftwareSerial.h>
// ATtiny settings: ATtiny85 @8MHz (internal oscillator; BOD disabled), burn bootloader
SoftwareSerial btSerial(1, 2); // ATtiny RX, TX: HM10 TX, RX
// Global
int TIME_START = 0;
int REDPIN = 0;
int GREPIN = 3;
int BLUPIN = 4;
// Defaults
int TYPE = 0;
int NUMB = 0;
int TIME = 0;
int REPT... | #include <SoftwareSerial.h>
// ATtiny settings: ATtiny85 @8MHz (internal oscillator; BOD disabled), burn bootloader
SoftwareSerial btSerial(2, 1); // ATtiny RX, TX: HM10 TX, RX
// ATtiny HM-10
// 2 -------> TX
// 1 -------> RX
// Global
int TIME_START = 0;
int REDPIN = 0;
int GREPIN = 3;
int BLUPIN = 4;
// Default... | Change pins for v2 PCB | Change pins for v2 PCB
| Arduino | mit | jareddlc/TurquoiseBicuspid |
be7640530a68bda10148c90e86ce2b904fdc6b4a | EmotionalClothing.ino | EmotionalClothing.ino | void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
| #include <WaveHC.h>
#include <WaveUtil.h>
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the information for the partition on the card
FatReader root; // This holds the information for the volumes root directory
WaveHC wave; // This is the only wave (audio) ... | Implement initial setup for Wave Shield | Implement initial setup for Wave Shield
| Arduino | mit | IgorGee/Emotional-Clothing |
97583f74d742d3ccee6d94e0d17915cd2c7c036a | arduino/sainsmart.ino | arduino/sainsmart.ino | #include <Servo.h>
#include "../calibration.hh"
#include "../controllerbase.hh"
// Humble Object connecting device to tested code http://xunitpatterns.com/Humble%20Object.html
class Controller: public ControllerBase
{
public:
Controller(void) {}
void setup(void) {
for (int drive=0; drive<DRIVES; drive++)
... | #include <Servo.h>
#include "../calibration.hh"
#include "../controllerbase.hh"
// Humble Object connecting device to tested code http://xunitpatterns.com/Humble%20Object.html
class Controller: public ControllerBase
{
public:
Controller(void) {}
void setup(void) {
for (int drive=0; drive<DRIVES; drive++)
... | Add gripper to Arduino code | Add gripper to Arduino code
| Arduino | bsd-2-clause | wedesoft/arduino-sainsmart,wedesoft/arduino-sainsmart |
ae077dcd62880136d1dd4a84e197024a40f20c25 | src/Gortobot_v3c.ino | src/Gortobot_v3c.ino | /* Gortobot v3c */
// TODO:
// battery classes, abstract, fake
// gps classes, abstract, fake
// get rid of warnings in build log
// merge back into master
// vref maxes at 4.096, do something about this
// Program Modes (config)
#include "configs/config.h"
// Includes
#include <EEPROM.h> // for saving the runNum af... | /* Gortobot v3c */
// TODO:
// battery classes, abstract, fake
// gps classes, abstract, fake
// vref maxes at 4.096, do something about this
// Program Modes (config)
#include "configs/config.h"
// Includes
#include <EEPROM.h> // for saving the runNum after each re-start
#include <Adafruit_FRAM_I2C.h> // for FRAM l... | Remove some comments | Remove some comments
| Arduino | mit | cgorton1313/gortobot,cgorton1313/gortobot |
4cfcda11291c06485e5f0ddba0362774709f135d | examples/mDNSResolver.ino | examples/mDNSResolver.ino | #include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <mDNSResolver.h>
#define WIFI_AP "my-wifi-ap"
#define WIFI_PASS "my-wifi-pass"
#define NAME_TO_RESOLVE "test.local"
using namespace mDNSResolver;
WiFiClient wifiClient;
WiFiUDP udp;
Resolver resolver(udp);
void setup() {
Serial.begin(115200);
... | #include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <mDNSResolver.h>
#define WIFI_AP "my-wifi-ap"
#define WIFI_PASS "my-wifi-pass"
#define NAME_TO_RESOLVE "test.local"
using namespace mDNSResolver;
WiFiClient wifiClient;
WiFiUDP udp;
Resolver resolver(udp);
void setup() {
Serial.begin(115200);
... | Print out correct AP name | Print out correct AP name | Arduino | mit | madpilot/mDNSResolver,madpilot/mDNSResolver |
d9012ea54a28ee4581eabc9109df84448b5b3202 | arduino/garage_controller.ino | arduino/garage_controller.ino | /* Garage door sensor and control code
*/
// constants won't change. Used here to
// set pin numbers:
const int ledPin = 13; // the number of the LED pin
const int sensorPin = 2; // the number of the LED pin
const int pirPin = 3; // the number of the LED pin
const int relayPin = 4; ... | /* Garage door sensor and control code
*/
// constants won't change. Used here to
// set pin numbers:
const int ledPin = 13; // the number of the LED pin
const int sensorPin = 2; // the number of the door sensor pin
const int pirPin = 3; // the number of the motion detector pin
const int re... | fix up comments | fix up comments
| Arduino | mit | rawdigits/garage-io |
abf302309c4e9a459e341f68da59b7581061b76c | examples/Boards_Bluetooth/ESP32_BLE/ESP32_BLE.ino | examples/Boards_Bluetooth/ESP32_BLE/ESP32_BLE.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | Add setDeviceName for ESP32 BLE | Add setDeviceName for ESP32 BLE
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
6935236c4424d83bc6f31be40c9c57713a908691 | routines.ino | routines.ino |
//format bytes as KB, MB or GB with indicator
String formatBytes( size_t bytes ) {
if ( bytes < 1024) {
return String( bytes ) + "B";
} else if ( bytes < ( 1024 * 1024 ) ) {
return String( bytes / 1024.0 ) + "KB";
} else if (bytes < ( 1024 * 1024 * 1024 ) ) {
return String( bytes / 1024.0 / 1024.0 ) ... |
//format bytes as KB, MB or GB with indicator
String formatBytes( size_t bytes ) {
if ( bytes < 1024) {
return String( bytes ) + "B";
} else if ( bytes < ( 1024 * 1024 ) ) {
return String( bytes / 1024.0 ) + "KB";
} else if (bytes < ( 1024 * 1024 * 1024 ) ) {
return String( bytes / 1024.0 / 1024.0 ) ... | Rename boolean IsDST to isDST. | Rename boolean IsDST to isDST.
Make isDST function more readable.
| Arduino | mit | CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2 |
7ff58b9a6afcc95e46cef98e3d7deacbc17395f9 | examples/raw/raw.ino | examples/raw/raw.ino | /*******************************************************************************
* Copyright (c) 2015 Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including,... | /*******************************************************************************
* Copyright (c) 2015 Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI Corporation
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they w... | Use runtime IQ inversion control in raw.ino | Use runtime IQ inversion control in raw.ino
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
ea1db05f56e3dce49db5f5ff67ac17d33c9e35c0 | arduino/control_power/control_power.ino | arduino/control_power/control_power.ino |
int pin_LED = 13;
int pin_button = 12;
int pin_shutdown = 9;
int pin_rpistat = 8;
int pin_relay = 3;
void setup() {
// put your setup code here, to run once:
pinMode(pin_LED,OUTPUT);
pinMode(pin_button,INPUT);
pinMode(pin_shutdown,OUTPUT);
pinMode(pin_rpistat,INPUT);
pinMode(pin_relay,OUTPUT);
... |
int pin_LED = 13;
int pin_button = 12;
int pin_shutdown = 9;
int pin_rpistat = 8;
int pin_relay = 3;
void setup() {
// put your setup code here, to run once:
pinMode(pin_LED,OUTPUT);
pinMode(pin_button,INPUT);
pinMode(pin_shutdown,OUTPUT);
pinMode(pin_rpistat,INPUT);
pinMode(pin_relay,OUTPUT);
... | modify comments | modify comments
| Arduino | mit | kishima/RaspiMusicServer,kishima/RaspiMusicServer |
bd78eb5ffa82e424f33fa12862abbd0ddc31c591 | examples/Ports/bmp085demo/bmp085demo.ino | examples/Ports/bmp085demo/bmp085demo.ino | // Ports demo, reads out a BMP085 sensor connected via I2C
// 2009-02-17 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
// 2010-05-22: added support for all resolution modes
// 2010-05-25: extended to also broadcast all readings over wireless
// 2010-06-17: add power saving logic, should reduce consump... | // Ports demo, reads out a BMP085 sensor connected via I2C
// 2009-02-17 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
// 2010-05-22: added support for all resolution modes
// 2010-05-25: extended to also broadcast all readings over wireless
// 2010-06-17: add power saving logic, should reduce consump... | fix for Arduino 1.0 | fix for Arduino 1.0
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
76f59a2720c3e1eabf6bb8de685e5f311ac812e7 | PushStart.ino | PushStart.ino | /*
Push Start
Arduino-based Keyless Ignition
for 97-01 Toyota Camry (XV20)
Designed by Kevin Abraham
*/
#include <AnalogTouch.h>
#define DEBUG 0
#define BUTTON_PRESS_THRESHOLD 500
#define pinACC 2
#define pinIG1 4
#define pinIG2 7
#define pinST2 8
#define pinCap A4
#define pinLed 10
// Slo... | /*
Push Start
Arduino-based Keyless Ignition
for 97-01 Toyota Camry (XV20)
Designed by Kevin Abraham
*/
#include <AnalogTouch.h>
#define DEBUG 0
#define BUTTON_PRESS_THRESHOLD 500
#define pinACC 2
#define pinIG1 4
#define pinIG2 7
#define pinST2 8
#define pinCap A4
#define pinLed 10
// Slo... | Decrease touch sensitivity | Decrease touch sensitivity
| Arduino | mit | abraha2d/PushStart |
e9de31b4279633e49b0690a129f738d7bf2545b9 | brotherKH930_arduino.ino | brotherKH930_arduino.ino | #include "brotherKH930.h"
PinSetup pins = kniticV2Pins();
BrotherKH930 brother(pins);
void setup() {
Serial.begin(115200);
Serial.println("Ready.");
}
int old_pos = 0;
void loop() {
Direction dir = brother.direction();
int pos = brother.position();
if (old_pos != pos) {
Serial.print("@");
Serial.... | #include "brotherKH930.h"
PinSetup pins = kniticV2Pins();
BrotherKH930 brother(pins);
void setup() {
Serial.begin(115200);
Serial.println("Ready.");
}
int old_pos = 0;
void loop() {
Direction dir = brother.direction();
int pos = brother.position();
if (old_pos != pos) {
old_pos = pos;
Serial.prin... | Update old_pos. | Update old_pos.
| Arduino | apache-2.0 | msiegenthaler/brotherKH930_arduino |
0454c7ba873ad663106e83b291708959810ad355 | Programmer.ino | 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... | Delete unused variables | Delete unused variables
| Arduino | mit | baruch/nRF24LE1_Programmer |
a307d97ef9a9478693cdcf9094caa0cfff8aed32 | cmdRHsens/src/sketch.ino | cmdRHsens/src/sketch.ino | // Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
// Dewpoint: http://www.dpcalc.org
#include <DHT.h>
#define DHTPIN 4 // what pin we're connected to
#define activityLED 13
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#d... | // Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
// Dewpoint: http://www.dpcalc.org
#include <DHT.h>
#define DHTPIN 4 // what pin we're connected to
#define activityLED 13
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#d... | add comma | add comma
| Arduino | mit | Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino |
932ed5a68f232f7bfd59043a9a82c3952d248fea | hardware/steppers/steppers.ino | hardware/steppers/steppers.ino | // Adafruit Motor shield library
// copyright Adafruit Industries LLC, 2009
// this code is public domain, enjoy!
#include <AFMotor.h>
// Connect a stepper motor with 48 steps per revolution (7.5 degree)
// to motor port #2 (M3 and M4)
AF_Stepper motor(48, 1);
void setup() {
Serial.begin(9600); // set up... | // Adafruit Motor shield library
// copyright Adafruit Industries LLC, 2009
// this code is public domain, enjoy!
#include <AFMotor.h>
// Connect a stepper motor with 48 steps per revolution (7.5 degree)
// to motor port #2 (M3 and M4)
AF_Stepper motor(48, 1);
void setup() {
Serial.begin(9600); // set up... | Add unipolar code | Add unipolar code | Arduino | mit | GemHunt/CoinSorter |
a6b2261b98f5d3126b40134fba88278557b40edc | telemetryBox.ino | telemetryBox.ino | #include "SparkFunBME280/SparkFunBME280.h"
BME280 mySensorA;
float tempF;
float pressure;
float RH;
#include "SparkFunMAX17043/SparkFunMAX17043.h"
// MAX17043 battery manager IC settings
float batteryVoltage;
float batterySOC;
bool batteryAlert;
#include "ThingSpeak/ThingSpeak.h"
//################### update these va... | #include "SparkFunBME280/SparkFunBME280.h"
BME280 mySensorA;
float tempF;
float pressure;
float RH;
#include "SparkFunMAX17043/SparkFunMAX17043.h"
// MAX17043 battery manager IC settings
float batteryVoltage;
float batterySOC;
bool batteryAlert;
#include "ThingSpeak/ThingSpeak.h"
//################### update these va... | remove my_devices arg in subscribe | remove my_devices arg in subscribe
MY_DEVICES wasn't working for me...bug | Arduino | mit | wordsforthewise/solar-powered-particle-photon-telemetry-and-automation,wordsforthewise/solar-powered-particle-photon-telemetry-and-automation,wordsforthewise/solar-powered-particle-photon-telemetry-and-automation |
e04715aeb90ad012f7033ecfe253a549b278e57a | test/ino-zmtp-test.ino | test/ino-zmtp-test.ino | #include "../src/ZMTP.h"
SYSTEM_MODE(MANUAL);
void setup() {
WiFi.on();
WiFi.connect();
waitUntil(WiFi.ready);
Particle.process();
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
ZMTPSocket dealer(DEALER);
// uint8_t address[4] ... | #include "../src/ZMTP.h"
SYSTEM_MODE(MANUAL);
void waitUntilReady(ZMTPSocket &socket) {
System.waitCondition(
[&]() {
// Removing this will crash the application, as socket.ready()
// returns true, but socket.recv() won't agree.
delay(100);
socket.update();
return socke... | Clean up embedded test code. | Refactor: Clean up embedded test code.
| Arduino | mit | Schoonology/ino-zmtp,Schoonology/ino-zmtp |
4ec3cae4a05836a85f1e727bd62721de1c613873 | arduino_slave_sensor/Temp_probe.ino | arduino_slave_sensor/Temp_probe.ino | #include <LowPower.h>
#include <DHT.h>
#define DHTPIN 2
#define DHTTYPE DHT11
#define DHTALIM 3
#define TRANSCEIVERALIM 4
DHT dht(DHTPIN, DHTTYPE);
int sleep_index=0;
int mote_addr = 69;
void setup() {
Serial.begin(9600);
dht.begin();
pinMode(DHTALIM, OUTPUT);
pinMode(TRANSCEIVERALIM, OUTPUT);
}
int sendD... | #include <LowPower.h>
#include <DHT.h>
#include <math.h>
#define DHTPIN 2
#define DHTTYPE DHT11
#define DHTALIM 3
#define TRANSCEIVERALIM 4
DHT dht(DHTPIN, DHTTYPE);
int sleep_index=0;
int mote_addr = 69;
void setup() {
Serial.begin(9600);
dht.begin();
pinMode(DHTALIM, OUTPUT);
pinMode(TRANSCEIVERALIM, OUT... | add exponential random backoff time | add exponential random backoff time
| Arduino | bsd-2-clause | st3rk/Cheap_WSN |
57e988ad460125b91edbf1e5edec164f901eb28c | lindukas/lindukas.ino | lindukas/lindukas.ino |
#define USE_GAZ_PWM 1
#include "pins.h"
#ifndef USE_GAZ_PWM
#include "Servo.h"
#endif
#include "lindukas.h"
#include "steering.h"
#include "line_follower.h"
#include "Bounce2.h"
#include "control.h"
Bounce button = Bounce();
//#include "gaz.h"
void setup() {
sendControl();
Serial.begin(115200);
Serial.p... |
#define USE_GAZ_PWM 1
#include "pins.h"
#ifndef USE_GAZ_PWM
#include "Servo.h"
#endif
#include "lindukas.h"
#include "steering.h"
#include "line_follower.h"
#include "Bounce2.h"
#include "control.h"
Bounce button = Bounce();
//#include "gaz.h"
uint32_t lineLastSeenTs = 0;
void setup() {
sendControl();
Ser... | Add line detection fixes to lindukas | Add line detection fixes to lindukas
| Arduino | apache-2.0 | Technariumas/smalsiukas,Technariumas/smalsiukas |
305c8ea95a0534cd6eba7185f45ff22e343754f8 | esp8266_dht11_oled.ino | esp8266_dht11_oled.ino | #include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <U8g2lib.h>
#include "wifi_creds.h"
#define FINAL 0
#if FINAL
#define DEBUG_PRINTLN(...)
#define DEBUG_PRINT(...)
#else
#define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__)
#define DE... | #include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <U8g2lib.h>
#include "wifi_creds.h"
#define FINAL 0
#if FINAL
#define DEBUG_PRINTLN(...)
#define DEBUG_PRINT(...)
#else
#define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__)
#define DE... | Add powersave code | Add powersave code
| Arduino | mit | slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled |
8d71690252c57aa587dc0bc1bdcb887b77fbcb0f | src/gateway/gateway.ino | src/gateway/gateway.ino | /* TODO
Expland list of command verbs:
1. State
2. Set
3. Timestamp
...
Add TopicStorage clearing method
*/
#include <SPI.h>
#include <RFM69.h>
#include <avr/pgmspace.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include "secure.h"
#include "config.h"
#include "defines.h"
#include <radioNode.h... | /* TODO
Expland list of command verbs:
1. State
2. Set
3. Timestamp
...
Add TopicStorage clearing method
*/
#include <SPI.h>
#include <RFM69.h>
#include <avr/pgmspace.h>
#include <PubSubClient.h>
#include <Ethernet.h>
#include "secure.h"
#include "config.h"
#include "defines.h"
#include <radioNode.h... | Send state set to switchedToggle | Send state set to switchedToggle
| Arduino | mit | Jaidan/jaidan-hab,Jaidan/jaidan-hab |
8f3d0b7dcf8b058d33840280e0f53ad26f7ab51c | arduino/sketch_switch/sketch_switch.ino | arduino/sketch_switch/sketch_switch.ino | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
//#include <PWM.h>
#define MSG_TYPE_UP 0x01
#define MSG_TYPE_DOWN... | /* serial data format:
header:
flag: 1 byte, 0xaa, filter out debug message
type: 1 bytes, 1: upstream, 2: downstream
body length: 2 bytes, network byte order
body:
json data from yunba service
*/
#include <ArduinoJson.h>
//#include <PWM.h>
#define MSG_TYPE_UP 0x01
#define MSG_TYPE_DOWN... | Delete some codes 2 | Delete some codes 2
| Arduino | mit | yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice |
1e4f91b28a1ca959ca434d5d4d5a50a57264fabd | tank/src/sketch.ino | tank/src/sketch.ino | /*
Arduinoで戦車を動かすためのプログラム
author:4869 */
#include<Servo.h>
//定数宣言
#define MAX 250
#define NOM 100
//上の回線部分
const int Turn_A = 2;
const int Turn_B = 3;
//右モーター
const int Right_A = 4;
const int Right_B = 5;
const int Right_PWM = 6; //速度調整用のアナログピン
//左モーター
const int Left_PWM = 11;
const int Left_A = 12;
const int Left... | /*
Arduinoで戦車を動かすためのプログラム
author:4869 */
#include<Servo.h>
//定数宣言
#define MAX 250
#define NOM 100
//上の回線部分
const int Turn_A = 2;
const int Turn_B = 3;
//右モーター
const int Right_A = 4;
const int Right_B = 5;
const int Right_PWM = 6; //速度調整用のアナログピン
//左モーター
const int Left_PWM = 11;
const int Left_A = 12;
const int L... | update tank.ino | update tank.ino
| Arduino | mit | sh4869/TankGame |
c093ad6efbaaf500392c7d06f5cbcd71febfb428 | src/src.ino | src/src.ino | #include <SoftwareSerial.h>
#include <Adafruit_GPS.h>
extern "C" {
#include "lcd.h"
#include "haversine.h"
}
#define GPSSerial Serial1
#define USBSerial Serial
#define BUT_STAR 3
#define BUT_BLUE 7
#define GPSECHO true
#define MEAN_EARTH_RADIUS 6371e3
#define M_TO_FT 3.28084
Adafruit_GPS GPS(&GPSSerial);
Hardwar... | #include <SoftwareSerial.h>
#include <Adafruit_GPS.h>
extern "C" {
#include "lcd.h"
#include "haversine.h"
}
#define GPSSerial Serial1
#define USBSerial Serial
#define GPSECHO true
#define MEAN_EARTH_RADIUS 6371e3
#define M_TO_FT 3.28084
Adafruit_GPS GPS(&GPSSerial);
HardwareSerial mySerial = Serial1;
volatile int... | Add working button ISRs and simple debugging code for on/off | Add working button ISRs and simple debugging code for on/off
| Arduino | mit | sebluy/gps-tracker-arduino,sebluy/gps-watch,sebluy/gps-tracker-arduino,sebluy/gps-watch |
2d6fb74006fa6a7656e3656b4835bd6182526580 | SonoffBoilerplate.ino | SonoffBoilerplate.ino | /*
1MB flash sizee
sonoff header
1 - vcc 3v3
2 - rx
3 - tx
4 - gnd
5 - gpio 14
esp8266 connections
gpio 0 - button
gpio 12 - relay
gpio 13 - green led - active low
gpio 14 - pin 5 on header
*/
#define SONOFF_BUTTON 0
#define SONOFF_INPUT 14
#define ... | /*
1MB flash sizee
sonoff header
1 - vcc 3v3
2 - rx
3 - tx
4 - gnd
5 - gpio 14
esp8266 connections
gpio 0 - button
gpio 12 - relay
gpio 13 - green led - active low
gpio 14 - pin 5 on header
*/
#define SONOFF_BUTTON 0
#define SONOFF_INPUT 14
#define ... | Add minor tweaks | Add minor tweaks
| Arduino | mit | rossbeazley/SonoffBoilerplate,rossbeazley/SonoffBoilerplate,rossbeazley/SonoffBoilerplate,rossbeazley/SonoffBoilerplate,rossbeazley/SonoffBoilerplate |
8671944e933dbf8a11d4f2158c434c7b3d8d2691 | 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(){
if (digitalRead(3) == HIGH){
Serial.write("ON");
Serial.pr... | #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(){
if (digitalRead(3) == HIGH){
Serial.write("ON");
Serial.pr... | Update Docking.ino | Update Docking.ino | Arduino | mit | WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS,WeirdCoder/LilyPadOS |
f54ae7fff2687991cb7619c1b902bf8d5502d12d | paperweight/Paperweight/Paperweight.ino | paperweight/Paperweight/Paperweight.ino | const int PIN_DATA = 4;
const int PIN_LATCH = 3;
const int PIN_CLOCK = 2;
byte arrivalStatus = 1;
void setup() {
pinMode(PIN_DATA, OUTPUT);
pinMode(PIN_CLOCK, OUTPUT);
pinMode(PIN_LATCH, OUTPUT);
}
void loop() {
digitalWrite(PIN_LATCH, LOW);
shiftOut(PIN_DATA, PIN_CLOCK, MSBFIRST, arrivalStatus);... | const int PIN_DATA = 4;
const int PIN_LATCH = 3;
const int PIN_CLOCK = 2;
void setup() {
//Initialize Shift register
pinMode(PIN_DATA, OUTPUT);
pinMode(PIN_CLOCK, OUTPUT);
pinMode(PIN_LATCH, OUTPUT);
//Initialize Serial Port
Serial.begin(9600);
}
void loop() {
//Wait for a single byte
... | Read data from serial port | Read data from serial port
read single byte from serial port, use that to update the LEDs.
| Arduino | unlicense | PiJoules/PhillyCodeFest2016,PiJoules/Septa-Notifier,PiJoules/PhillyCodeFest2016,PiJoules/PhillyCodeFest2016,PiJoules/Septa-Notifier,PiJoules/Septa-Notifier,PiJoules/PhillyCodeFest2016,PiJoules/Septa-Notifier |
b40ccbb508b3157d06eca6c59481c910fa4e340b | onboard_controller/onboard_controller.ino | onboard_controller/onboard_controller.ino | #include <math.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
//make sure these match on the receiving end
#define MARKER_LAT 0xB
#define MARKER_LON 0xC
#define MARKER_ALT 0xD
#define MARKER_FLAG 0xE
//Payload variables
#define MAX_BUF 16 // Maximum payload size
int buf_size; //actual size of buffer
byte*... | #include <math.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
//debug macros
#define debug //print debug info to console
#define fakeGPS //fake the presence of a gps
//make sure these match on the receiving end
#define MARKER_LAT 0xFB
#define MARKER_LON 0xFC
#define MARKER_ALT 0xFD
#define MARKER_FLAG 0xFE
... | add macros for debug mode and faking gps presence for testing remove payload struct | add macros for debug mode and faking gps presence for testing
remove payload struct
| Arduino | mit | CURocketry/LaunchVehicleController2015,CURocketry/LaunchVehicleController |
ca5d03bd17eac848fe3d1a578cec7e9e632f0e7d | hardware/arduino_code/main/sensor.ino | hardware/arduino_code/main/sensor.ino | unsigned long restartPressed = 0;
const short RESTART_DURATION = 5000;
short threshold = 0;
byte hasMailPrevious = 0;
WiFiClient client;
void sensorSetup() {
pinMode(13, INPUT);
WiFi.mode(WIFI_STA);
Serial.println("Calibrating...");
short value;
for(int i = 0; i < 20; i++)
{
value = system_adc_read();... | #include <algorithm>
unsigned long restartPressed = 0;
const short RESTART_DURATION = 5000;
short threshold = 0;
byte hasMailPrevious = 0;
WiFiClient client;
const byte MAX_SAMPLES = 21;
short values[MAX_SAMPLES] = {0};
byte _currentIndex = 0;
byte currentIndex()
{
return (_currentIndex = (_currentIndex + 1) % MAX_... | Implement median filter for sensor values | Implement median filter for sensor values
| Arduino | mit | knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal |
ee2af45bf474ae6e6f791d0b57bb60525f40c8f6 | dragino/sketch_reco.ino | dragino/sketch_reco.ino | #include <SPI.h>
#include <PubSubClient.h>
#include <YunClient.h>
#include <string.h>
int out2 = 2;
int out3 = 3;
int out4 = 4;
int out6 = 6;
char message_buff[100];
////Please here paste info from "devinfo"////////////////
#define IOTUSERNAME "ioioioioio"
#define IOTPASSWORD "pppppppp"
#define IOTDEVICE "iiiiiiiii"... | //Hello, this is a sketch to get remote control to your dragino device by bridge mode
//The original source and Pubsubclient code comes from:
//https://github.com/knolleary/pubsubclient
//this is a modified sketch from those repository
//
//Este es un sketch de prueba para tomar control remoto de su dispositivo dragin... | Update sketch_reco.ino | Update sketch_reco.ino | Arduino | apache-2.0 | redlibre/iot_platform |
91234395d3d4711ba19ec8677fda802a0eb504b7 | tests/BlynkBuildTest/BlynkBuildTest.ino | tests/BlynkBuildTest/BlynkBuildTest.ino | /**************************************************************
* This is just a test of Blynk library build in Arduino IDE
*
* You should NOT flash this program
* to your hardware or try to run it.
*
**************************************************************/
#if defined(ARDUINO_AVR_GEMMA) \... | /**************************************************************
* This is just a test of Blynk library build in Arduino IDE
*
* You should NOT flash this program
* to your hardware or try to run it.
*
**************************************************************/
#if defined(ARDUINO_AVR_GEMMA) \... | Fix indent | Fix indent
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
2864970e172a13ade6941d2994c65a01c17e87d5 | ksp-gegi/ksp-gegi.ino | ksp-gegi/ksp-gegi.ino |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// dł kabelków 15-20cm
// diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu
// potencjometr: niebieski z cza... |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// dł kabelków 15-20cm
// diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu
// potencjometr: niebieski z cza... | replace for-loops by range for loop | replace for-loops by range for loop
| Arduino | mit | ytmytm/ksp-gegi |
f0655fad5a1d769abdfd6c48a8a6465e525be3fc | arduino.ino | arduino.ino | #include <EEPROM.h>
#include "SparkFunBME280.h"
#include "Wire.h"
#include "SPI.h"
// MANUAL SETUP
#define INTERNAL_EEPROM_SIZE 1024 // Internal EEPROM Max Size.
#define EXTERNAL_EEPROM_SIZE 64000 // External EEPROM Max Size.
#define EXTERNAL_EEPROM_ADDRS 0x50 // External EEPROM I2C Address.
#define INDICATOR_LED... | #include <EEPROM.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP280.h>
#include "Wire.h"
#include "SPI.h"
// MANUAL SETUP
#define INTERNAL_EEPROM_SIZE 1024 // Internal EEPROM Max Size.
#define EXTERNAL_EEPROM_SIZE 64000 // External EEPROM Max Size.
#define EXTERNAL_EEPROM_ADDRS 0x50 // External EEPROM I2C ... | Update Library for Ultra High Resolution Mode. | Update Library for Ultra High Resolution Mode. | Arduino | mit | EquipeRocket/arduino-altimeter |
a33b4e620e57c5a4f21ae8a8c9306c33085a234a | ws_bm_rtc.ino | ws_bm_rtc.ino | #include <Wire.h>
#include "Adafruit_INA219.h"
#include "RTClib.h"
RTC_DS1307 rtc;
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x41);
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
void setup () {
while (!Serial); // will pause Zero, Leonardo,... | #include <Wire.h>
#include "Adafruit_INA219.h"
#include "RTClib.h"
RTC_DS1307 rtc;
Adafruit_INA219 ina219_A;
Adafruit_INA219 ina219_B(0x41);
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
void setup () {
//while (!Serial); // will pause Zero, Leonard... | use 57600 | use 57600
Signed-off-by: Robert Nelson <d6c41255011d14bfa93d8562b946ca186cfa0c7b@gmail.com>
| Arduino | mit | eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation |
b55a37214c151e623a38e93135db49096a6a9c50 | examples/Sgp4Predictor/Sgp4Predictor.ino | examples/Sgp4Predictor/Sgp4Predictor.ino | #include <Sgp4.h>
#include <Ticker.h>
Sgp4 sat;
unsigned long unixtime = 1458950400;
int timezone = 12 ; //utc + 12
int year; int mon; int day; int hr; int min; double sec;
void Predict(int many){
passinfo overpass; //structure to store overpass info
sat.initpredpoint( unixtime... | #include <Sgp4.h>
#include <Ticker.h>
Sgp4 sat;
unsigned long unixtime = 1458950400;
int timezone = 12 ; //utc + 12
int year; int mon; int day; int hr; int minute; double sec;
void Predict(int many){
passinfo overpass; //structure to store overpass info
sat.initpr... | Fix example | Fix example | Arduino | mit | Hopperpop/Sgp4-Library,Hopperpop/Sgp4-Library |
e291496e69c12a236619811e4cba39ec2a1cb27c | Arduino/SimpleXbeeRX64.ino | Arduino/SimpleXbeeRX64.ino | /**
* \author Michael Bartling bart4128@tamu.edu
* \author Rabih Abifaraj
* \date 11/4/2013
* \version 1.0
*
* \copyright The MIT License (MIT)
*/
#include "./../Xbee/Xbee_wifi_RX_API.h"
#include <Xbee.h>
#define BAUD_RATE 9600
_apiFrameUnion * apiFramePtr;
_apiFrame64bit * apiFrame64bitPtr;
/*Declare se... | /**
* \author Michael Bartling bart4128@tamu.edu
* \author Rabih Abifaraj
* \date 11/4/2013
* \version 1.0
*
* \copyright The MIT License (MIT)
*/
#include "./../Xbee/Xbee_wifi_RX_API.h"
#include <Xbee.h>
#define BAUD_RATE 9600
_apiFrameUnion * apiFramePtr;
_apiFrame64bit * apiFrame64bitPtr;
/*Declare se... | Update SimpleXbeeRX64.ino | Update SimpleXbeeRX64.ino | Arduino | mit | mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design,mbartling/TAMU_senior_design |
0963059618c344e40471a662ac961767a8d711b5 | SimpleClientDHTSSL.ino | SimpleClientDHTSSL.ino | /* WeMos DHT Server
*
* Connect to WiFi and respond to http requests with temperature and humidity
*
* Based on Adafruit ESP8266 Temperature / Humidity Webserver
* https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver
*
* Depends on Adafruit DHT Arduino library
* https://github.com/adafruit/DH... | #define MOONBASE_BOARD
/* WeMos DHT Server
*
* Connect to WiFi and respond to http requests with temperature and humidity
*
* Based on Adafruit ESP8266 Temperature / Humidity Webserver
* https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver
*
* Depends on Adafruit DHT Arduino library
* https:/... | Add support for Moonbase board | Add support for Moonbase board
| Arduino | mit | ValleyCommunityWorkspace/indoor-weather-station-v1,ValleyCommunityWorkspace/indoor-weather-station-v1,ValleyCommunityWorkspace/indoor-weather-station-v1 |
dd2c231812318262fdb6dbc4c94b3ce16aea4b94 | software/XTendPayloadTeensy/XTendPayloadTeensy.ino | software/XTendPayloadTeensy/XTendPayloadTeensy.ino | /*
* Serial: Serial Monitor through USB
* Serial1: GPS and LOGGER
* Serial2: RF IN/OUT
*/
#include <TimeLib.h>
const boolean DEBUG = false;
const int GPSLEN = 100; //max length of GPS output to be sent
char pkt_buffer[200];
boolean sentencePending, sentenceRdy, sentenceBufRdy;
boolean txFlag, help;
char sentence[... | /*
* Serial: Serial Monitor through USB
* Serial1: GPS and LOGGER
* Serial2: RF IN/OUT
*/
#include <TimeLib.h>
const boolean DEBUG = false;
const int GPSLEN = 100; //max length of GPS output to be sent
char pkt_buffer[200];
boolean sentencePending, sentenceRdy, sentenceBufRdy;
boolean txFlag, help;
char sentence[... | Add utility functions. | Add utility functions.
| Arduino | mit | AdlerFarHorizons/Transceiver,AdlerFarHorizons/Transceiver |
e2d0f87918144ae293ce0e8b891b0bd81e3deb2e | examples/set_mask_filter_recv/set_mask_filter_recv.ino | examples/set_mask_filter_recv/set_mask_filter_recv.ino | // demo: CAN-BUS Shield, receive data with interrupt mode, and set mask and filter
//
// when in interrupt mode, the data coming can't be too fast, must >20ms, or else you can use check mode
// loovee, 2014-7-8
#include <SPI.h>
#include "mcp_can.h"
/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERI... | // demo: CAN-BUS Shield, receive data with interrupt mode, and set mask and filter
//
// when in interrupt mode, the data coming can't be too fast, must >20ms, or else you can use check mode
// loovee, 2014-7-8
#include <SPI.h>
/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERIAL SerialUSB
#else
... | Complete canbus set_mask_filter_recv example | Complete canbus set_mask_filter_recv example
| Arduino | mit | Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield |
341eda6c55581729e6b94a4425bf6caff92e3824 | projects/ask/stm32f1init/stm32f1init.ino | projects/ask/stm32f1init/stm32f1init.ino | // Initialise an STM32F103 with a boot loader, embedded in this code.
// MIT license, see https://github.com/jeelabs/embello -jcw, 2015-11-10
#include <Arduino.h>
#ifdef __AVR_ATmega328P__ // use a modified SoftwareSerial implementation
#include "ParitySerial.h"
#define RX_PIN 4 // Arduino Digital.4, ATmega ... | // Initialise an STM32F103 with a boot loader, embedded in this code.
// MIT license, see https://github.com/jeelabs/embello -jcw, 2015-11-10
#include <Arduino.h>
#ifdef __AVR_ATmega328P__ // use a modified SoftwareSerial implementation
#include "ParitySerial.h"
#define RX_PIN 4 // Arduino Digital.4, ATmega ... | add some comments | add some comments
| Arduino | unlicense | tve/embello,tve/embello,smurfix/embello,jeelabs/embello,jeelabs/embello,smurfix/embello,smurfix/embello,jeelabs/embello,jeelabs/embello,jeelabs/embello,tve/embello |
dc563e949f254fe1295f45213c5096e2838968dc | firmware/examples/retentive-memory.ino | firmware/examples/retentive-memory.ino | int led = D7; // The on-board LED
int oneshot = 0;
void setup() {
pinMode(led, OUTPUT);
Particle.function("SP", text);
Particle.function("led",ledToggle);
}
void loop() {
}
int text(String array)
{
Particle.publish("SP-return", array);
return 1;
}
int ledToggle(String command)
{
if (command =... | Update retentive-memory.ino | Update retentive-memory.ino | Arduino | mit | hwbrill/retentive-memory | |
442556c1011f79e5ece57b41c430a87c2674a070 | Arduino/AK60-6/AK60-6.ino | Arduino/AK60-6/AK60-6.ino | #include <CAN.h>
#include <ServoInput.h> // github.com/dmadison/ServoInput
int tab[8];
int8_t myIndex;
int packetSize;
// limit data to be within bounds
float P_MIN = -12.5;
float P_MAX = 12.5 ;
float V_MIN = -41.87;
float V_MAX = 41.87;
float T_MIN = -9;
float T_MAX = 9;
float Kp_MIN = 0;
float Kp_MAX = 500;
float K... | #include <CAN.h>
#include <ServoInput.h> // github.com/dmadison/ServoInput
int tab[8];
int8_t myIndex;
int packetSize;
// limit data to be within bounds
float P_MIN = -12.5;
float P_MAX = 12.5 ;
float V_MIN = -41.87;
float V_MAX = 41.87;
float T_MIN = -9;
float T_MAX = 9;
float Kp_MIN = 0;
float Kp_MAX = 500;
float K... | Test force control mode | Test force control mode
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
914d7c9ba0d5377093e49c1c33cccf452ca367b5 | Nokia_5110/Nokia_5110.ino | Nokia_5110/Nokia_5110.ino | #define RST 2
#define CE 3
#define DC 4
#define DIN 5
#define CLK 6
void startTransmission(){
digitalWrite(CE, LOW);
}
void endTransmission(){
digitalWrite(CE, HIGH);
}
void transmitInformation(byte information){
startTransmission();
shiftOut(DIN, CLK, MSBFIRST, information);
endTransmission();
}... | #define RST 2
#define CE 3
#define DC 4
#define DIN 5
#define CLK 6
void startTransmission(){
digitalWrite(CE, LOW);
}
void endTransmission(){
digitalWrite(CE, HIGH);
}
void transmitInformation(byte information){
startTransmission();
shiftOut(DIN, CLK, MSBFIRST, information);
endTransmission();
}... | simplify setTemperatureCoefficient function | simplify setTemperatureCoefficient function
| Arduino | mit | baghayi/Nokia_5110,baghayi/Nokia_5110 |
a0d9f78aaec3c6fbbf162e0f0bd08468d4b324fa | dfrdb/dfrdb.ino | dfrdb/dfrdb.ino | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL: (hold pin 0 for this use)
ELE: (hold pin 1 for this use)
THR: 3
RUD: 2
power ... | /******************************************************************************
dfrdb
DFRobot Romeo Drive Bot
Robot for MakerFaire Kansas City Arch Reactor booth
drives just the claw - user Sabertooth for motor shield
Pin connections:
AIL:
ELE:
THR: 3
RUD: 2
Read RC signal pulse width by using interrupt then cont... | clarify pin assignments | clarify pin assignments
| Arduino | mit | KFW/DF_Romeo_Drive_Bot |
3b3556890978aa440a4d9f1a5ed9f90efd052ae2 | NLMS_AEC/NLMS_AEC.ino | NLMS_AEC/NLMS_AEC.ino |
/* NLMS Acousitc Echo Cancelation
* Copyright (c) 2016, Sergey Makitrin, Kyler Fillerup
*
*
* 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 limi... |
/* NLMS Acousitc Echo Cancelation
* Copyright (c) 2016, Sergey Makitrin, Kyler Fillerup
*
*
* 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 limi... | align array to 32 bit memory and remove redundant NLMS_AEC input | align array to 32 bit memory and remove redundant NLMS_AEC input
| Arduino | mit | kfillerup/NLMS_AEC,kfillerup/NLMS_AEC |
b5cc353ef8a049697978d6f8a47bab99dd7acd48 | power/arduino/karre.ino | power/arduino/karre.ino |
#include "Timer.h"
#include "Wire.h"
#include "Adafruit_MCP9808.h"
class PortBase {
protected:
int8_t port;
public:
void setup(int8_t _port, int8_t mode) {
port = _port;
pinMode(_port, mode);
}
};
class AnalogRead : public PortBase {
private:
int16_t state;
public:
void setup(int8_... |
#include "Timer.h"
#include "Wire.h"
#include "Adafruit_MCP9808.h"
template <int8_t port>
class AnalogRead {
private:
int16_t state;
public:
void setup() {
pinMode(port, INPUT);
digitalWrite(port, HIGH); //pull up on
state = 0;
}
int16_t read() {
state = analogRead(port);
... | move some bytes to the flash. thx templates | move some bytes to the flash. thx templates
| Arduino | mit | mabels/karre,mabels/karre |
afa2f60050f11c5c50b55f7d8d78862e22165746 | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | Use a more generic fake MAC. | Use a more generic fake MAC.
... rather than the one on one of my Arduinos.
| Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
3e2a8a9484950f9ec140174b5958ea0e18c6239c | electrical/firmware/main.ino/main.ino.ino | electrical/firmware/main.ino/main.ino.ino | #include "main.h"
void setup() {
// Setup communication with ITX-Box
Serial.begin(9600);
// Setup communication with Saberteeth
Serial1.begin(9600);
Serial2.begin(9600);
Serial3.begin(9600);
current_state = idle;
watchdog_counter = 0;
}
void loop() {
if (Serial.available() > 0) {
// We have c... | #include "main.h"
void setup() {
// Setup communication with ITX-Box
Serial.begin(9600);
// Setup communication with Saberteeth
Serial1.begin(9600);
Serial2.begin(9600);
Serial3.begin(9600);
// Initialize IMU
accelBegin();
magnoBegin();
gyroBegin();
current_state = idle;
watchdog_counter ... | Update main.ino.ino | Update main.ino.ino | Arduino | mit | OSURoboticsClub/underwater,OSURoboticsClub/underwater,OSURoboticsClub/underwater,OSURoboticsClub/underwater |
0e673e6e5435ad7f98095bdbf172e14270b0e5ac | tpsu1.ino | tpsu1.ino | #include <SPI.h>
#include <EEPROM.h>
#include <DAC_MCP49xx.h>
// Reference voltage measured from device
#define Vref 4881
// Vsense1 ratio
#define VDRP 4950
// Maximum deviation
#define MaxDev 100
// Acceptable deviation
#define PDev 20
#define AC_2 12
#define AC_1 10
#define DAC_P 9
#define OE_P 8
#define DAC_N 7
#... | #include <SPI.h>
#include <EEPROM.h>
#include <DAC_MCP49xx.h>
// Reference voltage measured from device
#define Vref 4881
// Vsense1 ratio
#define VDRP 4950
// Maximum deviation
#define MaxDev 100
// Acceptable deviation
#define PDev 20
#define AC_2 12
#define AC_1 10
#define DAC_P 9
#define OE_P 8
#define DAC_N 7
#... | Test change | Test change
| Arduino | mit | calston/piwerlab,calston/piwerlab |
58b8994193d379c9ed08e9df91ac8d50e2f0efb5 | LORA_Water_Sensor/LORA_Water_Sensor.ino | LORA_Water_Sensor/LORA_Water_Sensor.ino | //----------------------------------------------------------------------------------------------------------------
// LORA_Water_Sensor.ino
//
// This sketch is designed to run on a WeMos D1 mini. Other controllers may require extensive tweaking.
//
// This uses a UltraSonic Distance sensor to determine the water lev... | //----------------------------------------------------------------------------------------------------------------
// LORA_Water_Sensor.ino
//
// This sketch is designed to run on a TTGO LoRa v1 board. Other controllers may require extensive tweaking.
//
// This uses a UltraSonic Distance sensor to determine the wate... | Update to make it work | Update to make it work
| Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
cac7ef1c419981953370e0953c9123771a56615e | ShellmoArduinoStd/ShellmoArduinoStd.ino | ShellmoArduinoStd/ShellmoArduinoStd.ino | #include <SoftwareSerial.h>
#include <MsTimer2.h>
#include <EEPROM.h>
//Motor A
int PWMA = 5; //Speed control
int AIN1 = 10; //Direction
int AIN2 = 8; //Direction
//Motor B
int PWMB = 6; //Speed control
int BIN1 = 12; //Direction
int BIN2 = 13; //Direction
int STBY = 11; //standby LOW = stop motors
//special pins ex... | /* Version 1.00 */
/* Arduino for Shellmo Standard Circuit version 0.01 */
#include <SoftwareSerial.h>
#include <MsTimer2.h>
#include <EEPROM.h>
//Motor A
int PWMA = 5; //Speed control
int AIN1 = 10; //Direction
int AIN2 = 8; //Direction
//Motor B
int PWMB = 6; //Speed control
int BIN1 = 12; //Direction
int BIN2 = ... | Update ShellmoArduinoStd.ino | Update ShellmoArduinoStd.ino | Arduino | mit | shellmogit/ArduinoStd,shellmogit/ArduinoStd |
7f4cf5c63d0bef99b96b41bddd3fc766419bb19c | AutoMap/ServoArduino.ino | AutoMap/ServoArduino.ino | //Programa : Teste MPU6050 e LCD 20x4
//Alteracoes e adaptacoes : FILIPEFLOP
//
//Baseado no programa original de JohnChi
//Carrega a biblioteca Wire
#include<Wire.h>
#include <Servo.h>
//Endereco I2C do MPU6050
const int MPU=0x68;
//Instancia Servo
Servo servo;
char buf;
int angulo = 90;
String Bussola;
char ... | //Programa : Teste MPU6050 e LCD 20x4
//Alteracoes e adaptacoes : FILIPEFLOP
//
//Baseado no programa original de JohnChi
//Carrega a biblioteca Wire
#include<Wire.h>
#include <Servo.h>
//Endereco I2C do MPU6050
const int MPU=0x68;
//Instancia Servo
Servo servo;
char buf;
int angulo = 90;
String Bussola;
char ... | Update ServoArduino.ino | Update ServoArduino.ino
Modificado a forma de pegar o angulo do motor
Trocado o (int) para o (byte) | Arduino | unlicense | MateusJFabricio/ProjVeiculoMapeamentoAutomatico,MateusJFabricio/ProjVeiculoMapeamentoAutomatico |
ae526c0c24227da3fc085f62cc01290445b3f870 | VehicleController/VehicleController.ino | VehicleController/VehicleController.ino | #include "VC_Timers.h"
#include "VC_VarStore.h"
#include "VC_CAN.h"
#include "VCDefines.h"
#include "VC_GPS.h"
#include <i2c_t3.h>
#include <kinetis_flexcan.h>
#include <mcp47FEB22.h>
Adafruit_GPS* gpsPt;
FlexCAN CANBus(0);
CAN_message_t rxmsg, txmsg;
mcp47FEB22 myDAC(0);
IntervalTimer msTimer;
vc_state_type stat... | #include "VC_Timers.h"
#include "VC_VarStore.h"
#include "VC_CAN.h"
#include "VCDefines.h"
#include "VC_GPS.h"
#include <i2c_t3.h>
#include <kinetis_flexcan.h>
#include <mcp47FEB22.h>
Adafruit_GPS* gpsPt;
FlexCAN CANBus(0);
CAN_message_t rxmsg, txmsg;
mcp47FEB22 myDAC(0);
IntervalTimer msTimer;
vc_state_type stat... | Change START_CAR to match the PHY | Change START_CAR to match the PHY
| Arduino | mit | UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017 |
19a8b7d19f5f6095abcda3027c65316c578969de | tests/TestStringRefs/TestStringRefs.ino | tests/TestStringRefs/TestStringRefs.ino | # 2 "TestStringRefs.ino"
#include <Arduino.h>
#include <Arduino_FreeRTOS.h>
#include <StandardCplusplus.h>
#include <RabirdToolkit.h>
#include <RAbstractStringRef.h>
#include <RTest.h>
#include <string.h>
class BasicStringRef:
public RAbstractStringRef
{
public:
BasicStringRef(const char *str);
~BasicStringRef();... | # 2 "TestStringRefs.ino"
#include <Arduino.h>
#include <Arduino_FreeRTOS.h>
#include <StandardCplusplus.h>
#include <RabirdToolkit.h>
#include <RAbstractStringRef.h>
#include <RConstStringRef.h>
#include <RStringRef.h>
#include <RFlashStringRef.h>
#include <RTest.h>
#include <string.h>
class BasicStringRef:
public RA... | Support test RAbstractStringRef, RFlashStringRef, RConstStringRef and RStringRef at the sametime | Support test RAbstractStringRef, RFlashStringRef, RConstStringRef and RStringRef at the sametime
| Arduino | mit | starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdTookit |
a37d80225e613fda855c6d7113fbc23c524b1346 | MQTT433gateway.ino | MQTT433gateway.ino | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | /*
MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight
Project home: https://github.com/puuu/MQTT433gateway/
The MIT License (MIT)
Copyright (c) 2016 Puuu
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the... | move setup() to correct position | MQTT433gateway.ino: move setup() to correct position
| Arduino | mit | puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway |
a61866e929e52c4e57806702aa3e5ceb22f00c0d | TandySticks.ino | TandySticks.ino | /*
TandySticks
Adaptor that converts vintage Tandy Joysticks to USB HID devices.
Intended for Arduino ATMEGA32U devices: Pro Micro, Micro, Leonardo.
See Readme.md for full details.
This file is hereby placed in the public domain.
*/
#include "TandyStick.h"
static const unsigned long UPDATE_PERIOD = 8333;... | /*
TandySticks
Adaptor that converts vintage Tandy Joysticks to USB HID devices.
Intended for Arduino ATMEGA32U devices: Pro Micro, Micro, Leonardo.
See Readme.md for full details.
This file is hereby placed in the public domain.
*/
// Uncomment one of these:
#define HARDWARE_PUBLIC_DOMAIN_CIRCUIT
//#def... | Add defines to select different input mappings for hardware variations. | Add defines to select different input mappings for hardware variations.
| Arduino | unlicense | JayesonLS/TandySticks |
e5b4f14afe8413ca43f19f9da96636130f587201 | sketches/EnerginoBattery/EnerginoBattery.ino | sketches/EnerginoBattery/EnerginoBattery.ino | /*
* Energino
*
* Energino is a energy consumption meter for DC loads (win average).
*
* Circuit:
* Analog inputs attached to pins A0 (Current), A1 (Voltage)
* Digital output attached to pin D2 (Relay)
*
* Supported commands from the serial:
* #P<integer>, sets the period between two updates (in ms) [defau... | /*
* EnerginoBattery
*
* EnerginoBattery is optimized for the ABSOLUTE PLMU. The script includes an
* empirical battery discharge model for the 30Ah battery. Resistor and current
* sensor paramenters are set to the values used in the Energino embedded with
* the PLMU prototype.
*
* Circuit:
* Analog inputs at... | revise message | revise message
| Arduino | bsd-3-clause | rriggio/energino,rriggio/energino,rriggio/energino,rriggio/energino |
fead1f183aba0c9014ac1394d347e87787fe84b9 | sketches/pmc-xmas-lights/pmc-xmas-lights.ino | sketches/pmc-xmas-lights/pmc-xmas-lights.ino | /* pmc-xmax-lights.ino
Based on Machine Control - Digital Output Example
The circuit:
- Portenta H7
- Machine Control
This example code is in the public domain.
*/
#include <Arduino_MachineControl.h>
using namespace machinecontrol;
void setup() {
Serial.begin(9600);
// The loop starts only when the... | /* pmc-xmax-lights.ino
Based on Machine Control - Digital Output Example
The circuit:
- Portenta H7
- Machine Control
This example code is in the public domain.
*/
#include <Arduino_MachineControl.h>
using namespace machinecontrol;
void setup() {
Serial.begin(9600);
// The loop starts only when the... | Update pmc-xmas-lights.ino | Update pmc-xmas-lights.ino
Fix #48 | Arduino | mpl-2.0 | gmacario/learning-arduino |
70acaff0f274f1606a5371c4779318bd4daff915 | arduino/rflink/rflink.ino | arduino/rflink/rflink.ino | #include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "radio.h"
#include "cmdproc.h"
#include "editline.h"
#include "hal.h"
#include "SPI.h"
#include "EEPROM.h"
// EEPROM address of node id
#define EE_ADDR_ID 0
static uint8_t id_read(void)
{
return EEPROM.read(EE_ADDR_ID);
}
static void id_wri... | #include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "radio.h"
#include "cmdproc.h"
#include "editline.h"
#include "hal.h"
#include "SPI.h"
#include "EEPROM.h"
// EEPROM address of node id
#define EE_ADDR_ID 0
static uint8_t id_read(void)
{
return EEPROM.read(EE_ADDR_ID);
}
static void id_wri... | Make the 'id' command conform to the new standard command/response format | Make the 'id' command conform to the new standard command/response format
| Arduino | mit | bertrik/rflink,bertrik/rflink |
d7248606f9eae28bf12c5d32f219893a1a53744d | Weather_mikroe_SAM3X/Weather_mikroe_SAM3X.ino | Weather_mikroe_SAM3X/Weather_mikroe_SAM3X.ino | #include <SPI.h>
#include <Wire.h>
#include "flip_click_defs.h"
#include "SparkFun_AS3935.h"
#define AS3935_INDOOR 0x12
#define AS3935_OUTDOOR 0xE
#define AS3935_LIGHTNING_INT 0x08
#define AS3935_DISTURBER_INT 0x04
#define AS3935_NOISE_INT 0x01
#define AS3935_CS B_CS
#define AS3935_INT B_INT
SparkFun_AS3935 lightn... | /***************************************************************************
*
* Copyright (c) 2020 Robert Nelson <robert.nelson@digikey.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the S... | Update Weather_mikroe_SAM3X.ino | Update Weather_mikroe_SAM3X.ino
Use Weather Click in Slot C
| Arduino | mit | eewiki/ws_bm_rtc,eewiki/ws_bm_rtc,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation |
aeea634014f3f87ad2e774a4b56aa18a4a9451fc | crybaby_ver1.0.ino | crybaby_ver1.0.ino | /*
CryBaby FX Kit v1.0, written by Sean Maio (outcry27@gmail.com)
Designed for use with the Adafruit Pro Trinket and Adafruit audio FX board
Credit and many thanks to the writers of the numerous tutorials available on both the Arduino
and Adafruit websites, without which this project could never have been completed!
... | /*
CryBaby FX Kit v1.0, written by Sean Maio (outcry27@gmail.com)
Designed for use with the Adafruit Pro Trinket and Adafruit audio FX board
Credit and many thanks to the writers of the numerous tutorials available on both the Arduino
and Adafruit websites, without which this project could never have been completed!
... | Update crybaby_ver1.0.ino | Update crybaby_ver1.0.ino
Found an error in updateAmmoCounter function where, in the "ammoCount < 10000" case, the four writeDigitAscii() command were targeting LED counter positions 0, 1, 1, and 1, instead of 0, 1, 2, and 3 like in every other case. Credit to Bill Taylor for helping me discover this issue. Updated ... | Arduino | mit | outcry27/crybabyFX |
b2da29527c9eeff9e1b5947e52ccd186017b73d5 | Arduino/fishfeeder.ino | Arduino/fishfeeder.ino | #include <SoftwareServo.h>
#include <EEPROM.h>
int pinled = 2;
int pinservo = 3;
int pinmotor = 4;
int pinmotorspeed = 5;
int pingreen = 10;
int pinblue = 9;
int pinred = 11;
int pincounter1 = A0;
int pincounter2 = A1;
int pinbrightness = A2;
const int threshold1 = 200;
const int threshold2 = 400;
const int fullrota... | #include <SoftwareServo.h>
#include <EEPROM.h>
int pinled = 2;
int pinservodump = 3;
int pinservoopen = 6;
int pinmotor = 4;
int pinmotorspeed = 5;
int pingreen = 10;
int pinblue = 9;
int pinred = 11;
int pincounter1 = A0;
int pincounter2 = A1;
int pinbrightness = A2;
const int threshold1 = 200;
const int threshold2... | Update Arduino code to operate a second servo | Update Arduino code to operate a second servo
| Arduino | mit | marian42/fishtank,marian42/fishtank,marian42/fishtank |
7b2a26b0ef97c965439a944923f20b2c5e50680d | arduino/src/sketch.ino | arduino/src/sketch.ino | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN A2
#define DHTPIN 8
#define DHTTYPE DHT11
#define BLURX 0
#define BLUTX 1
DHT dht(DHTPIN, DHTTYPE);
float hum = 0;
float tmp = 0;
float hid = 0;
int mq7 = 0;
int mq2 = 0;
char fmt [64];
int readMQ7() {
int value;
value = analogRead(M... | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN A2
#define DHTPIN 8
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
float hum = 0;
float tmp = 0;
float hid = 0;
int mq7 = 0;
int mq2 = 0;
char fmt [64];
int readMQ7() {
int value;
value = analogRead(MQ7PIN);
if (isnan(value)) {
... | check for Serial available | check for Serial available
| Arduino | mit | pedroscaff/sensor_platform,pedroscaff/sensor_platform |
829e9f6b524102f2ff9b7a923c129f58e4cebf4c | sketch/BLETest/BLETest.ino | sketch/BLETest/BLETest.ino | #include <CurieBle.h>
BLEPeripheral blePeripheral;
// 0x1812 GATT Service == Human Interface Device
// org.bluetooth.service.human_interface_device
BLEService diceService("0x1812");
// 0x2AC5 GATT Characteristic == Object Action Control Point
// org.bluetooth.characteristic.object_action_control_point
BLEUnsignedCha... | #include <CurieBle.h>
BLEPeripheral blePeripheral;
// 0x1812 GATT Service == Human Interface Device
// org.bluetooth.service.human_interface_device
BLEService diceService("0x1812");
// 0x2AC5 GATT Characteristic == Object Action Control Point
// org.bluetooth.characteristic.object_action_control_point
BLEUnsignedCha... | Add command handler | Add command handler
| Arduino | mit | jkmathes/amf-dice,jkmathes/amf-dice,jkmathes/amf-dice |
4ab205834054f7b426f441f39907cb92f04467ed | examples/StepTest/StepTest.ino | examples/StepTest/StepTest.ino | #include <SPI.h>
#include <AMIS30543.h>
#include <AStar32U4Prime.h> // TODO: remove
const uint8_t amisSlaveSelect = 10;
const uint8_t amisStepPin = 9;
AMIS30543 stepper;
AStar32U4PrimeButtonA buttonA;
AStar32U4PrimeButtonB buttonB;
AStar32U4PrimeButtonC buttonC;
void setup()
{
ledYellow(0);
delay(1000);
Seri... | #include <SPI.h>
#include <AMIS30543.h>
#include <AStar32U4Prime.h> // TODO: remove
const uint8_t amisSlaveSelect = 10;
const uint8_t amisStepPin = 9;
AMIS30543 stepper;
AStar32U4PrimeButtonA buttonA;
AStar32U4PrimeButtonB buttonB;
AStar32U4PrimeButtonC buttonC;
void setup()
{
ledYellow(0);
delay(1000);
Seri... | Revert "Added some tmphax in an attempt to get back to the performance of commit b786d3341751833b6a1cde4ed43cd75eb85907ff but it did not work." | Revert "Added some tmphax in an attempt to get back to the performance of commit b786d3341751833b6a1cde4ed43cd75eb85907ff but it did not work."
The real "problem" is that the old commit was only delaying about
100us between steps.
This reverts commit 2b97e8885a4ab42b7f7a78459508025ae74db05f.
| Arduino | mit | pololu/amis-30543-arduino |
abae65d3cbed2be7a92785cb5a9dadd4161dd3e0 | tests/Console/MPR121_Test/MPR121_Test.ino | tests/Console/MPR121_Test/MPR121_Test.ino | /*******************************************************************************
*
* Bare Conductive MPR121 library
* ------------------------------
*
* SimpleTouch.ino - simple MPR121 touch detection demo with serial output
*
* Based on code by Jim Lindblom and plenty of inspiration from the Freescale
* Semico... | /*******************************************************************************
*
* Bare Conductive MPR121 library
* ------------------------------
*
* SimpleTouch.ino - simple MPR121 touch detection demo with serial output
*
* Based on code by Jim Lindblom and plenty of inspiration from the Freescale
* Semico... | clean up test output for touch sensor test | clean up test output for touch sensor test
| Arduino | mit | akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon |
b31c3fbcffa510afe46897cb2261bbcd6c892249 | examples/ws2812fx_segments_web/ws2812fx_segments_web.ino | examples/ws2812fx_segments_web/ws2812fx_segments_web.ino | /*
WS2812FX segmented led strip web demo.
Keith Lord - 2017
FEATURES
* example of a web application to control segments of a strip of WS2812 LEDs
LICENSE
The MIT License (MIT)
Copyright (c) 2017 Keith Lord
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... | /*
WS2812FX segmented led strip web demo.
Keith Lord - 2017
FEATURES
* example of a web application to control segments of a strip of WS2812 LEDs
LICENSE
The MIT License (MIT)
Copyright (c) 2017 Keith Lord
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... | redact SSID | redact SSID
| Arduino | mit | kitesurfer1404/WS2812FX,kitesurfer1404/WS2812FX |
be0832ae1be13d0d2742684367259065323414f4 | LightScale/LightScale.ino | LightScale/LightScale.ino | const byte SCALE_VALUE[] = { 0b00000100, 0b00001100, 0b00011100, 0b00111100};
int senzor = A0;
void setup() {
Serial.begin(9600);
pinMode(senzor, INPUT);
// porty 2,3,4,5 jako vystup
DDRD |= 0b00111100;
}
void loop() {
int light = analogRead(senzor);
Serial.println(light);
int scale = map(light, 400... | const byte SCALE_VALUE[] = { 0b00000100, 0b00001100, 0b00011100, 0b00111100};
// fotorezistor - A1, termistor - A0
int senzor = A1;
void setup() {
Serial.begin(9600);
pinMode(senzor, INPUT);
// porty 2,3,4,5 jako vystup
DDRD |= 0b00111100;
}
void loop() {
int light = analogRead(senzor);
Serial.println(li... | Update map and bit mask | Update map and bit mask
| Arduino | apache-2.0 | bechynsky/ArduinoWorkshop,bechynsky/ArduinoWorkshop |
2d0900f45bd3dd3df001f356d88ac5e7eae7f6ef | src/LCDPrint/LCDPrint.ino | src/LCDPrint/LCDPrint.ino | #include <OneWire.h>
#include <DallasTemperature.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
OneWire oneWire(2); //connect data to pin 2
DallasTemperature sensors(&oneWire);
DeviceAddress black = { 0x28, 0xFF, 0x1A, 0xAA, 0x62, 0x15, 0x03, 0x20 };
DeviceAddress red = { 0x28, 0xFF, 0xA9, 0xB4, 0x62, 0x15, 0x... | #include <OneWire.h>
#include <DallasTemperature.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
OneWire oneWire(2); //connect data to pin 2
DallasTemperature sensors(&oneWire);
DeviceAddress black = { 0x28, 0xFF, 0x1A, 0xAA, 0x62, 0x15, 0x03, 0x20 };
DeviceAddress red = { 0x28, 0xFF, 0xA9, 0xB4, 0x62, 0x15, 0x... | Fix a couple bugs | Fix a couple bugs
| Arduino | mit | DerbyGrammar/DS18B20 |
e11231bc5bef83e520e5e2ce859f996340ab1753 | simulator/sim/sim.ino | simulator/sim/sim.ino |
//#define USE_RC
#ifdef USE_RC
#include <RcTrainer.h>
#else
#include <Arduino.h>
#include <util/atomic.h>
#endif
#define NUM_AXES 4 // 9 axes, X, Y, Z, etc
#ifndef USE_RC
//#define PULSE_MIN (750) // minimum PWM pulse width which is considered valid
//#define PULSE_MAX (2250) // maximum PWM ... |
//#define USE_RC
#include <Arduino.h>
#include <util/atomic.h>
#define NUM_AXES 4 // 9 axes, X, Y, Z, etc
#ifndef USE_RC
#define PULSE_MIN (750) // minimum PWM pulse width which is considered valid
#define PULSE_MAX (2250) // maximum PWM pulse width which is considered valid
//#define DEBUG
... | change interrupt | change interrupt
| Arduino | mit | baltov/arduino-ppm-to-PC,baltov/arduino-ppm-to-PC,baltov/arduino-ppm-to-PC |
851314a4f19ecc6c5d6c457354aa8ec4f00136d7 | firmware/lm-wifilamp/x61_server_api.ino | firmware/lm-wifilamp/x61_server_api.ino |
void serverApiSetWifi() {
SERVER_AUTH_REQUIRED
String ssid = server.arg("ssid");
String pass = server.arg("pass");
uint16_t ssidLen = ssid.length();
uint16_t passLen = pass.length();
if (ssidLen == 0 || ssidLen > 32 || passLen == 0 || passLen > 32) {
server.send(400, "text/json", "{\"error\":\"Invalid... |
void serverApiSetWifi() {
SERVER_AUTH_REQUIRED
String ssid = server.arg("ssid");
String pass = server.arg("pass");
uint16_t ssidLen = ssid.length();
uint16_t passLen = pass.length();
if (ssidLen == 0 || ssidLen > 32 || passLen == 0 || passLen > 32) {
server.send(400, "text/json", "{\"error\":\"Invalid... | Add current ssid to scan response | [Firmware] Add current ssid to scan response
| Arduino | mit | TheCaveCz/letsmake-wifilamp,TheCaveCz/letsmake-wifilamp |
6df63f2ba9805392946f1813729a0e75f9f39c94 | arduino/main.ino | arduino/main.ino | /**
* Name: nightsky/main
* Author: Amjad Saadeh <mail@amjadsaadeh.de>
*
* Description: A simple firmware for an ArduinoUNO controller to manage a 5x6 LED-matrix
* with multiplexing. The used shift register if the 74HC595 (todo: link to build plan).
* The firmware saves the animation within the EEPROM a... | /**
* Name: nightsky/main
* Author: Amjad Saadeh <mail@amjadsaadeh.de>
*
* Description: A simple firmware for an ArduinoUNO controller to manage a 5x6 LED-matrix
* with multiplexing. The used shift register if the 74HC595 (todo: link to build plan).
* The firmware saves the animation within the EEPROM a... | refactor firmware and fix possible pitfall within the time step management | refactor firmware and fix possible pitfall within the time step management
| Arduino | mit | Trion/nightsky |
72e04954aa31dd2781fac363231fcbc7ab9d1afc | sous_vide_arduino/sous_vide_arduino.ino | sous_vide_arduino/sous_vide_arduino.ino | #include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
// State variables
bool enabled = false;
byte targetTempF = 0;
// Setup a oneWire instance to communicate with OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to... | #include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2
// State variables
bool enabled = false;
byte targetTempF = 0;
// Setup a oneWire instance to communicate with OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to... | Remove dead Arduino code | Remove dead Arduino code
| Arduino | mit | mplewis/bean-sous-vide,czyz/bean-sous-vide-with-OLED-and-PID |
0a40a8b662b6e7c9db7c6ae18214f7f76cd9c1ae | sample/ESP_chip_id.ino | sample/ESP_chip_id.ino | #include <ESP8266WiFi.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Starting \n");
int chipId = 0;
chipId = ESP.getChipId();
Serial.print("Chip ID: " );
Serial.println(chipId);
}
void loop() {
// put your main code here, to run repeatedly:
}
| Update ESP_chip_id.ino | Update ESP_chip_id.ino | Arduino | mit | aavn/Gassistant,aavn/Gassistant | |
96ef98ece107bca788622a19b0e6bebf30635792 | examples/1fan/1fan.ino | examples/1fan/1fan.ino | #include "Dimmer.h"
Dimmer fan(6);
void setup()
{
fan.begin();
}
void loop()
{
fan.setIntensity(85);
int fanIntensity = fan.getIntensity();
}
| #include "Dimmer.h"
Dimmer fan(6); //pwn pin connected to arduino
void setup()
{
fan.begin();
}
void loop()
{
fan.setIntensity(85); //sets the exit intensity in %(0 - 100)
int fanIntensity = fan.getIntensity(); //returns the intensity in %
}
| Update 1fan.ino | Update 1fan.ino | Arduino | apache-2.0 | rafaelnsantos/arduino_uln2003a |
665284599c5fb7325355894ed8afe81063283e9c | tests/SerialXconnect/SerialXconnect.ino | tests/SerialXconnect/SerialXconnect.ino | /*
* This utility allows you to cross-connect
* 2 different serials.
*
* This is usefull for checking wiring
* or to convert baud rate, etc.
*/
#define ser1 Serial
#if defined(HAVE_HWSERIAL1)
#define ser2 Serial1
#else
#warning Using Software Serial!
#include <SoftwareSerial.h>
SoftwareSerial SerialSw(2... | /*
* This utility allows you to cross-connect two serial channels
* using any Arduino-compatible hardware.
*
* This is usefull for:
* Checking wiring
* Converting baud rate
* Sending AT commands
* etc.
*
* Popular AT command sets:
* ESP8266: http://www.espressif.com/sites/default/files/4a-esp8266_... | Update cross-connect sketch with some links and special commands | Update cross-connect sketch with some links and special commands
| Arduino | mit | 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,blynkkk/blynk-library |
e39a98f751ffd469f9f1c92a50bb0cbb50dcf497 | glass/glass.ino | glass/glass.ino | /*
glass.ino
This code is running on the glass, taking control of IR tranmission, XBee communication, and BT communication.
XBee messages from client are routed to Google Glass for display purpose.
BT messages from Google Glass either trigger IR transmission, or are being delivered to clients. As before, we a... | /*
glass.ino
This code is running on the glass, taking control of IR tranmission, XBee communication, and BT communication.
XBee messages from client are routed to Google Glass for display purpose.
BT messages from Google Glass either trigger IR transmission, or are being delivered to clients. As before, we a... | increase IR return threshold | increase IR return threshold
| Arduino | bsd-2-clause | nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS |
22144b04c0c8a972b428ab64880647231b32e89a | Arduino/Electronic_rule/src/sketch.ino | Arduino/Electronic_rule/src/sketch.ino |
// Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// Using example in http://code.google.com/p/arduino-pinchangeint/wiki/Usage
#include <PinChangeInt.h>
//Parts of code taken from http://playground.arduino.cc/Main/RotaryEncoders J.Carter(of Earth)
// 'threshold' is the De-bounce Adjustme... |
// Copyright (c) 2013 Nautilabs
// https://github.com/baptistelabat/robokite
// Using example in http://code.google.com/p/arduino-pinchangeint/wiki/Usage
#include <PinChangeInt.h>
//Parts of code taken from http://playground.arduino.cc/Main/RotaryEncoders J.Carter(of Earth)
// 'threshold' is the De-bounce Adjustme... | Work in progress: -add output for debug -correct syntax -use external interrupts -rename pin | Work in progress:
-add output for debug
-correct syntax
-use external interrupts
-rename pin
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite |
113fc1c09cb7529e1b016364d965b728363d713e | firmware/examples/photon-live-update.ino | firmware/examples/photon-live-update.ino | #include "SmartMeterReader/SmartMeterReader.h" | #include "application.h"
#include "SmartMeterReader/SmartMeterReader.h"
const int MIN_READING_GAP = 30; // upload a reading at most every 30 seconds.
const int photoresistorPin = D3;
const int pulseLedPin = D6;
SmartMeterReader smartMeterReader(photoresistorPin);
float reading;
String stringReading;
int lastUploadTim... | add photon-live-update.ino implementation | add photon-live-update.ino implementation
| Arduino | mit | ajesler/ArduinoSmartMeterReader |
6fa70bda011419520c1484ab7f861114a827e45a | libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino | libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino | /*
* This sketch sends data via HTTP GET requests to data.sparkfun.com service.
*
* You need to get streamId and privateKey at data.sparkfun.com and paste them
* below. Or just customize this script to talk to other HTTP servers.
*
*/
#include <ESP8266WiFi.h>
const char* ssid = "your-ssid";
const char* p... | /*
* This sketch sends data via HTTP GET requests to data.sparkfun.com service.
*
* You need to get streamId and privateKey at data.sparkfun.com and paste them
* below. Or just customize this script to talk to other HTTP servers.
*
*/
#include <ESP8266WiFi.h>
const char* ssid = "your-ssid";
const char* p... | replace delay with while loop in WiFiClient.ino | replace delay with while loop in WiFiClient.ino
| Arduino | lgpl-2.1 | jes/Arduino,Adam5Wu/Arduino,me-no-dev/Arduino,Links2004/Arduino,sticilface/Arduino,Adam5Wu/Arduino,wemos/Arduino,quertenmont/Arduino,quertenmont/Arduino,martinayotte/ESP8266-Arduino,edog1973/Arduino,hallard/Arduino,edog1973/Arduino,NextDevBoard/Arduino,me-no-dev/Arduino,hallard/Arduino,toastedcode/esp8266-Arduino,toast... |
3c307d56a8fff3893fda7d93d07c6fd5ba0744c6 | VehicleController/VehicleController.ino | VehicleController/VehicleController.ino | #include "VC_Timers.h"
#include "VC_VarStore.h"
#include "VC_CAN.h"
#include "VCDefines.h"
#include "VC_GPS.h"
#include <i2c_t3.h>
#include <kinetis_flexcan.h>
#include <mcp47FEB22.h>
Adafruit_GPS* gpsPt;
FlexCAN CANBus(0);
CAN_message_t rxmsg, txmsg;
mcp47FEB22 myDAC(0);
IntervalTimer msTimer;
vc_state_type stat... | #include "VC_Timers.h"
#include "VC_VarStore.h"
#include "VC_CAN.h"
#include "VCDefines.h"
#include "VC_GPS.h"
#include <i2c_t3.h>
#include <kinetis_flexcan.h>
#include <mcp47FEB22.h>
Adafruit_GPS* gpsPt;
FlexCAN CANBus(0);
CAN_message_t rxmsg, txmsg;
mcp47FEB22 myDAC(0);
IntervalTimer msTimer;
vc_state_type stat... | Update main loop & state machine to better handle the car as built | Update main loop & state machine to better handle the car as built
| Arduino | mit | UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017,UNCAMotorsports/UNCAMotorsports-2017 |
907a414c9b4d3a96254a5ca093d8ff8b7674bf04 | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | #include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A15, 4700, 1000 );
void setup ()
{
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add Function to list | Key to look for
... | //Original Creator: Andrew Mascolo
#include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A15, 4700, 1000 );
void setup ()
{
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add F... | Update OnewireKeypad_EventKey.ino | Update OnewireKeypad_EventKey.ino | Arduino | mit | AndrewMascolo/OnewireKeypad |
bcafb22e80bbc9173dbb7a865306c88b6f999c6a | ComboKeypad/Keypad.ino | ComboKeypad/Keypad.ino | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons {FIRST, SECOND, etc...}
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combi... | Update Keypad.ino | Update Keypad.ino | Arduino | mit | TeodorLys/Arduino_Projects |
33371efe6c26965cc6f30ba76f255159ad0151e9 | DroidMain/mqtt.ino | DroidMain/mqtt.ino | // Callback made from esp-link to notify of wifi status changes
// Here we just print something out for grins
void wifiCb(void* response) {
ELClientResponse *res = (ELClientResponse*)response;
if (res->argc() == 1) {
uint8_t status;
res->popArg(&status, 1);
if(status == STATION_GOT_IP) {
Serial.... | // Callback made from esp-link to notify of wifi status changes
// Here we just print something out for grins
void wifiCb(void* response) {
ELClientResponse *res = (ELClientResponse*)response;
if (res->argc() == 1) {
uint8_t status;
res->popArg(&status, 1);
if(status == STATION_GOT_IP) {
... | Update mqtt.ino | Update mqtt.ino
Debugging flag activated | Arduino | mit | TampereTC/IOT-Rally-2016-MQTT,TampereTC/IOT-Rally-2016-MQTT |
ac8d78bb7c71006ac68a83dc944fa1d4c9f3b172 | examples/raw-feather/raw-feather.ino | examples/raw-feather/raw-feather.ino | /* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2
Copyright notice:
This file copyright (C) 2017, 2018 by
MCCI Corporation
3520 Krums Corners... | /* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2
Copyright notice:
This file copyright (C) 2017, 2018 by
MCCI Corporation
3520 Krums Corners... | add a suitable print function for debugging | add a suitable print function for debugging
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
bb5bd266a2f427d6e1e2060d83143668943901f1 | src/Hello-world.ino | src/Hello-world.ino | #if defined(__PIC32MX__)
#include <WProgram.h>
#else
#include <Arduino.h>
#endif
#if defined(__AVR__) || defined(CORE_TEENSY)
#include <MsTimer2.h>
#elif defined(__SAM3X8E__)
#include <DueTimer.h>
#endif
#include <stddef.h>
#include <stdint.h>
#include <IQRF.h>
// 5000@1ms = 5s
#define USER_TIMER_PERIOD 5000
// TR ... | /**
* Copyright 2015-2016 MICRORISC s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Fix a problem with a compilation on Microsoft Windows | Fix a problem with a compilation on Microsoft Windows
Signed-off-by: Roman3349 <6b7cbc66756660b4790b3af1ec1507653acaa035@centrum.cz>
| Arduino | apache-2.0 | iqrfsdk/clibiqrf-uc,iqrfsdk/clibiqrf-mcu,iqrfsdk/clibiqrf-uc,iqrfsdk/clibiqrf-arduino,iqrfsdk/clibiqrf-mcu,iqrfsdk/clibiqrf-arduino,iqrfsdk/clibiqrf-arduino,iqrfsdk/clibiqrf-mcu,iqrfsdk/clibiqrf-uc |
d2e07b0c5aa040b78bc4faa207f1533f4b48e1fe | examples/RF12/radioBlip2/radioBlip2.ino | examples/RF12/radioBlip2/radioBlip2.ino | // Send out a radio packet every minute, consuming as little power as possible
// 2012-05-09 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
#include <avr/sleep.h>
#define BLIP_ID 1 // set this to a unique ID to disambiguate multiple nodes
struct {
long ping; // 32-bit counter
... | // Send out a radio packet every minute, consuming as little power as possible
// 2012-05-09 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
#include <avr/sleep.h>
#define BLIP_ID 1 // set this to a unique ID to disambiguate multiple nodes
struct {
long ping; // 32-bit counter
... | read out vcc twice, before and after sending | read out vcc twice, before and after sending
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
3e65f1f5b87b3310b9ad88c8c381d54066de62ac | examples/Habitat_Temps/Habitat_Temps.ino | examples/Habitat_Temps/Habitat_Temps.ino |
/** ---------- Mux and Temps Test Code ----------------------------------------
Drive the PCA9548A Mux and read TMP275 Temp Sensors on each Mux channel
Part of PCA9548A Library Test Code
Copyright 2018 Systronix Inc www.systronix.com
--------------------------------------------------------------------------... |
/** ---------- Mux and Temps Test Code ----------------------------------------
Drive the PCA9548A Mux and read TMP275 Temp Sensors on each Mux channel
Part of PCA9548A Library Test Code
Copyright 2018 Systronix Inc www.systronix.com
--------------------------------------------------------------------------... | add drawer 2 sensing | add drawer 2 sensing
| Arduino | mit | systronix/Systronix_PCA9548A |
959e46c2fa939de9da52eae7a40071bc170434ea | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | Examples/OnewireKeypad_EventKey/OnewireKeypad_EventKey.ino | #include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A0, 4700, 1000, ExtremePrec );
void setup ()
{
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add Function to list | Key to... | #include <OnewireKeypad.h>
char KEYS[]= {
'1','2','3',
'4','5','6',
'7','8','9',
'*','0','#',
};
OnewireKeypad <Print, 12 > Keypad(Serial, KEYS, 4, 3, A0, 4700, 1000 );
void setup () {
Serial.begin(115200);
pinMode(13,OUTPUT);
Keypad.addEventKey(test, '#'); // Add Function to list | Key to look for
K... | Update OnewireKeypad_EventKey.ino | Update OnewireKeypad_EventKey.ino
Removed Precision | Arduino | mit | AndrewMascolo/OnewireKeypad |
5335daf1ed5a48d2648eeea89e4dd98d41ab40f0 | firmware/firmware.ino | firmware/firmware.ino | // Firmware for monitor board
#include <SPI.h>
#include <stdint.h>
#include "DebouncedSwitch/debounced_switch.h"
#include "EdgeTrigger/edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
#include "serialcli.h"
#include "serialstatemachine.h"
const int SPI_SPEED = 10000000;
struct BusState {
uint32_t addres... | // Firmware for monitor board
#include <SPI.h>
#include <stdint.h>
#include "DebouncedSwitch/debounced_switch.h"
#include "EdgeTrigger/edge_trigger.h"
#include "mx7219.h"
#include "pins.h"
#include "serialcli.h"
#include "serialstatemachine.h"
const int SPI_SPEED = 10000000;
struct BusState {
uint32_t addres... | enable dposit and deposit next features | enable dposit and deposit next features
| Arduino | mit | rjw57/buri-bus-monitor,rjw57/buri-bus-monitor,rjw57/buri-bus-monitor |
efec77bf13218959e33af7ba5a2b3c12fa9905f5 | firmware/firmware.ino | firmware/firmware.ino | //#include <avr/interrupt.h>
//#include "SoftPWM.h"
#include "HardPWM.h"
#include "Protocol.h"
//#define PIN_DE 3 // Set this high to enable transmission on the RS485 line
#define PIN_STATUS_LED 11
HardPWM hardPWM;
Protocol usbReceiver;
Protocol rs485Receiver;
void setup() {
pinMode(PIN_STATUS_LED... | //#include <avr/interrupt.h>
//#include "SoftPWM.h"
#include "HardPWM.h"
#include "Protocol.h"
#define PIN_STATUS_LED 3
HardPWM hardPWM;
Protocol usbReceiver;
Protocol rs485Receiver;
void setup() {
pinMode(PIN_STATUS_LED, OUTPUT);
digitalWrite(PIN_STATUS_LED, HIGH);
// pinMode(PIN_DE, OUTPUT); // enable ... | Fix LED port | Fix LED port
| Arduino | mit | Blinkinlabs/AnalogLedFader,Blinkinlabs/AnalogLedFader |
c600222fa15077994f6809d3f897d2e4f879944f | examples/Modules/StepmotorGRBL_M012/StepmotorGRBL_M012.ino | examples/Modules/StepmotorGRBL_M012/StepmotorGRBL_M012.ino | /*
*******************************************************************************
* Copyright (c) 2021 by M5Stack
* Equipped with M5Core sample source code
* 配套 M5Core 示例源代码
* Visit the website for more information:https://docs.m5stack.com/en/module/stepmotor
* 获取更多资料请访问:http... | /*
*******************************************************************************
* Copyright (c) 2021 by M5Stack
* Equipped with M5Core sample source code
* 配套 M5Core 示例源代码
* Visit the website for more information:https://docs.m5stack.com/en/module/stepmotor
* 获取更多资料请访问:http... | Update StepmotorGRBL_M012.ino | Update StepmotorGRBL_M012.ino | Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
d8f7546e927e5c3a693c781964956dd3bd2e5636 | tests/loopback/EchoWiFlyHQ/EchoWiFlyHQ.ino | tests/loopback/EchoWiFlyHQ/EchoWiFlyHQ.ino | #include <WiFlyHQ.h>
#define WLAN_SSID "ssid"
#define WLAN_PASS "pass"
#define SerialWiFly Serial1
//#include <SoftwareSerial.h>
//SoftwareSerial SerialWiFly(2, 3);
const char* host = "192.168.0.104";
uint16_t port = 8888;
WiFly wifly;
void setup(void)
{
Serial.begin(115200);
delay(10);
Seria... | #include <WiFlyHQ.h>
#define WLAN_SSID "ssid"
#define WLAN_PASS "pass"
#define SerialWiFly Serial1
//#include <SoftwareSerial.h>
//SoftwareSerial SerialWiFly(2, 3);
const char* host = "192.168.0.104";
uint16_t port = 8888;
WiFly wifly;
void setup(void)
{
Serial.begin(115200);
delay(10);
Seria... | Fix indentation | Fix indentation
| Arduino | mit | radut/blynk-library,okhiroyuki/blynk-library,flashvnn/blynk-library,radut/blynk-library,okhiroyuki/blynk-library,radut/blynk-library,csicar/blynk-library,sstocker46/blynk-library,CedricFinance/blynk-library,flashvnn/blynk-library,johan--/blynk-library,CedricFinance/blynk-library,blynkkk/blynk-library,ivankravets/blynk-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.