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
f0793d2cc8efdba44f6b2853625b9049ff50127f
examples/raw-feather/raw-feather.ino
examples/raw-feather/raw-feather.ino
/* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2 Copyright notice: This file copyright (C) 2017, 2018 by MCCI Corporation 3520 Krums Corners...
/* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2 Copyright notice: This file copyright (C) 2017, 2018 by MCCI Corporation 3520 Krums Corners...
Add check for unsupported band
Add check for unsupported band
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
1c98239ea1c77bd40a0fef13a53c55c65bc8a3e7
examples/simple_menu/simple_menu.ino
examples/simple_menu/simple_menu.ino
#include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_TFTLCD.h> // Hardware-specific library #include <TouchScreen.h> #include <gfx_ui.h> TouchScreen ts = TouchScreen(6, A1, A2, 7, 300); Adafruit_TFTLCD tft(A3, A2, A1, A0, A4); GFX_UI ui(tft, ts, 179, 145, 856, 920); uint16_t text_color = rgb(100, ...
#include <Adafruit_GFX.h> // Core graphics library #include <ILI9341_t3.h> #include <UTouch.h> #include <gfx_ui.h> #include <SPI.h> GFX_UI ui; Color text_color = {200, 200, 200}; Color button_color = {80, 80, 80}; void callback1(UIElement& caller) { // If caller is needed, cast it like so: // Button& call_butto...
Update simple menu sketch, showing button, toggle button, dial and a callback
Update simple menu sketch, showing button, toggle button, dial and a callback
Arduino
mit
kirberich/gfx_ui,kirberich/gfx_ui
3c71f1c56060b31a18c8071d1c0ed35f765db500
examples/adafruitio_secure_airlift/adafruitio_secure_airlift.ino
examples/adafruitio_secure_airlift/adafruitio_secure_airlift.ino
/**************************************************************** Adafruit MQTT Library, Adafruit IO SSL/TLS Example for AirLift Must use the latest version of nina-fw from: https://github.com/adafruit/nina-fw Works great with Adafruit AirLift ESP32 Co-Processors! --> https://www.adafruit.com/product/42...
/**************************************************************** Adafruit MQTT Library, Adafruit IO SSL/TLS Example for AirLift Must use the latest version of nina-fw from: https://github.com/adafruit/nina-fw Works great with Adafruit AirLift ESP32 Co-Processors! --> https://www.adafruit.com/product/42...
remove print for pins
remove print for pins
Arduino
mit
adafruit/Adafruit_MQTT_Library
2b631070f924d5e03542194b94abb2146cfbdd42
examples/mqtt/mqtt_super_simple/mqtt_super_simple.ino
examples/mqtt/mqtt_super_simple/mqtt_super_simple.ino
#define MQTT_DEBUG_MODE #define WIFI_DEBUG_MODE #include <WiFiConnector.h> #include <MqttConnector.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <PubSubClient.h> #include <pt.h> #ifdef ESP8266 extern "C" { #include "user_interface.h" } #endif const char* ssid = "NAT.WRTNODE"; const char* pass ...
#define MQTT_DEBUG_MODE #define WIFI_DEBUG_MODE #include <WiFiConnector.h> #include <MqttConnector.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <PubSubClient.h> #include <pt.h> MqttConnector *mqtt; WiFiConnector *wifi; void init_hardware() { Serial.begin(9600); delay(10); Serial.println(); ...
Update example.
Update example.
Arduino
mit
cmmakerclub/MQTT-Connector,cmmakerclub/CMMC_Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/CMMC_Connector
1535bb219cfb5614989128879e339c309e32449f
Arduino/sketches/LazerTagRelay/LazerTagRelay.ino
Arduino/sketches/LazerTagRelay/LazerTagRelay.ino
/* * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv * An IR detector/demodulator must be connected to the input RECV_PIN. * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * http://arcfn.com */ #include <IRremote.h> #include <LazerTagIr.h> #define LAZERTAG_RELAY_VERSION "1.0.0" #define ...
/* * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv * An IR detector/demodulator must be connected to the input RECV_PIN. * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * http://arcfn.com */ #include <IRremote.h> #include <LazerTagIr.h> #define LAZERTAG_RELAY_VERSION "1.0.0" #define ...
Enable receive LED.
Enable receive LED.
Arduino
mit
rmcardle/LazerTagHost,rmcardle/LazerTagHost
19ae43f40213e8912988a923ed3cf8d83a8428c6
menu.ino
menu.ino
#include "time.h" #include "menu.h" #include "pcd8544.h" void menu_init(void) { pcd8544_clear(); menu_title("This is the main menu"); } static inline void menu_redraw_clock(const char * clock) { pcd8544_place_cursor(9, 6); pcd8544_write_string(clock); } void menu_action(char button) { last_menu_...
#include <string.h> #include "time.h" #include "menu.h" #include "pcd8544.h" char input_buffer[4] = {'\0', '\0', '\0', '\0'}; char clock[6] = {'0', '0', ':', '0', '0', '\0'}; uint8_t current_i = 0; void menu_init(void) { pcd8544_clear(); menu_title("This is the main menu"); } static inline void menu_redraw...
Allow setting an alarm from the keypad!
Allow setting an alarm from the keypad!
Arduino
mit
xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc
1d023876490c7a22f727967358450ab4e76a339b
examples/KISS/KISS.ino
examples/KISS/KISS.ino
/* Hamshield * Example: KISS * This is a example configures the HamShield to be used as * a TNC/KISS device. You will need a KISS device to input * commands to the HamShield * Connect the HamShield to your Arduino. Screw the antenna * into the HamShield RF jack. Connect the Arduino to wall * power and then t...
/* Hamshield * Example: KISS * This is a example configures the HamShield to be used as * a TNC/KISS device. You will need a KISS device to input * commands to the HamShield * Connect the HamShield to your Arduino. Screw the antenna * into the HamShield RF jack. Connect the Arduino to wall * power and then t...
add yaac instructions to example
add yaac instructions to example
Arduino
agpl-3.0
EnhancedRadioDevices/HamShield,EnhancedRadioDevices/HamShield
0d2ae27dbf6cf4ace0059f9270e79e79af9afac0
plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino
plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino
/* * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/ */ struct dataStruct{ int angleV; int angleV1; int angleV2; }myData1; int value = 0; // set values you need to zero #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #include <Servo.h> #define button 4 RF24 radio(7, 8); // CNS, CE ...
/* * * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/ */ struct dataStruct{ int angleV; int angleV1; int angleV2; }myData1; #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #include <Servo.h> #define button 4 RF24 radio(7, 8); // CNS, CE const byte addresses[][6] = {"00001", "00002...
Update sketch_aug08b.ino
Update sketch_aug08b.ino
Arduino
apache-2.0
mohamedalichelbi/Arduino-Plane
c2450005d44bcaf30664516bf7dda34e59efa0b6
examples/SxXBee2/SxXBee2.ino
examples/SxXBee2/SxXBee2.ino
/* * SxXBee2.ino * * Changed on: 12.10.2015 new protocol rev1.1 * Changed on: 04.09.2015 broadcast of power state * Created on: 28.08.2015 * * * Author and Copyright: Michael Blank * * reads date from xbee and sends them to SX Bus * * !!! SX lib does not work with SoftwareSerial Lib !!! * * H...
/* * SxXBee2.ino * * Changed on: 16.10.2015 corrected SX22Command * Changed on: 12.10.2015 new protocol rev1.1 * Changed on: 04.09.2015 broadcast of power state * Created on: 28.08.2015 * * * Author and Copyright: Michael Blank * * reads date from xbee and sends them to SX Bus * * !!! SX l...
use SX22Command instead of SXCommand
use SX22Command instead of SXCommand
Arduino
agpl-3.0
opensx/SX22b
2c46a508938c4d7623dfa0439472ee8f38b33947
src/sketch.ino
src/sketch.ino
#include <Adafruit_NeoPixel.h> #define PIEZO_PIN 11 #define LED_PIN 12 #define CLOCK_FACE_SIZE 21 #define NUM_LEDS ((CLOCK_FACE_SIZE) * 4) #define PI 3.1415926 const uint32_t SEC = 1000L; const uint32_t MIN = 60L * SEC; const uint32_t HR = 60L * MIN; const uint32_t HALFDAY = 12L * HR; #define RGB(r, g, b) (((uint3...
#include <Adafruit_NeoPixel.h> #define PIEZO_PIN 11 #define LED_PIN 12 #define CLOCK_FACE_SIZE 21 #define NUM_LEDS ((CLOCK_FACE_SIZE) * 4) #define PI 3.1415926 const uint32_t SEC = 1000L; const uint32_t MIN = 60L * SEC; const uint32_t HR = 60L * MIN; const uint32_t HALFDAY = 12L * HR; static uint32_t RGB(byte r, b...
Add alpha blending!
clock: Add alpha blending!
Arduino
mit
encukou/computer-corner
d6a600aaf210f4de6dede98c4503b1da96d6b9da
examples/RF12/roomNode/roomNode.ino
examples/RF12/roomNode/roomNode.ino
// New version of the Room Node, derived from rooms.pde // 2010-10-19 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php // see http://jeelabs.org/2010/10/20/new-roomnode-code/ // and http://jeelabs.org/2010/10/21/reporting-motion/ // The complexity in the code below comes from the fact that newly detecte...
// New version of the Room Node, derived from rooms.pde // 2010-10-19 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php // see http://jeelabs.org/2010/10/20/new-roomnode-code/ // and http://jeelabs.org/2010/10/21/reporting-motion/ // The complexity in the code below comes from the fact that newly detecte...
disable serial output by default
disable serial output by default
Arduino
unlicense
jcw/jeelib,jcw/jeelib
f363b8e7cdf983a7aa8647587e3a1be23d7cfe29
Device/HC-SR04.ino
Device/HC-SR04.ino
//Reference Value to Get The Status of Parking #define parked 150 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 //Flags boolean d1 = 0; boolean d2 = 0; boolean d3 = 0; /* //Deducting the Low Pulse fromm the ...
//Reference Value to Get The Status of Parking #define parked 150 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 //Flags boolean d1 = 0; boolean d2 = 0; boolean d3 = 0; /* //Deducting the Low Pulse fromm the ...
Update HC-SR04.ino
Update HC-SR04.ino
Arduino
mit
shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking
fe2304b11b3f91c70ab52ecaf9ff57580e7cb2bb
examples/05.ThingSpeak/ExecuteCommand/ExecuteCommand.ino
examples/05.ThingSpeak/ExecuteCommand/ExecuteCommand.ino
<#include <SoftwareSerial.h> #include <Esp8266.h> #include <IPDParser.h> #include <HttpRequest.h> #include <ParkingShield.h> // CHANGE THE TALKBACK'S API KEY HERE: static const char api_key[] = "V4OEUG5T1A0TFZLC"; // CHANGE THE TALKBACK ID HERE: static const unsigned int talkbackId = 3391; ParkingShield shield; Soft...
#include <SoftwareSerial.h> #include <Esp8266.h> #include <IPDParser.h> #include <HttpRequest.h> #include <ParkingShield.h> // CHANGE THE TALKBACK'S API KEY HERE: static const char api_key[] = "V4OEUG5T1A0TFZLC"; // CHANGE THE TALKBACK ID HERE: static const unsigned int talkbackId = 3391; ParkingShield shield; Softw...
fix last commit
fix last commit remove "<" at the beginning of ExecuteCommand.ino
Arduino
mit
iotl/IoT-Shield-Firmware
fe0559f3213433817069ecfcb1fc3e58a85a7106
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])) // Ethernet Configuration byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ...
// 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])) // Ethernet Configuration byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ...
add third analog channel for solar panel volts
add third analog channel for solar panel volts
Arduino
mit
WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki
4c50affa60831ff790a7dce65e93f667a3521f35
arduino_server/arduino_server.ino
arduino_server/arduino_server.ino
/* * Copyright (c) 2013 Putilov Andrey * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publ...
/* * Copyright (c) 2013 Putilov Andrey * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publ...
remove leaks
remove leaks
Arduino
mit
m8rge/cwebsocket,m8rge/cwebsocket,m8rge/cwebsocket
29bf918d839e688e46bf3fa9864b11eb2020b1bb
Capture/Capture.ino
Capture/Capture.ino
int in = 2; int debug = 4; static const int sampleLength = 52; // the loop routine runs over and over again forever: void setup() { pinMode(debug, OUTPUT); pinMode(in, INPUT); digitalWrite(debug, HIGH); Serial.begin(115200); Serial.println("Start"); } unsigned long time; void dump() { bool samples[200];...
int in = 3; int debug = 4; static const int sampleLength = 52; // the loop routine runs over and over again forever: void setup() { pinMode(debug, OUTPUT); pinMode(in, INPUT); digitalWrite(debug, HIGH); Serial.begin(115200); Serial.println("Start"); } unsigned long time; void dump() { bool samples[200];...
use pin 3 for input, not 2
Capture: use pin 3 for input, not 2
Arduino
bsd-2-clause
eras/TopfieldClock,eras/TopfieldClock,eras/TopfieldClock
3bdb94e3298c850b570682273fc4a2dad5915e9a
_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 wakeUpPin2 = 3; const int espResetPin = 9; const int ledPowerPin = 10; volatile int Measured; volatile long startMills; // vcc vo...
add 1 more tilt sw
add 1 more tilt sw
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
41899dcc6be8e9c7e416e58091345a4f3d388a17
SabreMaster.ino
SabreMaster.ino
/* * SabreMaster * * Created: 19-12-2013 23:05:30 * Author: CE-Designs */ #include "Sabre.h" #include "GUI.h" #include "Wire.h" #include "EEPROM.h" #include "CharacterOLED.h" #include "IRremote.h" #define INCREASE 0x00 #define DECREASE 0x01 Sabre dac; // dac GUI gui(25, 26, 27, 28, 29, 30, 31); // define the pins f...
/* * SabreMaster * * Created: 19-12-2013 23:05:30 * Author: CE-Designs */ #include "Sabre.h" #include "GUI.h" #include "Wire.h" #include "EEPROM.h" #include "CharacterOLED.h" #include "IRremote.h" #define INCREASE 0x00 #define DECREASE 0x01 Sabre dac; // dac GUI gui(25, 26, 27, 28, 29, 30, 31); // define the pins f...
Update SabreMaster.ino
Update SabreMaster.ino Changed the attenuation handling for key up and key down in the setVolume method. Not tested yet.
Arduino
mit
ce-designs/SabreCE
8c888b09291d2af142436173de790b2f3814342e
projects/YunHub/YunHub_MASTER/YunHub_MASTER.ino
projects/YunHub/YunHub_MASTER/YunHub_MASTER.ino
// // Receive RFM12B packets and publish to MQTT server 192.168.178.27 // // only for dedicated senders: // // 1) Temperature Node (group 33, node 22) // --> time stamp, RF12 group ID, node ID, Vcc, T1, T2 // 2) RadioBlip2 (group 33, id 17) // // Blink LED #13 for each package received // #define PROGRAMVERSION "...
// // Receive RFM12B packets and publish to MQTT server 192.168.178.27 // // only for dedicated senders: // // 1) Temperature Node (group 33, node 22) // --> time stamp, RF12 group ID, node ID, Vcc, T1, T2 // 2) RadioBlip2 (group 33, id 17) // // Blink LED #13 for each package received // #define PROGRAMVERSION "...
fix to master
fix to master
Arduino
mit
473856/Lupinino,473856/Lupinino,473856/Lupinino,473856/Lupinino
e12ae00b3e764d487650f8782e7e07018d1f4644
test/ecc_test/ecc_test.ino
test/ecc_test/ecc_test.ino
#include <uECC.h> #include <j0g.h> #include <js0n.h> #include <lwm.h> #include <bitlash.h> #include <GS.h> #include <SPI.h> #include <Wire.h> #include <Scout.h> #include <Shell.h> #include <uECC.h> extern "C" { static int RNG(uint8_t *p_dest, unsigned p_size) { // Use the least-significant bits from the ADC ...
#include <uECC.h> extern "C" { static int RNG(uint8_t *p_dest, unsigned p_size) { // Use the least-significant bits from the ADC for an unconnected pin (or connected to a source of random noise) // This can take a long time to generate random data if the result of analogRead(0) doesn't change very frequently. w...
Clean up Arduino test; remove Scout-specific includes. (#28)
Clean up Arduino test; remove Scout-specific includes. (#28)
Arduino
bsd-2-clause
carlescufi/micro-ecc,periloso/micro-ecc,cgommel/micro-ecc,carlescufi/micro-ecc,kmackay/micro-ecc,phoenix-frozen/micro-ecc,periloso/micro-ecc,carlescufi/micro-ecc,adfernandes/micro-ecc,cgommel/micro-ecc,cgommel/micro-ecc,adfernandes/micro-ecc,adfernandes/micro-ecc,periloso/micro-ecc,concise/micro-ecc,adfernandes/micro-e...
65f6ea8236e6887fe19f77fc59520ef2614b0a5e
examples/SimpleGet/SimpleGet.ino
examples/SimpleGet/SimpleGet.ino
#include <ArduinoHttpClient.h> #include <ESP8266_AT.h> #include "config.h" const byte rxPin = 2; // Wire this to Tx Pin of ESP8266 const byte txPin = 3; // Wire this to Rx Pin of ESP8266 ESP8266_AT wifi(rxPin, txPin); void setup() { // HardwareSerial settings Serial.begin(9600); // Setup ESP8266_AT w...
#include <ArduinoHttpClient.h> #include <ESP8266_AT.h> #include "config.h" const byte rxPin = 2; // Wire this to Tx Pin of ESP8266 const byte txPin = 3; // Wire this to Rx Pin of ESP8266 ESP8266_AT wifi(rxPin, txPin); void setup() { // HardwareSerial settings Serial.begin(9600); // Setup ESP8266_AT w...
Add SimpleGet.ino loop code
Add SimpleGet.ino loop code
Arduino
mit
qoosky/Arduino_HttpClient_ESP8266_AT
bdeda059cf73430e49574ebd78d58f11262c67f6
examples/DMASpi_example1/DMASpi_example1.ino
examples/DMASpi_example1/DMASpi_example1.ino
#include <ChipSelect.h> #include <DmaSpi.h> // create a chip select object. This one uses pin 14. ActiveLowChipSelect<14> cs; void setup() { DMASPI0.begin(); // create a transfer object DmaSpi0::Transfer trx(nullptr, 100, nullptr, 0xFF, &cs); // and register it. If the DMA SPI is idle, it will immediately st...
#include <WProgram.h> #include <SPI.h> #include <DmaSpi.h> /** Hardware setup: plain Teensy 3.1 with DOUT connected to DIN nothing else **/ /** buffers to send from and to receive to **/ #define DMASIZE 100 uint8_t src[DMASIZE]; volatile uint8_t dest[DMASIZE]; volatile uint8_t dest1[DMASIZE]; /** Wait for and ...
Update DMASpi_example1.ino
Update DMASpi_example1.ino The example sketch now also demonstrates the use of the ActiveLowChipSelect class.
Arduino
mit
crteensy/DmaSpi
83867d338b921a396aff4bd80f2fbbc029c22ee6
Arduino/base_subscriber.ino
Arduino/base_subscriber.ino
#include <ros.h> #include <std_msgs/String.h> #include <Arduino.h> ros::NodeHandle nh; void messageCb( const std_msgs::String& incoming_msg ) { messageTTL = messageTTLInit; String data = incoming_msg.data; int splitPos = data.indexOf('|'); String leftData = data.substring(0, splitPos); String ...
#include <ros.h> #include <std_msgs/String.h> #include <Arduino.h> // ********** // Variables // ********** ros::NodeHandle nh; String messageData[3]; // ********** // ROS Messages // ********** void messageCallback( const std_msgs::String& incoming_msg ) { messageTTL = messageTTLInit; String data = incom...
extend arduino code
extend arduino code
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
53f92f7885597ac88bc8be5a1402a6ef2c18a8e8
Sketches/Bluetooth_Building_Control_System_fuzzy_IR/Bluetooth_Building_Control_System_fuzzy_IR.ino
Sketches/Bluetooth_Building_Control_System_fuzzy_IR/Bluetooth_Building_Control_System_fuzzy_IR.ino
/* 2017 05 10 update sensor reading time tuning temperature and humidity min and max limit checking by Dr. Aung Win Htut */ #include<SoftwareSerial.h> #include <dht.h> #include <LiquidCrystal_I2C.h> //LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //16*4 LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4,...
/* 2017 05 10 update sensor reading time tuning temperature and humidity min and max limit checking by Dr. Aung Win Htut */ #include<SoftwareSerial.h> //for bluetooth #include <dht.h> //for DHT22 #include <LiquidCrystal_I2C.h> //LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); //16*4 LiquidC...
format bluetooth building control system fuzzy ir
format bluetooth building control system fuzzy ir
Arduino
mit
GHarduino/ArduinoOnlineTrainingClass,GHarduino/ArduinoOnlineTrainingClass,GHarduino/ArduinoOnlineTrainingClass,GHarduino/ArduinoOnlineTrainingClass,GHarduino/ArduinoOnlineTrainingClass
e9f44cb6557f0a27a6c43e5fa3c69e294d3fafd7
ti-launchpad/cc3200-launchxl/thingspace-client-energia/cc3200LP_thingspace/cc3200LP_thingspace.ino
ti-launchpad/cc3200-launchxl/thingspace-client-energia/cc3200LP_thingspace/cc3200LP_thingspace.ino
/* Thingspace.io client for TI LaunchPad CC3200-LAUNCHXL /** Instructions: /*** Update WiFi settings and thingspace device ID (e.g. thing-name) in Settings.h /*** Compile and upload to board /*** Sign-up / Log-In to Verizon Thingspace Develop https://thingspace.verizon.com/developer/ /*** Once logged-in, visit the ...
/* Thingspace.io client for TI LaunchPad CC3200-LAUNCHXL /** Instructions: /*** Update WiFi settings and thingspace device ID (e.g. thing-name) in Settings.h /*** Compile and upload to board /*** Sign-up / Log-In to Verizon Thingspace Develop https://thingspace.verizon.com/developer/ /*** Once logged-in, visit the ...
update client to retrieve temp thing-name from server if not provided in Settings.h
update client to retrieve temp thing-name from server if not provided in Settings.h
Arduino
mit
buglabs/client-examples,buglabs/client-examples
2aa91ea4f24e6b2ad0dea15b27928d91de7e53de
Esp32Application/Esp32Application.ino
Esp32Application/Esp32Application.ino
/** * @file * * MIT License * * @copyright (c) 2018 Daniel Schenk <danielschenk@users.noreply.github.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, inc...
/** * @file * * MIT License * * @copyright (c) 2018 Daniel Schenk <danielschenk@users.noreply.github.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, inc...
Add some functionality to the first test patch
Add some functionality to the first test patch
Arduino
mit
danielschenk/mlc2,danielschenk/mlc2,danielschenk/mlc2
055097564a678a8234da21bbbb00f77b101def83
bottleopener/bottleopener.ino
bottleopener/bottleopener.ino
#include <Bridge.h> #include "logger.h" #include "thingspeakSender.h" ThingspeakSender thingspeakSender; #include "shiftrConnector.h" ShiftrConnector shiftrConnector; #define PIN_BUTTON 7 //Global counter for this bottle opener int counter = 0; void setup() { pinMode(PIN_BUTTON, INPUT); Bridge.begin(); //...
#include <Bridge.h> #include "logger.h" #include "thingspeakSender.h" ThingspeakSender thingspeakSender; #include "shiftrConnector.h" ShiftrConnector shiftrConnector; #define PIN_BUTTON 7 #define PIN_LED 13 //Global counter for this bottle opener int counter = 0; void setup() { pinMode(PIN_BUTTON, INPUT...
Add of a blue LED highlighted when every plateforms are connected
Add of a blue LED highlighted when every plateforms are connected
Arduino
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
07305167d5729b11bb8576c95a5eb1aa360ae469
co2_esp/co2_esp.ino
co2_esp/co2_esp.ino
#define PIN_CLOCK 14 //Пин, к которому подключен контакт "С" — тактовый сигнал #define PIN_DATA 12 //Пин, к которому подключен контакт "D" — данные #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include "mt8060_decoder.h" const char* ssid = "MikroTik-951"; //Имя сети const char* password = "FERG2N76"; //П...
#define PIN_CLOCK 14 // Пин, к которому подключен контакт "С" — тактовый сигнал #define PIN_DATA 12 // Пин, к которому подключен контакт "D" — данные #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include "mt8060_decoder.h" const char* ssid = "MikroTik-951"; //Имя сети const char* password = "FAKEPASSWOR...
add comments
add comments
Arduino
mit
vvzvlad/co2sensor_esp8266,vvzvlad/co2sensor_esp8266
c92cccd3a77d69a8d2c0f177f7648c5763493ccd
counter/counter.ino
counter/counter.ino
#include <Bridge.h> #include "logger.h" ///////////////////////////////////////////// // Include of Iot Platform's connectors #include "thingspeakReceiver.h" ThingspeakReceiver thingspeakReceiver; int thingsSpeakCounter = 0; #include "shiftrConnector.h" ShiftrConnector shiftrConnector; int shiftrCounter = 0; ///////...
#include <Bridge.h> #include "logger.h" ///////////////////////////////////////////// // Include of Iot Platform's connectors #include "thingspeakReceiver.h" ThingspeakReceiver thingspeakReceiver; int thingsSpeakCounter = 0; #include "shiftrConnector.h" ShiftrConnector shiftrConnector; int shiftrCounter = 0; ///////...
Fix Attribute to display
Fix Attribute to display
Arduino
mit
Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot
5ecf0c7f64009f96050b87a7df859b55af8c6b67
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 updated httpsFingerprint
Arduino
mit
corlysis/scripts,corlysis/scripts
0a6901543679f9f9a250b429e4521ea20fd8f95b
jarbas.ino
jarbas.ino
#include <ESP8266HTTPClient.h> #include <ESP8266WiFiMulti.h> #define RELAY D1 const int HTTPS_PORT = 443; const char* WIFI = "WIFI"; const char* PASSWORD = "PASSWORD"; const char* HOST = "hooks.slack.com"; const char* URL = "URL"; String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_...
#include <ESP8266HTTPClient.h> #include <ESP8266WiFiMulti.h> #define RELAY D1 const int HTTPS_PORT = 443; const char* WIFI = "WIFI"; const char* PASSWORD = "PASSWORD"; const char* HOST = "hooks.slack.com"; const char* URL = "URL"; String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_...
Add fixed gif to message
Add fixed gif to message Still need to add functionality to randomly choose a gif, from the select ones, to be used in the message body.
Arduino
mit
fablabjoinville/jarbas
f89c0032afd77e7428f8de2855ab416f70c7ce92
examples/ECS_therm/ECS_therm.ino
examples/ECS_therm/ECS_therm.ino
#include "MqttConnection.h" MqttConnection * myMqtt; #include <OneWire.h> #include <DallasTemperature.h> //Constants #define SENSOR_ID "ECS" #define PROBE_TEMPO 60000 #define ONE_WIRE_BUS D4 // DS18B20 pin #define RELAY_PIN D2 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature DS18B20(&oneWire); /*******************...
#include "MqttConnection.h" MqttConnection * myMqtt; #include <OneWire.h> #include <DallasTemperature.h> //Constants const char ECS_STATE_OFF = '1'; const char ECS_STATE_ON = '2'; #define SENSOR_ID "ECS2" #define PROBE_TEMPO 60000 //1 measure per minute #define ONE_WIRE_BUS D4 // DS18B20 pin #define RELAY_PIN D1 ...
Remove FORCE message, as it will be handled on server side. And add relay control
Remove FORCE message, as it will be handled on server side. And add relay control
Arduino
bsd-3-clause
scentelles/iot,scentelles/iot,scentelles/iot
4a5d399228ee06af1dee00e8c7681cf350027f4f
rcxr01_demo1/src/rcxr01_demo1.ino
rcxr01_demo1/src/rcxr01_demo1.ino
// demo for RCXR-01 #include <Arduino.h> #include <Keypad.h> #include <SPI.h> #include <Wire.h> #include <U8x8lib.h> #include "lcd_symbols.h" #include "vcc.h" #include <printf.h> #include "RF24.h" #include "sleep.h" #include "rtc.h" /// radio stuff #define RF_CE 0 //PB0 #define RF_CSN 17 //PC1 RF24 radio(R...
// demo for RCXR-01 #include <Arduino.h> #include <Keypad.h> #include <SPI.h> #include <Wire.h> #include <U8x8lib.h> #include "lcd_symbols.h" #include "vcc.h" #include <printf.h> #include "RF24.h" #include "sleep.h" #include "rtc.h" /// radio stuff #define RF_CE 0 //PB0 #define RF_CSN 17 //PC1 RF24 radio(R...
switch font back
switch font back
Arduino
mit
zerog2k/rcxr01,zerog2k/rcxr01,zerog2k/rcxr01,zerog2k/rcxr01
52c1dcd4996375094d1461b3e69d13dae2cae0c7
examples/DMXEthernet_NeoPixels/DMXEthernet_NeoPixels.ino
examples/DMXEthernet_NeoPixels/DMXEthernet_NeoPixels.ino
#include <SPI.h> // #### Important to use with Ethernet Shield v2, uncomment the next line #### //#define ETHERNET_SHIELD_V2 #if defined ( ETHERNET_SHIELD_V2 ) #include <Ethernet2.h> #include <EthernetUdp2.h> #else #include <Ethernet.h> #include <EthernetUdp.h> #endif #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #...
#include <SPI.h> // #### Important to use with Ethernet Shield v2, uncomment the next line #### //#define ETHERNET_SHIELD_V2 #if defined ( ETHERNET_SHIELD_V2 ) #include <Ethernet2.h> #include <EthernetUdp2.h> #else #include <Ethernet.h> #include <EthernetUdp.h> #endif #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #...
fix neopixel example
fix neopixel example
Arduino
bsd-3-clause
claudeheintz/LXDMXEthernet_library,claudeheintz/LXDMXEthernet_library
b0d27875bc125e3e2d1ad0b25962320755b5d478
dragino/sketch.ino
dragino/sketch.ino
#include <SPI.h> #include <PubSubClient.h> #include <YunClient.h> #include <string.h> int out2 = 2; int out3 = 3; int out4 = 4; int out6 = 6; char message_buff[100]; ////Please here paste info from "devinfo"////////// #define IOTUSERNAME "xxxxxxx" #define IOTPASSWORD "yyyyyyy" #define IOTDEVICE "zzzzzz" #define USER...
#include <SPI.h> #include <PubSubClient.h> #include <YunClient.h> #include <string.h> int out2 = 2; int out3 = 3; int out4 = 4; int out6 = 6; char message_buff[100]; ////Please here paste info from "devinfo"////////// #define IOTUSERNAME "xxxxxxx" #define IOTPASSWORD "yyyyyyy" #define IOTDEVICE "zzzzzz" #define USER...
Update sketch.ino
Update sketch.ino
Arduino
apache-2.0
redlibre/iot_platform
c320950a29bfd13c2b16586cd59a1118f34bbe68
examples/ECS_therm/ECS_therm.ino
examples/ECS_therm/ECS_therm.ino
#include "MqttConnection.h" MqttConnection * myMqtt; #include <OneWire.h> #include <DallasTemperature.h> //Constants const char ECS_STATE_OFF = '1'; const char ECS_STATE_ON = '2'; #define SENSOR_ID "ECS" #define PROBE_TEMPO 60000 //1 measure per minute #define ONE_WIRE_BUS D4 // DS18B20 pin #define RELAY_PIN D1 O...
#include "MqttConnection.h" MqttConnection * myMqtt; #include <OneWire.h> #include <DallasTemperature.h> //Constants const char ECS_STATE_OFF = '1'; const char ECS_STATE_ON = '2'; #define SENSOR_ID "ECS" #define PROBE_TEMPO 60000 //1 measure per minute #define ONE_WIRE_BUS D4 // DS18B20 pin #define RELAY_PIN D1 O...
remove subscription to force topic, as the server is now handling the force state. Relay device is only in charge of On/OFF now
remove subscription to force topic, as the server is now handling the force state. Relay device is only in charge of On/OFF now
Arduino
bsd-3-clause
scentelles/iot,scentelles/iot,scentelles/iot
8bffa6012bec5583b9429e01f92f74a093556967
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/OPM_for_Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/OPM_for_Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
add config for rtos
add config for rtos
Arduino
apache-2.0
ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR
e364fc1e94dd9f093087f9ae6371948b2eb83ecb
Arduino/ODriveArduino/examples/ODriveArduinoTest/ODriveArduinoTest.ino
Arduino/ODriveArduino/examples/ODriveArduinoTest/ODriveArduinoTest.ino
#include <SoftwareSerial.h> #include <ODriveArduino.h> // Printing with stream operator template<class T> inline Print& operator <<(Print &obj, T arg) { obj.print(arg); return obj; } template<> inline Print& operator <<(Print &obj, float arg) { obj.print(arg, 4); return obj; } // Serial to the ODrive S...
#include <SoftwareSerial.h> #include <ODriveArduino.h> // Printing with stream operator template<class T> inline Print& operator <<(Print &obj, T arg) { obj.print(arg); return obj; } template<> inline Print& operator <<(Print &obj, float arg) { obj.print(arg, 4); return obj; } // Serial to the ODrive S...
fix char to int conversion
fix char to int conversion
Arduino
mit
madcowswe/ODrive,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware,madcowswe/ODrive,madcowswe/ODriveFirmware
3b0877e02d530256dd41fd7f06baf3aa4a5d358d
examples/RFID_UART/RFID_UART.ino
examples/RFID_UART/RFID_UART.ino
// RFID_UART.ino #include <SoftwareSerial.h> #include <SeeedRFID.h> #define RFID_RX_PIN 10 #define RFID_TX_PIN 11 // #define DEBUG // #define TEST SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN); RFIDdata tag; void setup() { Serial.begin(57600); Serial.println("Hello, double bk!"); } void loop() { if(RFID.isAvailabl...
// RFID_UART.ino #include <SoftwareSerial.h> #include <SeeedRFID.h> #define RFID_RX_PIN 10 #define RFID_TX_PIN 11 // #define DEBUG // #define TEST SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN); RFIDdata tag; void setup() { Serial.begin(57600); Serial.println("RFID Test.."); } void loop() { if(RFID.isAvailable()){ ...
delete 2bk
delete 2bk
Arduino
mit
Seeed-Studio/RFID_Library
b7c758e1926fc5523e6de501b154542402c01b30
Arduino/ReadBuzzer/ReadBuzzer.ino
Arduino/ReadBuzzer/ReadBuzzer.ino
#include <SPI.h> const int slaveSelectPin = 46; const int buzzerPin = A0; int buzzer = 0; const int beeps = 2; bool on = false; void setup() { pinMode(buzzerPin, INPUT); Serial.begin(9600); Serial.println("EPAHA"); } void loop() { buzzer = analogRead(buzzerPin); if (buzzer > 400) on = true; Serial.pr...
#include <SPI.h> const int slaveSelectPin = 46; const int buzzerPin = A0; int buzzer = 0; int beeps = 0; bool on = false; bool connected = false; void setup() { Serial.begin(9600); pinMode(slaveSelectPin, OUTPUT); pinMode(buzzerPin, INPUT); SPI.begin(); } void loop() { buzzer = analogRead(buzzerPin); ...
Read buzzer test
Read buzzer test
Arduino
mpl-2.0
MaPaFe/Drone
8627136ba619e6632a43bd2b13e1b6ed9423649b
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_RESTART 2 SparkButton strip = SparkButton(); int current[12]; int desired[12]; int drainResponse; void setup() { strip.begin(); strip.allLedsOff(); for(int i=0; i<...
#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() { ...
handle scaling up/down too
handle scaling up/down too
Arduino
mit
heroku/sparoku-status,heroku/sparoku-status
480e263364f9cae075f26d9f73b7cca43a27caa1
Examples/ReadAll.ino
Examples/ReadAll.ino
/* Author: Andrea Stagi <stagi.andrea@gmail.com> Example: ReadAll Description: fetch all devices and relative temperatures on the wire bus on pin 5 and send them via serial port. */ #include <OneWire.h> #include <DSTemperature.h> DSTemperature ds(5); // on pin 5 void setup(void) { Serial.begin(9600); ds...
/* Author: Andrea Stagi <stagi.andrea@gmail.com> Example: ReadAll Description: fetch all devices and relative temperatures on the wire bus on pin 5 and send them via serial port. */ #include <OneWire.h> #include <DSTemperature.h> DSTemperature ds(5); // on pin 5 void setup(void) { Serial.begin(9600); ds...
Use ds_addr instead of ds
Use ds_addr instead of ds
Arduino
mit
astagi/DSTemperature
5454622f752d3c3d5e5184c92a4f09b8b02c2118
projects/arduino/led_matrix_256/led_matrix_256.ino
projects/arduino/led_matrix_256/led_matrix_256.ino
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #include "IRremote.h" //Remote control library #endif #define NUM_OF_PIXELS 256 #define MATRIX_DATA_PIN 4 #define RECEIVER_PIN 12 IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv' decode_results results; // create instance ...
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #include "IRremote.h" //Remote control library #endif #define NUM_OF_PIXELS 256 #define MATRIX_DATA_PIN 4 #define RECEIVER_PIN 12 IRrecv irrecv(RECEIVER_PIN); // create instance of 'irrecv' decode_results results; // create instance ...
Clean up the remote IR read function a bit
Clean up the remote IR read function a bit
Arduino
mit
borq79/cs.edu,borq79/cs.edu
1304c6f0c43ec663e71fc57b612077bf15038e4b
examples/adc_test/adc_test.ino
examples/adc_test/adc_test.ino
/* Test suite for the ADC library */ #include <ADC.h> ADC *adc = new ADC(); // adc object #if defined(ADC_TEENSY_LC) // teensy LC #define PINS 13 #define DIG_PINS 13 #define PINS_DIFF 2 uint8_t adc_pins[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A11, A12}; uint8_t adc_pins_dig[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A1...
/* Test suite for the ADC library */ #include <ADC.h> ADC *adc = new ADC(); // adc object #if defined(ADC_TEENSY_LC) // teensy LC #define PINS 13 #define DIG_PINS 13 #define PINS_DIFF 2 uint8_t adc_pins[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A11, A12}; uint8_t adc_pins_dig[] = {A0,A1,A2,A3,A4,A5,A6,A7,A8, A9,A10,A1...
increase samples and printing
increase samples and printing
Arduino
mit
pedvide/ADC,pedvide/ADC
cc9b7e34ad660a7aa9ffd84f87114371aee0998f
avr/avr.ino
avr/avr.ino
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> static uint8_t buf_a[] = { 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x0A, 0x04, 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x08, 0x04, 0x07, 0x07, 0x0B, 0x05, 0x17, 0x03, 0x0A, 0x05, 0x09, 0x14, 0...
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> static uint8_t buf_a[] = { 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x0A, 0x04, 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x08, 0x04, 0x07, 0x07, 0x0B, 0x05, 0x17, 0x03, 0x0A, 0x05, 0x09, 0x14, 0...
Fix buffer swapping bug which caused tearing
Fix buffer swapping bug which caused tearing
Arduino
agpl-3.0
HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino
6cd73e310305f6d9e8887c4889d233b2391a663f
examples/05-FullSystems/WDRC_8BandFIR_Stereo_Prescrip_wApp/WDRC_8BandFIR_Stereo_Prescrip_wApp.ino
examples/05-FullSystems/WDRC_8BandFIR_Stereo_Prescrip_wApp/WDRC_8BandFIR_Stereo_Prescrip_wApp.ino
/* WDRC_8BandFIR_Stereo_Prescrip_wApp Created: Chip Audette (OpenAudio), Sept 2021 Primarly built upon CHAPRO "Generic Hearing Aid" from Boys Town National Research Hospital (BTNRH): https://github.com/BTNRH/chapro Purpose: Implements Multi-band WDRC compressor. One for each ear. Features: * ...
/* WDRC_8BandFIR_Stereo_Prescrip_wApp Created: Chip Audette (OpenAudio), Sept 2021 Primarly built upon CHAPRO "Generic Hearing Aid" from Boys Town National Research Hospital (BTNRH): https://github.com/BTNRH/chapro Purpose: Implements Multi-band WDRC compressor. One for each ear. Features: * ...
enable highspeed BT
WDRC_8BandFIr_Stereo_Prescrip_wApp: enable highspeed BT
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
f58dc56b81ac8aa448020d991bfa2b9e5145d98c
arduino/libraries/SequantoAutomation/examples/arduino_io/arduino_io.ino
arduino/libraries/SequantoAutomation/examples/arduino_io/arduino_io.ino
#include "SequantoAutomation.h" #include "code/automation_automation.h" /* To try this example use the menu item: * * Tools->Generate Automation * * Before compiling. * * BEGIN AUTOMATION * * name arduino_io * property /sequanto_automation_version sequanto_automation_version * * property /digital/(2..13)...
#include "SequantoAutomation.h" #include "code/automation_automation.h" /* To try this example use the menu item: * * Tools->Generate Automation * * Before compiling. * * BEGIN AUTOMATION * * name arduino_io * property /sequanto_automation_version sequanto_automation_version * * property /digital/(2..54)...
Make arduino_io compatible with Arduino Mega boards
Make arduino_io compatible with Arduino Mega boards Using slower reading, but only using standard arduino functionality.
Arduino
apache-2.0
rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automati...
391a4891b0e57be33bbba398237b86086e1ae992
examples/send/send.ino
examples/send/send.ino
// demo: CAN-BUS Shield, send data // loovee@seeed.cc #include <mcp_can.h> #include <SPI.h> /*SAMD core*/ #ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE #define SERIAL SerialUSB #else #define SERIAL Serial #endif // the cs pin of the version after v1.1 is default to D9 // v0.9b and v1.0 is default D10 const int SPI_...
// demo: CAN-BUS Shield, send data // loovee@seeed.cc #include <SPI.h> #include "mcp2515_can.h" #include "mcp2518fd_can.h" /*SAMD core*/ #ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE #define SERIAL SerialUSB #else #define SERIAL Serial #endif #define CAN_2515 // the cs pin of the version after v1.1 is default to ...
Complete canbus send example
Complete canbus send example
Arduino
mit
Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield
54c149cff238646e07cbb79ae0eec4cdd4e8593b
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 * - 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.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 */ //-----...
fix Serial_readCommand()
fix Serial_readCommand()
Arduino
mit
yasokada/esp8266_160220_BYOP
f01917665863cf53aacf6cdb0893eff1f33c9100
sensV/src/sketch.ino
sensV/src/sketch.ino
/* sensV sketch Measures the voltage on the analog pin and prints the result to the serialport ******* Do not connect more than 5 volts directly to an Arduino pin!! ******* */ // +V from battery is connected to analog pin 0 #define VoltMeasurePIN A0 #define activityLED 3 // *** declare constants const fl...
/* sensV sketch Measures the voltage on the analog pin and prints the result to the serialport ******* Do not connect more than 5 volts directly to an Arduino pin!! ******* +-----+ +----[PWR]-------------------| USB |--+ | +...
add drawing
add drawing
Arduino
mit
Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino
19a4a6bbc946cd62bd3637e5a8d4b144356511ff
brew.ino
brew.ino
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" // Input pin where DS18B20 is connected int ds18b20Pin = D1; // Output pin where relay is connected int relayPin = A6; // SparkCloud variable outputs c...
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" // Input pin where DS18B20 is connected int ds18b20Pin = D1; // Output pin where relay is connected int relayPin = A6; // SparkCloud variable outputs c...
Remove unnec. casts. Add point temperature endpoint.
Remove unnec. casts. Add point temperature endpoint.
Arduino
mit
hekike/spark-core-pid-temperature
850efbcff0889c071f46729dc40a2ee6a8bfac49
brew.ino
brew.ino
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" // Input pin where DS18B20 is connected int ds18b20Pin = D1; // Output pin where relay is connected int relayPin = A6; // SparkCloud variable outputs c...
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" // Input pin where DS18B20 is connected int ds18b20Pin = D1; // Output pin where relay is connected int relayPin = A6; // SparkCloud variable outputs ...
Fix loop() blocks cloud function issue.
Fix loop() blocks cloud function issue.
Arduino
mit
hekike/spark-core-pid-temperature
f1772cab034700456bfe240a596c2dfdbc2aa0e8
ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD/ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino
ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD/ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino
// ArduCAM Mini demo (C)2017 Lee // Web: http://www.ArduCAM.com // This program is a demo of how to use most of the functions // of the library with ArduCAM Mini 5MP Plus camera, and can run on any Arduino platform. // // This demo was made for ArduCAM Mini Camera. // It needs to be used in combination with PC software...
// ArduCAM Mini demo (C)2017 Lee // Web: http://www.ArduCAM.com // This program is a demo of how to use most of the functions // of the library with ArduCAM Mini 5MP Plus camera, and can run on any Arduino platform. // // This demo was made for ArduCAM Mini Camera. // It needs to be used in combination with PC software...
Fix command typo in ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino
Fix command typo in ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino Fix digitalWrite(CS1, HIHG); to digitalWrite(CS1, HIGH);
Arduino
mit
ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino
fcebb0b04eb6201b9cffce1769648a14ae2c5bf9
quadsim/quadsim.ino
quadsim/quadsim.ino
#include <TimerOne.h> int states[] = {0, 1, 1, 0}; volatile int state = 0; volatile int dir = 1; volatile int enable = 1; long rate = 1000; void setup() { pinMode(9, OUTPUT); pinMode(10, OUTPUT); Timer1.initialize(rate); Timer1.attachInterrupt(intFunc); Serial.begin(115200); } void intFunc() { if (ena...
#include <TimerOne.h> int states[] = {0, 1, 1, 0}; volatile int state = 0; volatile int dir = 1; volatile int enable = 1; long rate = 1000; void setup() { pinMode(9, OUTPUT); pinMode(10, OUTPUT); Timer1.initialize(rate); Timer1.attachInterrupt(intFunc); Serial.begin(115200); } void intFunc() { if (ena...
fix enable/disable function
fix enable/disable function
Arduino
mit
SimulatedSimian/arduino,SimulatedSimian/arduino
2cd67fdf47931e11911aeacf26edc370e71396e0
Examples/findBaudTest/findBaudTest.ino
Examples/findBaudTest/findBaudTest.ino
/* * findBaudTest - Test all supported baud settings * * The progress and results are printed to Serial, so open the 'Serial * Montitor'. * * The progress and results will be easier to read if you disable the * debugging (comment out or delete the "#define DEBUG_HC05" line in * HC05.h. */ #include <Arduino.h> ...
/* * findBaudTest - Test all supported baud settings * * The progress and results are printed to Serial, so open the 'Serial * Montitor'. * * The progress and results will be easier to read if you disable the * debugging (comment out or delete the "#define DEBUG_HC05" line in * HC05.h. */ #include <Arduino.h> ...
Add Setup message to avoid panic
Add Setup message to avoid panic Write a message earlier so that it is clear that the sketch has started. On branch parityAndStopBits modified: Examples/findBaudTest/findBaudTest.ino
Arduino
mit
jdunmire/HC05
3099da56fbf27b186b048489e277e993d8c69da5
Examples/ReadAll.ino
Examples/ReadAll.ino
/* Author: Andrea Stagi <stagi.andrea@gmail.com> Example: ReadAll Description: fetch all devices and relative temperatures on the wire bus on pin 5 and send them via serial port. */ #include "DSTemperature.h" DSTemperature ds(5); // on pin 5 void setup(void) { Serial.begin(9600); ds.begin(); } void sen...
/* Author: Andrea Stagi <stagi.andrea@gmail.com> Example: ReadAll Description: fetch all devices and relative temperatures on the wire bus on pin 5 and send them via serial port. */ #include <OneWire.h> #include <DSTemperature.h> DSTemperature ds(5); // on pin 5 void setup(void) { Serial.begin(9600); ds...
Include OneWire
Include OneWire
Arduino
mit
astagi/DSTemperature
eab75d9f65d2f7ddc3aba82ccb11997539157810
build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino
build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino
/* Reading a serial ASCII-encoded string. This sketch demonstrates the Serial parseInt() function. It looks for an ASCII string of comma-separated values. It parses them into ints, and uses those to fade an RGB LED. Circuit: Common-athode RGB LED wired like so: * Red anode: digital pin 3 * Green anode: digit...
/* Reading a serial ASCII-encoded string. This sketch demonstrates the Serial parseInt() function. It looks for an ASCII string of comma-separated values. It parses them into ints, and uses those to fade an RGB LED. Circuit: Common-Cathode RGB LED wired like so: * Red anode: digital pin 3 * Green anode: digit...
Update ReadASCIIString.ino
Update ReadASCIIString.ino Fix typo.
Arduino
lgpl-2.1
PaoloP74/Arduino,tbowmo/Arduino,stickbreaker/Arduino,Chris--A/Arduino,tbowmo/Arduino,bsmr-arduino/Arduino,majenkotech/Arduino,majenkotech/Arduino,majenkotech/Arduino,me-no-dev/Arduino-1,tbowmo/Arduino,stickbreaker/Arduino,majenkotech/Arduino,me-no-dev/Arduino-1,nandojve/Arduino,majenkotech/Arduino,nandojve/Arduino,nand...
5bf75e3865e625eb5fd608183f62f0ba44b80ba8
src/app.ino
src/app.ino
#include <core.h> #include <dht.h> dht DHT; #define DHT22_PIN 6 #define HEATER_PIN 12 #define DHT22_SAMPLE_RATE 3000 #define TEMPORATURE_TARGET (204) #define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently. using namespace core; using namespace core::store...
#include <core.h> #include <dht.h> dht DHT; #define DHT22_PIN 6 #define HEATER_PIN 12 #define DHT22_SAMPLE_RATE 3000 #define TEMPORATURE_TARGET (204) #define HEATER_ACTION_DELAY (15*60) // minimal seconds to open/close heater, prevent switch heater too frequently. using namespace core; using namespace core::store...
Use F() to minimal RAM use
Use F() to minimal RAM use
Arduino
apache-2.0
redforks/thermostat,redforks/thermostat
b80514825335983745b32d10cb4165628735e172
stairs/main.ino
stairs/main.ino
// Use the FastLED library. #include <FastLED.h> // Serial DEBUG mode on/off #undef DEBUG_POTS // Analog input pins. // // .-------. // | O O | // | O O O | // '-------' // // The device has five potentiometer inputs. The top left is a switch with 10 // different values, while the other four have a variable input b...
// Use the FastLED library. #include <FastLED.h> // Serial DEBUG mode on/off #undef DEBUG_POTS // Analog input pins. // // .-------. // | O O | // | O O O | // '-------' // // The device has five potentiometer inputs. The top left is a switch with 10 // different values, while the other four have a variable input b...
add breathing cubic mode
stairs: add breathing cubic mode
Arduino
mit
ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight
82f272e4df08be3321b4d4205163c08712dab460
timer/timer.ino
timer/timer.ino
#include "Constants.h" #include "Display.h" #include "Buttons.h" Display display; Buttons buttons; unsigned long start_time = 0; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); start_time = millis(); } void loop() { unsigned long current_time = millis() - start_time; display.displayTime( current...
#include "Constants.h" #include "Display.h" #include "Buttons.h" Display display; Buttons buttons; unsigned long countdown_ends; unsigned long countdown_duration; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); countdown_ends = 0; countdown_duration = 900000; // 15 mins in ms countdown_ends = mill...
Change code to count down instead of up
Change code to count down instead of up
Arduino
agpl-3.0
OmniRose/watch-timer,OmniRose/watch-timer
fdec651b449497c605ed4a0518b5b0486a48b4b7
portable/sketchbook/I2cController/I2cController.ino
portable/sketchbook/I2cController/I2cController.ino
/* From https://github.com/lincomatic/I2cControllerLib and http://blog.think3dprint3d.com/2012/12/mcp23017-i2c.html */ // include the library code: #include <Wire.h> #include <I2cController.h> #define EN_A 0 // Encored scroll A0 #define EN_B 1 // Encoder scroll A1 #define EN_C 2 // Encoder click A2 #define B...
/* From https://github.com/lincomatic/I2cControllerLib and http://blog.think3dprint3d.com/2012/12/mcp23017-i2c.html */ // include the library code: #include <Wire.h> #include <I2cController.h> #define EN_A 0 // Encored scroll A0 #define EN_B 1 // Encoder scroll A1 #define EN_C 2 // Encoder click A2 #define B...
Update I2cController.ino
Update I2cController.ino
Arduino
apache-2.0
raspibo/I2cController
435e0b727afd728b77f6395180c77e07fc600ec4
examples/Boards_BLE/Adafruit_Feather_32u4_BLE/Adafruit_Feather_32u4_BLE.ino
examples/Boards_BLE/Adafruit_Feather_32u4_BLE/Adafruit_Feather_32u4_BLE.ino
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
Update Adafruit Feather BLE example [ci skip]
Update Adafruit Feather BLE example [ci skip]
Arduino
mit
ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library
2df2d8d821d49ef7654ac107088e5378152fae82
playground/Popcorn/Popcorn.ino
playground/Popcorn/Popcorn.ino
/* Popcorn How to make a piezo buzzer even more annoying? Make it play popcorn! For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/Popcorn */ #include "pitches.h" #define SIGNAL_PIN 6 // pin that the piezo is connected to #define BPM 145 // bea...
/* Popcorn How to make a piezo buzzer even more annoying? Make it play popcorn! For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/Popcorn */ #include "pitches.h" #define SIGNAL_PIN 6 // pin that the piezo is connected to // melody definition // BPM ...
update melody playing algorithm
[Popcorn] update melody playing algorithm
Arduino
mit
tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects
7d45c259b08dab4ea11455dd058b6d2f91216680
DanceLights/DanceLights.ino
DanceLights/DanceLights.ino
#include <NeoPatterns.h> #include <Wire.h> #include <Accel.h> #define ACCEL_INTERVAL_MS 200 // Define some NeoPatterns for the two rings and the stick // as well as some completion routines void StickComplete(); void SingleComplete(); Accel accel(ACCEL_INTERVAL_MS); NeoPatterns Stick(20, 6, NEO_GRB + NEO_KHZ800, &...
#include <NeoPatterns.h> #include <Wire.h> #include <Accel.h> #define ACCEL_INTERVAL_MS 200 // Define some NeoPatterns for the two rings and the stick // as well as some completion routines void StickComplete(); void SingleComplete(); Accel accel(ACCEL_INTERVAL_MS); NeoPatterns Stick(20, 6, NEO_GRB + NEO_KHZ800, &...
test push for carrino
test push for carrino
Arduino
mit
crazypills/Dancetimes
30d04fe24c0eae5acf0fd0ea616d395a3dfba503
examples/WriteTag/WriteTag.ino
examples/WriteTag/WriteTag.ino
#include <Wire.h> #include <Adafruit_NFCShield_I2C.h> #include <NfcAdapter.h> NfcAdapter nfc = NfcAdapter(); void setup() { Serial.begin(115200); Serial.println("NDEF Writer"); nfc.begin(); } void loop() { Serial.println("\nPlace a formatted Mifare Classic NFC tag on the reader."); if (nfc.tagPresent()) { ...
#include <Wire.h> #include <Adafruit_NFCShield_I2C.h> #include <NfcAdapter.h> NfcAdapter nfc = NfcAdapter(); void setup() { Serial.begin(115200); Serial.println("NDEF Writer"); nfc.begin(); } void loop() { Serial.println("\nPlace a formatted Mifare Classic NFC tag on the reader."); if (nfc....
write uri record since it is easier to read on any phone. indented file so diff looks bigger
write uri record since it is easier to read on any phone. indented file so diff looks bigger
Arduino
bsd-3-clause
jlkalberer/NDEF,jlkalberer/NDEF,abcd-ca/NDEF,abcd-ca/NDEF
de471c5aed453148c88acd3466270ffb790e32ea
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, sentenceBufRdy; boolean txFlag, help; char sentence[GPSLEN]; char sentenceBuf[GPSLEN]; String gpsTime, gpsDate, gpsLat, gpsLon, gpsAlt, gspVgnd, gpsHdng; int sentenceIndex = 0; Strin...
/* * Serial: Serial Monitor through USB * Serial1: GPS and LOGGER * Serial2: RF IN/OUT */ #include <TimeLib.h> const boolean DEBUG = false; const int GPSLEN = 100; //max length of GPS output to be sent char pkt_buffer[200]; boolean sentencePending, sentenceRdy, sentenceBufRdy; boolean txFlag, help; char sentence[...
Add optional debug output to terminal
Add optional debug output to terminal
Arduino
mit
AdlerFarHorizons/Transceiver,AdlerFarHorizons/Transceiver
d2fd33a7e09a15b4d68dd7ff8338c522fbb06cb5
Arduino/sensors/sensors.ino
Arduino/sensors/sensors.ino
/* ODU Monarch Two Sensor Package Code This code handles sensor data collection from a package of sensors onboard the Monarch Two suborbital rocket payload, and transfers them to a smartphone for data transmission to a groundstation. All code is provided under the BSD license. See license.txt. Au...
/* ODU Monarch Two Sensor Package Code This code handles sensor data collection from a package of sensors onboard the Monarch Two suborbital rocket payload, and transfers them to a smartphone for data transmission to a groundstation. All code is provided under the BSD license. See license.txt. Au...
Improve and prep
Improve and prep
Arduino
bsd-3-clause
kontakt/MonarchTwo,kontakt/MonarchTwo
4adc76da34ad277b4f9e1f37f05aa3e047f91c94
app/inTheDuck/LoverDuck/LoverDuck.ino
app/inTheDuck/LoverDuck/LoverDuck.ino
#include <Adafruit_NeoPixel.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303.h> #include <Wire.h> #include <SoftwareSerial.h> SoftwareSerial BT(10,11); //RX/TX #define tonePin 2 #define buttonPin 3 #define ledPinA 7 //6 leds here #define ledNumA 6 #define ledPinB 6 //4 leds here #define ledNumB 4 Adafruit_N...
#include <Adafruit_NeoPixel.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303.h> #include <Wire.h> #include <SoftwareSerial.h> SoftwareSerial BT(10,11); //RX/TX #define tonePin 2 #define buttonPin 3 #define ledPinA 7 //6 leds here #define ledNumA 6 #define ledPinB 6 //4 leds here #define ledNumB 4 Adafruit_N...
save before editing
save before editing
Arduino
mit
Yasu31/TK_1720,Yasu31/TK_1720,Yasu31/TK_1720,Yasu31/TK_1720
9a4a3c928c4e229527500321fb4ba712923abd02
arduino/TestProgram1/TestProgram1.ino
arduino/TestProgram1/TestProgram1.ino
#include <Servo.h> Servo right; Servo left; void Move_Forward() { //moves forward right.write(180); left.write(0); } void Move_Backward() { //moves backward right.write(0); left.write(180); } void Move_Right() { //moves right right.write(180); left.write(90); } void Move_Left() { //moves lef...
#include <Servo.h> Servo right; Servo left; void Move_Forward(int speed) { //0 //from 0-90 //moves forward right.write(180-speed); left.write(speed); } void Move_Backward(int speed) { //180 //moves backward right.write(180-speed); left.write(speed); } void Move_Right(int speed) { //0 //move...
Update TestProgram1.ino
Update TestProgram1.ino give parameters to methods
Arduino
mit
ebkalderon/gesturebot,ebkalderon/gesturebot
95a95ede68285ba6790c6f351695f0c432b513db
battery-monitor.ino
battery-monitor.ino
#define VCC 3273 #define BATTERY_PIN A0 #define R1 21440 // Resistor R1 Ohms #define R2 3242 // Resistor R2 Ohms #define CONNECT_WAIT_MILLIS 5000 #define SLEEP_SECS 15 //#define SLEEP_SECS 3600 SYSTEM_MODE(MANUAL); const float DIV_RATIO = (R2 + R1) / (float) R2; const char VOLTAGE_EVENT[11] = "carVoltage"; volatile ...
#define VCC 3273 #define BATTERY_PIN A0 #define R1 21440 // Resistor R1 Ohms #define R2 3242 // Resistor R2 Ohms #define CONNECT_WAIT_MILLIS 5000 //#define SLEEP_SECS 15 #define SLEEP_SECS 300 //#define SLEEP_SECS 3600 // Set manual mode so that if no network is available at startup, photon can go back to sleep SYSTEM...
Improve program structure
Improve program structure
Arduino
mit
chrisb2/battery-monitor
d7aa6f1ca976035f157118070d60be93c358fbde
LEDStripShow.ino
LEDStripShow.ino
//#define DEBUG 1 #include <Arduino.h> #include <EEPROM.h> #include <FastSPI_LED2.h> #include <rotary.h> #include <TTimer.h> #include <TCounter.h> #include <TSwitch.h> #include <TLedStrip.h> #include "ledeffects.h" #include "LEDStripShow.h" // --------------------------------------------------------------------------...
//#define DEBUG 1 #include <Arduino.h> #include <EEPROM.h> #include <FastSPI_LED2.h> #include <rotary.h> #include <TTimer.h> #include <TCounter.h> #include <TSwitch.h> #include <TLedStrip.h> #include "ledeffects.h" #include "LEDStripShow.h" // --------------------------------------------------------------------------...
Adjust to updated TSwitch library
Adjust to updated TSwitch library
Arduino
apache-2.0
xconnected/LEDStripShow
484e67ad163cff96793be54420450af682ed2c14
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License * This code has NO WARRANTY! You are * responsible for anything that happens */ // Port I/O defines #define THRESHOLD 700 #define LASTPORT 7 #define INSTRUMENTBUTTON 8 #define NOTEBUTTON 9 // MIDI property defines #defi...
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License * This code has NO WARRANTY! You are * responsible for anything that happens */ // Port I/O defines #define THRESHOLD 700 #define LASTPORT 7 #define INSTRUMENTBUTTON 8 #define NOTEBUTTON 9 // MIDI property defines #defi...
Fix spelling error
Fix spelling error
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
5ee4658e5642504fba7c94a88879f051820236b7
examples/keybrd_DH_shift_registers_demo/sr0_LED_shiftRegs/sr0_LED_shiftRegs.ino
examples/keybrd_DH_shift_registers_demo/sr0_LED_shiftRegs/sr0_LED_shiftRegs.ino
/* sr0_LED_shiftRegs.ino This sketch: is a simple 2-layer keyboard with keys on one row of PISO shift registers indicator 1 LED on controller and 2 LEDs on POSI shift register | Left | **0** | **1** | **2** | |-------|-------|-------|-------| | **0** |CapsLck| fn | a 1 | */ // ################## GLOBAL ...
/* sr0_LED_shiftRegs.ino This sketch: is a simple 2-layer keyboard with keys on one row of PISO shift registers indicator 1 LED on controller and 2 LEDs on POSI shift register | Left | **0** | **1** | **2** | |-------|-------|-------|-------| | **0** | fn |CapsLck| a 1 | */ // ################## GLOBAL ...
add tri-state and right 74HC165 to sr0_LED_shiftRegs.ino
add tri-state and right 74HC165 to sr0_LED_shiftRegs.ino
Arduino
mit
wolfv6/keybrd_DH,wolfv6/keybrd_DH
f1347f7c5021746b25ff2d1f7761c5cbc354ed96
examples/Time/CosaNTP/CosaNTP.ino
examples/Time/CosaNTP/CosaNTP.ino
/** * @file CosaNTP.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lice...
/** * @file CosaNTP.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lice...
Use the NTP epoch instead of the default Y2K
Use the NTP epoch instead of the default Y2K
Arduino
lgpl-2.1
kc9jud/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,kc9jud/Cosa,rrobinet/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,rrobinet/Cosa,dansut/Cosa,rrobinet/Cosa,kc9jud/Cosa,dansut/Cosa,kc9jud/Cosa,dansut/Cosa
9ac342f5a13eeb606251e356619e8c1f385b93e5
examples/mqtt_publish_large/mqtt_publish_large.ino
examples/mqtt_publish_large/mqtt_publish_large.ino
/* Large publish message MQTT example - connects to an MQTT server - publishes a large string of text to the topic "outTopic" */ #include <ESP8266WiFi.h> #include <PubSubClient.h> const char *ssid = "xxxxxxxx"; // cannot be longer than 32 characters! const char *pass = "yyyyyyyy"; // // Update these with val...
/* Large publish message MQTT example - connects to an MQTT server - publishes a large string of text to the topic "outTopic" */ #include <ESP8266WiFi.h> #include <PubSubClient.h> const char *ssid = "xxxxxxxx"; // cannot be longer than 32 characters! const char *pass = "yyyyyyyy"; // // Update these with val...
Return true or false from the payload callback in the publish_large example
Return true or false from the payload callback in the publish_large example
Arduino
mit
Protoneer/pubsubclient,liquiddandruff/pubsubclient,hemantsangwan/Arduino-PubSubClient,Imroy/pubsubclient,koltegirish/pubsubclient,Imroy/pubsubclient,doebi/pubsubclient,koltegirish/pubsubclient,liquiddandruff/pubsubclient,Protoneer/pubsubclient,vshymanskyy/pubsubclient,vshymanskyy/pubsubclient,doebi/pubsubclient,Protone...
522107f72ee0e189a4506c3d8aa8ad56971e4b32
firmware/examples/readTag/readtag.ino
firmware/examples/readTag/readtag.ino
#include "pn532_i2c_particle/pn532_i2c.h" #include "pn532_i2c_particle/PN532.h" #include "pn532_i2c_particle/NfcAdapter.h" PN532_I2C pn532_i2c(Wire); NfcAdapter nfc = NfcAdapter(pn532_i2c); void setup(void) { Serial.begin(9600); Serial.println("NDEF Reader"); nfc.begin(); } void loop(void) { Serial.p...
#include "pn532_i2c_particle/pn532_i2c_particle.h" #include "pn532_i2c_particle/PN532.h" #include "pn532_i2c_particle/NfcAdapter.h" PN532_I2C pn532_i2c(Wire); NfcAdapter nfc = NfcAdapter(pn532_i2c); void setup(void) { Serial.begin(9600); Serial.println("NDEF Reader"); nfc.begin(); } void loop(void) { ...
rename included files as per spark.json
rename included files as per spark.json
Arduino
mit
reducedhackers/pn532_i2c_particle,reducedhackers/pn532_i2c_particle,reducedhackers/pn532nfcshield,reducedhackers/pn532nfcshield
85bd15455d7dfd824d24bab4273f8363fdd3349d
Modbus-Energy-Monitor-Arduino/Modbus-Energy-Monitor-Arduino.ino
Modbus-Energy-Monitor-Arduino/Modbus-Energy-Monitor-Arduino.ino
/********************************************************************** * ModbusEnergyMonitor example * An example to collect data from a Modbus energy monitor using ModbusSensor class * to datalogger, include a RTC DS3231 and a SD card * version 0.1 ALPHA 14/12/2015 * * Author: Jaime García @peninquen * License: Apa...
/********************************************************************** * ModbusEnergyMonitor example * An example to collect data from a Modbus energy monitor using ModbusSensor class * to datalogger, include a RTC DS3231 and a SD card * version 0.1 ALPHA 14/12/2015 * * Author: Jaime García @peninquen * License: Apa...
Update Modbus-Energy-Monitor-Arduino.ino
Update Modbus-Energy-Monitor-Arduino.ino
Arduino
apache-2.0
peninquen/Modbus-Energy-Monitor-Arduino,cosmopaco/Modbus-Energy-Monitor-Arduino,cosmopaco/Modbus-Energy-Monitor-Arduino,peninquen/Modbus-Energy-Monitor-Arduino
5657a16e1542a39973e8c2947d15645f91db0e00
examples/MifareClassicValueBlock/MifareClassicValueBlock.ino
examples/MifareClassicValueBlock/MifareClassicValueBlock.ino
/** * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. Please read it. * * Released into the public ...
/** * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. Please read it. * * Released into the public ...
Update MifareClassicValueBlock.ino
Update MifareClassicValueBlock.ino Updated code to account for serial behavior change in ATMEGA32U4
Arduino
unlicense
hramrach/rfid,juantejedavz/rfid,CapeSepias/rfid,webdevbrian/rfid,irhastofa/rfid,LaloHao/rfid,sophiekovalevsky/rfid,Rotzbua/rfid,1upon0/rfid,lpr0lpd/rfid,mirko314/rfid,yaalsn/rfid,r44947/rfid,miguelbalboa/rfid,smallkid/rfid,northDacoder/rfid,mangine/mraa_MFRC522,tamchau2809/rfid,Rotzbua/rfid,prikevs/rfid
db5e6a1c77d921ea173e3e7f5fae7303d61e809d
examples/Benchmarks/CosaBenchmarkNucleo/CosaBenchmarkNucleo.ino
examples/Benchmarks/CosaBenchmarkNucleo/CosaBenchmarkNucleo.ino
/** * @file CosaBenchmarkNucleo.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1...
/** * @file CosaBenchmarkNucleo.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1...
Update Nucleo benchmark; improved with 2-8%.
Update Nucleo benchmark; improved with 2-8%.
Arduino
lgpl-2.1
rrobinet/Cosa,jeditekunum/Cosa,kc9jud/Cosa,rrobinet/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,kc9jud/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,dansut/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,dansut/Cosa,jeditekunum/Cosa
cb5e5c2e06612ec1b39ec65bd3c349981d665f4b
firmware/ncd-gateway.ino
firmware/ncd-gateway.ino
// This #include statement was automatically added by the Particle IDE. #include "i2c_comm.h" // This #include statement was automatically added by the Particle IDE. #include "master_gateway.h" String ncd_firmware = "gateway:v1.0"; void setup() { Wire.begin(); Serial.begin(115200); Particle.function("dev...
#include "i2c_comm.h" #include "ncd_gateway.h" String ncd_firmware = "gateway:v1.0"; void setup() { Wire.begin(); Serial.begin(115200); Particle.function("deviceComm", gatewayCommand); Particle.variable("ncd_firmware", ncd_firmware); }
Update ncd-gateway.ino
Update ncd-gateway.ino
Arduino
mit
ControlEverythingCom/ncd_gateway,ControlEverythingCom/ncd_gateway
4583716e6a9cb90ae204f0a1fa63823f5af41b7f
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" #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) MCP_CAN CAN(9); void setup(){ Serial.begin(115200); START_INIT: if(CAN_OK != CAN.begin(CAN_500KBPS)){ Serial.println("Failed to initialize C...
#include <SPI.h> #include "mcp_can.h" #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) MCP_CAN CAN(9); void setup(){ Serial.begin(115200); START_INIT: if(CAN_OK != CAN.begin(CAN_500KBPS)){ Serial.println("Failed to initialize C...
Fix the high beam indicator
Fix the high beam indicator
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
3dfc8d1c21f6da647215d366823f5d1a33f7c5f8
cv/cv.ino
cv/cv.ino
#include <Wire.h> #include <Adafruit_MCP4725.h> Adafruit_MCP4725 dac; // Rotary knob state volatile int old_state = 0; volatile int state = 0; // Value to send to DAC volatile int value = 0; volatile int new_value = 500; // Used to limit the frequency of timer updates to 30 times per sec int old_time = 0; // Inte...
#include <Wire.h> #include <Adafruit_MCP4725.h> Adafruit_MCP4725 dac; // Rotary knob state volatile int old_state = 0; volatile int state = 0; // Value to send to DAC volatile int value = 0; volatile int new_value = 4095; // Used to limit the frequency of timer updates to 30 times per sec int old_time = 0; // Int...
Set the initial value to max
Set the initial value to max
Arduino
mit
fzzzy/arduino-cv-voltage-adjust-5v
cd4186f9099ebef83f51a79fa39d6ab0cfa3e3c0
src/lcd.ino
src/lcd.ino
/* Beer thermostat for brewing. */ #include <PID_v1.h> #include <OneWire.h> #include <LiquidCrystal.h> #include <DallasTemperature.h> // sensor pin #define ONE_WIRE_BUS 6 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); // LCD init LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int backLight = 13; // P...
/* Beer thermostat for brewing. */ #include <PID_v1.h> #include <OneWire.h> #include <LiquidCrystal.h> #include <DallasTemperature.h> // sensor pin #define ONE_WIRE_BUS 6 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); // LCD init LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int backLight = 13; // P...
Fix time window
Fix time window
Arduino
mit
robertodealmeida/beer-thermostat
3bd2bf0f92f2faf6c8b4fb3d7d10111c9c52e3fb
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
#include <AccelStepper.h> #include <Servo.h> #include<stdlib.h> // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1 #define motorLPin3 4 // IN3 on the ULN2003 driver 1 #define motorLPin4 5 // IN4 on the ULN...
#include <AccelStepper.h> #include <Servo.h> #include<stdlib.h> // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1 #define motorLPin3 4 // IN3 on the ULN2003 driver 1 #define motorLPin4 5 // IN4 on the ULN...
Return command queue status to esp.
Return command queue status to esp.
Arduino
mit
snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot
c0246e49e200a210d5cb2521512e5542eef13891
tank/src/sketch.ino
tank/src/sketch.ino
/* Arduinoで戦車を動かすためのプログラム author:4869 */ #include<Servo.h> //定数宣言 #define MAX 250 #define NOM 100 //上の回線部分 const int Turn_A = 2; const int Turn_B = 3; //右モーター const int Right_A = 4; const int Right_B = 5; const int Right_PWM = 6; //速度調整用のアナログピン //左モーター const int Left_PWM = 11; const int Left_A = 12; const int L...
/* Arduinoで戦車を動かすためのプログラム author:4869 */ #include<Servo.h> //定数宣言 #define MAX 250 #define NOM 100 //上の回線部分 const int Turn_A = 2; const int Turn_B = 3; //右モーター const int Right_A = 4; const int Right_B = 5; const int Right_PWM = 6; //速度調整用のアナログピン //左モーター const int Left_PWM = 11; const int Left_A = 12; const int L...
update tank.ino
update tank.ino
Arduino
mit
sh4869/TankGame
80bdc19f25c005d78338bd6c6293a7d939fbcae8
arduino/SmokeTest/SmokeTest.ino
arduino/SmokeTest/SmokeTest.ino
#define LED_S_GREEN 13 // D7 #define LED_S_RED 12 // D6 #define LED_RGB_RED 15 // D8 #define LED_RGB_GREEN 14 // D5 #define LED_RGB_BLUE 10 // SD3 #define SW1 2 #define SW2 0 void setup() { Serial.begin(115200); pinMode(LED_S_GREEN, OUTPUT); pinMode(LED_S_RED, OUTPUT); // RGB led pinMode(LED_RGB_RED, ...
#define LED_S_GREEN 13 // D7 #define LED_S_RED 12 // D6 #define LED_RGB_RED 15 // D8 #define LED_RGB_GREEN 14 // D5 #define LED_RGB_BLUE 10 // SD3 #define SW1 2 #define SW2 16 void setup() { Serial.begin(115200); pinMode(LED_S_GREEN, OUTPUT); pinMode(LED_S_RED, OUTPUT); // RGB led pinMode(LED_RGB_RED,...
Switch on GPIO16
Switch on GPIO16
Arduino
mit
theapi/denbit,theapi/denbit
cfb8cfc9984d70145ee5b33548d32f2cf4960fb9
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 mac...
// 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...
revert my local ipaddr change
revert my local ipaddr change
Arduino
mit
WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki
5e2ccd15a7102ffd5ae1199be69559fd84d16c86
examples/PCA9557_J2/PCA9557_J2.ino
examples/PCA9557_J2/PCA9557_J2.ino
/** ---------- PCA9557_J2 ------------------------ * * Controller must be Teensy 3.1 or 3.2 * Copyright 2016 Systronix Inc www.systronix.com * * This code uses the PCA9557 library directly * * The custom SALT2 board is used. It has four PCA9557 at the * addresses #define below. * * Other users...
/** ---------- PCA9557_J2 ------------------------ * * Controller must be Teensy 3.1 or 3.2 * Copyright 2016 Systronix Inc www.systronix.com * * This code uses the PCA9557 library directly * * The custom SALT2 board is used. It has four PCA9557 at the * addresses #define below. * * Other users...
move inappropriate defines to SALT_JX, use new J_data struct, remove extraneous
move inappropriate defines to SALT_JX, use new J_data struct, remove extraneous
Arduino
mit
systronix/Systronix_PCA9557
6350db4174cc688c4131374cd179f961f0d30217
home_02_garage/home_02_garage.ino
home_02_garage/home_02_garage.ino
// JeeNode Network // Node ID: 2 // Location: Garage // Sensors: Temperature (Port 1), Garage door status (Port 4) // // TODO: apparently 3 AA batteries only last about 9 months // TODO: add battery status to output // // This reads a magnetic door sensor. At least with this style // the sensor is normally open and the...
// JeeNode Network // Node ID: 2 // Location: Garage // Sensors: Temperature (Port 1), Garage door status (Port 4) // // TODO: apparently 3 AA batteries only last about 9 months // TODO: add battery status to output // // This reads a magnetic door sensor. At least with this style // the sensor is normally open and the...
Add battery health check
Add battery health check
Arduino
unlicense
vrillusions/jeenode-sketches,vrillusions/jeenode-sketches
f02cdf9b3614c3a1bbabfe9143bf7bf308c61631
Ph_meter/Ph_meter.ino
Ph_meter/Ph_meter.ino
#include <Wire.h> #include "Adafruit_TCS34725.h" #include <ArduinoJson.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #define API_key "Bearer <API key>" Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X); int buttonState; int lastButtonState = HIGH; unsigned long...
#include <Wire.h> #include "Adafruit_TCS34725.h" #include <ArduinoJson.h> #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #define API_key "Bearer <API key>" Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X); int buttonState; int lastButtonState = HIGH; ...
Update Ph_meter.ino
Update Ph_meter.ino
Arduino
mit
BramRausch/pH-meter-AML
d4092ba6dcc0661fad03022e7f38d22f06b42040
examples/rfid_write_personal_data/rfid_write_personal_data.ino
examples/rfid_write_personal_data/rfid_write_personal_data.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. ----------------------------------------------------------------------------- * Pin layout should be as follows: * Signal Pin ...
/* * 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...
Update example rfid_write_personal_data.ino
Update example rfid_write_personal_data.ino Update pin layout hint like other examples
Arduino
unlicense
lpr0lpd/rfid,hramrach/rfid,LaloHao/rfid,Rotzbua/rfid,Rotzbua/rfid,smallkid/rfid,r44947/rfid,juantejedavz/rfid,mangine/mraa_MFRC522,prikevs/rfid,webdevbrian/rfid,yaalsn/rfid,irhastofa/rfid,northDacoder/rfid,mirko314/rfid,CapeSepias/rfid,tamchau2809/rfid,miguelbalboa/rfid,sophiekovalevsky/rfid
6422e076cd5e0e8c7bedfe52562c58be0c2c9d09
dreifachblinker.ino
dreifachblinker.ino
void setup() { pinMode(8, OUTPUT); pinMode(10, OUTPUT); pinMode(12, OUTPUT); } void loop() { }
void setup() { pinMode(8, OUTPUT); pinMode(10, OUTPUT); pinMode(12, OUTPUT); } void loop() { /*do something*/ }
Add example styling
Add example styling
Arduino
mit
lindakellner/attempt,lindakellner/attempt
197279520bbbbce3bf0b23e201c6a13714c32ebb
rr/leonardo_eth_rs485_mqtt.ino
rr/leonardo_eth_rs485_mqtt.ino
#include <SimpleModbusMaster.h> #include <SPI.h> #include <Ethernet.h> #include <PubSubClient.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library /*-----( Declare Constants )-----*/ #define I2C_AD...
#include <SimpleModbusMaster.h> #include <SPI.h> #include <Ethernet.h> #include <PubSubClient.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library /*-----( Declare Constants )-----*/ #define I2C_AD...
Update leonardo_eth_rs485_mqtt.ino
Update leonardo_eth_rs485_mqtt.ino
Arduino
mit
pumanzor/modbus,pumanzor/modbus,pumanzor/modbus
22e0003811241a59169e9163884fcb07c745bcbb
temp-to-twitter/temp-to-twitter/temp-to-twitter.ino
temp-to-twitter/temp-to-twitter/temp-to-twitter.ino
#include <SPI.h> #include <Ethernet.h> #include <DHT.h> #include <Twitter.h> // Digital pin that the DHT11 is connected to #define DHT11PIN 2 // Init the DHT11 Library DHT dht(DHT11PIN, DHT11); // Set to false to read in Celsius, true to read in Fahrenheit #define READ_IN_FAHRENHEIT true // Delay time for twitter l...
#include <SPI.h> #include <Ethernet.h> #include <DHT.h> #include <Twitter.h> // Digital pin that the DHT11 is connected to #define DHT11PIN 2 // Init the DHT11 Library DHT dht(DHT11PIN, DHT11); // Set to false to read in Celsius, true to read in Fahrenheit #define READ_IN_FAHRENHEIT true // Delay time for twitter l...
return the actual reading and update the twitter message text
return the actual reading and update the twitter message text
Arduino
mit
borq79/Cary-Area-Public-Library-Classes
751407bdd4d59466dacd0ffda2d5e216303f24e3
_03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino
_03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino
#include <PubSubClient.h> #include <ESP8266WiFi.h> #if defined(ESP8266) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif #include <Wire.h> / // wifi #ifdef __IS_MY_HOME #include "/usr/local/src/ap_setting.h" #else #include "ap_setting.h" #endif #define nemoisOnPin 14 #define ledPin 13 char* topicEv...
#include <PubSubClient.h> #include <ESP8266WiFi.h> #if defined(ESP8266) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif #include <Wire.h> / // wifi #ifdef __IS_MY_HOME #include "/usr/local/src/ap_setting.h" #else #include "ap_setting.h" #endif #define nemoisOnPin 14 char* topicEvery = "esp8266/a...
Revert "led"
Revert "led" This reverts commit 926de01fdf3ca279acf4300628ee06640ceeff6e.
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
90c9211d86892b5539ff37731c2bc6e1db2b9e96
workingArduino/workingArduino.ino
workingArduino/workingArduino.ino
#include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include <ESP8266HTTPClient.h> const char* ssid = "cit"; const char* password = "H@rlan817"; void setup() { Serial.begin(115200); Serial.setDebugOutput(true); Serial.println(); Serial.print("connecting to "); Serial.println(ssid); WiFi.mode(WIFI_STA);...
#include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include <ESP8266HTTPClient.h> #define UP 0 //up pin #define DOWN 1 //down pin #define LEFT 2 //left pin #define RIGHT 3 //right pin const char* ssid = "cit"; const char* password = "H@rlan817"; int boundLow=0; int boundHigh=0; int index2=0; int last=1; int msec=0;...
add delimiter
add delimiter
Arduino
mit
turtle89431/arduinoday,turtle89431/arduinoday,turtle89431/arduinoday
f5f6fa301f4df81d2d83026ddaa86235e14a3b82
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" /* Compile time Flags */ #define DEBUG 0 /* Helper Macros */ #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) /* Debug Macros */ #if DEBUG #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINT_LN(x)...
#include <SPI.h> #include "mcp_can.h" #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" /* Compile time Flags */ #define DEBUG 0 /* Helper Macros */ #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) /* Debug Macros */ #if DEBUG #define DEBUG_PRINT(x) Serial.print(x) #define DEBUG_PRINT_LN(x)...
Fix whitespace issues
Fix whitespace issues
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
ccddc297107a95bb841c153ae6c935e81f8950ff
examples/bluetooth_transiever/bluetooth_transiever.ino
examples/bluetooth_transiever/bluetooth_transiever.ino
/* LucidTronix Wearable Wayfinder * Blue Tooth Transeiver * written by samwell freeman for LucidTronix * For instructions, details and schematic, See: * http://www.lucidtronix.com/tutorials/64 */ #include <WearableWayfinder.h> #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Har...
/* LucidTronix Wearable Wayfinder * Blue Tooth Transeiver * written by samwell freeman for LucidTronix * For instructions, details and schematic, See: * http://www.lucidtronix.com/tutorials/64 */ #include <WearableWayfinder.h> #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Har...
update bluetooth example
update bluetooth example
Arduino
mit
lucidtronix/WearableWayfinderArduino
18df1dc521db393588c0bbf80fbb3b849e77bf27
Arduino/weather-tree.ino
Arduino/weather-tree.ino
#include "neopixel/neopixel.h" #include "PixelControl.h" Adafruit_NeoPixel neopixelRingLarge = Adafruit_NeoPixel(24, 4, WS2812); PixelControl ringLarge = PixelControl(); Adafruit_NeoPixel neopixelRingMedium = Adafruit_NeoPixel(16, 5, WS2812); PixelControl ringMedium = PixelControl(); Adafruit_NeoPixel neopixelRingS...
#include "neopixel/neopixel.h" #include "PixelControl.h" Adafruit_NeoPixel neopixelRingLarge = Adafruit_NeoPixel(24, 4, WS2812); PixelControl ringLarge = PixelControl(); Adafruit_NeoPixel neopixelRingMedium = Adafruit_NeoPixel(16, 5, WS2812); PixelControl ringMedium = PixelControl(); Adafruit_NeoPixel neopixelRingS...
Add noPercipitation
Add noPercipitation
Arduino
mit
projectweekend/Spark-Core-Weather-Tree,projectweekend/Spark-Core-Weather-Tree
1b37e2924384255e27b55e0e1ba60a0cead67067
unit_tests/unit_tests_flash/unit_tests_flash.ino
unit_tests/unit_tests_flash/unit_tests_flash.ino
#line 2 "unit_tests_core.ino" #include <ArduinoUnit.h> #include <Pozyx.h> #include <Pozyx_definitions.h> #include <Wire.h> /** * These unit tests verify that the all functionalities regarding saving and loading from/to the flash memory work. * These functionalities allow a configuration to be saved and remembered e...
#line 2 "unit_tests_core.ino" #include <ArduinoUnit.h> #include <Pozyx.h> #include <Pozyx_definitions.h> #include <Wire.h> /** * These unit tests verify that the all functionalities regarding saving and loading from/to the flash memory work. * These functionalities allow a configuration to be saved and remembered e...
fix flash unit test reset
fix flash unit test reset
Arduino
mit
pozyxLabs/Pozyx-Arduino-library,pozyxLabs/Pozyx-Arduino-library