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 |
|---|---|---|---|---|---|---|---|---|---|
963a0aab1b601b6bec7622f9bb6ebc9e32f3f5cb | setup/HMTL_Bringup/HMTL_Bringup.ino | setup/HMTL_Bringup/HMTL_Bringup.ino |
#define DEBUG_LEVEL DEBUG_HIGH
#include "Debug.h"
#include "EEPROM.h"
#include <RS485_non_blocking.h>
#include <SoftwareSerial.h>
#include "SPI.h"
#include "FastLED.h"
#define DEBUG_LEVEL DEBUG_HIGH
#include "Debug.h"
#include "GeneralUtils.h"
#include "EEPromUtils.h"
#include "HMTLTypes.h"
#include "PixelUtil.h"
... |
#define DEBUG_LEVEL DEBUG_HIGH
#include "Debug.h"
#include "EEPROM.h"
#include <RS485_non_blocking.h>
#include <SoftwareSerial.h>
#include "SPI.h"
#include "FastLED.h"
#define DEBUG_LEVEL DEBUG_HIGH
#include "Debug.h"
#include "GeneralUtils.h"
#include "EEPromUtils.h"
#include "HMTLTypes.h"
#include "PixelUtil.h"
... | Add XBee.h for Arduino needs | Add XBee.h for Arduino needs
| Arduino | mit | aphelps/HTML,aphelps/HMTL,HMTL/HMTL,HMTL/HMTL,aphelps/HMTL,aphelps/HTML,aphelps/HMTL,HMTL/HMTL,aphelps/HMTL,aphelps/HTML,aphelps/HTML,HMTL/HMTL |
151d726498019f4c29ac3be7e4a0fac28416a4e5 | LED_Panel/LED_Panel.ino | LED_Panel/LED_Panel.ino | #include <LedControl.h>
#include "Letters.h"
#include "Letter_Array.h";
Letter_Array la;
unsigned long time;
int count = 0;
void setup() {
//Serial.begin(9600);
la.Init_Panels();
la.set_String("teodor van ginhoven");
time = millis();
}
void loop() {
la.draw();
delay(5);
la.Move_Lef... | #include <LedControl.h>
#include "Letters.h"
#include "Letter_Array.h";
Letter_Array la;
unsigned long time;
int count = 0;
void setup() {
//Serial.begin(9600);
la.Init_Panels();
la.set_String("teodorlys");
time = millis();
}
void loop() {
la.draw();
delay(5);
la.Move_Left(1);
/... | Update LED_Panel.ino | Update LED_Panel.ino | Arduino | mit | TeodorLys/Arduino_Projects |
c88dec5654f5f9013b57435116df07dde66f523d | examples/raw-feather/raw-feather.ino | examples/raw-feather/raw-feather.ino | /* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
It... | /* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */
/*
Module: raw-feather.ino
Function:
Slightly improved Raw test example, for Adafruit Feather M0 LoRa
Version:
V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
It... | fix commentary | fix commentary
| Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
826f889e8add4ae518ff68aa590c45ae6ceca53b | RGB_lamps/RGB_lamps.ino | RGB_lamps/RGB_lamps.ino | #include <RGBLamp.h>
/*
RGBLamp.h - Library for controlling RGB diodes.
Created by Claus Lensbøl, May 19, 2013.
For license, see LICENSE file.
*/
RGBLamp lamps[4];
void setup() {
Serial.begin(9600);
randomSeed(analogRead(15));
// use a for loop to initialize each pin as an output:
for (int pin = ... | #include <ComplementaryColors.h>
#include <RGBLamp.h>
/*
RGBLamp.h - Library for controlling RGB diodes.
Created by Claus Lensbøl, May 19, 2013.
For license, see LICENSE file.
*/
RGBLamp lamps[4];
void setup() {
Serial.begin(9600);
randomSeed(analogRead(15));
// use a for loop to initialize each pi... | Include ComplementaryColors lib | Add: Include ComplementaryColors lib
| Arduino | mit | cmol/arduino-rgb,cmol/arduino-rgb |
b2c4f630926035569bf61766d715f37f61f1d53f | Arduino/bambilight.ino | Arduino/bambilight.ino | #include "FastLED.h"
#define NUM_LEDS 28
#define LED_DATA_PIN 3
#define NUM_BYTES (NUM_LEDS*3) // 3 colors
#define BRIGHTNESS 50
#define UPDATES_PER_SECOND 100
#define TIMEOUT 3000
#define MODE_ANIMATION 0
#define MODE_AMBILIGHT 1
uint8_t mode = MODE_ANIMATION;
byte MESSAGE_PREAMBLE[] = { 0x00, 0x01, 0x02, 0x03,... | #include "FastLED.h"
#define NUM_LEDS 28
#define LED_DATA_PIN 3
#define LED_TYPE WS2812B
#define NUM_BYTES (NUM_LEDS*3) // 3 colors
#define BRIGHTNESS 50
#define UPDATES_PER_SECOND 100
#define TIMEOUT 3000
#define MODE_ANIMATION 0
#define MODE_AMBILIGHT 1
uint8_t mode = MODE_ANIMATION;
byte MESSAGE_PREAMBLE[] ... | Update bambilight.ino | Update bambilight.ino | Arduino | mit | MrBoe/Bambilight |
8c4edf1375f6f32784bf3bc3ecb1692b1aa4ab32 | examples/demo/demo.ino | examples/demo/demo.ino | #include <MicroNMEA.h>
#include <MemoryFree.h>
// Refer to streams logically
Stream& console = Serial;
Stream& gps = Serial1;
char nmeaBuffer[85];
MicroNMEA nmea(nmeaBuffer, sizeof(nmeaBuffer));
bool ledState = LOW;
volatile bool ppsTriggered = false;
void ppsHandler(void);
void ppsHandler(void)
{
ppsTriggered =... | #include <MicroNMEA.h>
#include <MemoryFree.h>
// Refer to streams logically
Stream& console = Serial;
Stream& gps = Serial1;
char nmeaBuffer[85];
MicroNMEA nmea(nmeaBuffer, sizeof(nmeaBuffer));
bool ledState = LOW;
volatile bool ppsTriggered = false;
void ppsHandler(void);
void ppsHandler(void)
{
ppsTriggered =... | Fix to work with Arduino-1.5 version of Calunium boards file | Fix to work with Arduino-1.5 version of Calunium boards file
| Arduino | lgpl-2.1 | stevemarple/MicroNMEA,stevemarple/MicroNMEA |
f6beabb5c4a45f21f1dbe1150dfdf6a90764123e | Gout.ino | Gout.ino | #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
// new
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
ESP8266WebServer server(80);
int flowPin = 4;
unsigned long fl... | #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
// new
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
ESP8266WebServer server(80);
int flowPin = 4;
int flow_l_s, flo... | add calc_flow() | add calc_flow()
| Arduino | mit | UFABC-NoBox/Gout |
6583739a2ac6e7fb6cae41fc598c8544d3899567 | build/shared/examples/9.EducationalBP_MKII/TMP006/TMP006.ino | build/shared/examples/9.EducationalBP_MKII/TMP006/TMP006.ino |
/*
Infrared temp sensor TMP006 example for Educational BoosterPack MK II
http://boosterpackdepot.info/wiki/index.php?title=Educational_BoosterPack_MK_II
Modified 03 Dec 2013
by Dung Dang
This example code is in the public domain.
*/
#include <Wire.h>
#include "tmp006.h"
#define USE_USCI_B1
tmp006 tmp006;
void ... |
/*
Infrared temp sensor TMP006 example for Educational BoosterPack MK II
http://boosterpackdepot.info/wiki/index.php?title=Educational_BoosterPack_MK_II
Modified 03 Dec 2013
by Dung Dang
This example code is in the public domain.
*/
#include <Wire.h>
#include "Adafruit_TMP006.h"
#define USE_USCI_B1
Adafruit_TM... | Change tmp006 example to use Adafruit_TMP006 library | Change tmp006 example to use Adafruit_TMP006 library
| Arduino | lgpl-2.1 | vigneshmanix/Energia,croberts15/Energia,qtonthat/Energia,vigneshmanix/Energia,dvdvideo1234/Energia,sanyaade-iot/Energia,cevatbostancioglu/Energia,battosai30/Energia,qtonthat/Energia,martianmartin/Energia,sanyaade-iot/Energia,brianonn/Energia,NoPinky/Energia,radiolok/Energia,vigneshmanix/Energia,NoPinky/Energia,martianm... |
2bcfd8a68be834f730e53cd122ec95ea77756853 | WiFi_Profile_Mailer/WiFi_Profile_Mailer_New.ino | WiFi_Profile_Mailer/WiFi_Profile_Mailer_New.ino | //This DigiSpark script writes the wireless network credentials to a csv file and emails it.
//Credits to p0wc0w.
//NOTE about the New Version of this script: The older script stopped working on newer builds of Windows 10
//since Windows 10 now require an elevated cmd or powershell to execute these commands. This vers... | //This DigiSpark script writes the wireless network credentials to a csv file and emails it.
//Credits to p0wc0w.
//NOTE about the New Version of this script: The older script stopped working on newer builds of Windows 10
//since Windows 10 now require an elevated cmd or powershell to execute these commands. This vers... | Update WiFi_Profile_Mailer_New.ino | Update WiFi_Profile_Mailer_New.ino
The current code causes a Powershell error that causes 'temp.csv' to never get attached to the email. This is because the first PS line saves temp.csv to the user's home directory, whereas the second PS line tries to attach temp.csv from the system32 folder. I changed the first line ... | Arduino | mit | CedArctic/DigiSpark-Scripts,CedArctic/DigiSpark-Scripts |
4b1505dca5da74904f1b08327624d14a6f181716 | examples/FTDebouncer_demo_lambda/FTDebouncer_demo_lambda.ino | examples/FTDebouncer_demo_lambda/FTDebouncer_demo_lambda.ino | #if !defined(nullptr)
#define nullptr NULL
#endif
#include "FTDebouncer-Lambda.h"
FTDebouncer pinDebouncer(30);
void setup(){
Serial.begin(57600);
pinDebouncer.addPin(2, HIGH, INPUT_PULLUP, []() {
Serial.print("Pin activated: ");
Serial.println(2);
}, []() {
Serial.print("Pin deactivated: ");
Serial.print... | #if !defined(nullptr)
#define nullptr NULL
#endif
#include "FTDebouncer-Lambda.h"
FTDebouncer pinDebouncer;
void setup(){
Serial.begin(57600);
pinDebouncer.addPin(2, HIGH, INPUT_PULLUP, []() {
Serial.print("Pin activated: ");
Serial.println(2);
}, []() {
Serial.print("Pin deactivated: ");
Serial.println(... | Simplify lambda demo code | Simplify lambda demo code
| Arduino | mit | ubidefeo/FTDebouncer |
2a39f5cc6ede6df84ea95c51b9014ef91c2dd19b | 2018-Firefighter/2018-Firefighter.ino | 2018-Firefighter/2018-Firefighter.ino | #include <Servo.h>
#include <Ultrasonic.h>
#include "FreqCount.h"
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define F... | #include <Servo.h>
#include <Ultrasonic.h>
#include "FreqCount.h"
#define LEFT_SERVO_PIN 4
#define RIGHT_SERVO_PIN 5
#define IR_PIN 6
#define EXTINGUISHER_PIN 7
#define MIC_PIN 43
#define FLAME_LED 9
#define MIC_LED 11
#define BABY_LED 17
#define CAMERA 15
#define CAMERA_LED 16
#define FRONT_US_ECHO 2
#define F... | Update 2018-Firefighter.ino | Update 2018-Firefighter.ino | Arduino | mit | GW-Robotics/2018-Firefighter |
6a2352a58310b2c8459b195a71de7926b6e0ebb0 | sensor/sensor_ble/sensor_ble.ino | sensor/sensor_ble/sensor_ble.ino | #include "I2Cdev.h"//add neccesary headfiles
#include "MPU6050.h"//add neccesary headfiles
#include <Wire.h>
#include <Streaming.h>
#include <string.h>
//====the offset of gyro===========
#define Gx_offset -1.50
#define Gy_offset 0
#define Gz_offset 0.80
//====the offset of accelerator===========
#define Ax_offset ... | #include "I2Cdev.h"//add neccesary headfiles
#include "MPU6050.h"//add neccesary headfiles
#include <Wire.h>
#include <Streaming.h>
#include <string.h>
//====the offset of gyro===========
#define Gx_offset -1.50
#define Gy_offset 0
#define Gz_offset 0.80
//====the offset of accelerator===========
#define Ax_offset ... | Add placeholder for buffering | Add placeholder for buffering
| Arduino | mit | balazspete/wearable-fall-sensor,balazspete/wearable-fall-sensor,balazspete/wearable-fall-sensor |
f688b42de47ee0cf47e0c7ed8d3ebb04a0b50ab4 | little-switches/arduino/abbinamento/abbinamento.ino | little-switches/arduino/abbinamento/abbinamento.ino | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
#define zampaAS 3
#define zampaAD 6
#define zampaPS 7
#define zampaPD 8
#define piede 4
#define tamburo A1
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
int tempo = 0;
void... | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
#define zampaAS 8
#define zampaAD 6
#define zampaPS 7
#define zampaPD 5
#define piede A0
#define tamburo 2
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
int tempo = 0;
void... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
4648330a7febbd7b7f4d28b75a0256b25b751532 | build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino | build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino | /*
Serial Event example
When new serial data arrives, this sketch adds it to a String.
When a newline is received, the loop prints the string and
clears it.
A good test for this is to try it with a GPS receiver
that sends out NMEA 0183 sentences.
Created 9 May 2011
by Tom Igoe
This example code is in the ... | /*
Serial Event example
When new serial data arrives, this sketch adds it to a String.
When a newline is received, the loop prints the string and
clears it.
A good test for this is to try it with a GPS receiver
that sends out NMEA 0183 sentences.
Created 9 May 2011
by Tom Igoe
This example code is in the ... | Fix for serialEvent example | Fix for serialEvent example
In the example is stated that the function is run between one loop and the next, but actually the call to the function was missing.
The comment also state that the response can be delayed using a delay in the loop,so I think that the way it should be is so by only
adding a call to the funct... | Arduino | lgpl-2.1 | cscenter/Arduino,fungxu/Arduino,acosinwork/Arduino,Protoneer/Arduino,vbextreme/Arduino,ForestNymph/Arduino_sources,xxxajk/Arduino-1,leftbrainstrain/Arduino-ESP8266,karlitxo/Arduino,zenmanenergy/Arduino,xxxajk/Arduino-1,byran/Arduino,lukeWal/Arduino,tskurauskas/Arduino,danielchalef/Arduino,eggfly/arduino,mangelajo/Ardui... |
92c846e7303a7db5c5ff25383a471227357a58c1 | arduino/sensor_system/sensor_system.ino | arduino/sensor_system/sensor_system.ino | /*
*
* Authors: Jeffrey Leung, Charles Li, Mina Li, Paul Pinto
* Last edited: 2016-03-19
*
* This Arduino sketch detects the activation of pressure pads by the presence
* of an item and sends the result using Bluetooth communication to the
* car system.
*
*/
#include <SoftwareSerial.h>
const unsigned int pin... | /*
*
* Authors: Jeffrey Leung, Charles Li, Mina Li, Paul Pinto
* Last edited: 2016-03-19
*
* This Arduino sketch detects the activation of pressure pads by the presence
* of an item and sends the result using Bluetooth communication to the
* car system.
*
*/
#include <SoftwareSerial.h>
const unsigned int pin... | Update loop() in sensor_system | Update loop() in sensor_system
| Arduino | mit | jleung51/BIRD |
4920c7e1f52cb49722aec92c73c0f854e55c5561 | WeatherStation-epaper.ino | WeatherStation-epaper.ino | /**The MIT License (MIT)
Copyright (c) 2017 by Hui Lu
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, pub... | /**The MIT License (MIT)
Copyright (c) 2017 by Hui Lu
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, pub... | fix bug in rtc mem | fix bug in rtc mem
| Arduino | mit | duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper,duck531a98/esp8266-weather-station-epaper |
438744044c6ab147ae29f61567fe96f9cc068a0e | tests/device/test_time/test_time.ino | tests/device/test_time/test_time.ino | #include <ESP8266WiFi.h>
#include <time.h>
#include <ESP8266HTTPClient.h>
#include <BSTest.h>
#include <test_config.h>
BS_ENV_DECLARE();
void setup()
{
Serial.begin(115200);
WiFi.persistent(false);
WiFi.begin(STA_SSID, STA_PASS);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
BS... | #include <ESP8266WiFi.h>
#include <time.h>
#include <ESP8266HTTPClient.h>
#include <BSTest.h>
#include <test_config.h>
BS_ENV_DECLARE();
void setup()
{
Serial.begin(115200);
WiFi.persistent(false);
WiFi.begin(STA_SSID, STA_PASS);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
BS... | Add test for mktime and localtime (#1745) | Add test for mktime and localtime (#1745)
| Arduino | lgpl-2.1 | wemos/Arduino,martinayotte/ESP8266-Arduino,Juppit/Arduino,lrmoreno007/Arduino,martinayotte/ESP8266-Arduino,toastedcode/esp8266-Arduino,hallard/Arduino,quertenmont/Arduino,wemos/Arduino,hallard/Arduino,Juppit/Arduino,hallard/Arduino,martinayotte/ESP8266-Arduino,esp8266/Arduino,sticilface/Arduino,jes/Arduino,Adam5Wu/Ardu... |
34827fdf8e9b85645fd0e3fd1e75f63d8b041290 | examples/simple/simple.ino | examples/simple/simple.ino | /*
Modbus slave simple example
Control and Read Arduino I/Os using Modbus serial connection.
This sketch show how to use the callback vector for reading and
controleing Arduino I/Os.
* Controls digital output pins as modbus coils.
* Reads digital inputs state as discreet inputs.
*... | /*
Modbus slave simple example
Control and Read Arduino I/Os using Modbus serial connection.
This sketch show how to use the callback vector for reading and
controleing Arduino I/Os.
* Controls digital output pins as modbus coils.
* Reads digital inputs state as discreet inputs.
*... | make password blank | make password blank
| Arduino | isc | yaacov/ArduinoModbusSlaveTCP |
55b0f7a0860e8f73f90f2844f1ae8092059cb105 | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "font/roboto_10.h"
#include "font/roboto_12.h"
#include "font/roboto_thin_20.h"
#include "images.h"
#define PULSES_PER_KWH 375
#define WH_PER_PULSE (1000.0F / P... | #include <Wire.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "font/roboto_10.h"
#include "font/roboto_12.h"
#include "font/roboto_thin_20.h"
#include "images.h"
#define PULSES_PER_KWH 375
#define WH_PER_PULSE (1000.0F / P... | Move the yield to yield only if we have a sufficient remainingTimeBudget | Move the yield to yield only if we have a sufficient remainingTimeBudget
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
0da54d88a91b25f015652099f9a57364d15d0509 | libraries/Hash/examples/sha1/sha1.ino | libraries/Hash/examples/sha1/sha1.ino | /**
simple demo to show sha1 calculation
*/
#include <Arduino.h>
#include <Hash.h>
void setup() {
Serial.begin(921600);
}
void loop() {
// usage as String
// SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
Serial.print("SHA1:");
Serial.println(sha1("abc"));
// usage as ptr
// SHA1:a94a8fe5ccb19ba61c... | /**
simple demo to show sha1 calculation
*/
#include <Arduino.h>
#include <Hash.h>
void setup() {
Serial.begin(115200);
}
void loop() {
// usage as String
// SHA1:a9993e364706816aba3e25717850c26c9cd0d89d
Serial.print("SHA1:");
Serial.println(sha1("abc"));
// usage as ptr
// SHA1:a94a8fe5ccb19ba61c... | make actual SHA1 result and comment consistent (#5057) | Hash: make actual SHA1 result and comment consistent (#5057)
fixes #3437 | Arduino | lgpl-2.1 | wemos/Arduino,hallard/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,wemos/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,esp8266/Arduino,hallard/Arduino,Lan-Hekary/Arduino,esp8266/Arduino,hallard/Arduino,wemos/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,Lan-Hekary/Arduino,wemos/Arduino,hallard/Arduino,esp... |
ac72ba9e91fcd65b8f8316fe55bd6177dbf1d768 | examples/SmartMatrix/SmartMatrix.ino | examples/SmartMatrix/SmartMatrix.ino | #include<SmartMatrix.h>
#include<FastLED.h>
#define kMatrixWidth 32
#define kMatrixHeight 32
const bool kMatrixSerpentineLayout = false;
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
CRGB leds[kMatrixWidth * kMatrixHeight];
uint16_t XY( uint8_t x, uint8_t y)
{
uint16_t i;
if( kMatrixSerpentineLayout == ... | #include<SmartMatrix.h>
#include<FastLED.h>
#define kMatrixWidth 32
#define kMatrixHeight 32
const bool kMatrixSerpentineLayout = false;
#define NUM_LEDS (kMatrixWidth * kMatrixHeight)
CRGB leds[kMatrixWidth * kMatrixHeight];
uint16_t XY( uint8_t x, uint8_t y)
{
uint16_t i;
if( kMatrixSerpentineLayout == ... | fix smart matrix example | fix smart matrix example
| Arduino | mit | felixLam/FastLED,FastLED/FastLED,ryankenney/FastLED,PaulStoffregen/FastLED,MattDurr/FastLED,remspoor/FastLED,wilhelmryan/FastLED,wilhelmryan/FastLED,corbinstreehouse/FastLED,MiketheChap/FastLED,FastLED/FastLED,wsilverio/FastLED,tullo-x86/FastLED,NicoHood/FastLED,neographophobic/FastLED,wsilverio/FastLED,eshkrab/FastLED... |
a773c0a449324d8c9dabcf02fc3fb7b3f3e80a53 | ProductionSketch/ProductionSketch.ino | ProductionSketch/ProductionSketch.ino | // This is the example sketch that gets loaded on every BlinkyTape during production!
#include <FastLED.h>
#include <Animation.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#define STEP_UP_DOWN_BRIGHTNESS
struct CRGB leds[LED_COUNT];
#ifdef STEP... | #include <EEPROM.h>
// This is the example sketch that gets loaded on every BlinkyTape during production!
#include <FastLED.h>
#include <Animation.h>
#include "BlinkyTape.h"
#include "ColorLoop.h"
#include "SerialLoop.h"
#include "Shimmer.h"
#include "Scanner.h"
#define STEP_UP_DOWN_BRIGHTNESS
struct CRGB leds[LED... | Add EEPROM storage of current pattern | Add EEPROM storage of current pattern
| Arduino | apache-2.0 | Blinkinlabs/BlinkyTape,Blinkinlabs/BlinkyTape,Blinkinlabs/BlinkyTape |
56c42796a71aa943fed97bbb9175a9dc9fc51543 | examples/Ubidots_get_value/Ubidots_get_value.ino | examples/Ubidots_get_value/Ubidots_get_value.ino | #include <Ubidots_FONA.h>
#include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define APN "Your_apn_of_your_SIM_here"
#define USER "Your_username_here" // if your apn doesnt have username just put ""
#define PASS "Your_password_here" // if your apn doesnt have password just put ""
#define TOKEN "Your_token_h... | #include <Ubidots_FONA.h>
#include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define APN // The APN of your operator
#define USER "" // if your apn doesnt have username just leave it ""
#define PASS "" // if your apn doesnt have password just leave it ""
#define TOKEN "Your_token_here" // Replace it with ... | Update Ubidots_get_value.ino | Update Ubidots_get_value.ino | Arduino | mit | ubidots/ubidots-fona |
871bf1f4766dbb2ad7c668123c67ecf822251050 | examples/helium-us915/helium-us915.ino | examples/helium-us915/helium-us915.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... | Update helium-us915.ino | Update helium-us915.ino | Arduino | mit | mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic |
4dd5efb496bad5fa03298552856b38df0634986e | code/lissajous/lissajous.ino | code/lissajous/lissajous.ino | // This is based on Sweep
// by BARRAGAN <http://barraganstudio.com>
#include <Servo.h>
// Create the servo objects
Servo servox;
Servo servoy;
double pos = 0; // Position incrementer
float spd = 0.005; // This value seems to work for reasonable speed.
float facter = 1.0; // Ratio between servox and servoy perio... | // This is based on Sweep
// by BARRAGAN <http://barraganstudio.com>
#include <Servo.h>
// Create the servo objects
Servo servox;
Servo servoy;
double pos = 0; // Position incrementer
float spd = 0.005; // This value seems to work for reasonable speed.
float facter = 1.0; // Ratio between servox and servoy perio... | Add second rotary oscillation | Add second rotary oscillation
| Arduino | mit | jbeyers/lissajous,jbeyers/lissajous,jbeyers/lissajous |
b4df641af905050c1206fb4fe483ca12288a9ee6 | ssd1306_128x64_i2c.ino | ssd1306_128x64_i2c.ino | /*********************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x64 size display using I2C to communicate
3 pins are required ... | /*********************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x64 size display using I2C to communicate
3 pins are required ... | Update ssd1306_128x64_i2c.ino | Update ssd1306_128x64_i2c.ino
Fixed incorrect call to arandom() - should be random(). | Arduino | mit | niklashagemann/Adafruit_SSD1306,stephanjroux/Adafruit_SSD1306 |
f1316935d105f59fc460114d5a9e1c3a39a1a26e | firmware/src/uber-library-example.ino | firmware/src/uber-library-example.ino | // .. this should illustrate the convensions described in the readme
| Update uber-library-example.ino | Update uber-library-example.ino | Arduino | mit | pinkman1492/RF24,dmautomac/MOD_TCP,spark/uber-library-example,luckygodswill/Photon,pinkman1492/RF24,vbelfoure/uber-library-example,alex254/ethernet,mawildoer/encoder,dmautomac/MOD_TCP,fepblaster/Photon_Relay,blakejakopovic/firmata-spark,fepblaster/relay,vbelfoure/uber-library-example,alex254/ethernet,dcabanis/vl6180x_l... | |
ca9d022fbfbe1c4704f58a2a4d5c93882e64797b | testing/arduino/self-driving-v6.ino | testing/arduino/self-driving-v6.ino | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
#include "NewPing.h"
// Base Date
const uint16_t initialDelay = 2500;
// Ranges and Data
const uint8_t rangeLimit_Warning1 = 60;
const uint8_t rangeLimit_Warning2 = 50;
const uint8_t rangeLimit_Warning3 = 40;
const uint8_t rangeLimit_Stop = 25;
co... | #include "Arduino.h"
#include "Adafruit_NeoPixel.h"
#include "Servo.h"
#include "NewPing.h"
// Base Date
const uint16_t initialDelay = 2500;
// Ranges and Data
const uint8_t rangeLimit_Warning1 = 60;
const uint8_t rangeLimit_Warning2 = 50;
const uint8_t rangeLimit_Warning3 = 40;
const uint8_t rangeLimit_Stop = 25;
co... | Fix left-right mixup | Fix left-right mixup
| Arduino | apache-2.0 | MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI |
acf41a0cb67690d3c1676f4134fd23c2119e9a2a | 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_STOP 3
#define BUT_STAR 2
#define BUT_BLUE 7
#define GPSECHO true
#define MEAN_EARTH_RADIUS 6371e3
#define M_TO_FT 3.28084
Adafruit_GPS ... | #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... | Add partially working button interrupt service routines/ debugging code | Add partially working button interrupt service routines/ debugging code
| Arduino | mit | sebluy/gps-tracker-arduino,sebluy/gps-tracker-arduino,sebluy/gps-watch,sebluy/gps-watch |
572e31f780321e6ed56b607b2301d547a8b4171a | Mcp23017/mcp23017/mcp23017.ino | Mcp23017/mcp23017/mcp23017.ino | #include <Wire.h>
#define PCA9548ADDR 0x70
#define I2C_CHANNEL_SDSC0 0x01
#define I2C_CHANNEL_SDSC1 0x02
#define I2C_CHANNEL_SDSC2 0x04
#define I2C_CHANNEL_SDSC3 0x08
#define I2C_CHANNEL_SDSC4 0x10
#define I2C_CHANNEL_SDSC5 0x20
#define I2C_CHANNEL_SDSC6 0x40
#define I2C_CHANNEL_SDSC7 0x80
int ledState = 0;
int resu... | #include <Wire.h>
#define PCA9548ADDR 0x70
#define I2C_CHANNEL_SDSC0 0x01
#define I2C_CHANNEL_SDSC1 0x02
#define I2C_CHANNEL_SDSC2 0x04
#define I2C_CHANNEL_SDSC3 0x08
#define I2C_CHANNEL_SDSC4 0x10
#define I2C_CHANNEL_SDSC5 0x20
#define I2C_CHANNEL_SDSC6 0x40
#define I2C_CHANNEL_SDSC7 0x80
byte result = 0;
byte sta... | Use class to blink LED's and scan a button | [MCP23017]: Use class to blink LED's and scan a button
| Arduino | mit | GeVanCo/Arduino,GeVanCo/Arduino |
3ffe863f2123d930cedaf4991c96626e847ce4a0 | meteo_lcd/meteo_lcd.ino | meteo_lcd/meteo_lcd.ino | // Uncomment define DEBUG line to build with debug logs (on serial)
// This line MUST be before meteo_common.h include to make any effect
//#define DEBUG
#include <DHT.h> // Temp and humidity
#include <Wire.h> // Pressure
#include <Adafruit_BMP085.h> // Pressure
#include <meteo_common.h> // Common function for meteo
... | // Uncomment define DEBUG line to build with debug logs (on serial)
// This line MUST be before meteo_common.h include to make any effect
//#define DEBUG
#include <DHT.h> // Temp and humidity
#include <Wire.h> // Pressure
#include <Adafruit_BMP085.h> // Pressure
#include <meteo_common.h> // Common function for meteo
... | Add RTC - DS3231 | Add RTC - DS3231
| Arduino | apache-2.0 | jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo,jkozerski/meteo |
e3ca7c3bd7ab9aaab9c2b5ff99c717a43560144a | first_one/first_one.ino | first_one/first_one.ino | /*
Project : ·NINE· [dasaki && n3m3da]
Concept : BY-SA 4.0
Code : MIT
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at ... | /*
Project : ·NINE· [dasaki && n3m3da]
Concept : BY-SA 4.0
Code : MIT
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at ... | change some constants names | change some constants names
| Arduino | mit | d3cod3/nine |
f52d3509a2563927dfbcc9ff69c699b36c8d858e | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
// light related setup
int lightSensorPin = 3; // Set to whereever light sensor is connected
int lampRelay = 4; // Set to whereever relay for lamp is connected
// activity led setup
int ledPin = 13; // this is just for checking activity
// Initialize settings
vo... | Add first LDR sensor to sketch | Add first LDR sensor to sketch
Initialize the first sensor on the Arduino
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden | |
af57f043561841ba317f93009225a0908188c54a | examples/GSMSim_Time/GSMSim_Time.ino | examples/GSMSim_Time/GSMSim_Time.ino | #include <GSMSim.h>
#define RX 7
#define TX 8
#define RESET 2
#define BAUD 9600
GSMSim gsm;
/*
* Also you can this types:
* GSMSim gsm(RX, TX);
* GSMSim gsm(RX, TX, RESET);
* GSMSim gsm(RX, TX, RESET, LED_PIN, LED_FLAG);
*/
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Se... | #include <GSMSim.h>
#define RX 7
#define TX 8
#define RESET 2
#define BAUD 9600
GSMSim gsm;
/*
* Also you can this types:
* GSMSim gsm(RX, TX);
* GSMSim gsm(RX, TX, RESET);
* GSMSim gsm(RX, TX, RESET, LED_PIN, LED_FLAG);
*/
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Se... | Update Time example | Update Time example
| Arduino | agpl-3.0 | erdemarslan/GSMSim |
8265274d7bf9ed43a464c0103ab8f623e51cdf1e | Sensors/GpsDataToSerial/GpsDataToSerial.ino | Sensors/GpsDataToSerial/GpsDataToSerial.ino | /*--- GROVE GPS ---*/
#include <SoftwareSerial.h>
/*-----------------*/
/*--- TPH V2 ---*/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
/*--------------*/
/*--- GROVE BUTTON ---*/
#define BUTTON_PIN 20
/*--------------------*/
/*--- TPH V2 ---*/
#define BME_SCK 13
#def... | /*--- GROVE GPS ---*/
#include <SoftwareSerial.h>
/*-----------------*/
/*--- TPH V2 ---*/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
/*--------------*/
/*--- GROVE BUTTON ---*/
#define BUTTON_PIN 20
/*--------------------*/
/*--- TPH V2 ---*/
#define BME_SCK 13
#def... | Modify feedback led | Modify feedback led
| Arduino | apache-2.0 | GillisWerrebrouck/SportModule,GillisWerrebrouck/SportModule |
781b3e3f45943c8ab96c2fca6be0dff3ca3df0bd | arduino/sender/sender.ino | arduino/sender/sender.ino | /*
One PIR sensor detects motion at the bottom of the stairs: DOWN.
Another detects motion at the top of the stairs: UP.
Sends an RF message when one both sensors have been triggered,
indicating the direction of travel.
The message is sent multiple times to give it the best chance of getting through.
*/
#includ... | /*
One PIR sensor detects motion at the bottom of the stairs: DOWN.
Another detects motion at the top of the stairs: UP.
Sends an RF message when one both sensors have been triggered,
indicating the direction of travel.
The message is sent multiple times to give it the best chance of getting through.
*/
#includ... | Make all pins inputs with resistors to minimize power consumption | Make all pins inputs with resistors to minimize power consumption
| Arduino | mit | theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle,theapi/CctvBlindfoldBundle |
851fc5ff90b3b84a70ab679e3ecac772f5fa3491 | arduino/test/tx_test/tx_test.ino | arduino/test/tx_test/tx_test.ino | // One Arduino controls transmitters on pins 3 and 11, alternately
// sending out pings from the two of them, simulating two synchronized
// transmitter stations sending out pings in turn.
enum {
TX_PIN_1 = 3,
TX_PIN_2 = 11,
FREQ = 25000u, // Hz
DURATION = 5u, // ms
};
void setup() {
pinMode(TX_PIN_1, OUT... | // One Arduino controls two transmitters, alternately sending
// out pings from the two of them, simulating two synchronized
// transmitter stations sending out pings in turn.
#define TX_1_PORT PORTD
#define TX_2_PORT PORTB
enum {
TX_1_PIN_1 = 2,
TX_1_PIN_2 = 3,
TX_2_PIN_1 = 10,
TX_2_PIN_2 = 11,
FREQ = 2500... | Make each transmitter controlled by two pins. | Make each transmitter controlled by two pins.
By turning them on and off out of phase, we effectively get a voltage
range of +5V to -5V accross the transistor, quadrupling the power.
Unfortunately, the Arduino only can generate one square wave
automatically at a time, so to generate two square waves simulatneously
at... | Arduino | mit | YingVictor/ultrasonic-positioning,YingVictor/ultrasonic-positioning,YingVictor/ultrasonic-positioning |
6d8bb4b3600c7334d6192628e0af6f9e57d16b29 | Kleineswetter/Kleineswetter.ino | Kleineswetter/Kleineswetter.ino | /*
* Copyright (C) 2017 Lakoja on github.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 required by applicable law... | /*
* Copyright (C) 2017 Lakoja on github.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 required by applicable law... | Check voltage; transmit voltage; switch to spi; force sensor sleep | Check voltage; transmit voltage; switch to spi; force sensor sleep
| Arduino | apache-2.0 | Lakoja/Wetterwetter |
21cbcf0c6305335cbd812f8b694947afc8832c4d | examples/TeensyDMXRecv/TeensyDMXRecv.ino | examples/TeensyDMXRecv/TeensyDMXRecv.ino | #include <TeensyDmx.h>
#define DMX_REDE 2
#define CHANNEL 0
struct RDMINIT rdmData {
"TeensyDMX v0.1",
"Teensyduino",
1, // Device ID
"DMX Node",
1, // The DMX footprint
0, // The DMX startAddress - only used for RDM
0, // Additional commands length for RDM
0 // Definition of additional commands... | #include <TeensyDmx.h>
#define DMX_REDE 2
#define CHANNEL 0
struct RDMINIT rdmData {
"TeensyDMX v0.1",
"Teensyduino",
1, // Device ID
"DMX Node",
1, // The DMX footprint
0, // The DMX startAddress - only used for RDM
0, // Additional commands length for RDM
0 // Definition of additional commands... | Fix the example's logging | Fix the example's logging
(cherry picked from commit 184d02d2645a1e1127ca6782316c825641c392b3)
| Arduino | mit | chrisstaite/TeensyDmx,chrisstaite/TeensyDmx,chrisstaite/TeensyDmx |
443ffd281e4c7215a4bcfce4bc1961958788f4d0 | TeensyStripController.ino | TeensyStripController.ino | /********************************************************************************************************
** TeensyStrip Controller
** ----------------------
**
** This Sketch turns a Teensy 3.1, 3.2 or later into a controller for WS2811/WS2812 based led strips.
** This strip controller was originally design... | /********************************************************************************************************
** TeensyStrip Controller
** ----------------------
**
** This Sketch turns a Teensy 3.1, 3.2 or later into a controller for WS2811/WS2812 based led strips.
** This strip controller was originally design... | Fix LEDs off by one problem in OctoWS2811Ext.cpp | Fix LEDs off by one problem in OctoWS2811Ext.cpp | Arduino | mit | DirectOutput/TeensyStripController |
27f0c89837ca6e516785da949f6f3ff591cb34bf | arduino-fona/digital-out/digital-out.ino | arduino-fona/digital-out/digital-out.ino | #include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define FONA_RX 2
#define FONA_TX 3
#define FONA_RST 4
#define LIGHT 8
// replace xxxxxxxxx with your Adafruit IO key
#define AIO_KEY "xxxxxxxxx"
#define AIO_URL "http://io.adafruit.com/api/feeds/%s/data/last.txt?X-AIO-Key=%s"
SoftwareSerial fonaSS = SoftwareSer... | #include <SoftwareSerial.h>
#include <Adafruit_FONA.h>
#define FONA_RX 2
#define FONA_TX 3
#define FONA_RST 4
#define LIGHT 8
// replace xxxxxxxxx with your Adafruit IO key
#define AIO_KEY "xxxxxxxxx"
#define AIO_URL "http://io.adafruit.com/api/feeds/%s/data/last.txt?X-AIO-Key=%s"
SoftwareSerial fonaSS = SoftwareSer... | tweak gprs enable in fona digital out example | tweak gprs enable in fona digital out example | Arduino | mit | adafruit/adafruit-io-basics,adafruit/adafruit-io-basics |
84cf367746f935d08a69afb34aa331a6bde6f8e8 | udpEcho_151219/udpEcho_151219.ino | udpEcho_151219/udpEcho_151219.ino | #include <ESP8266WiFi.h>
#include <WiFiUDP.h>
#include "wifiConfig.h"
/*
* Define your SSID and WiFi password at [wifiConfig.h] using [TemplateWifiConfig.h]
*
*/
/*
* v0.1 2015 Dec. 19
* can echo back
* - add loop()
* - add setup()
* - add Serial_setup()
* - add WiFi_setup()
* - add wifiConfig.... | #include <ESP8266WiFi.h>
#include <WiFiUDP.h>
#include "wifiConfig.h"
/*
* Define your SSID and WiFi password at [wifiConfig.h] using [TemplateWifiConfig.h]
*
*/
/*
* v0.2 2015 Dec. 25
* - correct typo
* v0.1 2015 Dec. 19
* can echo back
* - add loop()
* - add setup()
* - add Serial_setup()
* ... | correct typo | correct typo
| Arduino | mit | yasokada/esp8266_151219_udpEcho |
2331a6ebb2132d61fc6344b03b9f682a8d65fbff | iot/iot.ino | iot/iot.ino | #include <Servo.h>
int LED_PIN = 13;
int SERVO_PIN = 9;
int BUTTON_PIN = 8;
int SPEAKER_PIN = 6;
Servo servo;
int servo_pos = 90;
int servo_state = 0;
int servo_delay = 0;
void setup() {
Serial.begin(9600);
// Initialize LED output
pinMode(LED_PIN, OUTPUT);
// Initialize button input
pinMode(BUTTON_PIN, ... | #include <Servo.h>
const int LED_PIN = 13;
const int SERVO_PIN = 9;
const int BUTTON_PIN = 8;
const int SPEAKER_PIN = 6;
const int RED_LED_PIN = 12;
const int GREEN_LED_PIN = 11;
const int BLUE_LED_PIN = 10;
Servo servo;
int servo_pos = 90;
int servo_state = 0;
int servo_delay = 0;
void setup() {
Serial.begin(9600... | Add LED functionality | Add LED functionality
| Arduino | mit | MunazR/EngHack-IOT,MunazR/EngHack-IOT |
a72ef72e3d2cb5ba3d31d9077350148bc0aa3e79 | examples/MarqueeText/MarqueeText.ino | examples/MarqueeText/MarqueeText.ino | #include <LEDMatrixDriver.hpp>
// This sketch draw marquee text on your LED matrix using the hardware SPI driver Library by Bartosz Bielawski.
// Example written 16.06.2017 by Marko Oette, www.oette.info
// Define the ChipSelect pin for the led matrix (Dont use the SS or MISO pin of your Arduino!)
// Other pins are A... | #include <LEDMatrixDriver.hpp>
// This sketch draw marquee text on your LED matrix using the hardware SPI driver Library by Bartosz Bielawski.
// Example written 16.06.2017 by Marko Oette, www.oette.info
// Define the ChipSelect pin for the led matrix (Dont use the SS or MISO pin of your Arduino!)
// Other pins are A... | Update MarqueeText.ino | Update MarqueeText.ino | Arduino | mit | bartoszbielawski/LEDMatrixDriver |
59ef53f89389c4b14ce2bc052214a5b36999a6f2 | laddstation/sub-module/voltmeter.ino | laddstation/sub-module/voltmeter.ino | /* Function Analog voltmeter -------------------------------------------------------
* analogvalue is the reading from the analog input pin A0
* DigitalWrite D3 is to set a digital output
* This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.
* This yields a reso... | /* Function Analog voltmeter -------------------------------------------------------
* analogvalue is the reading from the analog input pin A0
* DigitalWrite D3 is to set a digital output
* This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.
* This yields a reso... | Update voltmeter.ino | Update voltmeter.ino | Arduino | mit | designgreenhouse/solarXopen |
2786f09c845a14e8aa73a4a53d1cf9a12a396d3b | Wikiduino/Wikiduino.ino | Wikiduino/Wikiduino.ino |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// pin assignments
byte radioPowerPin = 2;
// Ethernet Configuration
byte ma... |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// pin assignments
byte radioPowerPin = 2;
// Ethernet Configuration
byte ma... | update commented out ip configuration | update commented out ip configuration
| Arduino | mit | WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki |
9c12b87c2a8756ad22847d084b45631161a68b4e | examples/JTAGTest/JTAGTest.ino | examples/JTAGTest/JTAGTest.ino |
#include <PlayXSVFJTAGArduino.h>
//#include <PlayXSVFJTAGAVR.h>
//
// The maximum size of the arduino receive buffer is 63 bytes by default.
// This number can be changed if you change the compiler flags in the
// file hardware/arduino/avr/platform.local.txt (-O2 makes it faster):
//
// compiler.c.extra_flags=-DSERI... |
#include <PlayXSVFJTAGArduino.h>
//#include <PlayXSVFJTAGAVR.h>
//
// The maximum size of the arduino receive buffer is 63 bytes by default.
// This number can be changed if you change the compiler flags in the
// file hardware/arduino/avr/platform.local.txt (-O2 makes it faster):
//
// compiler.c.extra_flags=-DSERI... | Update the example code | Update the example code
| Arduino | bsd-2-clause | mrjimenez/JTAG,mrjimenez/JTAG,mrjimenez/JTAG |
631b53cc790816565a1def3f76962594a0cdb7ea | cpp_utils/tests/BLETests/Arduino/BLE_uart/BLE_uart.ino | cpp_utils/tests/BLETests/Arduino/BLE_uart/BLE_uart.ino | /*
Video: https://www.youtube.com/watch?v=oCMOYS71NIU
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp
Ported to Arduino ESP32 by Evandro Copercini
Create a BLE server that, once we receive a connection, will send pe... | /*
Video: https://www.youtube.com/watch?v=oCMOYS71NIU
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp
Ported to Arduino ESP32 by Evandro Copercini
Create a BLE server that, once we receive a connection, will send pe... | Add Service UUID advertising (iOS support) | Add Service UUID advertising (iOS support)
Lots of apps (e.g. Blynk, RemoteXY) do not find the device during scanning on iOS, whereas other devices with the same service UUID are found. The origin of the problem is that in the advertisment, the service UUID is missing. This extra line fixes this problem. | Arduino | apache-2.0 | nkolban/esp32-snippets,nkolban/esp32-snippets,nkolban/esp32-snippets,nkolban/esp32-snippets,nkolban/esp32-snippets |
b0368cd59e82e3c6c38806b3c263a17e8f2d794a | firmware/examples/Sparkfun_ADJD-S311.ino | firmware/examples/Sparkfun_ADJD-S311.ino | #include "Sparkfun_ADJD-S311/Sparkfun_ADJD-S311.h"
#include <Wire.h>
int sensorLed_pin = 2; //LED on the ADJDS-311
ADJDS311 colorSensor(sensorLed_pin);
//if using an RGB LED (Needs PWM Pins)
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
void setup(){
Serial.begin(9600);
if (colorSensor.begin()) {
Serial.... | #include "Sparkfun_ADJD-S311/Sparkfun_ADJD-S311.h"
#include <Wire.h>
int sensorLed_pin = 2; //LED on the ADJDS-311
ADJDS311 colorSensor(sensorLed_pin);
//if using an RGB LED (Needs PWM Pins)
int redPin = 3;
int greenPin = 5;
int bluePin = 6;
void setup(){
Serial.begin(9600);
if (colorSensor.begin()) {
Serial.... | Update Sparkfun_ADJD-S311.ino | Update Sparkfun_ADJD-S311.ino | Arduino | bsd-3-clause | sauloalspark/Sparkfun_ADJD-S311,sauloalspark/Sparkfun_ADJD-S311 |
717ee6a456bde931b11a55082807e534cd8333d7 | examples/mqtt_auth/mqtt_auth.ino | examples/mqtt_auth/mqtt_auth.ino | /*
Basic MQTT example with Authentication
- connects to an MQTT server, providing username
and password
- publishes "hello world" to the topic "outTopic"
- subscribes to the topic "inTopic"
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
const char *ssid = "xxxxxxxx"; // cannot be longer than 32 c... | /*
Basic MQTT example with Authentication
- connects to an MQTT server, providing username
and password
- publishes "hello world" to the topic "outTopic"
- subscribes to the topic "inTopic"
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
const char *ssid = "xxxxxxxx"; // cannot be longer than 32 c... | Update the authentication example using an MQTT::Connect object directly | Update the authentication example using an MQTT::Connect object directly
| Arduino | mit | Protoneer/pubsubclient,hemantsangwan/Arduino-PubSubClient,doebi/pubsubclient,vshymanskyy/pubsubclient,Protoneer/pubsubclient,vshymanskyy/pubsubclient,vshymanskyy/pubsubclient,koltegirish/pubsubclient,liquiddandruff/pubsubclient,doebi/pubsubclient,koltegirish/pubsubclient,hemantsangwan/Arduino-PubSubClient,Protoneer/pub... |
0e42426462edc3e7ea273db1327b2cb5faca9947 | firmware/PCB_V02/PCB_V02.ino | firmware/PCB_V02/PCB_V02.ino | #include <aJSON.h>
/*
-------------------------------------------------
| Zachary Nelson
| znelson1@ford.com
|
| **To be used with Shift Knob PCBs**
|
| This program reads in a JSON stream and controls
| the following 3 components accordingly:
|
| 1. 7 segment display
| 2. Haptic feedback motor
| 3. RGB LEDs
|
| Bel... | #include <aJSON.h>
/*
-------------------------------------------------
| Zachary Nelson
| znelson1@ford.com
|
| **To be used with Shift Knob PCBs**
|
| This program reads in a JSON stream and controls
| the following 3 components accordingly:
|
| 1. 7 segment display
| 2. Haptic feedback motor
| 3. RGB LEDs
|
| Bel... | replace snake_case variables to match camelCase variable naming scheme in most recent firmware. | replace snake_case variables to match camelCase variable naming scheme in most recent firmware.
| Arduino | bsd-3-clause | openxc/shiftknob-android |
7b22783a1e3b0e759e1e4bb37be46add01cedc55 | sketches/EnerginoYun/EnerginoYun.ino | sketches/EnerginoYun/EnerginoYun.ino | /*
* Energino
*
* Energino Yun is a energy consumption meter for DC loads
*
* This sketch connects an Arduino equipped with the Energino
* shield and with an Ethernet shield with a web service
* implementing the COSM (formely Pachube) REST API. It also
* implements a serial interface.
*
* Circuit:
* Analo... | /*
* Energino
*
* Energino Yun is a energy consumption meter for DC loads
*
* This sketch connects an Arduino equipped with the Energino
* shield and with an Ethernet shield with a web service
* implementing the COSM (formely Pachube) REST API. It also
* implements a serial interface.
*
* Circuit:
* Analo... | set min push interval to 2 secs | set min push interval to 2 secs
| Arduino | bsd-3-clause | rriggio/energino,rriggio/energino,rriggio/energino,rriggio/energino |
8f8d00ae13e5e04553dd61517b896a6f010a7b25 | LoraNode1/LoraNode1.ino | LoraNode1/LoraNode1.ino | /* ESP8266 with RFM95W/SX1276 Example
*
* Uses deepSleep and publishes Vcc every 30 seconds.
*
* Tested using:
* - ESP8266/Arduino 2.2.0
* - Arduino LMIC 1.5.0+arduino-1
* - Arduino IDE 1.6.8
*
* Wiring connections:
* ESP8266 - SX1276
* GND GND
* VCC VCC
* GPIO15 NSS
* GPIO12 ... | /* ESP8266 with RFM95W/SX1276 Example
*
* Uses deepSleep and publishes Vcc every 30 seconds.
*
* Tested using:
* - ESP8266/Arduino 2.2.0
* - Arduino LMIC 1.5.0+arduino-1
* - Arduino IDE 1.6.8
*
* Wiring connections:
* ESP8266 - SX1276
* GND GND
* VCC VCC
* GPIO15 NSS
* GPIO13 ... | Correct MOSI/MISO pins and update to persist frame count in EEPROM | Correct MOSI/MISO pins and update to persist frame count in EEPROM
| Arduino | cc0-1.0 | HarringayMakerSpace/IoT |
4befa3049e8b9e62b875adcedec5864d0b9746be | ArduinoMainSketch/ArduinoMainSketch.ino | ArduinoMainSketch/ArduinoMainSketch.ino | /**
*Motor
*Copyright 2014
*Written by Aayush Bhandari, Wilson Hoang
*6/11/2014
**/
//--------------------------------------------------------------------------------------
// Car Class
//--------------------------------------------------------------------------------------
#include "C... | /**
*Main Sketch
*Copyright 2014
*Written by Aayush Bhandari, Wilson Hoang
*6/13/2014
**/
//--------------------------------------------------------------------------------------
// Main Sketch
//--------------------------------------------------------------------------------------
#in... | Update ArduinoMainSketch.ino | Update ArduinoMainSketch.ino | Arduino | apache-2.0 | AayushB/Remote-Epsilon |
d19c6ac2fd67337fcda74e883ddd4e0da3b2453e | DigitalSynthVRA8P/DigitalSynthVRA8P.ino | DigitalSynthVRA8P/DigitalSynthVRA8P.ino | #include "Arduino.h"
#include "common.h"
#include "synth.h"
#include "serial-in.h"
#include "audio-out.h"
void setup() {
Synth<0>::initialize();
SerialIn<0>::open();
AudioOut<0>::open();
}
void loop() {
while (true) {
if (SerialIn<0>::available()) {
uint8_t b = SerialIn<0>::read();
Synth<0>::r... | #include "Arduino.h"
#include "common.h"
#include "synth.h"
#include "serial-in.h"
#include "audio-out.h"
void setup() {
noInterrupts();
Synth<0>::initialize();
SerialIn<0>::open();
AudioOut<0>::open();
}
void loop() {
while (true) {
if (SerialIn<0>::available()) {
uint8_t b = SerialIn<0>::read();... | Improve the stability | Improve the stability
| Arduino | cc0-1.0 | risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p,risgk/digital-synth-vra8-p |
c43401212555120190c5b9f477db0cbd46667a2d | Wikiduino/Wikiduino.ino | Wikiduino/Wikiduino.ino |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// pin assignments
byte radioPowerPin = 2;
// Ethernet Configuration
byte ma... |
// Copyright (c) 2011, Ward Cunningham
// Released under MIT and GPLv2
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <EthernetServer.h>
#include <OneWire.h>
#define num(array) (sizeof(array)/sizeof(array[0]))
// pin assignments
byte radioPowerPin = 2;
// Ethernet Configuration
byte ma... | add third analog channel for solar panel volts | add third analog channel for solar panel volts
| Arduino | mit | rkh/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki |
8fcf621cdcffd10677a1d62310b81e4f8edb77a7 | 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 A0
#define SSR2_PIN A1
#define SSR3_PIN A2
#define SSR4_PIN A3
#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 A0
#define SSR2_PIN A1
#define SSR3_PIN A2
#define SSR4_PIN A3
#define INITIAL_SMOOTHING_US 20... | Add watchdog | Add watchdog
| Arduino | bsd-3-clause | primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble |
bdf4525ac85caf2331c4ade54f5e3688405d27b8 | dee-oh-tee.ino | dee-oh-tee.ino | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int CLOCKWISE = 0;
const int COUNTERCLOC... | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int CLOCKWISE = 0;
const int COUNTERCLOC... | Reimplement performRangeTest in terms of drawRectangle | Reimplement performRangeTest in terms of drawRectangle
| Arduino | apache-2.0 | acj/dee-oh-tee |
c3087c896ddc8a468a2d24f6d450f71a6a096e97 | examples/Blynk/Blynk.ino | examples/Blynk/Blynk.ino | /*
This example is not intended to explain Blynk in detail but
actes as an example to bring VitoWifi into your Blynk IoT project.
V0: step V (set room temp)
V1: labeled value (outside temp)
V2: labeled value (set room temp)
V3: terminal
*/
#include <Arduino.h>
#include <VitoWifi.h>
#include <ESP8266WiFi.h... | /*
This example is not intended to explain Blynk in detail but
actes as an example to bring VitoWifi into your Blynk IoT project.
V0: step V (set room temp)
V1: labeled value (outside temp)
V2: labeled value (set room temp)
V3: terminal
*/
#include <Arduino.h>
#include <VitoWifi.h>
#include <ESP8266WiFi.h... | add parameter to setWriteable | add parameter to setWriteable
| Arduino | mit | bertmelis/VitoWifi,bertmelis/VitoWifi |
98ad16eff8848bffeb812c4d347dfdb5ddef5a31 | 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
... | Correct buffer overflow and remove magic constants from esp8266 example | Correct buffer overflow and remove magic constants from esp8266 example
The msg[] array is defined as 50 bytes long, but then the snprintf is
protected at 75 bytes long, which is incorrectly 25 bytes longer than
the underlying array.
To correct this, define a new macro MSG_BUFFER_SIZE and use it in both
places:
* de... | Arduino | mit | knolleary/pubsubclient,knolleary/pubsubclient,knolleary/pubsubclient |
973d102a0abed40797ffb753b52e4b89141536d0 | esp8266_160220_BYOP.ino | esp8266_160220_BYOP.ino |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* v0.2 2016 Feb 20
* - fix Serial_readCommand() to handle CR code
* - add Serial_replyToCommand()
* v0.1 2016 Feb 20
* - add Serial_readCommand()
* - add serial setup
*/
//-----... |
/*
* This program is used for a message station shown at
* https://hackaday.io/project/9526-bring-your-own-pizero-byop
*/
/*
* v0.3 2016 Feb 20
* - use equalsIgnoreCase() instead of equals() in Serial_replyToCommand()
* v0.2 2016 Feb 20
* - fix Serial_readCommand() to handle CR code
* - add Serial_replyTo... | use equalsIgnoreCase() instead of equals() in Serial_replyCommand() | use equalsIgnoreCase() instead of equals() in Serial_replyCommand()
| Arduino | mit | yasokada/esp8266_160220_BYOP |
dbdf8ea895e20b6c05f58fab127b4788ab55e23a | src/pm25/pm25.ino | src/pm25/pm25.ino | /*
pm25 demo.
This sketch demonstrate how to updata yourair quality data to the wilddog cloud.
A Wilddog account are necessary to run this demo.
If you don't already have one, you can register for a free Wilddog account at
https://www.wilddog.com/
In order to run this sketch, you'll need to creat a... | /*
pm25 demo.
This sketch demonstrate how to updata yourair quality data to the wilddog cloud.
A Wilddog account are necessary to run this demo.
If you don't already have one, you can register for a free Wilddog account at
https://www.wilddog.com/
In order to run this sketch, you'll need to creat a... | fix puzzled printf | fix puzzled printf
| Arduino | mit | WildDogTeam/demo-c-airmonitor,WildDogTeam/demo-c-airmonitor |
68b111d318e54cf5012a46faebfe4f7cf228e283 | software/XTendPayloadTeensy/XTendPayloadTeensy.ino | software/XTendPayloadTeensy/XTendPayloadTeensy.ino | /*
* Serial1: GPS and LOGGER
* Serial2: RF IN/OUT
*/
#include <TimeLib.h>
char pkt_buffer[200];
boolean sentencePending, sentenceRdy;
boolean txFlag, help;
char sentenceBuf[GPSLEN];
char sentenceBuf2[GPSLEN];
String gpsTime, gpsDate, gpsLat, gpsLon, gpsAlt, gspVgnd, gpsHdng;
int sentenceBufIndex = 0;
String msgIn =... | /*
* Serial1: GPS and LOGGER
* Serial2: RF IN/OUT
*/
#include <TimeLib.h>
char pkt_buffer[200];
boolean sentencePending, sentenceRdy, sentenceBufRdy;
boolean txFlag, help;
char sentence[GPSLEN];
char sentenceBuf[GPSLEN];
String gpsTime, gpsDate, gpsLat, gpsLon, gpsAlt, gspVgnd, gpsHdng;
int sentenceIndex = 0;
Strin... | Refactor buffer names | Refactor buffer names
| Arduino | mit | AdlerFarHorizons/Transceiver,AdlerFarHorizons/Transceiver |
9d4b2747fe939aa1a722ef39914e3b3e6bbf0703 | arduino/switch_n_led/switch_n_led.ino | arduino/switch_n_led/switch_n_led.ino | #include <RCSwitch.h>
#include <LowPower.h>
/*
* This example shows how to read the status of a input switch
* and flash a LED when that switch change its state.
* To reduce power consumption, the MCU is put to sleep and we
* use the switch pin as a interrupt source.
*/
//RCSwitch rfDevice = RCSwitch();
int SER... | #include <LowPower.h>
/*
* This example shows how to read the status of a input switch
* and flash a LED when that switch change its state.
* To reduce power consumption, the MCU is put to sleep and we
* use the switch pin as a interrupt source.
*/
int SERIAL_COMMUNICATION_SPEED = 9600;
// Pin on which the magne... | clean up code | clean up code
| Arduino | apache-2.0 | jdmichaud/snippets,jdmichaud/snippets,jdmichaud/snippets,jdmichaud/snippets,jdmichaud/snippets,jdmichaud/snippets,jdmichaud/snippets |
6cbd15067f77f3a2390d62a8d1cb2e5076eac962 | arduino-controller/SDAnimation.ino | arduino-controller/SDAnimation.ino | #include "SD.h"
#include "string.h"
File root;
void setup()
{
Serial.begin(9600);
pinMode(10, OUTPUT); // change this to 53 on a mega
bool sd_ok = SD.begin(9);
if (!sd_ok)
{
Serial.println("failed.");
return;
}
root = SD.open("/");
}
void sendAnimation(byte *data)
{
Serial.write(0xf2); // batch updat... | #include "SD.h"
#include "string.h"
File root;
void setup()
{
Serial.begin(9600);
pinMode(10, OUTPUT); // SS pin must be output, change this to 53 on a mega
bool sd_ok = SD.begin(9); // chip select pin
if (!sd_ok)
{
Serial.println("failed.");
return;
}
root = SD.open("/");
}
void sendAnimation(byte *d... | Update SDAnimation.ino | Update SDAnimation.ino | Arduino | mit | tomazas/DotMatrixJava |
8e6a2447eda0e83649984005f6e2db28c84ceb24 | humidity1/humidity1.ino | humidity1/humidity1.ino | #include <limits.h> // For ULONG_MAX
static const int VCCPin = 9; // Digital, Power pin to drive the 1kHz square wave
static const int humidityPin = 0; // Analog, Humidity sensor reading pin
static const int tempPin = 4; // Analog, Temperature sensor reading pin
static const float Re = 50.3; // Reference resisto... | #include <limits.h> // For ULONG_MAX
static const int VCCPin = 9; // Digital, Power pin to drive the 1kHz square wave
static const int humidityPin = 0; // Analog, Humidity sensor reading pin
static const int tempPin = 4; // Analog, Temperature sensor reading pin
static const float Re = 50.3; // Reference resisto... | Add empirical rescaling for resistance | Arduino: Add empirical rescaling for resistance
| Arduino | mit | imrehg/weatherstation,UltracoldAtomsLab/weatherstation |
4e2e289911e42d0bbf82fe3120c3ef33c6301811 | jllockuno/jllockuno.ino | jllockuno/jllockuno.ino | /*
* Write personal data of a MIFARE RFID card using a RFID-RC522 reader
* Uses MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* -----------------------------------------------------------------------------------------
* MFRC522 Arduino Arduino... | /*
* Write personal data of a MIFARE RFID card using a RFID-RC522 reader
* Uses MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* -----------------------------------------------------------------------------------------
* MFRC522 Arduino Arduino... | change led pin | change led pin
| Arduino | mit | bloomlj/jllock,bloomlj/jllock,bloomlj/jllock |
de7f80d43b6513b442e2b73d49c69ef5835497f5 | bot_base.ino | bot_base.ino | /* bot_base.ino ~ Copyright 2015 ~ Paul Beaudet
* MIT licence ~ See licence for details
* Compiled with Arduino IDE 1.6.5
* The goal of this project is to provide remote control and some autonomous
* program modes for a 2 wheeled robot driven by the 2x12 Sabertooth motor controller
* NOTICE!! no ramping, assumes y... | /* bot_base.ino ~ Copyright 2015 ~ Paul Beaudet
* MIT licence ~ See licence for details
* Compiled with Arduino IDE 1.6.5
* The goal of this project is to provide remote control and some autonomous
* program modes for a 2 wheeled robot driven by the 2x12 Sabertooth motor controller
* NOTICE!! no ramping, assumes y... | fix com error that lets ff through | fix com error that lets ff through
| Arduino | mit | PaulBeaudet/bot_base,PaulBeaudet/bot_base |
e9a6fd2f8258d88ae762c84de44f56aeb42b98a7 | libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino | libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor/mDNS_ServiceMonitor.ino | /*
ESP8266 mDNS Responder Service Monitor
This example demonstrates two features of the LEA MDNSResponder:
1. The host and service domain negotiation process that ensures
the uniqueness of the finally choosen host and service domain name.
2. The dynamic MDNS service lookup/query feature.
A list of 'HTT... | /*
ESP8266 mDNS Responder Service Monitor
This example demonstrates two features of the LEA MDNSResponder:
1. The host and service domain negotiation process that ensures
the uniqueness of the finally choosen host and service domain name.
2. The dynamic MDNS service lookup/query feature.
A list of 'HTT... | Update mDNS examples to use HTTP Server instead of TCP Server (#5589) | Update mDNS examples to use HTTP Server instead of TCP Server (#5589)
| Arduino | lgpl-2.1 | Lan-Hekary/Arduino,sticilface/Arduino,Lan-Hekary/Arduino,esp8266/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,Lan-Hekary/Arduino,esp8266/Arduino |
36effdfd3c6fb40543accba457d0ddbebe52b9d3 | ArduinoArcReactor/ArduinoArcReactor.ino | ArduinoArcReactor/ArduinoArcReactor.ino | /*
* ArcReactor
*
* Copyright (C) Marcin Badurowicz <m at badurowicz dot net> 2017
*
*
* 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 ... | /*
* ArcReactor
*
* Copyright (C) Marcin Badurowicz <m at badurowicz dot net> 2017
*
*
* 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 ... | fix applying color to every LED from a sequence | fix applying color to every LED from a sequence
| Arduino | mit | ktos/ArcReactor,ktos/ArcReactor |
101d528fee97ed9fd373ae99c80a9d8c9fd33892 | arduino_sensors/arduino_sensors.ino | arduino_sensors/arduino_sensors.ino | f#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_9DOF.h>
#include <Adafruit_L3GD20_U.h>
#include <SPI.h>
#include <Pixy.h>
#include <LIDARLite.h>
#include <Wire.h>
#include <Timer.h>
#define X_CENTER ((PIXY_MAX_X-PIXY_MIN_X)/2)
int ultrasonicpin = 0;
//Pixy pixy;
LIDARLite lidar;
uint16_... | #include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>
#include <Adafruit_9DOF.h>
#include <Adafruit_L3GD20_U.h>
#include <SPI.h>
#include <Pixy.h>
#include <LIDARLite.h>
#include <Wire.h>
#include <Timer.h>
#define X_CENTER ((PIXY_MAX_X-PIXY_MIN_X)/2)
int ultrasonicpin = 0;
//Pixy pixy;
LIDARLite lidar;
uint16_t... | Update the arduino code to reflect changes in the timer libs | Update the arduino code to reflect changes in the timer libs
| Arduino | mit | wando-advanced-robotics/steamworks-robot |
81df9b16ca211f26d6d22103dfda368dbfd738a4 | software/firmware/animTest/animTest.ino | software/firmware/animTest/animTest.ino | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <SimpleBezier.h>
#include <ServoAnimatorI2C.h>
#include <EEPROM.h>
#include <QuadruloopEEPROM.h>
#include <CommandQueue.h>
#include "Config.h"
#include "Animations.h"
ServoAnimatorI2C anim(NUM_JOINTS);
CommandQueue cmdQ(COMMAND_QUEUE_LENGTH);
uint8_t mod... | #include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <SimpleBezier.h>
#include <ServoAnimatorI2C.h>
#include <EEPROM.h>
#include <QuadruloopEEPROM.h>
#include <CommandQueue.h>
#include "Config.h"
#include "Animations.h"
ServoAnimatorI2C anim(NUM_JOINTS);
CommandQueue cmdQ(COMMAND_QUEUE_LENGTH);
uint8_t mod... | Reduce anim updates to 50hz | Reduce anim updates to 50hz
from approx 260 hz
| Arduino | mit | snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop |
394a29994a38c631981d01931e904266c56d69b6 | arduino/src/sketch.ino | arduino/src/sketch.ino | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN A2
#define DHTPIN 8
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
float hum = 0;
float tmp = 0;
float hid = 0;
int mq7 = 0;
int mq2 = 0;
char fmt [64];
int readMQ7() {
int value;
value = analogRead(MQ7PIN);
if (isnan(value)) {
... | #include <DHT.h>
#include <TimerOne.h>
#define MQ7PIN A0
#define MQ2PIN 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... | use 'lossy' conversion, DHT11 doesn't output floats | use 'lossy' conversion, DHT11 doesn't output floats
| Arduino | mit | pedroscaff/sensor_platform,pedroscaff/sensor_platform |
30dd6388e86d6a7e837a80764411451c129823c0 | 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
* Se... | /*******************************************************************************
*
* 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... | update mpr121 test output | update mpr121 test output
| Arduino | mit | akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon |
0efed56392e380e4b9ab55679d6a54497d571e26 | Kleineswetter/Kleineswetter.ino | Kleineswetter/Kleineswetter.ino | /*
* Copyright (C) 2017 Lakoja on github.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 required by applicable law... | /*
* Copyright (C) 2017 Lakoja on github.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 required by applicable law... | Correct sleep time if no connect. | Correct sleep time if no connect.
| Arduino | apache-2.0 | Lakoja/Wetterwetter |
74ebb53489123000d8cc69828926b0d1d6200ad4 | examples/hello/hello.ino | examples/hello/hello.ino | /***
hello.ino: Hello World Socket.IO Client for Arduino/Bitlash
Copyright (C) 2013 Bill Roy
MIT license: see LICENSE file.
This sketch listens for a Bitlash command from a socket.io server and
executes the command, returning its output to the server over the websocket.
For testing, you will find a companion ... | /***
hello.ino: Hello World Socket.IO Client for Arduino/Bitlash
Copyright (C) 2013 Bill Roy
MIT license: see LICENSE file.
This sketch listens for a Bitlash command from a socket.io server and
executes the command, returning its output to the server over the websocket.
For testing, you will find a companion ... | add connected() check | add connected() check
| Arduino | mit | quentinpigne/socket.io-arduino-client,billroy/socket.io-arduino-client,quentinpigne/socket.io-arduino-client |
4900b50242a807393defc3aa1c056e04b8b8ba00 | WifiWeatherGuy.ino | WifiWeatherGuy.ino | #include <ArduinoJson.h>
#include <SPI.h>
#include <FS.h>
#include <Adafruit_GFX.h>
#include <TFT_eSPI.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPUpdateServer.h>
#include <SimpleTimer.h>
#include "Stator.h"
#include "Configuration.h"
#... | #include <ArduinoJson.h>
#include <SPI.h>
#include <FS.h>
#include <Adafruit_GFX.h>
#include <TFT_eSPI.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPUpdateServer.h>
#include <SimpleTimer.h>
#include "Stator.h"
#include "Configuration.h"
#... | add default provider if undefined for arduino ide compatibility | add default provider if undefined for arduino ide compatibility
| Arduino | apache-2.0 | jscrane/WifiWeatherGuy,jscrane/WifiWeatherGuy,jscrane/WifiWeatherGuy |
a1ded4e9e9d82febae21c8931ec4f5e9727042f6 | examples/Widgets/Terminal/Terminal.ino | examples/Widgets/Terminal/Terminal.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 example | Update example
| Arduino | mit | johan--/blynk-library,CedricFinance/blynk-library,ivankravets/blynk-library,sstocker46/blynk-library,radut/blynk-library,okhiroyuki/blynk-library,blynkkk/blynk-library,johan--/blynk-library,ivankravets/blynk-library,flashvnn/blynk-library,sstocker46/blynk-library,flashvnn/blynk-library,csicar/blynk-library,okhiroyuki/b... |
2e0badecdb85b77b67f16b74839ce68f49390733 | Arduino/MyStadingDesk/MyStadingDesk.ino | Arduino/MyStadingDesk/MyStadingDesk.ino | #include <SoftwareSerial.h>
#define FALL 8
#define RISE 9
#define TRIG 10
#define ECHO 11
#define PULSEIN_TIMEOUT 7500
#define MIN_HEIGHT 70
#define MAX_HEIGHT 100
/*
[State]
READY : 0
FALLING : 1
RISING : 2
AUTO_FALLING : 3
AUTO_RISING : 4
*/
int state = 0, goalHeight = 0;
unsigned long latestCommandTime = 0;
voi... | #include <SoftwareSerial.h>
#define FALL 8
#define RISE 9
#define TRIG 10
#define ECHO 11
#define PULSEIN_TIMEOUT 7500
#define MIN_HEIGHT 70
#define MAX_HEIGHT 100
/*
[State]
READY : 0
FALLING : 1
RISING : 2
AUTO_FALLING : 3
AUTO_RISING : 4
*/
int state = 0, goalHeight = 0;
unsigned long latestCommandTime = 0;
voi... | send distance value after autoMoving | send distance value after autoMoving
| Arduino | mit | neosarchizo/MyStandingDesk |
f613e895c388f0dc031cf1a4a5d49af8f22fd29b | arduino/drinktip/drinktip.ino | arduino/drinktip/drinktip.ino | #include <SoftwareSerial.h>
#include <Adafruit_NeoPixel.h>
#include <Timer.h>
#define BAUD 9600
#define PIN 5
#define TONE_PIN 6
#define PIXEL_NUM 3
#define TIP_DURATION 10000
#define TEST_CMD 't'
#define DRINK_CMD 'd'
#define MISS_CMD 'm'
#define REST_CMD 'r'
#define DRINK... | #include <SoftwareSerial.h>
#include <Adafruit_NeoPixel.h>
#include <Timer.h>
#define BAUD 9600
#define PIN 5
#define TONE_PIN 6
#define PIXEL_NUM 3
#define TIP_DURATION 10000
#define TEST_CMD 't'
#define DRINK_CMD 'd'
#define MISS_CMD 'm'
#define REST_CMD 'r'
#define DRINK... | add start code | add start code
| Arduino | apache-2.0 | uname/drinktip,uname/drinktip |
bef35cb594079f1ab067ee585c0f564d41df4317 | src/drivefw/drivefw.ino | src/drivefw/drivefw.ino | #define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
void setup()
{
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIVE_CONTROL_PIN, INPUT_PULLUP);
pinMode(REVERSE_ENGAGE_PIN, OUTPUT);
pinMode(REVERSE_CONTROL_PIN, INPUT_PULLUP);
delay(5000); //Make sur... | #define REVERSE_CONTROL_PIN 5
#define REVERSE_ENGAGE_PIN 6
#define DRIVE_CONTROL_PIN 7
#define DRIVE_MOTOR_PIN 8
void setup()
{
pinMode(DRIVE_MOTOR_PIN, OUTPUT);
pinMode(DRIVE_CONTROL_PIN, INPUT_PULLUP);
pinMode(REVERSE_ENGAGE_PIN, OUTPUT);
pinMode(REVERSE_CONTROL_PIN, INPUT_PULLUP);
delay(5000); //Make sur... | Update drivefw.ino | Update drivefw.ino
Reduce delay during control loop | Arduino | mit | blakewford/wifiRC,blakewford/wifiRC,blakewford/wifiRC |
6e28275a635a2b012f7e70fe53c88d32dce46848 | sinric.ino | sinric.ino | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUdp.h>
#include <functional>
void prepareIds();
boolean connectWifi();
boolean connectUDP();
void startHttpServer();
void turnOnRelay();
void turnOffRelay();
void sendRelayState();
const char* ssid = "************"; // CHANGE: Wifi name
const char*... | #include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiUdp.h>
#include <functional>
void prepareIds();
boolean connectWifi();
boolean connectUDP();
void startHttpServer();
void turnOnRelay();
void turnOffRelay();
void sendRelayState();
const char* ssid = "************"; // CHANGE: Wifi name
const char*... | add yield to fix UDP sending response. | add yield to fix UDP sending response.
add yield to fix UDP sending response. | Arduino | mit | kakopappa/arduino-esp8266-alexa-wemo-switch |
fd3378ab486c88ada799f315613c2ea70c67c645 | examples/Face/FINGER/FINGER.ino | examples/Face/FINGER/FINGER.ino | #include <M5Stack.h>
#include "finger.h"
uint8_t userNum; //User number
FingerPrint FP_M;
void CleanScreen()
{
M5.Lcd.setTextColor(WHITE);
M5.Lcd.fillRect(0,50,400,300,BLACK);
M5.Lcd.setCursor(0, 50);
M5.Lcd.setTextSize(2);
userNum = FP_M.fpm_getUserNum();
M5.Lcd.print("userNum:");
... | #include <M5Stack.h>
#include "finger.h"
uint8_t userNum; //User number
FingerPrint FP_M;
void CleanScreen()
{
M5.Lcd.setTextColor(WHITE);
M5.Lcd.fillRect(0,50,400,300,BLACK);
M5.Lcd.setCursor(0, 50);
M5.Lcd.setTextSize(2);
userNum = FP_M.fpm_getUserNum();
M5.Lcd.print("userNum:");
... | Update FINGER.ino | Update FINGER.ino | Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
bd04152b76188b90b801fb5f0661c3308c8f77da | status.ino | status.ino | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
#define BLUE 4
#define RESPONSE_OK 1
#define RESPONSE_SCALE_UP 2
#define RESPONSE_SCALE_DOWN 3
#define RESPONSE_RESTART 4
SparkButton strip = SparkButton();
int current[12];
int desired[12];
int drainResponse;
void setup() {
... | #include "SparkButton.h"
#define OFF 0
#define GREEN 1
#define YELLOW 2
#define RED 3
#define BLUE 4
#define RESPONSE_OK 1
#define RESPONSE_SCALE_UP 2
#define RESPONSE_SCALE_DOWN 3
#define RESPONSE_RESTART 4
SparkButton strip = SparkButton();
int current[12];
int desired[12];
int drainResponse;
void setup() {
... | remove debug statements | remove debug statements
| Arduino | mit | heroku/sparoku-status,heroku/sparoku-status |
c99b221c145fd3892bf1b8e574da13fd404c4a62 | examples/1fan/1fan.ino | examples/1fan/1fan.ino | #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 %
}
| #include "Dimmer.h"
Dimmer fan(6); //pwn pin connected to arduino
void setup()
{
fan.begin();
}
void loop()
{
fan.setIntensity(85); //sets the pwn 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 |
db8cec39e2a41532ac4f8bea3b2b15c3a5174d98 | ksp-gegi-microusb/ksp-gegi-microusb.ino | ksp-gegi-microusb/ksp-gegi-microusb.ino |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// https://github.com/MHeironimus/ArduinoJoystickLibrary
#include <Joystick.h>
// IDE: Arduino/Genuino Micro
// potencjometr: niebieski z czarną kreską do GND,... |
#include <Arduino.h>
#include <Wire.h>
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
#include <LiquidCrystal_I2C.h> // Using version 1.2.1
// https://github.com/MHeironimus/ArduinoJoystickLibrary
#include <Joystick.h>
// IDE: Arduino/Genuino Micro
// potencjometr: niebieski z czarną kreską do GND,... | correct throttle analogin pin | correct throttle analogin pin
| Arduino | mit | ytmytm/ksp-gegi |
7c7b26b8b05f77d08d3e52622340431583071ede | src/clock.ino | src/clock.ino | #include <Wire.h>
#include "RTClib.h"
#include "Clock.h"
#include "Display.h"
#define VIEW_BUTTON 9
#define SET_MINUTE_BUTTON 8
#define SET_HOUR_BUTTON 7
#define SNOOZE_BUTTON 6
#define ENABLE_ALARM_BUTTON 5
RTC_DS1307 rtc;
Display* display;
AlarmClock* alarm;
void setup () {
#ifndef ESP8266
while (!Serial); // fo... | #include <Wire.h>
#include <SoftwareSerial.h>
#include "RTClib.h"
#include "Clock.h"
#include "Display.h"
#define VIEW_BUTTON 9
#define SET_MINUTE_BUTTON 8
#define SET_HOUR_BUTTON 7
#define SNOOZE_BUTTON 6
#define ENABLE_ALARM_SWITCH 5
#define VOICE_RX 10
#define VOICE_TX 11
RTC_DS1307 rtc;
Display* display;
AlarmClo... | Add EMIC-2 functionality | Add EMIC-2 functionality
My EMIC-2 breakout came in the mail today. It provides voice synth, so
that my clock can talk to me. I've done a little bit of refactoring to
move some of the logic into functions, and also added the init for the
voice stuff.
| Arduino | mit | whodevil/IoT-Clock |
dfff6b6af2158c41582e175f478da0bd70d06c2f | Esp8266GatewayPimatic.ino | Esp8266GatewayPimatic.ino | /**
* The MySensors Arduino library handles the wireless radio link and protocol
* between your home built sensors/actuators and HA controller of choice.
* The sensors forms a self healing radio network with optional repeaters. Each
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
... | /**
* The MySensors Arduino library handles the wireless radio link and protocol
* between your home built sensors/actuators and HA controller of choice.
* The sensors forms a self healing radio network with optional repeaters. Each
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
... | Update Esp8266GatewayPimatic.ino | Update Esp8266GatewayPimatic.ino
change comment "yourvariable" to "variable to use in pimatic" | Arduino | mit | hvdwolf/Esp8266GatewayPimatic,hvdwolf/Esp8266GatewayPimatic |
0f64429cddda2c83c69df512ddb6c9fbcfc732e2 | sequencial_turn_signal_4_8_0zxy/sequencial_turn_signal_4_8_0zxy.ino | sequencial_turn_signal_4_8_0zxy/sequencial_turn_signal_4_8_0zxy.ino | /*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ +
+ Program: Sequential Turn Signal Master +
+ Version: 4.8.2zxy +
+ Purpose: Using a 3 taillight per side configuration +
+ this program ... | /*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ +
+ Program: Sequential Turn Signal Master +
+ Version: 4.8.2zxy +
+ Purpose: Using a 3 taillight per side configuration +
+ this program ... | Fix bug in One Tap operation | Fix bug in One Tap operation | Arduino | mit | jasonsaler/SequentialTL |
4ef4ae72dc28b1b1ecf5b9069c1cfc097a1550a5 | Arduino/McLighting/version_info.ino | Arduino/McLighting/version_info.ino | /*
* 07 May 2018 v 2.1.0
* - Start of versioning v2.1, added version support
* - '/esp_status' returns lot more info
*
* 11 May 2018 v 2.1.1
* - Use ArduinoJSON to send JSON replies
* - Add strip.trigger()
*
* 17 Jun 2018 v 2.1.2
* - Upgrade to ArduinoJSON 6.xx from ArduinoJSON 5.xx
* - Added example for s... | /*
* 07 May 2018 v 2.1.0
* - Start of versioning v2.1, added version support
* - '/esp_status' returns lot more info
*
* 11 May 2018 v 2.1.1
* - Use ArduinoJSON to send JSON replies
* - Add strip.trigger()
*
* 17 Jun 2018 v 2.1.2
* - Upgrade to ArduinoJSON 6.xx from ArduinoJSON 5.xx
* - Added example for s... | Update version info | Update version info
| Arduino | mit | toblum/McLighting,toblum/McLighting,toblum/McLighting,toblum/McLighting |
b65526e86dc99e2497aceec3b16ed27f29c3e6b5 | bsd/bsd.ino | bsd/bsd.ino | /**
* A small project at the request of my friedn and colleague @ffeldmann
* This is an arduino sketch that runs on the Arduino Yun.
* This project shows a webpage where people can press the "BullShit" button which in turns will trigger an alarm and light some pixels
*
* BSDetector is a microservice accessible as... | /**
A small project at the request of my friedn and colleague @ffeldmann
This is an arduino sketch that runs on the Arduino Yun.
This project shows a webpage where people can press the "BullShit" button which in turns will trigger an alarm and light some pixels
BSDetector is a microservice accessible as a ... | Add some code to send the IP the yun gets from DHCP so people can connect to it | Add some code to send the IP the yun gets from DHCP so people can connect to it
| Arduino | mit | bgeorges/tinkering,bgeorges/tinkering,bgeorges/tinkering |
5078efe6f28fa287e8f23e97104cdd565dd04834 | 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>
#include <RFormatter.h>
RTEST(TestSystemInfo)
{
RFormatter formatter(manager()->printer());
formatter("Siz... | # 2 "TestSystemInfo.ino"
#include <Arduino.h>
#include <Arduino_FreeRTOS.h>
#include <StandardCplusplus.h>
#include <RabirdToolkit.h>
#include <RTest.h>
RTEST(TestSystemInfo)
{
RASSERT_MORE(sizeof(int), 0);
RASSERT_MORE(sizeof(uintptr_t), 0);
RASSERT_MORE(sizeof(rsize), 0);
RASSERT_MORE(sizeof(rnumber), 0);
... | Use assert macro for print out system info | Use assert macro for print out system info
| Arduino | mit | starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit |
0052a1fcc31dba9ea62dad934e1ac9f5e12fbce1 | examples/Sample1-Basic/Sample1-Basic.ino | examples/Sample1-Basic/Sample1-Basic.ino | #include <Arduboy.h>
#include <ArdVoice.h>
#include "voices.h"
Arduboy arduboy;
ArdVoice ardvoice;
void setup() {
arduboy.begin();
arduboy.setFrameRate(30);
ardvoice.playVoice(merry_q6);
}
void loop() {
if (!(arduboy.nextFrame()))
return;
if (arduboy.pressed(B_BUTTON)){
ardvoice.playVoice(merry_q6);
}
... | #include <Arduboy2.h>
#include <ArdVoice.h>
#include "voices.h"
Arduboy2 arduboy;
ArdVoice ardvoice;
void setup() {
arduboy.begin();
arduboy.setFrameRate(30);
ardvoice.playVoice(merry_q6);
}
void loop() {
if (!(arduboy.nextFrame()))
return;
if (arduboy.pressed(B_BUTTON)){
ardvoice.playVoice(merry_q6);
}
... | Modify samples to use Arduboy2 library | Modify samples to use Arduboy2 library | Arduino | apache-2.0 | igvina/ArdVoice |
8292b15e4f5bd2db0f451bfc757138537219704d | firmware/web-stepper.ino | firmware/web-stepper.ino | //////////////////////////////////////////////////
// Spice machine stepper motor web control v1.0 //
//////////////////////////////////////////////////
// Justin Ashton
// (c) J. Ashton & Company, Inc., 2016
//
// Hardware setup: Particle Photon, Easy Driver v4.5, NEMA 17, 12v power
//
// This sketch is designed to... | //////////////////////////////////////////////////
// Spice machine stepper motor web control v1.0 //
//////////////////////////////////////////////////
// Justin Ashton
// (c) J. Ashton & Company, Inc., 2016
//
// Hardware setup: Particle Photon, Easy Driver v4.5, NEMA 17, 12v power
//
// This sketch is designed to... | Update web-stepper.ino | Update web-stepper.ino | Arduino | mit | jashtonSF/spice-machine |
550555dc92f169039b56e26df716f0b4a16e6dba | 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 )
{
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... | Switch tft backlight off after SmartConfig finishes. | Switch tft backlight off after SmartConfig finishes.
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
cacb884fea6aa485ed54d0107dbd67b6465a312b | Dremelfuge.ino | Dremelfuge.ino | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
Uploaded to an Arduino UNO, with MCU ATmega328P-PU.
Arduino UNO specs: https://www.arduino.cc/en/Main/ArduinoBoardUno
ATmega328P-PU datasheet: http://www.atmel.com/Images... | /*
Dremelfuge ETC Project 2015-2016
Adapted from Orlov's Instructable on Arduino Powered Centrifuge
Compiled and Edited by: Albert Ju, Fu Yang Chin
Uploaded to an Arduino UNO, with MCU ATmega328P-PU.
Arduino UNO specs: https://www.arduino.cc/en/Main/ArduinoBoardUno
ATmega328P-PU datasheet: http://www.atmel.com/Images... | Change a line of formatting and a comment | Change a line of formatting and a comment
| Arduino | mit | karinassuni/dremelfuge |
626e6dd8dc37836e7cbe27f34e3a6d3906483149 | examples/HIH61xx_SoftWire_demo/HIH61xx_SoftWire_demo.ino | examples/HIH61xx_SoftWire_demo/HIH61xx_SoftWire_demo.ino | #include <SoftWire.h>
#include <HIH61xx.h>
#include <AsyncDelay.h>
SoftWire sw(SDA, SCL);
HIH61xx<SoftWire> hih(sw);
AsyncDelay samplingInterval;
// Only a very small RX buffer is needed
uint8_t i2cRxBuffer[4];
uint8_t i2cTxBuffer[4];
void setup(void)
{
#if F_CPU >= 12000000UL
Serial.begin(115200);
#else
Serial... | // This example demonstrates how to use the HIH61xx class with the SoftWire library. SoftWire is a software I2C
// implementation which enables any two unused pins to be used as a I2C bus. The HIH61xx state machine
// enables others tasks to run whilst the HIH61xx is powering up etc.
#include <SoftWire.h>
#include <HI... | Add explanatory information | Add explanatory information
| Arduino | lgpl-2.1 | stevemarple/HIH61xx |
3ff8757574354e1902e0f6d7922de18fa07d62f1 | examples/multiple_filters/multiple_filters.ino | examples/multiple_filters/multiple_filters.ino | // Multiple Filters Example
// Show how to make multiple filter objects in a single sketch.
#include <FIR.h>
// Make two instances of the FIR filter. The first is a 13 element float
// and the second is a 10 point float. The 13 element filter is a 2 Hz low-pass
// for a 10 SPS signal and the 10 element is a moving av... | // Multiple Filters Example
// Show how to make multiple filter objects in a single sketch.
#include <FIR.h>
// Make two instances of the FIR filter. The first is a 13 element float
// and the second is a 10 point float. The 13 element filter is a 2 Hz low-pass
// for a 10 SPS signal and the 10 element is a moving av... | Change to use automatic gain. | Change to use automatic gain.
| Arduino | mit | LeemanGeophysicalLLC/FIR_Filter_Arduino_Library |
05b927bb7b3e44e15f98fe1b452f2523fbf22610 | code/MotorController/MotorController.ino | code/MotorController/MotorController.ino | #include <Bounce.h>
#include <avr/eeprom.h>
#include "LCDserNHD.h"
const char* versionString = "3.1.0";
const int CLOCKWISE = 1;
const int COUNTER_CLOCKWISE = 0;
// Required fuses: http://www.engbedded.com/fusecalc
// 16MHz external clock: avrdude -c usbtiny -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x... | // Installed via library manager, https://github.com/thomasfredericks/Bounce2
#include <Bounce2.h>
#include <avr/eeprom.h>
#include "LCDserNHD.h"
const char* versionString = "3.1.1";
const int CLOCKWISE = 1;
const int COUNTER_CLOCKWISE = 0;
// Required fuses: http://www.engbedded.com/fusecalc
// 16MHz external cloc... | Switch to the Bounce2 library | Switch to the Bounce2 library
| Arduino | mit | SaintGimp/MotorController |
daeb7549b74e7c5eee8b6bc3bda1033d865886b8 | examples/Sandbox/CosaFAT16/CosaFAT16.ino | examples/Sandbox/CosaFAT16/CosaFAT16.ino | /**
* @file CosaFAT16.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 Li... | /**
* @file CosaFAT16.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 Li... | Clean up documentation. | Clean up documentation.
| Arduino | lgpl-2.1 | rrobinet/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,rrobinet/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,jeditekunum/Cosa,kc9jud/Cosa,jeditekunum/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,mikaelpatel/Cosa,jeditekunum/Cosa,dansu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.