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
a8ba49ef40bc4cb8c8c53e959d3c319776077ce4
arduttons.ino
arduttons.ino
#include <EEPROM.h> #include <SPI.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <TimerOne.h> // const int pinc = 4; const int pins[pinc] = {5,6,7,8}; //physical to logical pin address const int eep...
#include <EEPROM.h> #include <SPI.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <TimerOne.h> // const int pinc = 4; const int pins[pinc] = {5,6,7,8}; //physical to logical pin address const int eep...
add delay() to arduino loop
add delay() to arduino loop
Arduino
bsd-2-clause
yuriy-prog/arduttons
3f6f809f41f47beff3e0a723c87b432679b095dc
FancyEPD_Demo/FancyEPD_Demo.ino
FancyEPD_Demo/FancyEPD_Demo.ino
#include <stdint.h> #include <Adafruit_GFX.h> #include "FancyEPD.h" #include "FancyEPD_Demo_images.h" #define DELAY_BETWEEN_IMAGES_MS (6 * 1000) // Pins set for project: github.com/pdp7/kicad-teensy-epaper //FancyEPD epd(k_epd_model_E2215CS062, 17, 16, 14, 15, 13, 11); // software SPI FancyEPD epd(k_epd_model...
#include <stdint.h> #include <Adafruit_GFX.h> #include "FancyEPD.h" #include "FancyEPD_Demo_images.h" #define DELAY_BETWEEN_IMAGES_MS (6 * 1000) /* //Add ESP12 Pinout //CS=15,DC=2,RS=0,BS=4, D0=14, D1=13 //FancyEPD epd(k_epd_model_E2215CS062, 15, 2, 5, 4, 14, 13 ); //ESP-12 PINOUT */ // Pins set for project: g...
Add ESP8266 (NodeMCU) pinout
Add ESP8266 (NodeMCU) pinout
Arduino
mit
zkarcher/FancyEPD,zkarcher/FancyEPD,zkarcher/FancyEPD,zkarcher/FancyEPD
485e525cd6ecd0a743e26d040844a54153f4b926
src/twitter-rgb.ino
src/twitter-rgb.ino
void setup() { RGB.control(true); RGB.brightness(0); Particle.function("tweet", tweetToLight); } void loop() { } int tweetToLight(String tweet) { Particle.publish("liskov-tweet", tweet); tweet.toLowerCase(); if (tweet.indexOf("#lightup") > -1) { RGB.brightness(255); ...
void setup() { RGB.control(true); RGB.brightness(0); Particle.function("tweet", tweetToLight); Particle.subscribe("hook-response/tweet-parse", respondToTweet, MY_DEVICES); } void loop() { } int tweetToLight(String tweet) { Particle.publish("tweet-parse", tweet, PRIVATE); return 0; } voi...
call webhook in response to incoming tweet; create handler for response from webhook
call webhook in response to incoming tweet; create handler for response from webhook
Arduino
unlicense
scichelli/particle-twitter-light
00c31bbabc3b835f234f6bc504fbd3105323e4c1
brew2mate.ino
brew2mate.ino
// -*- mode: c -*- #include <LiquidCrystal.h> #include <EEPROM.h> #include <OneWire.h> #include <DallasTemperature.h> #include <limits.h> // ==== "Global" parameters and variables ===================================================== #define TEST_MODE true #define ONE_SECOND 1000L #define ONE_MINUTE ...
// -*- mode: c -*- #include <LiquidCrystal.h> #include <EEPROM.h> #include <OneWire.h> #include <DallasTemperature.h> #include <limits.h> // ==== "Global" parameters and variables ===================================================== #define TEST_MODE true #define ONE_SECOND 1000L #define ONE_MINUTE ...
change msg
change msg
Arduino
mit
peterholstandersen/brew2mate,peterholstandersen/brew2mate,peterholstandersen/brew2mate
b69e11904d0fbe66db06994d97250f277471fba9
nodemcu_bme280.ino
nodemcu_bme280.ino
/*************************************************************************** This is a library for the BME280 humidity, temperature & pressure sensor Designed specifically to work with the Adafruit BME280 Breakout ----> http://www.adafruit.com/products/2650 These sensors use I2C or SPI to communicate, 2 or 4 ...
/*************************************************************************** This is a library for the BME280 humidity, temperature & pressure sensor Designed specifically to work with the Adafruit BME280 Breakout ----> http://www.adafruit.com/products/2650 These sensors use I2C or SPI to communicate, 2 or 4 ...
Update nodemcu_bme280.ino
Update nodemcu_bme280.ino changed the default from HTTPS to HTTP because of the ssh public key fingerprint
Arduino
mit
corlysis/scripts,corlysis/scripts
4358540924aa0226588de9f89f02681369bcd7f5
sketch_yunba/sketch_yunba.ino
sketch_yunba/sketch_yunba.ino
#include <UIPEthernet.h> #include <ArduinoJson.h> #include <MQTTClient.h> const char *g_appkey = "56a0a88c4407a3cd028ac2fe"; const char *g_topic = "office"; const char *g_devid = "plug"; #define BUFSIZE 128 uint8_t mac[] = {0xb0, 0x5a, 0xda, 0x3a, 0x2e, 0x7e}; boolean g_net_status = false; char url[24]; char broke...
#include <UIPEthernet.h> #include <ArduinoJson.h> #include <MQTTClient.h> const char *g_appkey = "56a0a88c4407a3cd028ac2fe"; const char *g_topic = "office"; const char *g_devid = "plug_plc"; #define BUFSIZE 192 #define JSON_BUFSIZE 256 #define PIN_CONTROL 4 uint8_t mac[] = {0xb0, 0x5a, 0xda, 0x3a, 0x2e, 0x7e}; bool...
Add codes to control a led
Add codes to control a led
Arduino
mit
yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice
4c1c553af4142f31ea353547d593774e651192a9
RightpointLabs.Pourcast.Arduino/RightpointLabs.Pourcast.Arduino.ino
RightpointLabs.Pourcast.Arduino/RightpointLabs.Pourcast.Arduino.ino
#include <SPI.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <SoftwareSerial.h> #include <Streaming.h> #include <PString.h> #include <Time.h> #include "ApplicationMonitor.h" #include "MemoryFree.h...
#include <SPI.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <SoftwareSerial.h> #include <Streaming.h> #include <PString.h> #include <Time.h> #include "ApplicationMonitor.h" #include "MemoryFree.h...
Reset the watchdog after any possible wait
Reset the watchdog after any possible wait
Arduino
mit
RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast
7a922757536e7550e01fddef58f1ab2525da16fe
examples/ConsoleSerialTemp/ConsoleSerialTemp.ino
examples/ConsoleSerialTemp/ConsoleSerialTemp.ino
/* ConsoleSerialTemp example Copyright 2017 Isaac100 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 ...
/* ConsoleSerialTemp example Copyright 2017 Isaac100 This exmaple writes the current temperarure in celsius and fahrenheit to the console. */ #include <TMP36.h> #include <Bridge.h> #include <Console.h> //Create an instance of the TMP36 class and //define the pin the sensor is connected to //If...
Update ConsoleSerialTemp.ino
Update ConsoleSerialTemp.ino don't need license and addresses #2
Arduino
apache-2.0
Isaac100/TMP36
d436b7e0d7bfe100786fa64956f583ab94ebd439
LightTrain.ino
LightTrain.ino
// Ledstrip trein code (c) 2017 Cees Wolfs // released under the MIT license #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 #define NUMPIXELS 10 #define SENSOR_THRESHOLD 400 #define AFSTAND_TRAJECT 350.0 // When we setup the NeoPixel library, we tell ...
// Ledstrip trein code (c) 2017 Cees Wolfs // released under the MIT license #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 #define NUMPIXELS 10 #define SENSOR_THRESHOLD 400 #define AFSTAND_TRAJECT 350.0 // When we setup the NeoPixel library, we tell ...
Update LightTrain.ino
Update LightTrain.ino Spelfout verbeterd
Arduino
mit
CeesWolfs/LightTrain
039702327e6c3aef2a7ccc766bcf8bbab20bdae2
examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino
examples/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino
#include <FS.h> //this needs to be first, or it all crashes and burns... #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino //needed for library #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager #include...
#include <FS.h> //this needs to be first, or it all crashes and burns... #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino //needed for library #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager #include...
Fix to allow 5 digit 'mqtt_port'
Fix to allow 5 digit 'mqtt_port' 'WiFiManagerParameter custom_mqtt_port' made consistent with declaration of 'mqtt_port'
Arduino
mit
tzapu/WiFiManager,tablatronix/WiFiManager,tablatronix/WiFiManager,tzapu/WiFiManager,tablatronix/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tablatronix/WiFiManager,tablatronix/WiFiManager,tzapu/WiFiManager
b5de6f70a5e066e4981294a02fcec35ba82aade1
firmware/examples/RGBCalibrate/RGBCalibrate.ino
firmware/examples/RGBCalibrate/RGBCalibrate.ino
#include "FastLED/FastLED.h" FASTLED_USING_NAMESPACE; //////////////////////////////////////////////////////////////////////////////////////////////////// // // RGB Calibration code // // Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use: // * Uncomment the l...
#include "FastLED/FastLED.h" FASTLED_USING_NAMESPACE; //////////////////////////////////////////////////////////////////////////////////////////////////// // // RGB Calibration code // // Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use: // * Uncomment the l...
Tweak RGB calibrate types
Tweak RGB calibrate types
Arduino
mit
jasoncoon/FastLED-Sparkcore,eklex/FastLED-Sparkcore,jasoncoon/FastLED-Sparkcore,focalintent/FastLED-Sparkcore,lessavyfav/fastLED-muck,focalintent/FastLED-Sparkcore,lessavyfav/fastLED-muck,eklex/FastLED-Sparkcore
284d555b122ad17a9eccefb973ec571c493c7dd9
Watering/Watering.ino
Watering/Watering.ino
#include "Watering.h" void setup () { //Init serial connection Serial.begin(SERIAL_BAUD); //Init LED Pin pinMode(LED_PIN, OUTPUT); digitalWrite(LED_PIN, LOW); } void loop() { if ( Serial.available() ) { byte command = Serial.read(); switch( command ) { case WATER_LEVEL: brea...
#include "Watering.h" void setup () { //Init serial connection Serial.begin(SERIAL_BAUD); //Init LED Pin pinMode(LED_PIN, OUTPUT); digitalWrite(LED_PIN, LOW); } void loop() { if ( Serial.available() ) { byte command = Serial.read(); byte output[4]; byte numBytes = 0; switch( command ...
Send a response after the Arduino has completed its work.
Send a response after the Arduino has completed its work.
Arduino
mit
jaredwolff/arduino-raspberrypi-serial-example
4343fe8cabf0b379464c886d768c747185731389
examples/TTN-Mapper-SodaqOne-binary/TTN-Mapper-SodaqOne-binary.ino
examples/TTN-Mapper-SodaqOne-binary/TTN-Mapper-SodaqOne-binary.ino
/* * Author: JP Meijers * Date: 2016-09-02 * * Transmit GPS coordinates via TTN. This happens as fast as possible, while still keeping to * the 1% duty cycle rules enforced by the RN2483's built in LoRaWAN stack. Even though this is * allowed by the radio regulations of the 868MHz band, the fair use policy of ...
/* * Author: JP Meijers * Date: 2016-09-02 * * Transmit GPS coordinates via TTN. This happens as fast as possible, while still keeping to * the 1% duty cycle rules enforced by the RN2483's built in LoRaWAN stack. Even though this is * allowed by the radio regulations of the 868MHz band, the fair use policy of ...
Change sodaq binary example to use new txBytes function.
Change sodaq binary example to use new txBytes function.
Arduino
apache-2.0
jpmeijers/RN2483-Arduino-Library
41876b9096bbb4f6ec428b1f54e23bfc2bb0efca
playground/OLED/SSD1306BareBack/SSD1306BareBack.ino
playground/OLED/SSD1306BareBack/SSD1306BareBack.ino
/* OLED/SSD1306BareBack Test driving a monochrome 128x64 OLED Display with an Arduino and the raw command set. For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/OLED/SSD1306BareBack */ //** pin connections #define MOSI_PIN 9 #define CLK_PIN 10 #define...
/* OLED/SSD1306BareBack Test driving a monochrome 128x64 OLED Display with an Arduino and the raw command set. For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/OLED/SSD1306BareBack */ //** pin connections #define MOSI_PIN 9 #define CLK_PIN 10 #define...
tidy code
[SSD1306BareBack] tidy code
Arduino
mit
tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects
8dbe02d3924313c0550721fc1e822f07f690b391
base2clock.ino
base2clock.ino
/*************************** + +Copyleft [2014] [Daniel Spicer] + +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 la...
/*************************** + +Copyleft [2014] [Daniel Spicer] + +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 la...
Update base2clock.ino
Update base2clock.ino Fix for time set at quater past, half past, quarter of, and hour. Time set adding two minutes when only one is required to increment at these particular times.
Arduino
apache-2.0
linuxmania/base2clock
4d15eb72159b1c1525d6d84acd9c3161105dabd9
software/firmware/LogoBotEsp8266/LogoBotEsp8266.ino
software/firmware/LogoBotEsp8266/LogoBotEsp8266.ino
#include <DNSServer2.h> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiClient.h> #include "WebPages.h" /* Settings you may want to configure for your LogoBot */ #define LOGOBOT_SSID "Logobot" #define LOGOBOT_PWD "logobot1" #define LOGOBOT_URL "logo.bot" static const IPAddress apIP(192, 168, 4, 1)...
#include <DNSServer2.h> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiClient.h> #include "WebPages.h" /* Settings you may want to configure for your LogoBot */ #define LOGOBOT_SSID "Logobot" #define LOGOBOT_PWD "logobot1" #define LOGOBOT_URL "logo.bot" static const IPAddress apIP(192, 168, 4, 1)...
Remove rogue debug thing
Remove rogue debug thing
Arduino
mit
snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot
859d683bcdade7d93496da128111eb1a99343921
examples/Boards_GSM/TinyGSM_SIM800_SIM900/TinyGSM_SIM800_SIM900.ino
examples/Boards_GSM/TinyGSM_SIM800_SIM900/TinyGSM_SIM800_SIM900.ino
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces...
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces...
Switch to using BlynkSimpleTinyGSM
Switch to using BlynkSimpleTinyGSM
Arduino
mit
blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
b3109aa337bf7407896365fe7dc642242b0df75e
examples/BoardsAndShields/Arduino_Ethernet/Arduino_Ethernet.ino
examples/BoardsAndShields/Arduino_Ethernet/Arduino_Ethernet.ino
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
Update Arduino_Ethernet.ino
Update Arduino_Ethernet.ino
Arduino
mit
blynkkk/blynk-library,ivankravets/blynk-library,sstocker46/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,sstocker46/blynk-library,ivankravets/blynk-library,CedricFinance/blynk-library,al1271/blynk-library,al1271/blynk-library,ivankravets/blynk-library,CedricFinance/blynk-library,ivankravets/blynk-library,iv...
0dc20325c6a4c78d264c940952fb86deb5bfea64
tests/NdefMemoryTest/NdefMemoryTest.ino
tests/NdefMemoryTest/NdefMemoryTest.ino
#include <Wire.h> #include <Adafruit_NFCShield_I2C.h> #include <Ndef.h> //#include <MemoryFree.h> #include <ArduinoUnit.h> TestSuite suite; void leakCheck(void (*callback)()) { int start = freeMemory(); (*callback)(); int end = freeMemory(); Serial.println((end - start), DEC); } // Custom Assertion void asse...
#include <Wire.h> #include <Adafruit_NFCShield_I2C.h> #include <NdefMessage.h> #include <NdefRecord.h> //#include <MemoryFree.h> #include <ArduinoUnit.h> TestSuite suite; void leakCheck(void (*callback)()) { int start = freeMemory(); (*callback)(); int end = freeMemory(); Serial.println((end - start), DEC); }...
update because of refactoring
update because of refactoring
Arduino
bsd-3-clause
abcd-ca/NDEF,jlkalberer/NDEF,abcd-ca/NDEF,jlkalberer/NDEF
d04a5ecf4627ab35c48aa90bd6c7408a3c7261cc
skittle-color-sorter.ino
skittle-color-sorter.ino
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 const int pinTopServo = 13; // * Bottom Servo (Arm) // Digital pin 10 const int pinBtmServo = 10; // * Color Sensor // SDA pin to analog pin 4 // SCL pin to an...
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 #define PIN_TOP_SERVO 13 // * Bottom Servo (Arm) // Digital pin 10 #define PIN_BTM_SERVO 10 // * Color Sensor // SDA pin to analog pin 4 // SCL pin to analog p...
Increase the color sensor cycles and integration time
Increase the color sensor cycles and integration time
Arduino
mit
CharmySoft/skittle-color-sorter
91d21fa199aa0aaea53e811a25df4b52ba272d31
Electronics101/555Timer/AstableOscillator/AstableOscillator.ino
Electronics101/555Timer/AstableOscillator/AstableOscillator.ino
/* Astable Uses an Arduino to monitor a classic a-stable 555 circuit and pipe the data to processing For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/Electronics101/555Timer/Astable */ #include <FlexiTimer2.h> // use timer for sampling to get even ...
/* AstableOscillator Uses an Arduino to monitor a classic a-stable 555 circuit and pipe the data to processing For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/Electronics101/555Timer/AstableOscillator */ #include <FlexiTimer2.h> // use timer for s...
fix url refs
[AstableOscillator] fix url refs
Arduino
mit
tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects
3862dfff9f4d8152cfb574f89da27c9e7a722889
garage_detector.ino
garage_detector.ino
// Detect if a garage door is open using a magnet door switch. // Put the switch on the door, send some voltage through it, // if we get voltage then the door is closed. If there's nothing // then the door is open. Then we can send this information somewhere // to blink a status light in the house or something. // //...
#include <math.h> // Detect if a garage door is open using a magnet door switch. // Put the switch on the door, send some voltage through it, // if we get voltage then the door is closed. If there's nothing // then the door is open. Then we can send this information somewhere // to blink a status light in the house ...
refactor sending of data:
refactor sending of data: * send more variables, add observers * dry up sending * add doubleToString() for json POST
Arduino
mit
squarism/garage_detector
761f3501bac3feae6ef7a0ac21b6c60657a2a114
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
Update Firmware.ino
Update Firmware.ino Fixed a time-formatting bug Colon came after ten's place 0 in seconds. Moved to line 284 instead of line 288.
Arduino
bsd-3-clause
UCHIC/WaterMonitor
4252b97f2a81e60d5e9705a1091db3b0ab9dbc51
arduino-neopixel.ino
arduino-neopixel.ino
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 5 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter...
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 5 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter...
change command protocol (char to string)
change command protocol (char to string)
Arduino
mit
karappo/ptw-wheel
7404e3111e951ebc22330ec25cdcf75510cb73ad
usb-to-octows2811/usb-to-octows2811.ino
usb-to-octows2811/usb-to-octows2811.ino
#define USE_OCTOWS2811 #include<OctoWS2811.h> #include<FastLED.h> #include<ADC.h> #define NUM_LEDS_STRIP_A 514 #define NUM_LEDS_STRIP_B 370 #define NUM_LEDS_STRIP_C 238 #define NUM_LEDS_STRIP_D 102 #define NUM_PIXELS_PER_SUPPLY (NUM_LEDS_STRIP_A + NUM_LEDS_STRIP_B + NUM_LEDS_STRIP_C + NUM_LEDS_STRIP_D) #define NUM_SU...
#define USE_OCTOWS2811 #include<OctoWS2811.h> #include<FastLED.h> #include<ADC.h> #define NUM_LEDS_STRIP_A 514 #define NUM_LEDS_STRIP_B 370 #define NUM_LEDS_STRIP_C 238 #define NUM_LEDS_STRIP_D 102 #define NUM_PIXELS_PER_SUPPLY (NUM_LEDS_STRIP_A + NUM_LEDS_STRIP_B + NUM_LEDS_STRIP_C + NUM_LEDS_STRIP_D) #define NUM_SU...
Enable color correction.
Enable color correction.
Arduino
apache-2.0
die-net/led-controller,die-net/led-controller,die-net/led-controller,die-net/led-controller
06095324c3ec99e2eb55a6cff4af080fd437f4cb
_03-hx711-scale/_03-hx711-scale-v2-battery-external-Interrupt-02/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino
_03-hx711-scale/_03-hx711-scale-v2-battery-external-Interrupt-02/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino
#include <avr/interrupt.h> #include <avr/sleep.h> #include "HX711.h" #include <Wire.h> #include <Vcc.h> #include <Average.h> // tilt switch const int wakeUpPin = 2; const int espResetPin = 9; const int ledPowerPin = 10; volatile int Measured; volatile long startMills; // vcc volatile int MeasuredIsSent = L...
#include <avr/interrupt.h> #include <avr/sleep.h> #include "HX711.h" #include <Wire.h> #include <Vcc.h> #include <Average.h> // tilt switch const int wakeUpPin = 2; const int espResetPin = 9; const int ledPowerPin = 10; volatile int Measured; volatile long startMills; // vcc volatile int MeasuredIsSent = L...
Update _03-hx711-scale-pro-mini.ino
Update _03-hx711-scale-pro-mini.ino
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
8d1c59842e37f39317d40e926293b7fa189d9def
libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
/* SDWebServer - Example WebServer with SD Card backend for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the ESP8266WebServer library for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser G...
/* SDWebServer - Example WebServer with SD Card backend for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the ESP8266WebServer library for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser G...
Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
Revert "Revert "Edit SD Server example to use the new Write(Stream) method"" This reverts commit 163a98375637ab8e3e177bb7853303e397e39dc0.
Arduino
lgpl-2.1
NullMedia/Arduino,chrisfraser/Arduino,lrmoreno007/Arduino,Links2004/Arduino,wemos/Arduino,Adam5Wu/Arduino,hallard/Arduino,edog1973/Arduino,sticilface/Arduino,chrisfraser/Arduino,NextDevBoard/Arduino,Cloudino/Arduino,Adam5Wu/Arduino,CanTireInnovations/Arduino,edog1973/Arduino,chrisfraser/Arduino,Cloudino/Cloudino-Arduin...
e7b452403f94723bdbb3b67fd1830f05aff618b9
examples/Ntag216_AUTH/Ntag216_AUTH.ino
examples/Ntag216_AUTH/Ntag216_AUTH.ino
//This example show how you can get Authenticated by the NTAG213,215,216 by default the tags are unprotected in order to protect them we need to write 4 different values: // Using mfrc522.MIFARE_Ultralight_Write(PageNum, Data, #Databytes)) //1.- we need to write the 32bit passWord to page 0xE5 !for ntag 213 and 215 pag...
//This example show how you can get Authenticated by the NTAG213,215,216 by default the tags are unprotected in order to protect them we need to write 4 different values: // Using mfrc522.MIFARE_Ultralight_Write(PageNum, Data, #Databytes)) //1.- we need to write the 32bit passWord to page 0xE5 !for ntag 213 and 215 pag...
Remove unused variable in example
Remove unused variable in example
Arduino
unlicense
hramrach/rfid
39c90621b020b7f5ebcc2670b58c7a3a0dbe9863
examples/Ntag216_AUTH/Ntag216_AUTH.ino
examples/Ntag216_AUTH/Ntag216_AUTH.ino
//This example show how you can get Authenticated by the NTAG213,215,216 by default the tags are unprotected in order to protect them we need to write 4 different values: // Using mfrc522.MIFARE_Ultralight_Write(PageNum, Data, #Databytes)) //1.- we need to write the 32bit passWord to page 0xE5 !for ntag 213 and 215 pag...
/** * This example show how you can get Authenticated by the NTAG213,215,216. By default the tags are unprotected in order to protect them we need to write 4 different values: * Using mfrc522.MIFARE_Ultralight_Write(PageNum, Data, #Databytes)) * 1.- We need to write the 32bit passWord to page 0xE5 !for ntag 213 and ...
fix typos
fix typos
Arduino
unlicense
Rotzbua/rfid,Rotzbua/rfid,miguelbalboa/rfid
d32e2de71ea676d403ff8224e57dd89cb81ef8fa
examples/04-FrequencyDomain/FrequencyShifter_FD/FrequencyShifter_FD.ino
examples/04-FrequencyDomain/FrequencyShifter_FD/FrequencyShifter_FD.ino
// FreqShifter_FD // // Demonstrate frequency shifting via frequency domain processin. // // Created: Chip Audette (OpenAudio) Aug 2019 // // Approach: This processing is performed in the frequency domain. // Frequencies can only be shifted by an integer number of bins, // so small frequency shifts are not possib...
// FreqShifter_FD // // Demonstrate frequency shifting via frequency domain processin. // // Created: Chip Audette (OpenAudio) Aug 2019 // // Approach: This processing is performed in the frequency domain. // Frequencies can only be shifted by an integer number of bins, // so small frequency shifts are not possib...
Clarify setting of shift amount
FrequencyShifter: Clarify setting of shift amount
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
546d585559b422263c4ea44313ba27209b62ec6f
_40_esp12-random-test-udp-report/_40_esp12-random-test-udp-report.ino
_40_esp12-random-test-udp-report/_40_esp12-random-test-udp-report.ino
#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include "/usr/local/src/ap_setting.h" extern "C" { #include "user_interface.h" } #define IPSET_STATIC { 192, 168, 10, 7 } #define IPSET_GATEWAY { 192, 168, 10, 1 } #define IPSET_SUBNET { 255, 255, 255, 0 } #define IPSET_DNS { 192, 168, 10, 10 } IPAddress ip_static = IPS...
#include <TimeLib.h> #include <ESP8266WiFi.h> #include <WiFiUdp.h> #include "/usr/local/src/ap_setting.h" extern "C" { #include "user_interface.h" } #define DEBUG_PRINT 0 #define IPSET_STATIC { 192, 168, 10, 7 } #define IPSET_GATEWAY { 192, 168, 10, 1 } #define IPSET_SUBNET { 255, 255, 255, 0 } #define IPSET_DNS { 1...
add timestamp
add timestamp
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
2293938e738a58c9e1abc667f8460abe9f0817b3
lcd_temperature_display.ino
lcd_temperature_display.ino
// vim: ts=2 et /* * * LCD Temperature Display * * Assumes: * LM35 temperature device (analog pin 0) * 16x2 display connected to WickedDevices LCD shield * Pushbutton on digital pin 7 held high by pin 8 * Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively * * Ryan Tucker <rtuck...
// vim: ts=2 et /* * * LCD Temperature Display * * Assumes: * LM35 temperature device (analog pin 0) * 16x2 display connected to WickedDevices LCD shield * Pushbutton on digital pin 7 held high by pin 8 * Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively * * Ryan Tucker <rtuck...
simplify recordkeeping math
simplify recordkeeping math
Arduino
mit
rtucker/lcd_temperature_display
8972649f02970308218858553e6615bfeb95bfbb
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/23/2018 // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it. Really. The program might crash...
Update Firmware.ino
Update Firmware.ino Added notes to describe structure and hardware
Arduino
bsd-3-clause
UCHIC/WaterMonitor
bf5a18208906822ca375886d7800c7a0cbf4eb73
firmware/firmware.ino
firmware/firmware.ino
#include <UF_uArm_Metal.h> #include <VarSpeedServo.h> #include <EEPROM.h> VarSpeedServo servoL; VarSpeedServo servoR; VarSpeedServo servoRot; VarSpeedServo servoHandRot; VarSpeedServo servoHand; UF_uArm uarm; String msg; void setup() { Serial.begin(9600); <<<<<<< HEAD pinMode(BTN_D4, INPUT); digitalWrite(BTN...
#include <UF_uArm_Metal.h> #include <VarSpeedServo.h> #include <EEPROM.h> VarSpeedServo servoL; VarSpeedServo servoR; VarSpeedServo servoRot; VarSpeedServo servoHandRot; VarSpeedServo servoHand; UF_uArm uarm; String msg; void setup() { Serial.begin(9600); pinMode(BTN_D4, INPUT); digitalWrite(BTN_D4, HIGH);...
Update firmware.ino
Update firmware.ino
Arduino
apache-2.0
RobotControlTechnologies/uarm_robot_module,RobotControlTechnologies/uarm_robot_module
9fa5bf46b50faf2d75884cf3ca40212cde62aa34
software/Arduino/ServoController/ServoController.ino
software/Arduino/ServoController/ServoController.ino
/*********************************************************************** * Description: Counteracts a change in angle by reading a gyro sensor * * and rotating a stepper motor. Accepts correction factors via serial * * at 115200 baud. * * Project: Eclipse Tracking...
/*********************************************************************** * Description: Counteracts a change in angle by reading a gyro sensor * * and rotating a stepper motor. Accepts correction factors via serial * * at 115200 baud. * * Project: Eclipse Tracking...
Update ServoController.ino
Update ServoController.ino
Arduino
mit
AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking,AdlerFarHorizons/eclipse-tracking
00ee96cb50089ed3e9142083a0a26870b6e4ff70
examples/AstronomyDemo/AstronomyDemo.ino
examples/AstronomyDemo/AstronomyDemo.ino
/**The MIT License (MIT) Copyright (c) 2018 by ThingPulse Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
/**The MIT License (MIT) Copyright (c) 2018 by ThingPulse Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
Add header files to demo
Add header files to demo
Arduino
mit
squix78/esp8266-weather-station
9f54f00d62bb7260e558f90a80eb530d3cde09cc
examples/FullyFeatured/FullyFeatured.ino
examples/FullyFeatured/FullyFeatured.ino
#include <ESP8266WiFi.h> #include <Ticker.h> #include <AsyncMqttClient.h> #define WIFI_SSID "My_Wi-Fi" #define WIFI_PASSWORD "my-awesome-password" #define MQTT_HOST IPAddress(192, 168, 1, 10) #define MQTT_PORT 1883 AsyncMqttClient mqttClient; Ticker mqttReconnectTimer; WiFiEventHandler wifiConnectHandler; WiFiEvent...
#include <ESP8266WiFi.h> #include <Ticker.h> #include <AsyncMqttClient.h> #define WIFI_SSID "My_Wi-Fi" #define WIFI_PASSWORD "my-awesome-password" #define MQTT_HOST IPAddress(192, 168, 1, 10) #define MQTT_PORT 1883 AsyncMqttClient mqttClient; Ticker mqttReconnectTimer; WiFiEventHandler wifiConnectHandler; WiFiEvent...
Fix double log in example
:art: Fix double log in example
Arduino
mit
marvinroger/async-mqtt-client,marvinroger/async-mqtt-client,marvinroger/async-mqtt-client
59be8717bb2d7cd7f4ee0e79fa7aa17448836deb
firmware/firmware.ino
firmware/firmware.ino
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
Fix pen going down at the beginning of every run
Fix pen going down at the beginning of every run Fixes #11.
Arduino
mit
arnaudjuracek/xy
1b95d82eff39b19ab66147b8ee2e4043e2c483c2
software/decision/decision.ino
software/decision/decision.ino
#include <cc1101.h> #include <constants.h> #define MAGS 4 #define RPM_AVG 5 #define HALL P1_5 #define QUESTION P1_4 #define SHIFT_OFFSET 10 // global variable declarations unsigned long oldtime; double average; int rps[RPM_AVG]; int rpsidx; int mag_count; int hall_read; int switched; int target; int gear; // radio...
#include <cc1101.h> #include <constants.h> #define MAGS 4 #define RPM_AVG 5 #define HALL P1_5 #define SHIFT_OFFSET 10 // global variable declarations unsigned long oldtime; double average; int rps[RPM_AVG]; int rpsidx; int mag_count; int hall_read; int switched; int target; int gear; // radio types radio_t radio_d...
remove question
remove question
Arduino
mit
fkmclane/derailleurs,fkmclane/derailleurs,fkmclane/derailleurs
26e82825126d41a9f92979396aa55b2b70f016b5
battery-monitor.ino
battery-monitor.ino
#define VCC 3273 #define BATTERY_PIN A0 #define R1 221200 // Resistor R1 Ohms #define R2 21440 // Resistor R2 Ohms #define CONNECT_WAIT_MILLIS 10000 #define LOW_THRESHOLD 12000 // milliVolts #define SLEEP_SECS 3600 // 1 hour //#define SLEEP_SECS 15 // Set manual mode so that if no network is available, photon can go b...
#define VCC 3273 #define BATTERY_PIN A0 #define R1 221200 // Resistor R1 Ohms #define R2 21440 // Resistor R2 Ohms #define CONNECT_WAIT_MILLIS 10000 #define LOW_THRESHOLD 12000 // milliVolts #define ADC_SAMPLES 20 #define SLEEP_SECS 3600 // 1 hour //#define SLEEP_SECS 15 // Set manual mode so that if no network is ava...
Add ADC averaging to mitigate noise in the battery voltage measurement
Add ADC averaging to mitigate noise in the battery voltage measurement
Arduino
mit
chrisb2/battery-monitor
47bfead058874533080a4f713abf841bc4081dc5
examples/ttn-abp/ttn-abp.ino
examples/ttn-abp/ttn-abp.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...
Fix #553: add CFG_au915, other region to ttn-abp example
Fix #553: add CFG_au915, other region to ttn-abp example
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
fe460ebf6c5dc69d178ac0f47eda4ff18a82cfa9
AD7173-8.ino
AD7173-8.ino
/* =================================================================== library to control AD7173-8 ADC chips G A A A A A A R R P I I I I I I A ...
/* =================================================================================== library to control AD7173-8 ADC chips G A A A A A A R R P I I I I I I A E E I N N N N N N ...
Update AD7173-8.ino
Update AD7173-8.ino updated chip illustration
Arduino
mit
openbrainhacking/AD7173,brain-duino/AD7173,openbrainhacking/AD7173,brain-duino/AD7173
6d6b779eb6d9c2490f8319a5f2fbb56a0ee1959a
Arduino/noise_multiplier/noise_multiplier.ino
Arduino/noise_multiplier/noise_multiplier.ino
#include "AES.h" #include "CBC.h" #define CHAIN_SIZE 2 #define BLOCK_SIZE 16 #define SAMPLE_SIZE (BLOCK_SIZE * CHAIN_SIZE) byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}; CBC<AES128> cbc; byte sourcePool[SAMPLE_SIZE]; void setup...
#include "AES.h" #include "CBC.h" #define CHAIN_SIZE 2 #define BLOCK_SIZE 16 #define SAMPLE_SIZE (BLOCK_SIZE * CHAIN_SIZE) byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}; CBC<AES128> cbc; byte sourcePool[SAMPLE_SIZE]; void setup...
Replace modulo operator from collectBits() with faster bitwise operation
Replace modulo operator from collectBits() with faster bitwise operation
Arduino
mit
robseward/Ziffer
bba9ec71a5f9fa9104d5fdea9c326698f93b7d93
Arduino/IMU_9DOF/IMU_9DOF.ino
Arduino/IMU_9DOF/IMU_9DOF.ino
/// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
/// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2012 Jeff Rowberg Permission is hereby granted, free of charge, to any person obtaining a copy of this so...
Multiply by 180 based on test
Multiply by 180 based on test
Arduino
mit
baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite
96da77c284f7f87cfc65fa3c4a4dd333662a1579
K_Nearest_Neighbors_Cups/K_Nearest_Neighbors_Cups.ino
K_Nearest_Neighbors_Cups/K_Nearest_Neighbors_Cups.ino
// Distance Sensor // Feature is height // Pre-known object of different heights // Pattern is see what the object is closest to. #include <Arduino.h> #include <NewPing.h> #include <HX711.h> #include "Object.h" // Height #define TRIGGER_PIN_1 12 #define ECHO_PIN_1 11 // Width #define TRIGGER_PIN_2 10 #define ECHO_PI...
// Distance Sensor // Feature is height // Pre-known object of different heights // Pattern is see what the object is closest to. #include <Arduino.h> #include <NewPing.h> #include <HX711.h> #include "Object.h" // Height #define TRIGGER_PIN_1 12 #define ECHO_PIN_1 11 // Width #define TRIGGER_PIN_2 10 #define ECHO_PI...
Update K_Nearest_Neighbors_Cups.ino
Update K_Nearest_Neighbors_Cups.ino Changed "Box Detected" to "Cup Detected".
Arduino
mit
baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition
5fd2d8ed3554e19ff22b944fdb085c38adc2ba2c
examples/Complete/Complete.ino
examples/Complete/Complete.ino
#include <SoftwareSerial.h> #include "ESP8266.h" SoftwareSerial esp8266Serial = SoftwareSerial(10, 11); ESP8266 wifi = ESP8266(); void setup() { Serial.begin(9600); // ESP8266 esp8266Serial.begin(9600); wifi.begin(esp8266Serial); wifi.setTimeout(1000); /*************************************...
#include <SoftwareSerial.h> #include "ESP8266.h" SoftwareSerial esp8266Serial = SoftwareSerial(10, 11); ESP8266 wifi = ESP8266(); void setup() { Serial.begin(9600); // ESP8266 esp8266Serial.begin(9600); wifi.begin(esp8266Serial); wifi.setTimeout(1000); /*************************************...
Update Complete.ino example
Update Complete.ino example The function calls on line 48 and 53 were wrong.
Arduino
mit
Diaoul/arduino-ESP8266,joysfera/arduino-ESP8266,username115/arduino-ESP8266
948d1aa3d36e0ce3c059459720cf6f98f7f8bbf2
spark/main.ino
spark/main.ino
#include <math.h> #define LED_CS 6 #define SWITCH_CS D0 #define LEFT_LED D0 #define RIGHT_LED D1 #define THERMISTOR_CS A7 #define PHOTOCELL A6 #define PIEZO A5 Servo rightServo, leftServo; int temperature = 0, photocell = 0, runs = 0; int move(String command){ analogWrite(PIEZO, 120); switch(command.toInt()){...
#include <math.h> #define LED_CS 6 #define SWITCH_CS D0 #define LEFT_LED D0 #define RIGHT_LED D1 #define THERMISTOR_CS A7 #define PHOTOCELL A6 #define PIEZO A5 Servo rightServo, leftServo; int temperature = 0, photocell = 0; unsigned long uptime = 0; unsigned long initialBootTime = 0; bool leftLightOn = true, rightLig...
Add uptime and whatnot
Add uptime and whatnot
Arduino
mit
edwinfinch/culminating,edwinfinch/culminating
d7f1de5d87a870b4d7d038b43b510eaa0b6e13f9
src/wolves.ino
src/wolves.ino
#include <Arduino.h> #include <Streaming.h> #include "App.h" #include "LED.h" #include "RGBLED.h" #include "RFIDSensor.h" #include "Solenoid.h" #define N_OF_QUESTIONS 3 LED leds[N_OF_QUESTIONS] = { LED(0,0), LED(0,0), LED(0,0) }; RFIDSensor sensors[N_OF_QUESTIONS] = { RFIDSensor(0, 0, 0), RFIDSen...
#include <Arduino.h> #include <Streaming.h> #include "App.h" #include "LED.h" #include "RGBLED.h" #include "RFIDSensor.h" #include "Solenoid.h" #define N_OF_QUESTIONS 3 LED leds[N_OF_QUESTIONS] = { LED(23,24), LED(33,34), LED(43,44) }; RFIDSensor sensors[N_OF_QUESTIONS] = { RFIDSensor(0, 22, 53), ...
Add testing routines
Add testing routines
Arduino
apache-2.0
BlueMasters/arduino-wolves,BlueMasters/arduino-wolves,BlueMasters/arduino-wolves
ec0c868c8f2db8a6439097b8d14ff26e3486a011
examples/01_backend/LCDML_011_TaskScheduler/LCDML_display_menuFunction.ino
examples/01_backend/LCDML_011_TaskScheduler/LCDML_display_menuFunction.ino
/* ===================================================================== * * * * Menu Callback Function * * * * =================...
/* ===================================================================== * * * * Menu Callback Function * * * * =================...
update example with TaskScheduler
update example with TaskScheduler
Arduino
mit
Jomelo/LCDMenuLib2,Jomelo/LCDMenuLib2
482564f7c04979b171e383f06050038d784404a3
pug.ino
pug.ino
#include <Servo.h> // debug mode #define debugUltrason false // Pins #define rightMotorPin1 11 #define rightMotorPin2 10 #define leftMotorPin1 8 #define leftMotorPin2 9 #define colorPin 2 #define jumperPin 3 #define enemyLedPin 5 #define starterServoPin 19 // Constants #define rotateTimeLeft 570 #define rotateTim...
#include <Servo.h> // debug mode #define debugUltrason false // Pins #define rightMotorPin1 11 #define rightMotorPin2 10 #define leftMotorPin1 8 #define leftMotorPin2 9 #define colorPin 2 #define jumperPin 3 #define enemyLedPin 13 #define greenLedPin 7 #define yellowLedPin 6 #define starterServoPin 19 // Constan...
Add two leds for show robot color
Add two leds for show robot color
Arduino
mit
gobgob/pug,gobgob/pug,gobgob/pug
da2b5a6bf82282ff8e547e0a67dfc65d9099c536
software/XTendPayloadTeensy/XTendPayloadTeensy.ino
software/XTendPayloadTeensy/XTendPayloadTeensy.ino
/* * Serial1: GPS and LOGGER * Serial2: RF IN/OUT */ #define GPSLEN 100 //max length of GPS output to be sent 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 ...
/* * 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 =...
Add Real Time Clock
Add Real Time Clock
Arduino
mit
AdlerFarHorizons/Transceiver,AdlerFarHorizons/Transceiver
6a57dbca206dd470f8ee8d12eeb9567dd6f8035c
examples/NanoRFMeshNet/RF24MeshNode3/RF24MeshNode3.ino
examples/NanoRFMeshNet/RF24MeshNode3/RF24MeshNode3.ino
/** RF24Mesh_Example_Node2NodeExtra.ino by TMRh20 This example sketch shows how to communicate between two (non-master) nodes using RF24Mesh & RF24Network */ #include "RF24.h" #include "RF24Network.h" #include "RF24Mesh.h" #include <SPI.h> //#include <printf.h> /**** Configure the nrf24l01 CE and CS pins **...
/** RF24Mesh_Example_Node2NodeExtra.ino by TMRh20 This example sketch shows how to communicate between two (non-master) nodes using RF24Mesh & RF24Network */ #include "RF24.h" #include "RF24Network.h" #include "RF24Mesh.h" #include <SPI.h> //#include <printf.h> /**** Configure the nrf24l01 CE and CS pins **...
Update RF24MeshNode3.ino
Update RF24MeshNode3.ino
Arduino
unlicense
shenkarSElab/nanoRF,shenkarSElab/nano24rf,shenkarSElab/nanoRF,shenkarSElab/nano24rf
0f5c5b5b16a349744ee0940f6ed1bff0d2a35eec
arduino/KnockGame/KnockGame.ino
arduino/KnockGame/KnockGame.ino
// Yes, this is actually -*-c++-*- /*! This sketch is responsible for the Handshake and Knock interactions State flags: * Handshake Handshake active * Knock Knocking game active */ #include "knocker.h" #include "SerialCommand.h" // Set to 1 to start in debug mode #define DEBUG_MODE 1 #define...
// Yes, this is actually -*-c++-*- /*! This sketch is responsible for the Handshake and Knock interactions State flags: * Handshake Handshake active * Knock Knocking game active */ #include "knocker.h" #include "SerialCommand.h" // Set to 1 to start in debug mode #define DEBUG_MODE 1 #define...
Write newline before HELLO to avoid garbage
Write newline before HELLO to avoid garbage
Arduino
mit
anyWareSculpture/physical,anyWareSculpture/physical,anyWareSculpture/physical,anyWareSculpture/physical
6c633de2d6f187665ca893864b0033fc067eb17b
CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino
CastleAritechArduinoRKP/CastleAritechArduinoRKP.ino
/* * Castle KeyPad * * Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 and more * * For Arduino (UNO or Leonardo) with added Ethernet Shield * * See Circuit Diagram for wiring instructions * * V1.04 March 2014: Arm Disarm Complete and tested as working * V1.2 Apr...
/* * Castle KeyPad * * Aritech Alarm Panel Arduino Internet Enabled Keypad - CS350 - CD34 - CD72 - CD91 and more * * For Arduino (UNO or Leonardo) with added Ethernet Shield * * See Circuit Diagram for wiring instructions * * V1.04 March 2014: Arm Disarm Complete and tested as working * V1.2 Apr...
Update CastleAritechArduinoRKP.ino
Update CastleAritechArduinoRKP.ino
Arduino
apache-2.0
OzmoOzmo/CastleAritechArduinoRKP,OzmoOzmo/CastleAritechArduinoRKP
3f8841bb2c68fe49e35bc39366e68d7425c4d494
arduino_lib/JSCRoboControl/examples/SimpleOutputExample/SimpleOutputExample.ino
arduino_lib/JSCRoboControl/examples/SimpleOutputExample/SimpleOutputExample.ino
#include <JSCRoboControl.h> void setup() { // Alle benutzten Pins einrichten pinMode(12, OUTPUT); pinMode(11, OUTPUT); pinMode(10, OUTPUT); pinMode(9, OUTPUT); pinMode(8, OUTPUT); } void wPressed() { // W ist gedrueckt. digitalWrite(11, HIGH); } void aPressed() { // A ist gedrueckt. digitalWrite(10,...
#include <JSCRoboControl.h> #include <SoftwareSerial.h> void setup() { // Alle benutzten Pins einrichten pinMode(12, OUTPUT); pinMode(11, OUTPUT); pinMode(10, OUTPUT); pinMode(9, OUTPUT); pinMode(8, OUTPUT); } void wPressed() { // W ist gedrueckt. digitalWrite(11, HIGH); } void aPressed() { // A ist ged...
FIX missing software serial include
FIX missing software serial include
Arduino
mit
janisstreib/jsc-robocontrol,janisstreib/jsc-robocontrol
0afe0f8fbd664109051963105150775e951e85f7
usermods/project_cars_shiftlight/wled06_usermod.ino
usermods/project_cars_shiftlight/wled06_usermod.ino
/* * Car rev display and shift indicator for Project Cars * * This works via the UDP telemetry function. You'll need to enable it in the settings of the game. * I've had good results with settings around 5 (20 fps). * */ const uint8_t PCARS_dimcolor = 20; WiFiUDP UDP; const unsigned int PCARS_...
/* * Car rev display and shift indicator for Project Cars * * This works via the UDP telemetry function. You'll need to enable it in the settings of the game. * I've had good results with settings around 5 (20 fps). * */ const uint8_t PCARS_dimcolor = 20; WiFiUDP UDP; const unsigned int PCARS_...
make PCARS usermod compatible with WLED > 0.10.0
make PCARS usermod compatible with WLED > 0.10.0
Arduino
mit
Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED
4f86daa66c4c99ac0408531e7c7b89bfb1cfaf5d
tiny_scope.ino
tiny_scope.ino
/* * tiny_scope.ino - main application * Tiny Scope for Arduino project * * Copyright (C)2015 Laurentiu Badea * * This file may be redistributed under the terms of the MIT license. * A copy of this license has been included with this distribution in the file LICENSE. */ #if 0 /* add all necessary libs here or t...
/* * tiny_scope.ino - main application * Tiny Scope for Arduino project * * Copyright (C)2015 Laurentiu Badea * * This file may be redistributed under the terms of the MIT license. * A copy of this license has been included with this distribution in the file LICENSE. */ #if 0 /* add all necessary libs here or t...
Allow some init time for display; fixes blank display on initial power-up on teensy 3.1
Allow some init time for display; fixes blank display on initial power-up on teensy 3.1
Arduino
mit
laurb9/tiny_scope
e93fea6a8267a3632cf920285cd7d8492bc2ad75
examples/Boards_GSM/Arduino_MKRNB/Arduino_MKRNB.ino
examples/Boards_GSM/Arduino_MKRNB/Arduino_MKRNB.ino
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces ...
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces ...
Fix typo
Fix typo
Arduino
mit
blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
bc1efa31ae90b46e303c2d5995824275d82f92fd
examples/MidiLight_Looper/MidiLight_Looper.ino
examples/MidiLight_Looper/MidiLight_Looper.ino
/** * MidiLight_Looper - Midi looper application * * @file MidiLight_Looper.ino * @author S.Tudoret * @date 20/04/16 * @license MIT * * Copyright (c) 2016 S. Tudoret * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
/** * MidiLight_Looper - Midi looper application * * @file MidiLight_Looper.ino * @author S.Tudoret * @date 20/04/16 * @license MIT * * Copyright (c) 2016 S. Tudoret * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
Use Drum kit channel on track 2
Use Drum kit channel on track 2
Arduino
mit
studoret/MidiLight,studoret/MidiLight
23dcbf7a408efdd0b7ae6f2c06a481ebb17047a0
Barry/Barry.ino
Barry/Barry.ino
#include "Robot.h" #include "Pins.h" Robot* robot; Bras* bras; void setup() { Serial.begin(9600); bras = new Bras(PIN_EPAULE, PIN_COUDE, PIN_POIGNET, PIN_MAIN); robot = new Robot(bras, PIN_SPEED, PIN_FORWARD, PIN_BACKWARD, PIN_SOUND0, PIN_SOUND1, PIN_BAR_SENSOR, PIN_LANCE_BALLE, PIN_DRAPEAU); ...
#include "Robot.h" #include "Pins.h" Robot* robot; Bras* bras; void setup() { Serial.begin(9600); bras = new Bras(PIN_EPAULE, PIN_COUDE, PIN_POIGNET, PIN_MAIN); robot = new Robot(bras, PIN_SPEED, PIN_FORWARD, PIN_BACKWARD, PIN_SOUND0, PIN_SOUND1, PIN_BAR_SENSOR, PIN_LANCE_BALLE, PIN_DRAPEAU); ...
Update Barry.ino
Update Barry.ino
Arduino
mit
WebF0x/Barry,WebF0x/Barry
f97d1d861d01b98d4aa8037c453dbabea8c3c01a
src/rx5808-pro-diversity/rx5808-pro-diversity.ino
src/rx5808-pro-diversity/rx5808-pro-diversity.ino
/* * SPI driver based on fs_skyrf_58g-main.c Written by Simon Chambers * TVOUT by Myles Metzel * Scanner by Johan Hermen * Inital 2 Button version by Peter (pete1990) * Refactored and GUI reworked by Marko Hoepken * Universal version my Marko Hoepken * Diversity Receiver Mode and GUI improvements by Shea Ivey *...
/* * SPI driver based on fs_skyrf_58g-main.c Written by Simon Chambers * TVOUT by Myles Metzel * Scanner by Johan Hermen * Inital 2 Button version by Peter (pete1990) * Refactored and GUI reworked by Marko Hoepken * Universal version my Marko Hoepken * Diversity Receiver Mode and GUI improvements by Shea Ivey *...
Disable Screensaver for Bandscan
Disable Screensaver for Bandscan Hey ! I used the band scan today for testing. I found that the screensaver is annoying in this mode while I'm working with quads. What do you think ?
Arduino
mit
RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity
c1d3c1418e50d54c0a07d7a7401fbe86274607c0
examples/02_functionality/LCDML_021_dynUpdatedContent/LCDML_display_menu.ino
examples/02_functionality/LCDML_021_dynUpdatedContent/LCDML_display_menu.ino
// ===================================================================== // // Output function // // ===================================================================== /* ******************************************************************** */ void lcdml_menu_clear() /* **********************************************...
// ===================================================================== // // Output function // // ===================================================================== /* ******************************************************************** */ void lcdml_menu_clear() /* **********************************************...
Optimize one code lines in the LCDML_021_dynUpdatedContent example
Optimize one code lines in the LCDML_021_dynUpdatedContent example
Arduino
mit
Jomelo/LCDMenuLib2,Jomelo/LCDMenuLib2
18c84a1a30852224fa5cb650909c19d1cfa275fd
ableton-midi-foot-controller.ino
ableton-midi-foot-controller.ino
#include "Button.h" #include "base64/Base64.h" #include <Adafruit_GFX.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_SSD1306.h> #define DEBUG_BUTTONS true byte counter; const byte CLOCK = 248; const byte START = 250; const byte CONTINUE = 251; const byte STOP = 252; const int ledPin = 13; const byte bpmLe...
#include "Button.h" #include "base64/Base64.h" #include <Adafruit_GFX.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_SSD1306.h> #define DEBUG_BUTTONS true byte counter; const byte CLOCK = 248; const byte START = 250; const byte CONTINUE = 251; const byte STOP = 252; // LEDs const byte ledPin = 13; const b...
Configure pins correctly
Configure pins correctly
Arduino
apache-2.0
LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac
f22c0cea4a9f5d95f15b47751676c6128f8b3b8d
little-switches/arduino/galoppo/galoppo.ino
little-switches/arduino/galoppo/galoppo.ino
#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; float...
#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 = 78; floa...
fix code
fix code
Arduino
unlicense
paolocavagnolo/plastik-art_democracy
883587b3712ccd8de0c38eea1d5d9a8c2eee7d54
examples/rx/rx.ino
examples/rx/rx.ino
#include <nrf24l01-mnemonics.h> #include <nrf24l01.h> #include <SPI.h> #include <string.h> #define SLAVE_SELECT_PIN 7 #define CHIP_ENABLE_PIN 8 #define INTERRUPT_PIN 2 #define LED_PIN 10 nRF24L01 rf = nRF24L01(SLAVE_SELECT_PIN, CHIP_ENABLE_PIN); bool interrupted = false; uint8_t address[5] = { 0x01, 0x...
Add RX example.
Add RX example.
Arduino
mit
antoineleclair/arduino-nrf24l01,antoineleclair/arduino-nrf24l01
d47379dcc22ff5f07a0713032aabad5309bce502
ArduCAM/examples/REVC/ArduCAM_OV5642_Digital_Camera/ArduCAM_OV5642_Digital_Camera.ino
ArduCAM/examples/REVC/ArduCAM_OV5642_Digital_Camera/ArduCAM_OV5642_Digital_Camera.ino
// ArduCAM demo (C)2014 Lee // web: http://www.ArduCAM.com // This program is a demo of how to use most of the functions // of the library with a supported camera modules, and can run on any Arduino platform. // // This demo was made for Omnivision OV5642 5MP sensor. // It will run the ArduCAM as a real 5MP digital cam...
// ArduCAM demo (C)2014 Lee // web: http://www.ArduCAM.com // This program is a demo of how to use most of the functions // of the library with a supported camera modules, and can run on any Arduino platform. // // This demo was made for Omnivision OV5642 5MP sensor. // It will run the ArduCAM as a real 5MP digital cam...
fix minor issue
fix minor issue
Arduino
mit
ArduCAM/Arduino,Oitzu/Arduino,Oitzu/Arduino,ArduCAM/Arduino,Oitzu/Arduino,ArduCAM/Arduino
b8d7bb881c3447237fbbfa38614888dc3bd3d4a1
files/template.ino
files/template.ino
/* SenseBox Citizen Sensingplatform Version: 1.0 Date: 2014-05-11 Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/ Author: Jan Wirwahn */ //libraries to include #include <DHT.h> #include <Barometer.h> #include <Wire.h> #include <SPI.h> #include <EthernetV2_0.h> //Ethernet shield settings #define W52...
/* SenseBox Citizen Sensingplatform Version: 1.2 Date: 2015-01-06 Homepage: http://sensebox.uni-muenster.de/bestellen/fuer-buerger/ Author: Jan Wirwahn Note: Version with additional sensors for GIS-GK@ifgi */ #include <Wire.h> #include <SPI.h> #include <EthernetV2_0.h> #include <DHT.h> #include <Barometer.h> #include <...
Update template.ino
Update template.ino Extended version for GIS course at ifgi, Muenster. Replaced analog with digital light sensor, added uv sensor and watchdog for reset on hold
Arduino
mit
sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API,sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API,chk1/OpenSenseMap-API
cb1419ce63b7af31eb71d7e448899f7807287a61
platformio/src/adc_tr.ino
platformio/src/adc_tr.ino
/* Prototypical arduino/teensy code. When reading, the first 4 bytes are the timestamp (unsigned long). Subsequent pairs of bytes are each input channel (uint8). So the expected size per line is 4 + (2 * n), n being the number of channels. */ #include "ADC.h" #include "IntervalTimer.h" // only the lines below needs t...
/* Prototypical arduino/teensy code. When reading, the first 4 bytes are the timestamp (unsigned long). Subsequent pairs of bytes are each input channel (uint8). So the expected size per line is 4 + (2 * n), n being the number of channels. */ #include "ADC.h" #include "IntervalTimer.h" // only the lines below needs t...
Initialize some vars
Initialize some vars
Arduino
mit
BLAM-Lab-Projects/finger-6
2de7de709889d635aa1c388746b79c7e34005e2e
Arduino/NetworkCommunication/ThingspeakWriteSingleField/ThingspeakWriteSingleField.ino
Arduino/NetworkCommunication/ThingspeakWriteSingleField/ThingspeakWriteSingleField.ino
/* WriteSingleField Description: Writes a value to a channel on ThingSpeak every 20 seconds. Hardware: Arduino Uno WiFi Rev2 !!! IMPORTANT - Modify the secrets.h file for this project with your network connection and ThingSpeak channel details. !!! Note: - Requires WiFiNINA library. - This exa...
/* WriteSingleField Description: Writes a value to a channel on ThingSpeak every 20 seconds. Hardware: Arduino Uno WiFi Rev2 !!! IMPORTANT - Modify the secrets.h file for this project with your network connection and ThingSpeak channel details. !!! Note: - Requires WiFiNINA library. - This ex...
Update ThingspeakWriteSingleField.ino
Update ThingspeakWriteSingleField.ino
Arduino
mit
carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching
f37db4b00e3ad72fb894ecd2591abbd3d7a9c463
examples/graphicstest/graphicstest.ino
examples/graphicstest/graphicstest.ino
/*************************************************** This is our GFX example for the Adafruit ILI9341 Breakout and Shield ----> http://www.adafruit.com/products/1651 Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to interface (R...
/*************************************************** This is our GFX example for the Adafruit ILI9341 Breakout and Shield ----> http://www.adafruit.com/products/1651 Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to interface (R...
Add waiting message to graphics test example
Add waiting message to graphics test example
Arduino
bsd-2-clause
kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351
daae3771cc65189910d59bdd1ca702adefbfc005
examples/spitftbitmap/spitftbitmap.ino
examples/spitftbitmap/spitftbitmap.ino
/*************************************************** This is our Bitmap drawing example for the Adafruit ILI9341 Breakout and Shield ----> http://www.adafruit.com/products/1651 Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to i...
/*************************************************** This is our Bitmap drawing example for the Adafruit ILI9341 Breakout and Shield ----> http://www.adafruit.com/products/1651 Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to i...
Improve spitftbitmap example
Improve spitftbitmap example
Arduino
bsd-2-clause
kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351,kirberich/teensy_ssd1351
073954d52eb1e16fb95373cb3a854ceca7adb441
libraries/ATT_IOT/examples/GPRSLinkit/GPRSLinkit.ino
libraries/ATT_IOT/examples/GPRSLinkit/GPRSLinkit.ino
/* Copyright 2014-2016 AllThingsTalk Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
/* Copyright 2014-2016 AllThingsTalk Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
fix linkit one demo
fix linkit one demo
Arduino
apache-2.0
allthingstalk/arduino-client
bfecdb0e390e78670706ee276d120f587914e2aa
libraries/ESP8266HTTPClient/examples/DigestAuthorization/DigestAuthorization.ino
libraries/ESP8266HTTPClient/examples/DigestAuthorization/DigestAuthorization.ino
/* This sketch shows how to handle HTTP Digest Authorization. Written by Parham Alvani and Sajjad Rahnama, 2018-01-07. This example is released into public domain, or, at your option, CC0 licensed. */ #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #ifndef STASSID #define STASSID "your-ssid" ...
/* This sketch shows how to handle HTTP Digest Authorization. Written by Parham Alvani and Sajjad Rahnama, 2018-01-07. This example is released into public domain, or, at your option, CC0 licensed. */ #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #ifndef STASSID #define STASSID "your-ssid" ...
Update DigestAuthorization.ino (Simple example update) (#7579)
Update DigestAuthorization.ino (Simple example update) (#7579) Simple example update to pass the method as a parameter to getDigestAuth(), so it is more easily used for POST. Add setting the ransom seed to RANDOM_REG32 in setup() for better getCNonce() values.
Arduino
lgpl-2.1
esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino
40dbe8241170c68a7b076242080670e012098b53
ScriptingAccessory/firmware/play_movie/play_movie.ino
ScriptingAccessory/firmware/play_movie/play_movie.ino
/* Copyright 2012 Google Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is dist...
/* Copyright 2012 Google Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is dist...
modify to access YouTube via webview
modify to access YouTube via webview
Arduino
apache-2.0
kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory
47e42a6e0ed2f41a5fa550858583608cc53e6dd9
iGPS.ino
iGPS.ino
/* * GPS解析 * 包括: * 时间、日期、经纬度、海拔 */ #include <SoftwareSerial.h> #include "LCD4884.h" #define GPS_TX 12 #define GPS_RX 13 #define GPRMC "$GPRMC" // 推荐最小定位信息 #define GPVTG "$GPVTG" // 地面速度信息 #define GPGGA "$GPGGA" // 获取海拔高度 #define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量 #define VALID "A" // A=Valid 有效 #define INVALID "...
/* * GPS解析 * 包括: * 时间、日期、经纬度、海拔 */ #include <SoftwareSerial.h> #include "LCD4884.h" #define GPS_TX 12 #define GPS_RX 13 #define GPRMC "$GPRMC" // 推荐最小定位信息 #define GPVTG "$GPVTG" // 地面速度信息 #define GPGGA "$GPGGA" // 获取海拔高度 #define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量 #define VALID "A" // A=Valid 有效 #define INVALID "...
Update iGPS.ino
Update iGPS.ino 增加字符串转浮点数函数
Arduino
apache-2.0
snowolf-zlex/iGPS,snowolf-zlex/iGPS
eaa71254db4448c04e67f07e9fd71612d91d5fae
modbusiptest/modbusiptest.ino
modbusiptest/modbusiptest.ino
/* Modbus IP Test */ #include <SPI.h> #include <Ethernet.h> #include <Modbus.h> #include <ModbusIP.h> ModbusIP mb; #define COIL1 10 #define COIL2 20 #define LAMP 30 #define TESTREG 100 #define DISCINP 200 #define INPREG 300 const int ledPin = 13; long t1, t2; void setup() { // the media access co...
/* Modbus IP Test */ #include <SPI.h> #include <Ethernet.h> #include <Modbus.h> #include <ModbusIP.h> ModbusIP mb; #define COIL1 10 #define COIL2 20 #define LAMP 30 #define TESTREG 100 #define DISCINP 200 #define INPREG 300 const int ledPin = 9; long t1, t2; void setup() { // the media access con...
Change led pin to 9.
Change led pin to 9.
Arduino
bsd-3-clause
unparallel-innovation/Modbus-Slave,unparallel-innovation/Modbus-Slave,andresarmento/modbus-arduino
0788a6270f35a6b2653bc57cb81aa43a812642b0
ESP8266iTachEmulatorGUI/ESP8266iTachEmulatorGUI.ino
ESP8266iTachEmulatorGUI/ESP8266iTachEmulatorGUI.ino
/* Implements a subset of the iTach API Specification Version 1.5 http://www.globalcache.com/files/docs/API-iTach.pdf and LIRC server including the SEND_CCF_ONCE extensions http://www.harctoolbox.org/lirc_ccf.html#Extensions+to+the+irsend+command Tested with - IrScrutinizer 1.1.2 from https://github.com/bengt...
/* Implements a subset of the iTach API Specification Version 1.5 http://www.globalcache.com/files/docs/API-iTach.pdf and LIRC server including the SEND_CCF_ONCE extensions http://www.harctoolbox.org/lirc_ccf.html#Extensions+to+the+irsend+command Tested with - IrScrutinizer 1.1.2 from https://github.com/...
Fix #3
Fix #3
Arduino
mit
wooby6/ESP8266iTachEmulator
3f552567600d4ca5025faa919b018a2869810a3f
ComboKeypad/Keypad.ino
ComboKeypad/Keypad.ino
// //USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const bool useFiveVoltpin = false; //Change this if you want to use the ///...
// //USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is const bool useFiveVoltpin = false; //Change this if you want to use the ///////////////////////////////////////...
Update Keypad.ino
Update Keypad.ino
Arduino
mit
TeodorLys/Arduino_Projects
899387bf6ad838456838054a6f7f526f03e99d1f
ComboKeypad/Keypad.ino
ComboKeypad/Keypad.ino
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many...
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many...
Update Keypad.ino
Update Keypad.ino
Arduino
mit
TeodorLys/Arduino_Projects
c58aba6cfac95a5cc07cc96bb0f4240038c6db6a
ESP-Logger/ESP-Logger.ino
ESP-Logger/ESP-Logger.ino
#include "ntpUtils.h" #include "authUtils.h" #include <FirebaseArduino.h> #include <DHT.h> #define DHTPIN D2 #define FANPIN D6 #define LIGHTPIN D5 #define SENSORPIN D8 #define DHTTYPE DHT11 #define DELAY_TIME_TO_SEND 360 // 5 min #define TABLE_LEITURA "leitura" #define TABLE_MOTION "motion" #define CLIENT_EMAIL "wel...
#include "ntpUtils.h" #include "authUtils.h" #include <FirebaseArduino.h> #include <DHT.h> #define DHTPIN D2 #define FANPIN D6 #define LIGHTPIN D5 #define SENSORPIN D8 #define DHTTYPE DHT11 #define DELAY_TIME_TO_SEND 360 // 5 min #define TABLE_LEITURA "leitura" #define TABLE_MOTION "motion" #define CLIENT_EMAIL "wel...
Verify null epoch
Verify null epoch
Arduino
apache-2.0
oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger,oliveirasWell/firebase-esp8266-dht11-logger
35dea180d86fd88e971d2ec160276a8668b525d0
build/shared/examples/06.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino
build/shared/examples/06.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino
/* String startWith() and endsWith() Examples of how to use startsWith() and endsWith() in a String created 27 July 2010 modified 2 Apr 2012 by Tom Igoe Hardware Required: * MSP-EXP430G2 LaunchPad This example code is in the public domain. */ void setup() { // Open serial communi...
/* String startWith() and endsWith() Examples of how to use startsWith() and endsWith() in a String created 27 July 2010 modified 2 Apr 2012 by Tom Igoe Hardware Required: * MSP-EXP430G2 LaunchPad This example code is in the public domain. */ void setup() { // Open serial communi...
Fix 0 should be "0" in StringStartsWithEndsWith.ino
Fix 0 should be "0" in StringStartsWithEndsWith.ino
Arduino
lgpl-2.1
vigneshmanix/Energia,battosai30/Energia,martianmartin/Energia,croberts15/Energia,vigneshmanix/Energia,martianmartin/Energia,vigneshmanix/Energia,vigneshmanix/Energia,battosai30/Energia,martianmartin/Energia,vigneshmanix/Energia,croberts15/Energia,croberts15/Energia,battosai30/Energia,vigneshmanix/Energia,martianmartin/...
23a95ab622bb6aa86344d54129ac9ff30258e42b
sketchbook/arduino/arduino.ino
sketchbook/arduino/arduino.ino
# https://github.com/kosme/arduinoFFT/blob/master/Examples/FFT_03/FFT_03.ino #include <arduinoFTT.h> const uint16_t num_samples = 64; // This value MUST ALWAYS be a power of 2 const double samplingFrequency = 1000.0; // 1000 samples per second. const int delayTime = 1000 / samplingFrequency; uint8_t exponent; // T...
# https://github.com/kosme/arduinoFFT/blob/master/Examples/FFT_03/FFT_03.ino #include <arduinoFFT.h> const uint16_t num_samples = 64; // This value MUST ALWAYS be a power of 2 const double samplingFrequency = 1000.0; // 1000 samples per second. const int delayTime = 1000 / samplingFrequency; uint8_t exponent; // T...
Change arduino to support sound sampling, rather than pixel writing.
Change arduino to support sound sampling, rather than pixel writing.
Arduino
mit
Spooner/pixel-table,Spooner/pixel-table,Spooner/pixel-table
ba0fa3fb3cd50fbf2c3a007e3edd1253187f3181
_25-attiny85-nrf24-ds18b20/_25-attiny85-nrf24-ds18b20.ino
_25-attiny85-nrf24-ds18b20/_25-attiny85-nrf24-ds18b20.ino
// pins /* 24l01 85 1 gnd 4 2 vcc 8 3 ce 1 4 csn 3 5 sck 7 6 mosi 6 7 miso 5 */ #include <LowPower.h> #include <avr/wdt.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <avr/pgmspace.h> #include <OneWire.h> #include <DallasTemperature.h> #include <nRF24L01.h> #i...
// pins /* 24l01 85 1 gnd 4 2 vcc 8 3 ce 1 4 csn 3 5 sck 7 6 mosi 6 7 miso 5 */ #include <LowPower.h> #include <avr/wdt.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <avr/pgmspace.h> #include <OneWire.h> #include <DallasTemperature.h> #include <nRF24L01.h> #i...
use return
use return
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
1490738d925dd805d2970d8b6629885e6942951d
Event_Printer/Event_Printer.ino
Event_Printer/Event_Printer.ino
#include <SPI.h> #include <mcp_can.h> #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" #include "BMW_R1200_GS_K25_State.h" #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Hardware-specific library /* Compile time Flags */ #define DEBUG 0 #define PRINT_TO_SERIAL_CONSOLE 0 #define PR...
#include <SPI.h> #include <mcp_can.h> #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" #include "BMW_R1200_GS_K25_State.h" #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Hardware-specific library /* Compile time Flags */ #define DEBUG 0 #define PRINT_TO_SERIAL_CONSOLE 0 #define PR...
Make some of the init statements debug prints
Make some of the init statements debug prints
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
4ae8a6d631d532409dde5ea35af03bccbb62974f
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
/* SDWebServer - Example WebServer with SD Card backend for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the ESP8266WebServer library for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser G...
/* SDWebServer - Example WebServer with SD Card backend for esp8266 Copyright (c) 2015 Hristo Gochkov. All rights reserved. This file is part of the ESP8266WebServer library for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser G...
Edit SD Server example to use the new Write(Stream) method
Edit SD Server example to use the new Write(Stream) method
Arduino
lgpl-2.1
nkolban/Arduino,noahchense/Arduino-1,plaintea/esp8266-Arduino,smily77/Arduino,probonopd/Arduino,myrtleTree33/Arduino,EmuxEvans/Arduino,zenmanenergy/Arduino,wdoganowski/Arduino,paulmand3l/Arduino,zenmanenergy/Arduino,mattvenn/Arduino,leftbrainstrain/Arduino-ESP8266,eeijcea/Arduino-1,fungxu/Arduino,mateuszdw/Arduino,jomo...
27052088c3e9dbf51da6210b5d3e4a805c7a1a02
moros/moros.ino
moros/moros.ino
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SI...
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SI...
Update comments
Update comments
Arduino
mit
adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros
8a73eefd8a468f7ebc7c6b247ae5b99e4c015909
examples/SchedulerWithOtherTaskPriority/SchedulerWithOtherTaskPriority.ino
examples/SchedulerWithOtherTaskPriority/SchedulerWithOtherTaskPriority.ino
#include <DeepSleepScheduler.h> void setup() { Serial.begin(115200); Serial.print("setup() FreeRTOS priority: "); Serial.print(uxTaskPriorityGet(NULL)); Serial.print(" of "); Serial.println(configMAX_PRIORITIES); scheduler.schedule(task1); } void task1() { Serial.print("task1 FreeRTOS priority: "); ...
#define SLEEP_DELAY 100 #include <DeepSleepScheduler.h> void setup() { Serial.begin(115200); Serial.print("setup() FreeRTOS priority: "); Serial.print(uxTaskPriorityGet(NULL)); Serial.print(" of "); Serial.println(configMAX_PRIORITIES); scheduler.schedule(task1); } void task1() { Serial.print("task1 F...
add SLEEP_DELAY for serial output
add SLEEP_DELAY for serial output
Arduino
apache-2.0
PRosenb/DeepSleepScheduler,PRosenb/DeepSleepScheduler
352b44e9072d4524ca768b2f84f1223e6583d62e
examples/Accelerometer_Compass/Accelerometer_Compass.ino
examples/Accelerometer_Compass/Accelerometer_Compass.ino
/* LSM303DLM Example Code base on LSM303DLH example code by Jim Lindblom SparkFun Electronics date: 9/6/11 license: Creative commons share-alike v3.0 Modified by:Frankie.Chu Modified by:Jacky.Zhang 2014-12-11: Ported to 6-Axis Accelerometer&Compass of Seeed Studio Modified by:Jacky.Zhang 2015-1-6...
/* LSM303DLM Example Code base on LSM303DLH example code by Jim Lindblom SparkFun Electronics date: 9/6/11 license: Creative commons share-alike v3.0 Modified by:Frankie.Chu Modified by:Jacky.Zhang 2014-12-11: Ported to 6-Axis Accelerometer&Compass of Seeed Studio Modified by:Jacky.Zhang 2015-1-6...
use default interface I2C
use default interface I2C
Arduino
mit
Seeed-Studio/6Axis_Accelerometer_And_Compass_v2
eb37fb124216c313a723a638bd62f49af3d7db48
Kochen.ino
Kochen.ino
int kochzeit = 90; int anzahlHopfengaben = 3; int* hopfengaben=0; int aktuelleHopfengabe=1; State stateReachKochTemp = State(reachKochTemp); State stateWaitKochDauer = State(prepareKochDauer,waitKochDauer,NULL); FSM fsmKochProzess = FSM(stateReachKochTemp); void enterKochzeit() { encoderValue = encoder->getValue();...
int kochzeit = 90; int anzahlHopfengaben = 3; int* hopfengaben=0; int aktuelleHopfengabe=1; State stateReachKochTemp = State(reachKochTemp); State stateWaitKochDauer = State(prepareKochDauer,waitKochDauer,NULL); FSM fsmKochProzess = FSM(stateReachKochTemp); void enterKochzeit() { encoderValue = encoder->getValue();...
Update Kochen.ino
Update Kochen.ino Textausgaben optimiert, Konsolenausgaben entfernt
Arduino
mit
herbstmensch/BrewDuino,herbstmensch/BrewDuino
d361aa2112e6fdb7e069acaa11fc7094baabd78d
cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino
cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino
/** The original code: Copyright (c) 2015, Yusuke Doi All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditio...
/** The original code: Copyright (c) 2015, Yusuke Doi All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditio...
Update writing for arduino code
Update writing for arduino code
Arduino
bsd-3-clause
CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot
3aa7ff7564db4471b5792df6ede29f88c1accbae
Arduino/nfc_flower/nfc_flower.ino
Arduino/nfc_flower/nfc_flower.ino
#include <dht11.h> #include <EEPROM.h> dht11 DHT11; #define DHT11PIN 12 //define DHT11 pin #define RELAY 2 //define relay pin /* Copyright 2013 Ten Wong, wangtengoo7@gmail.com * */ /********************************************************* ** sample: when reset the rf430, it will write the uri to ** rf430 tag...
/* Copyright 2013 Ten Wong, wangtengoo7@gmail.com * */ //#include <dht11.h> #include <EEPROM.h> //dht11 DHT11; //#define DHT11PIN 12 //define DHT11 pin //#define RELAY 2 //define relay pin #if ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif #include <Wire.h> #include <RF430CL330H_Shie...
change sensor , moisture
change sensor , moisture
Arduino
apache-2.0
nfcwormhole/NFC-Flower
bd92ab1216428d67122cb126c7ddbf18b5d40d52
moros/moros.ino
moros/moros.ino
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SI...
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 //#define INITIAL_TIME_MS 300000 #define INITIAL_TIME_MS 5000 in...
Move font #defines into Screen
Move font #defines into Screen These really should be constants or something
Arduino
mit
adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros
6fe4a22dc469dcac55b1c3bb219f8f55ffcb4251
Pan_Tilt_laser/Pan_Tilt_laser.ino
Pan_Tilt_laser/Pan_Tilt_laser.ino
/**************************************************************************/ /*! @file Pan_Tilt_laser.ino @author Stuart Feichtinger @license MIT (see license.txt) Main program running an automatic laser-turret cat toy using a pan-tilt rig (https://www.adafruit.com/products/1967) and laser d...
/**************************************************************************/ /*! @file Pan_Tilt_laser.ino @author Stuart Feichtinger @license MIT (see license.txt) Main program running an automatic laser-turret cat toy using a pan-tilt rig (https://www.adafruit.com/products/1967) and laser d...
Clean up
Clean up
Arduino
mit
stuthedew/Arduino-Laser-Cat-Turret
8e1f7f587ed249f4dc1005b922754acec0fd3c1f
software/firmware/LogoBotEsp8266/LogoBotEsp8266.ino
software/firmware/LogoBotEsp8266/LogoBotEsp8266.ino
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <EEPROM.h> ESP8266WebServer server(80); const int led = 2; void handleRoot() { digitalWrite(led, 1); String page = "<!DOCTYPE html>"; page += "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">"; pa...
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <EEPROM.h> ESP8266WebServer server(80); const int led = 2; const char page[] PROGMEM = R"~( <!DOCTYPE html> <meta name="viewport" content="width=device-width, initial-scale=1"> <html> <head><title>Logobot Blue</title></head> <bo...
Simplify html page creation by using R() - a raw string.
Simplify html page creation by using R() - a raw string.
Arduino
mit
snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot
644d2e49d274ec3b149605d791bb9c6635bee4b5
wifi-feather/wifi-feather.ino
wifi-feather/wifi-feather.ino
#include <ESP8266WiFi.h> #include <ntpclient.h> #include <PrintEx.h> #include <TimeLib.h> #include <WiFiUdp.h> #include "persistent_queue.h" #include "ssid-info.h" #include "util.h" static constexpr char const* SENSOR_ID = "bostonfern1"; static constexpr unsigned ENABLE_SENSOR_PIN = 14; static constexpr unsigned CON...
#include <ESP8266WiFi.h> #include <ntpclient.h> #include <PrintEx.h> #include <TimeLib.h> #include <WiFiUdp.h> #include "persistent_queue.h" #include "ssid-info.h" #include "util.h" static constexpr char const* SENSOR_ID = "bostonfern1"; static constexpr unsigned ENABLE_SENSOR_PIN = 14; static constexpr unsigned CON...
Set ENABLE_SENSOR_PIN as OUTPUT.
Set ENABLE_SENSOR_PIN as OUTPUT.
Arduino
mit
betabandido/moisturereader,betabandido/moisturereader
4c258feda0054d598367567fbe0d799d7a3fafd8
Arduino/Sensors/Ultrasonic/HC-SR04_test/HC-SR04_test.ino
Arduino/Sensors/Ultrasonic/HC-SR04_test/HC-SR04_test.ino
/* * * Testing the HC-SR04 ultrasonic sensor * Ultrasonic sensor Pins: VCC: +5VDC Trig : Trigger (INPUT) - Pin 9 Echo: Echo (OUTPUT) - Pin 8 GND: GND */ int trigPin = 9; //Trig int echoPin = 8; //Echo long duration, cm, inches; void setup() { //Serial Port begin Se...
/* * * Testing the HC-SR04 ultrasonic sensor * Ultrasonic sensor Pins: VCC: +5VDC Trig : Trigger (INPUT) - Pin 9 Echo: Echo (OUTPUT) - Pin 8 GND: GND */ int trigPin = 9; //Trig int echoPin = 8; //Echo long duration, cm, inches; void setup() { //Serial Port begin Se...
Update HC-SR04_test.ino
Update HC-SR04_test.ino
Arduino
mit
carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching
24fa0b4d5428e3fcd6a920dff8e1f74e1b748b37
Musical_Instruments_2017_2018/Dance_Pads/Pad_A_Piano.ino
Musical_Instruments_2017_2018/Dance_Pads/Pad_A_Piano.ino
#include <Math.h> #include <Keyboard.h> #include <MIDI.h> // Set up variables for dance pad input int bass= 2; int hHat = 3; int hTom = 4; int mTom = 5; int ride = 6; int snare = 7; int lTom = 8; int crash = 9; // Set up default variables for input status int valBass = 0; int valhHat = 0; int valhTom = 0; int valmTo...
#include <Math.h> #include <Keyboard.h> #include <MIDI.h> // Set up variables for dance pad input int bass= 2; int hHat = 3; int hTom = 4; int mTom = 5; int ride = 6; int snare = 7; int lTom = 8; int crash = 9; // Set up default variables for input status int valBass = 0; int valhHat = 0; int valhTom = 0; int valmTo...
Update Pad_A_Piano.ino
Update Pad_A_Piano.ino
Arduino
mit
Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex,Pocketart/typhoonclawvex
9747fc445f397ecd82adabbaa793f95ebe53fca5
src/IoTBox.ino
src/IoTBox.ino
/* * Project IoTBox * Description: * Author: Peacemoon * Date: 17.09.2017 */ #include "Grove_LCD_RGB_Backlight.h" #define BUTTONPIN D2 // Button reserved for further usage #define BUZZERPIN D3 // Buzzer reserved for further usage #define RELAYPIN D4 // Relay to drive the electromagnetic lock. #define SWITCHPIN D...
/* * Project IoTBox * Description: * Author: Peacemoon * Date: 17.09.2017 */ #include "Grove_LCD_RGB_Backlight.h" #define BUTTONPIN D2 // Button reserved for further usage #define BUZZERPIN D3 // Buzzer reserved for further usage #define RELAYPIN D4 // Relay to drive the electromagnetic lock. #define SWITCHPIN D...
Add interrupts for button & switch
Add interrupts for button & switch
Arduino
mit
peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox,peacemoon/IoTBox
d997a2d438398f9beb7b05de752da585834780e1
examples/ChangeUID/ChangeUID.ino
examples/ChangeUID/ChangeUID.ino
/* * -------------------------------------------------------------------------------------------------------------------- * Example to change UID of changeable MIFARE card. * -------------------------------------------------------------------------------------------------------------------- * This is a MFRC522 libr...
/* * -------------------------------------------------------------------------------------------------------------------- * Example to change UID of changeable MIFARE card. * -------------------------------------------------------------------------------------------------------------------- * This is a MFRC522 libr...
remove duplicate comment
remove duplicate comment
Arduino
unlicense
miguelbalboa/rfid,Rotzbua/rfid,Rotzbua/rfid
39a2530d1d92780183827463564d323ae953262c
AnimatedGIFs.ino
AnimatedGIFs.ino
/* * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels * * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby granted, free of char...
/* * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels * * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby granted, free of char...
Add START_WITH_RANDOM_GIF option, and increment index after initializing first GIF instead of before
Add START_WITH_RANDOM_GIF option, and increment index after initializing first GIF instead of before
Arduino
mit
pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs