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
61e8ff9fb9668b8ca8ba8f750a47a0d3f35601c5
cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino
cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino
/** 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 conditions and the following...
/** 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 conditions and the following...
Remove unnecessary define and covert to enum
Remove unnecessary define and covert to enum
Arduino
bsd-3-clause
CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot
dce927901e531e534e940849fa1320f738c24902
firmware/examples/readTag/readtag.ino
firmware/examples/readTag/readtag.ino
#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) { ...
#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) { ...
Update readTag to fetch just the payload from the messages on the tag
Update readTag to fetch just the payload from the messages on the tag
Arduino
mit
reducedhackers/pn532nfcshield,reducedhackers/pn532nfcshield,reducedhackers/pn532_i2c_particle,reducedhackers/pn532_i2c_particle
087a2465957eb0cf5f16fdb29e7a98a0d5480829
examples/arduino/ex31_ard_listbox/ex31_ard_listbox.ino
examples/arduino/ex31_ard_listbox/ex31_ard_listbox.ino
// // GUIslice Library Examples // - Calvin Hass // - https://www.impulseadventure.com/elec/guislice-gui.html // - https://github.com/ImpulseAdventure/GUIslice // - Example 31 (Arduino): Listbox + Scrollbar // - Demonstrates Listbox control (single-column) with scrollbar // - Shows callback notifications for Listbo...
// // GUIslice Library Examples // - Calvin Hass // - https://www.impulseadventure.com/elec/guislice-gui.html // - https://github.com/ImpulseAdventure/GUIslice // - Example 31 (Arduino): Listbox + Scrollbar // - Demonstrates Listbox control (single-column) with scrollbar // - Shows callback notifications for Listbo...
Update ex31 for Teensy fonts
Update ex31 for Teensy fonts
Arduino
mit
ImpulseAdventure/GUIslice,ImpulseAdventure/GUIslice
7fd239858f39cf3420bc058d712d6a9695ffd692
pingpong/pingpong.ino
pingpong/pingpong.ino
#define P1PIN 2 #define P2PIN 3 #define LONGPRESS_TIME 25 enum { BUTTON_NONE=0, BUTTON_SHORT, BUTTON_LONG}; class Button { public: Button(int pin, int longpress_time=LONGPRESS_TIME); void init(); int handle(); protected: boolean pressed; int counter; const int pin; ...
#include <LiquidCrystal.h> LiquidCrystal lcd(12,11,5,4,3,2); // End display setup #define P1PIN 8 #define P2PIN 9 #define LONGPRESS_TIME 25 enum { BUTTON_NONE=0, BUTTON_SHORT, BUTTON_LONG}; class Button { public: Button(int pin, int longpress_time=LONGPRESS_TIME); void init(); int...
Use an LCD display for now
Use an LCD display for now
Arduino
mit
rubyist/pingduino,rubyist/pingduino
118c18c3afb15e95363db4f1604aaf4f48fa5f55
examples-ltc/2.Effects/2_CascadeDefault/DefaultCode-LightCascade.ino
examples-ltc/2.Effects/2_CascadeDefault/DefaultCode-LightCascade.ino
// Love to Code // This is the default, out-of-box program loaded on the Chibi Chip: // a cascade of fading LEDs, wiping from left to right // The demo uses multi-threading to control every LED independently. #include "ChibiOS.h" int blink[6] = {0,0,0,0,0,0}; #define FADE_RATE 4 static THD_WORKING_AREA(blinky_are...
// Love to Code // This is the default, out-of-box program loaded on the Chibi Chip: // a cascade of fading LEDs, wiping from left to right // The demo uses multi-threading to control every LED independently. #include "ChibiOS.h" int blink[6] = {0,0,0,0,0,0}; #define FADE_RATE 4 static THD_WORKING_AREA(blinky_are...
make it so default light cascade doesn't overlap
make it so default light cascade doesn't overlap Jie requested that the light cascade do a single round of effect at any given time.
Arduino
mit
chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer
0e7eb093c330daf0ae2795566df8cd5dc127ed56
sketches/control/single_bench/single_bench.ino
sketches/control/single_bench/single_bench.ino
/** * Control the BlinkMs for a single bench with one painting. Fire off * the appropriate MaxMs at the correct intervals during the daily * operational time. * * The MaxMs that actually control the light pattern for one group * of LED clusters (Blasters) are preloaded with their light * scripts. The MaxMs are c...
/** * Control the BlinkMs for a single bench with one painting. Fire off * the appropriate MaxMs at the correct intervals during the daily * operational time. * * The MaxMs that actually control the light pattern for one group * of LED clusters (Blasters) are preloaded with their light * scripts. The MaxMs are c...
Fix nightly quiesce logic; minor other updates
Fix nightly quiesce logic; minor other updates Fix the logic when the lights are quiescent at night. The bug was in the MAXM1 loop where the LED controller was still fired off even though it was after hours. There are various other code cleanups, mostly in the debugging code, but one visible change is that the activi...
Arduino
mit
wmadill/grant-lighting,wmadill/grant-lighting
77226a2cdbea16e28db8c57baffd317bc08d36be
src/microController/microController.ino
src/microController/microController.ino
// Define //////////////////////////////////////////////////////////////////////////////// #define X1_STEP_PIN 54 //X1->X #define X1_DIR_PIN 55 #define X1_ENABLE_PIN 38 //#define X1_STOP_PIN 37 #define X2_STEP_PIN 60 //X2->Y #define X2_DIR_PIN 61 #define X2_ENABLE_PIN ...
// Include //////////////////////////////////////////////////////////////////////////////// #include <EEPROM.h> // Define //////////////////////////////////////////////////////////////////////////////// #define X1_STEP_PIN 54 //X1->X #define X1_DIR_PIN 55 #define X1_ENABLE_PIN 38 ...
Update for all changes
Update for all changes
Arduino
apache-2.0
eric73847/Capstone-Project,eric73847/Capstone-Project,eric73847/Capstone-Project
fba6c33d3ad83211f1f71ed53cece250bca4464f
protocol/modbus/lab/rs485_smodbus_master.ino
protocol/modbus/lab/rs485_smodbus_master.ino
#include <SimpleModbusMaster.h> #define baud 19200 #define timeout 1000 #define polling 2000 #define retry_count 10 #define TxEnablePin 2 #define LED 9 //ID slave node #define SLAVEID 10 #define SLAVEADDREG 1 #define rnoreg 1 #define TOTAL_NO_OF_REGISTERS 2 enum { PACKET1, PACKET2, TOTAL_NO_OF_PACKETS // le...
#include <SimpleModbusMaster.h> #define baud 19200 #define timeout 1000 #define polling 2000 #define retry_count 10 #define TxEnablePin 2 #define ERRORLED 13 //ID slave node #define SLAVEID 10 #define SLAVEADDREG 1 #define rnoreg 1 #define TOTAL_NO_OF_REGISTERS 2 enum { PACKET1, PACKET2, TOTAL_NO_OF_PACKETS...
Update rs485_smodbus_master.ino
Update rs485_smodbus_master.ino
Arduino
mit
pumanzor/security,pumanzor/security,pumanzor/security
44f08e8a41747ebc8059f9a740b1f058f7a32666
testing/arduino/omniwheel4_EncoderD.ino
testing/arduino/omniwheel4_EncoderD.ino
#include "Arduino.h" uint8_t motorPin1_1 = 4; uint8_t motorPin1_2 = 5; uint8_t motorPin1_speed = 3; uint8_t motorPin1_A = A7; uint8_t motorPin2_1 = 7; uint8_t motorPin2_2 = 8; uint8_t motorPin2_speed = 6; uint8_t motorPin2_A = A6; uint8_t motorPin3_1 = 10; uint8_t motorPin3_2 = 11; uint8_t motorPin3_speed = 9; uint8...
#include "Arduino.h" uint8_t motorPin1_1 = 4; uint8_t motorPin1_2 = 5; uint8_t motorPin1_speed = 3; uint8_t motorPin1_A = A7; uint8_t motorPin2_1 = 7; uint8_t motorPin2_2 = 8; uint8_t motorPin2_speed = 6; uint8_t motorPin2_A = A6; uint8_t motorPin3_1 = 10; uint8_t motorPin3_2 = 11; uint8_t motorPin3_speed = 9; uint8...
reduce size
reduce size
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
835bbd31e5c3296bef64b10cefda122fbf65b9de
control/control.ino
control/control.ino
// Sketch to control the gimbal motor containing the polariser // Gimbal controlled by Hobby King ESC. Connect black to ground // and white to pin 10. (Note that you can only control servos // on pin 9 and 10.) DO NOT CONNECT RED WIRE. // Connect gate of transistor to pin 2. // Run this sketch and then start the power...
// Sketch to control the gimbal motor containing the polariser // Gimbal controlled by Hobby King ESC. Connect black to ground // and white to pin 10. (Note that you can only control servos // on pin 9 and 10.) DO NOT CONNECT RED WIRE. // Connect gate of transistor to pin 2. // Run this sketch and then start the power...
Check if gimbal already running Only start the motor if it's not already running
Check if gimbal already running Only start the motor if it's not already running
Arduino
mit
tomwphillips/polarimeter
0a0059df85e34c8984b63763f8239b20cc3612a0
LEDMatrixOneByOne/LEDMatrixOneByOne.ino
LEDMatrixOneByOne/LEDMatrixOneByOne.ino
/* One by one light of a 8x8 LED Matrix is activated and deactivated afterwards. This is useful to test if a self soldered construction works properly. Documentation & Library http://playground.arduino.cc/Main/LedControl Arduino Uno | LEDMatrix MAX7219 pin 12 | DIN (data in) pin 11 | CLK (clock) pin...
/* One by one light of a 8x8 LED Matrix is activated and deactivated afterwards. This is useful to test if a self soldered construction works properly. Documentation & Library http://playground.arduino.cc/Main/LedControl Arduino Uno | LEDMatrix MAX7219 pin 12 | DIN (data in) pin 11 | CLK (clock) pin...
Add LEDMatrixOneByOne multiple devices
Add LEDMatrixOneByOne multiple devices
Arduino
mit
andpei/arduino-sketchbook,andpei/arduino-sketchbook
523ff17982a026eb4f9d72834a74b2e86b0daa40
examples/arduino/diag_ard_touch_detect/diag_ard_touch_detect.ino
examples/arduino/diag_ard_touch_detect/diag_ard_touch_detect.ino
// // GUIslice Library Examples // - Calvin Hass // - https://www.impulseadventure.com/elec/guislice-gui.html // - https://github.com/ImpulseAdventure/GUIslice // - TFT Diagnostic (Arduino): Test Touch Pin Detection // - This sketch is intended to detect and report the set of pins // currently wired to a 4-wire r...
// // GUIslice Library Examples // - Calvin Hass // - https://www.impulseadventure.com/elec/guislice-gui.html // - https://github.com/ImpulseAdventure/GUIslice // - TFT Diagnostic (Arduino): Test Touch Pin Detection // - This sketch is intended to detect and report the set of pins // currently wired to a 4-wire r...
Disable diagnostic pin detect for ESP8266
Disable diagnostic pin detect for ESP8266
Arduino
mit
ImpulseAdventure/GUIslice,ImpulseAdventure/GUIslice
b5c2fd0414ad9d56bf0a35763f0ec80dfebdf09f
src/WiFiSensor/measurements.ino
src/WiFiSensor/measurements.ino
void dhtmeasure(){ //struct measurements tmp; bool dhtOK = false; int retries = 0; if(dht1d5){ while( !dhtOK){ //Loop to wait for good DHT value dhtOK = true; //assume it is going to work dht.read(); lastmeasurement.humidity = dht.readHumidity(); if( isnan(lastmeasurement.humidity)){ dhtOK = false; ...
void dhtmeasure(){ //struct measurements tmp; bool dhtOK = false; int retries = 0; if(dht1d5){ while( !dhtOK){ //Loop to wait for good DHT value dhtOK = true; //assume it is going to work dht.read(); lastmeasurement.humidity = dht.readHumidity(); if( isnan(lastmeasurement.humidity)){ dhtOK = false; ...
Fix 2 0.0.7
Fix 2 0.0.7
Arduino
apache-2.0
brickmen/WiFiSensor,brickmen/WiFiSensor
642a62afeac424163d8dd065a4b4edffb66b77f8
examples/CalibrateESCs/CalibrateESCs.ino
examples/CalibrateESCs/CalibrateESCs.ino
#include "Wire.h" #include "SPI.h" #include "MINDS-i-Drone.h" #include "platforms/Quadcopter.h" void setup(){ calibrateESCs(); } void loop(){ output.stop(); }
#include "Wire.h" #include "SPI.h" #include "MINDS-i-Drone.h" #include "platforms/Quadcopter.h" void setup(){ calibrateESCs(); output.disable(); } void loop(){ }
Disable the output after calibrating instead of deprecated stop
Disable the output after calibrating instead of deprecated stop
Arduino
apache-2.0
MINDS-i/MINDS-i-Drone,MINDS-i/MINDS-i-Drone
36c1d03f6313802abbb6ce15871769fa9c3bff88
SMD_Control_Server/arduino_files/SMD_Server_Sketch/SMD_Server_Sketch.ino
SMD_Control_Server/arduino_files/SMD_Server_Sketch/SMD_Server_Sketch.ino
// John Davis // Copyright 2015 3ML LLC #include <Bridge.h> #include <Process.h> #include <FileIO.h> int BLINK_LED = 0; void setup() { //Serial.begin(115200); //while(!Serial); //setup the environment Bridge.begin(); while(!FileSystem.exists("/mnt/sda1/smd_server/SMDServer")) delay(1000); //s...
// John Davis // Copyright 2015 3ML LLC #include <Bridge.h> #include <Process.h> #include <FileIO.h> #include <Console.h> int BLINK_LED = 0; void setup() { //setup the environment Bridge.begin(); Console.begin(); while(!FileSystem.exists("/mnt/sda1/smd_server/SMDServer")) delay(1000); //start ...
make the light go blinky when the server is running
make the light go blinky when the server is running
Arduino
mit
davisjp1822/SMD_Control_Server,davisjp1822/SMD_Control_Server
78cfce0f5c84512064046805eb50656747942bb5
arduino/blinkytape_orb.ino
arduino/blinkytape_orb.ino
#include "FastLED.h" // hardware #define NUM_LEDS 12 #define LED_CORRECTION TypicalSMD5050 #define DATA_PIN 13 // visuals #define PULSE_MAX_VAL 255 #define PULSE_MIN_VAL 160 #define PULSE_DURATION_SLOW 3000 #define PULSE_DURATION_MED 1500 #define PULSE_DURATION_FAST 0 #define CHANGE_MIN_VAL 64 #define CHANGE_DURATI...
#include "FastLED.h" // hardware #define NUM_LEDS 12 #define LED_CORRECTION TypicalSMD5050 #define DATA_PIN 13 #define BUTTON_IN 10 #define ANALOG_INPUT A9 #define EXTRA_PIN_A 7 #define EXTRA_PIN_B 11 // visuals #define PULSE_MAX_VAL 255 #define PULSE_MIN_VAL 160 #define PULSE_DURATION_SLOW 3000 #define PULSE_DURATI...
Support the button on the BlinkyTape controller
Support the button on the BlinkyTape controller
Arduino
mit
jtai/blinkytape-orb,jtai/blinkytape-orb
41fbe93560b9b473bc691920322d57289b46b675
libraries/ESP8266WebServer/examples/AdvancedWebServer/AdvancedWebServer.ino
libraries/ESP8266WebServer/examples/AdvancedWebServer/AdvancedWebServer.ino
/* * Copyright (c) 2015, Majenko Technologies * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of ...
/* * Copyright (c) 2015, Majenko Technologies * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of ...
remove mDNS from loop as well
AdvancedWebServer: remove mDNS from loop as well
Arduino
lgpl-2.1
Juppit/Arduino,KaloNK/Arduino,sticilface/Arduino,hallard/Arduino,esp8266/Arduino,martinayotte/ESP8266-Arduino,CanTireInnovations/Arduino,sticilface/Arduino,chrisfraser/Arduino,NullMedia/Arduino,quertenmont/Arduino,Cloudino/Cloudino-Arduino-IDE,Adam5Wu/Arduino,wemos/Arduino,chrisfraser/Arduino,esp8266/Arduino,gguuss/Ard...
68cc1c21dc781d646d7a2c84d4d34f445b91e655
ArduinoArcReactor/ArduinoArcReactor.ino
ArduinoArcReactor/ArduinoArcReactor.ino
/* * ArcReactor * * Copyright (C) Marcin Badurowicz <m at badurowicz dot net> 2017 * * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the ...
/* * ArcReactor * * Copyright (C) Marcin Badurowicz <m at badurowicz dot net> 2017 * * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the ...
fix not working applyall correctly
fix not working applyall correctly
Arduino
mit
ktos/ArcReactor,ktos/ArcReactor
bcbcb44e79ce9b5071935c1d9d3142c247ca13e9
examples/FirebaseSerialTerminal_ESP8266/FirebaseSerialTerminal_ESP8266.ino
examples/FirebaseSerialTerminal_ESP8266/FirebaseSerialTerminal_ESP8266.ino
// // Copyright 2015 Google Inc. // // 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 2015 Google Inc. // // 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 ...
Remove unneeded header
Remove unneeded header
Arduino
apache-2.0
gguuss/firebase-arduino,aliafshar/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino,FirebaseExtended/firebase-arduino,gguuss/firebase-arduino
61f00b8dc5733698e9ebce60fc1a49a0f5a673d2
examples/IRrecvDumpV2/IRrecvDumpV2.ino
examples/IRrecvDumpV2/IRrecvDumpV2.ino
//------------------------------------------------------------------------------ // Include the IRremote library header // #include <IRremote.h> //------------------------------------------------------------------------------ // Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838) // int recvPin ...
//------------------------------------------------------------------------------ // Include the IRremote library header // #include <IRremote.h> //------------------------------------------------------------------------------ // Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838) // int recvPin ...
Update IRrecvDumpV2.ino
Update IRrecvDumpV2.ino Fixed presentation & 2 bugs. Presentation: No longer display leading space in timings, as is confusing to users & essentially irrelevant. Bug Fix 1: rawData was starting with a space & would not work with sendRaw Bug Fix 2: chaned x from unsigned int to nsigend long to avoid potential over...
Arduino
lgpl-2.1
r2jitu/Arduino-IRremote,Seeed-Studio/IRSendRev,pcoughlin/Arduino-IRremote,swkyer/Arduino-IRremote,audetto/Arduino-IRremote,hafo821/Arduino-IRremote,ivankravets/Arduino-IRremote,audetto/Arduino-IRremote,AnalysIR/Arduino-IRremote,MadGarra/Arduino-IRremote,shirriff/Arduino-IRremote,YodaR10/Arduino-IRremote,danz0/Arduino-I...
3423dda4cca2fad8ae11da7be7292844ff484ca6
examples/More/SetProperty/SetProperty_MultiValue/SetProperty_MultiValue.ino
examples/More/SetProperty/SetProperty_MultiValue/SetProperty_MultiValue.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...
Fix build
Fix build
Arduino
mit
ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
3e0649cf7b679589b0b702fe603c02b660deed1c
examples/Boards_Bluetooth/Adafruit_Feather_32u4_BLE/Adafruit_Feather_32u4_BLE.ino
examples/Boards_Bluetooth/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...
Fix #242
Fix #242
Arduino
mit
blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
bee6b5d6445fefa5b273cc805197ee7c5f1fde5e
examples/BasicSample/BasicSample.ino
examples/BasicSample/BasicSample.ino
#include <TeensyDelay.h> //This callback function will be called after the delay period void callback() { digitalWriteFast(LED_BUILTIN,LOW); } void setup() { pinMode(LED_BUILTIN,OUTPUT); TeensyDelay::begin(); TeensyDelay::addDelayChannel(callback); // setup a delay channel and attach the callback function t...
#include <TeensyDelay.h> //This callback function will be called after the delay period void callback() { digitalWriteFast(LED_BUILTIN,LOW); } void setup() { pinMode(LED_BUILTIN,OUTPUT); TeensyDelay::begin(); TeensyDelay::addDelayChannel(callback); // setup a delay channel and attach the callback function t...
Update BasicSample.ino
Update BasicSample.ino
Arduino
mit
luni64/TeensyDelay
c945b967e2054744f5eae4ebf491077b48d32d3c
_03-hx711-scale-v2-battery-external-Interrupt/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino
_03-hx711-scale-v2-battery-external-Interrupt/_03-hx711-scale-pro-mini/_03-hx711-scale-pro-mini.ino
/* A0, A1 --> HX711 A3, A4 --> I2C to esp8266 4, 5 2 - int 0 - tilt sw * 2- gnd : INPUT_PULLUP 4 - LED 10 - esp 13 : OUT - nemo is on pad 11 - esp reset : OUT - reset esp8266 12 - esp 12 : INPUT - wifi/mqtt status */ #include <avr/interrupt.h> #include <avr/sleep.h> #include "HX711.h" #include <Wire.h> ...
/* A0, A1 --> HX711 A3, A4 --> I2C to esp8266 4, 5 2 - int 0 - tilt sw * 2- gnd : INPUT_PULLUP 4 - LED 10 - esp 13 : OUT - nemo is on pad 11 - esp reset : OUT - reset esp8266 12 - esp 12 : INPUT - wifi/mqtt status */ #include <avr/interrupt.h> #include <avr/sleep.h> #include "HX711.h" #include <Wire.h> ...
scale update
scale update
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
1b4ab08445eaea4720696f07b2db91b799f9d069
examples/rtc/rtc.ino
examples/rtc/rtc.ino
// // FaBo Brick Example // // FaBo RTC PCF2129 // #include <Wire.h> #include <FaBoRTC_PCF2129.h> FaBoRTC_PCF2129 fabo_rtc; void setup() { Serial.begin(9600); // シリアルの開始 Serial.println(); Serial.println("RESET"); // デバイス初期化 Serial.println("Checking I2C device..."); if (fabo_rtc.searchDevice()) { Ser...
// // FaBo Brick Example // // FaBo RTC PCF2129 // #include <Wire.h> #include <FaBoRTC_PCF2129.h> FaBoRTC_PCF2129 faboRtc; void setup() { Serial.begin(9600); // シリアルの開始 Serial.println(); Serial.println("RESET"); // デバイス初期化 Serial.println("Checking I2C device..."); if (faboRtc.searchDevice()) { Seria...
Update example.
Update example.
Arduino
apache-2.0
FaBoPlatform/FaBoRTC-PCF2129-Library
2291a2655e46e00393f768d99b1820fcdd1b0300
main/main.ino
main/main.ino
#include <Canbus.h> #include <defaults.h> #include <global.h> #include <mcp2515.h> #include <mcp2515_defs.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(14, 3, 4, 5, 6, 7); int brightness = 255; byte fill1[8] = { B10000, B10000, B10000, B10000, B10000, B10000, ...
#include <Canbus.h> #include <defaults.h> #include <global.h> #include <mcp2515.h> #include <mcp2515_defs.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(14, 3, 4, 5, 6, 7); int brightness = 255; byte fill1[8] = { B10000, B10000, B10000, B10000, B10000, B10000, ...
print stats on serial
print stats on serial
Arduino
apache-2.0
srenner/meguinauge
54e489282d422556a19acc7058a5d0d1673518a6
examples/SoftWire_MLX90614/SoftWire_MLX90614.ino
examples/SoftWire_MLX90614/SoftWire_MLX90614.ino
#include <AsyncDelay.h> #include <SoftWire.h> /* SoftWire_MLX90614 * * Code to demonstrate how to communicate with an SMBus device such as * the MLX90614 non-contact infrared thermometer. * * Connections: * * For Calunium it is assumed the JTAG pins are used, SDA pin = 16 * (JTAG TDI) and SCL pin = 19 (JTAG TC...
#include <AsyncDelay.h> #include <SoftWire.h> /* SoftWire_MLX90614 * * Code to demonstrate how to communicate with an SMBus device such as * the MLX90614 non-contact infrared thermometer. * * Connections: * * For Calunium it is assumed the JTAG pins are used, SDA pin = 16 * (JTAG TDI) and SCL pin = 19 (JTAG TC...
Fix compile issue
Fix compile issue Fixes Github issue #16 Thanks to [katkothaza](https://github.com/katkothaza).
Arduino
lgpl-2.1
stevemarple/SoftWire
92b7b44ed7046a9456bbe08556042e452d940354
firmware/examples/SparkFun_MPL3115A2_Example.ino
firmware/examples/SparkFun_MPL3115A2_Example.ino
/****************************************************************************** SparkFun_Basic_MPL3115A2_Example.ino Joel Bartlett @ SparkFun Electronics Original Creation Date: June 30, 2015 This sketch prints the barrometric preassure, altitude, and temperature F to the Seril port. Hardware Connections: ...
/****************************************************************************** SparkFun_Basic_MPL3115A2_Example.ino Joel Bartlett @ SparkFun Electronics Original Creation Date: June 30, 2015 This sketch prints the barrometric preassure, altitude, and temperature F to the Seril port. Hardware Connections: ...
Update SparkFun_MPL3115A2_Example.ino
Update SparkFun_MPL3115A2_Example.ino Issues compiling example with the `../` in the header file's path. Removing.
Arduino
mit
sparkfun/SparkFun_MPL3115A2_Particle_Library
b36049b20b499a4ab5696bc634d96904549dd364
examples/BH1750FVI_Simple/BH1750FVI_Simple.ino
examples/BH1750FVI_Simple/BH1750FVI_Simple.ino
// Includes: Wifi, MQTT, JSON #include<ESP8266WiFi.h> #include <PubSubClient.h> #include <ArduinoJson.h> // Includes: Sensors #include <Wire.h> #include "DHT.h" #include <BH1750FVI.h> // Defines: Wifi and MQTT #define mqtt_server "192.168.1.8" // Defines: Sensors #define DHTPIN 2 //D4 #define DH...
/* This is a simple example to test the BH1750 Light sensor Connect the sensor to a NodeMCU ESP8266: VCC <-> 3V3 [grey] GND <-> Gnd [purple] SDA <-> D2 [green] SCL <-> D1 [blue] ADDR <-> RX [yellow] */ #include <Wire.h> #include <BH1750FVI.h> // Settings uint8_t ADDRESSPIN = 13...
Revert "Update BH1750FVI_Simple.ino"
Revert "Update BH1750FVI_Simple.ino" This reverts commit 32fe05bbb80db305f6bcb70da35787dbdb53635b.
Arduino
mit
PeterEmbedded/BH1750FVI
df98cc5cb290319faf06e299e0089f32e3922289
garden.ino
garden.ino
#include <SPI.h> #include <SD.h> #include <TFT.h> // Arduino LCD library #include <Wire.h> #include "RTClib.h" #include <DHT11.h> #define DHTPIN 11 #define DHTTYPE DHT11 #define sd_cs 12 #define lcd_cs 6 #define dc 7 #define rst 8 TFT screen = TFT(lcd_cs, dc, rst); DHT dht(DHTPIN, DHTTYPE); /*it's importa...
#include <Wire.h> #include "RTClib.h" #include <math.h> int BH1750address = 0x23; //setting i2c address int light = 5; int ph_probe = A0; int water_temp = 13 byte buff[2]; RTC_Millis rtc; void setup () { Serial.begin(57600); // following line sets the RTC to the date & time this sketch was compiled rtc....
Update garden.ino
Update garden.ino totally revamped garden controller
Arduino
mit
treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches,treeherder/arduino_sketches
ab3909753b904b6fbd79736fe9efc3e7fb62ff8c
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...
Fix strip ordering.
Fix strip ordering.
Arduino
apache-2.0
die-net/led-controller,die-net/led-controller,die-net/led-controller,die-net/led-controller
425de9f8487c5b18d96f68d898f7b028f3a97ebb
esp8266_dht11_oled.ino
esp8266_dht11_oled.ino
#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <U8g2lib.h> #include "wifi_creds.h" #define FINAL 0 #if FINAL #define DEBUG_PRINTLN(...) #define DEBUG_PRINT(...) #else #define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__) #define DE...
#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <U8g2lib.h> #include "wifi_creds.h" #define FINAL 0 #if FINAL #define DEBUG_PRINTLN(...) #define DEBUG_PRINT(...) #else #define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__) #define DE...
Add powersave code
Add powersave code
Arduino
mit
slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled
a7749d45dc7bf6630d5f9a880190c48fb4167345
examples/adsr/adsr.ino
examples/adsr/adsr.ino
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
Fix bug in loading ADSR parameters.
Fix bug in loading ADSR parameters.
Arduino
bsd-3-clause
logickworkshop/du-ino,logickworkshop/du-ino
c40db44d1a9534f43bc5ff6d3bddf04e6f7cf432
examples/adsr/adsr.ino
examples/adsr/adsr.ino
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
Move switch configuration to subclass definition.
Move switch configuration to subclass definition.
Arduino
bsd-3-clause
logickworkshop/du-ino,logickworkshop/du-ino
03673b47fa1cc950734baffb9bb8313629c366f9
libraries/CurieBle/examples/LED/LED.ino
libraries/CurieBle/examples/LED/LED.ino
/* Copyright (c) 2015 Intel Corporation. All rights reserved. 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 v...
/* Copyright (c) 2015 Intel Corporation. All rights reserved. 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 v...
Use dashed UUID in example
Use dashed UUID in example
Arduino
lgpl-2.1
sandeepmistry/corelibs-arduino101,eriknyquist/corelibs-arduino101,eriknyquist/corelibs-arduino101,linrjing/corelibs-arduino101,bigdinotech/corelibs-arduino101,01org/corelibs-arduino101,sandeepmistry/corelibs-arduino101,01org/corelibs-arduino101,SidLeung/corelibs-arduino101,sgbihu/corelibs-arduino101,facchinm/corelibs-a...
6897bcb9f281fffee13a6cc6e922b71186f2aee0
firmware/examples/toggle/toggle.ino
firmware/examples/toggle/toggle.ino
#if defined (SPARK) #include "Adafruit_MCP23017/Adafruit_MCP23017.h" #else #include <Wire.h> #include "Adafruit_MCP23017.h" #endif // Basic pin reading and pullup test for the MCP23017 I/O expander // public domain! // Connect pin #12 of the expander to Analog 5 (i2c clock) // Connect pin #13 of the expander to Analo...
#if defined (SPARK) #include "Adafruit_MCP23017/Adafruit_MCP23017.h" #else #include <Wire.h> #include "Adafruit_MCP23017.h" #endif // Basic pin reading and pullup test for the MCP23017 I/O expander // public domain! // Connect pin #12 of the expander to Analog 5 for Arduino and D1 for Spark Core (i2c clock) // Conne...
Update comments for Spark
Update comments for Spark
Arduino
bsd-3-clause
pkourany/Adafruit_MCP23017_IDE
c68bcdbb91bdf55ee4135148b1b2a8ab315f37c5
Relay/Relay.ino
Relay/Relay.ino
#include <stdio.h> #include <stdlib.h> #define IN_1 6 // White/Green cable, Arduino Digital I/O pin number #define IN_2 7 // Yellow/Black cable, Arduino Digital I/O pin number void setup() { Serial.begin(9600); //begin reading at this baud rate //set pins as outputs pinMode(IN_1, OUTPUT); pinMode(IN_2, OUT...
#include <stdio.h> #include <stdlib.h> #define IN_1 6 // White/Green cable, Arduino Digital I/O pin number #define IN_2 7 // Yellow/Black cable, Arduino Digital I/O pin number #define IN_3 8 #define IN_4 9 void setup() { Serial.begin(9600); //begin reading at this baud rate //set pins as outputs pinMode(IN_1, ...
Update Relay.ino
Update Relay.ino
Arduino
bsd-2-clause
fnoorian/Free-buck-boost,fnoorian/Free-buck-boost,fnoorian/Free-buck-boost
422c4651f7f539797dddb2ec258e3196e13e1c66
OpenStage/openStage_SerialFunctions.ino
OpenStage/openStage_SerialFunctions.ino
//------------------------------------------------------------------------------------------------ // This file contains functions necessary for controlling OpenStage via the serial port //------------------------------------------------------------------------------------------------ //Based on code from The Arduino...
//------------------------------------------------------------------------------------------------ // This file contains functions necessary for controlling OpenStage via the serial port //------------------------------------------------------------------------------------------------ //Based on code from The Arduino...
Remove if statement.
Remove if statement.
Arduino
agpl-3.0
raacampbell13/openstage,raacampbell13/openstage
96cfbacc8b863ef260df4fd0b5f422c6dd99a042
Melodies/SonarPiano.ino
Melodies/SonarPiano.ino
#include "pitches.h" //Distance ThreshHold int ThreshHold = 50; //Full Range of Piezo Frequencies as Pitches int Tones[] = { NOTE_B0, NOTE_C1,NOTE_CS1, NOTE_D1,NOTE_DS1, NOTE_E1, NOTE_F1, NOTE_FS1, NOTE_G1, NOTE_GS1, NOTE_A1,NOTE_AS1, NOTE_B1,NOTE_C2,NOTE_CS2, NOTE_D2,NOTE_DS2,NOTE_E2,NOTE_F2,NOTE_FS2,...
#include "pitches.h" /**Distances Corresponding to TonesO4 array values with current settings: * 0: 15-16 * 1: 17-18 * 2: 19-20 * 3: 21-22 * 4: 23-24 * 5: 25 * 6: 26-27 * 7: 28-29 * 8: 30-31 * 9: 32-33 * 10: 34 * 11: 35 * * Beware of noise, make sure space is totally cleared * and accoun...
Update SonarPiano.ino
Update SonarPiano.ino
Arduino
mit
celeryellery/CSS427FinalProject,celeryellery/CSS427FinalProject
313b3aae47c643fb3cfc43ebbb85029f75a822d5
DiplayTemp/DiplayTemp.ino
DiplayTemp/DiplayTemp.ino
// // Display Temp // #include <VirtualWire.h> #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> #include <CapacitiveSensor.h> #define I2C_ADDR 0x27 // <<----- Add your address here. Find it from I2C Scanner #define BACKLIGHT_PIN 3 #define En_pin 2 #define Rw_pin 1 #define Rs_pin 0 #define D4_pi...
// // Display Temp // // Use Library from : // Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified // Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor // Finite State Machine http://arduino-info.wikispaces.com/HAL-LibrariesUpdates // LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/...
Add pressure sensor
Add pressure sensor + WIP on finite state machine
Arduino
mit
totothekiller/weather-station,totothekiller/weather-station
614c7f792edb20435db78b0e7c9f47f7f6209215
DriveTrain/DriveTrain.ino
DriveTrain/DriveTrain.ino
/* Copyright (c) 2014, Rishi Desai All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
/* Copyright (c) 2014, Rishi Desai All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
Update DriveTrain.ino
Update DriveTrain.ino
Arduino
bsd-2-clause
Talos4757/NVIDIABot,apache8080/NVIDIABot
b261b2c940d8b808972fc6162e1c41e758f8fec3
Arduino/AlphaChairArduino/AlphaChairArduino.ino
Arduino/AlphaChairArduino/AlphaChairArduino.ino
#include <SoftwareSerial.h> #include <Thread.h> #define PPR_ON "a" #define PPR_OFF "b" #define FSR_ON "c" #define FSR_OFF "d" #define TMP_ON "e" #define TMP_OFF "f" Thread fsrThread = Thread(); // For measuring Pressure data in other thread // Mosfet channel int MOSFET_C1 = 10; int MOSFET_C2 = 7; // UNO board int I...
#include <SoftwareSerial.h> #include <Thread.h> #define PPR_ON "a" #define PPR_OFF "b" #define FSR_ON "c" #define FSR_OFF "d" #define TMP_ON "e" #define TMP_OFF "f" Thread fsrThread = Thread(); // For measuring Pressure data in other thread // Mosfet channel int MOSFET_C1 = 10; int MOSFET_C2 = 7; // UNO board int I...
set posture msg
set posture msg
Arduino
apache-2.0
quki/AlphaChair
959b6d11de8260100668bdf91247074c135a9950
Cymatic-Triangles/Mic.ino
Cymatic-Triangles/Mic.ino
#include "Wisp.h" /* Import Wisp class */ #include <FastLED.h> #include "SPI.h" // Comment out this line if using Trinket or Gemma #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include <math.h> #define NUM_MIC_LEDS 28 #define MIC_DATA_PIN 8 #define MAX_ROTATIONS_PER...
#include "Wisp.h" /* Import Wisp class */ #include <FastLED.h> #include "SPI.h" // Comment out this line if using Trinket or Gemma #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include <math.h> #define NUM_MIC_LEDS 28 #define MIC_DATA_PIN 8 #define MAX_ROTATIONS_PER...
Use ticks in constants get consistency in visuals
Use ticks in constants get consistency in visuals
Arduino
artistic-2.0
CymaSpace/Light-Installations
fddf28e6d9406ff88bb381e66bd97564eb40f9fe
test/test.ino
test/test.ino
/* BUFSM ~~~~~~~~ Send coordinates over wi-fi using ESP-8266 */ #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> const char* ssid = "AP-PREDIO320"; const char* password = "naocompilavei"; const char* host = "bufsm.dalmago.xyz"; String url = "/api/things"; WiFiClient client; char* lng[]={"-29.71946...
/* BUFSM ~~~~~~~~ Send coordinates over wi-fi using ESP-8266 */ #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> const char* ssid = "USER"; const char* password = "PASSW"; const char* host = "bufsm.dalmago.xyz"; String url = "/api/things"; WiFiClient client; char* lng[]={"-29.71946","-29.71943","-...
Update test.ino
Update test.ino
Arduino
mit
bufsm/bufsm,bufsm/bufsm,bufsm/bufsm,bufsm/bufsm,bufsm/bufsm
c857dd42cf0b0e2262c80b44d9b868fa835ff333
mimmon.ino
mimmon.ino
#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> #include <WiFiClientSecureBearSSL.h> // Base URL for HTTP GET requests. String kBaseUrl = "https://docs.google.com/forms/d/e/YOUR_SPREADSHEET_ID/formResponse?entry.ENTRY_CODE="; // WiFi SSID and password. constex...
#include <Arduino.h> #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP_EEPROM.h> #include <WiFiClientSecureBearSSL.h> String kBaseUrl = "https://docs.google.com/forms/d/e/YOUR_SPREADSHEET_ID/formResponse?entry.ENTRY_CODE="; constexpr char kApSsid[] = "YOUR_SSID"; cons...
Add EEPROM for persistent pulse counts.
Add EEPROM for persistent pulse counts.
Arduino
apache-2.0
AaronWebster/mimmon,AaronWebster/mimmon,AaronWebster/mimmon
4cd5d739e19245cedb8466c23f9c3d5461960c98
arduino/edison2fiware.ino
arduino/edison2fiware.ino
//################# LIBRARIES ################ #include <SPI.h> #include <WiFi.h> //################# WIFI DETAILS ################# char ssid[] = "OWDTEST"; // your network SSID (name) char pass[] = "tidowd22"; // your network password (use for WPA, or use as key for WEP) int keyIndex = ...
//################# LIBRARIES ################ #include <SPI.h> #include <WiFi.h> //################# WIFI DETAILS ################# char ssid[] = "OWDTEST"; // your network SSID (name) char pass[] = "tidowd22"; // your network password (use for WPA, or use as key for WEP) int keyIndex = ...
Update edison2fiware.ino
Update edison2fiware.ino
Arduino
agpl-3.0
telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison
85a6e53b5be73db91ccaa138d3cb6118271f9048
phase2.ino
phase2.ino
#include <cops_and_robbers.h> #include <nRF24L01.h> #include <packet.h> #include <radio.h> #include <sensor_struct.h> #include <spi.h> #include <scheduler.h> #define HIGH_BYTE(x) x>>8 #define LOW_BYTE(x) x & 0x00FF // constants won't change. They're used here to // set pin numbers: const int joystick...
#include <cops_and_robbers.h> #include <nRF24L01.h> #include <packet.h> #include <radio.h> #include <sensor_struct.h> #include <spi.h> #include <scheduler.h> #define HIGH_BYTE(x) x>>8 #define LOW_BYTE(x) x & 0x00FF // constants won't change. They're used here to set pin numbers: const int joystick_x_pi...
rework phase2.ino to only send packets with the most recent input
rework phase2.ino to only send packets with the most recent input
Arduino
mit
paulmoon/csc460,paulmoon/csc460,paulmoon/csc460
09e6299167527ccb545db826a6313768e5841d5d
arduino/blinkytape_orb.ino
arduino/blinkytape_orb.ino
#include <EEPROM.h> #include <FastLED.h> #include "visuals.h" #include "state.h" // hardware #define NUM_LEDS 12 #define LED_CORRECTION TypicalSMD5050 #define COLOR_TEMPERATURE OvercastSky #define DATA_PIN 13 #define BUTTON_IN 10 #define ANALOG_INPUT A9 #define EXTRA_PIN_A 7 #define EXTRA_PIN_B 11 #define EEPROM_ST...
#include <EEPROM.h> #include <FastLED.h> #include "visuals.h" #include "state.h" // hardware #define NUM_LEDS 12 #define LED_CORRECTION TypicalSMD5050 #define COLOR_TEMPERATURE OvercastSky #define DATA_PIN 13 #define BUTTON_IN 10 #define ANALOG_INPUT A9 #define EXTRA_PIN_A 7 #define EXTRA_PIN_B 11 #define EEPROM_ST...
Remove redundant call to FastLED.show()
Remove redundant call to FastLED.show()
Arduino
mit
jtai/blinkytape-orb,jtai/blinkytape-orb
93b524b36b078f7f434eaaf86d1f3918f5a2c8d3
arduino/loopFunctions.ino
arduino/loopFunctions.ino
SENS readSensors() { SENS temp; // These are temporary values, but needs to be changed to actual sensor readings temp.pressure = 3024; temp.temp = 18.3; temp.volt = 10.8; temp.gyr.ax = 0; temp.gyr.ay = 0; temp.gyr.az = 0; temp.gyr.compass = 0; temp = mpuLoop(temp); // read orientation return t...
SENS readSensors() { SENS temp; // These are temporary values, but needs to be changed to actual sensor readings temp.pressure = 3024; temp.temp = 18.3; temp.volt = 10.8; temp.curr = 2.12; temp.gyr.ax = 0; temp.gyr.ay = 0; temp.gyr.az = 0; temp.gyr.compass = 0; temp = mpuLoop(temp); // read orien...
Update loopFunctions.ino
Update loopFunctions.ino
Arduino
mit
martinloland/rov,martinloland/rov
30f6c279e3dd9443219e83f6e0790810d31a563e
temp/ffdgjghk.ino
temp/ffdgjghk.ino
#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); int c=0; uint8_t message[60]; uint8_t CK_A = 0, CK_B = 0; uint8_t CK_AU = 0, CK_BU = 0; int gpsStep = 0; uint8_t UBX_id = 0; uint8_t UBX_class = 0; uint8_t meslenL = 0; uint8_t meslenH = 0; int16_t meslen = 0; int count = 0; boolean gotUBX = fal...
#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); int c=0; uint8_t message[60]; uint8_t CK_A = 0, CK_B = 0; uint8_t CK_AU = 0, CK_BU = 0; int gpsStep = 0; uint8_t UBX_id = 0; uint8_t UBX_class = 0; uint8_t meslenL = 0; uint8_t meslenH = 0; int16_t meslen = 0; int count = 0; boolean gotUBX = fal...
Update ffdgjghk.ino
Update ffdgjghk.ino
Arduino
apache-2.0
volodink/ubx-decoder-embedded,volodink/ubx-decoder-embedded,volodink/ubx-decoder-embedded
5760ed5a3c5d96bde37a479e5923db0b73852b61
sheild_sdlog_gps_color/sheild_sdlog_gps_color.ino
sheild_sdlog_gps_color/sheild_sdlog_gps_color.ino
#include <SPI.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> #include <SD.h> #include <Wire.h> #include <Adafruit_TCS34725.h> #include <avr/sleep.h> // Code hacked together by Nick Meehan - unsalted.nu // In association with: Art Center College of Design - Media Design Practices - MFA // // This code is a co...
#include <SPI.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> #include <SD.h> #include <Wire.h> #include <Adafruit_TCS34725.h> #include <avr/sleep.h> // Code hacked together by Nick Meehan - unsalted.nu // In association with: Art Center College of Design - Media Design Practices - MFA // // This code is a co...
remove attempt at UTC
remove attempt at UTC
Arduino
mit
unsalted/color_station
a8c500a65be7c3194bdc004ffaa49041cd3e34d9
IoT_Agriculture/IoT_Agriculture.ino
IoT_Agriculture/IoT_Agriculture.ino
#include <SoftwareSerial.h> #include <ESP8266WiFi.h> #include <SimpleDHT.h> #include "ThingSpeak.h" #include "DHT.h" #include "Server.h" #include "Network.h" #include "Setting.h" #include "Photoresistor.h" #include "WaterLevelSensor.h" unsigned long monitorChannel = 169688; const char *monitorWrite = "GB91TIAKXFPD6JNX...
#include <SoftwareSerial.h> #include <ESP8266WiFi.h> #include <SimpleDHT.h> #include "ThingSpeak.h" #include "DHT.h" #include "Server.h" #include "Network.h" #include "Setting.h" #include "Photoresistor.h" #include "WaterLevelSensor.h" unsigned long monitorChannel = 169688; const char *monitorWrite = "GB91TIAKXFPD6JNX...
Update IoT_Agriculture.ino
Update IoT_Agriculture.ino
Arduino
mit
Raydivine/IoT-for-Modern-Agriculture,Raydivine/IoT-for-Modern-Agriculture
b444504c57654b84ee5265d2e29ac1c4032da223
examples/Ports/isp_repair2/isp_repair2.ino
examples/Ports/isp_repair2/isp_repair2.ino
// Reflash a boot loader and a sketch an a second ATmega. // 2010-05-29 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php // // see http://jeelabs.org/2011/05/29/summary-of-isp-options/ // This code is adapted from isp_prepare. It omits the button and run LED, // and starts right away. To use, open a seri...
// Reflash a boot loader and a sketch an a second ATmega. // 2010-05-29 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php // // see http://jeelabs.org/2011/05/29/summary-of-isp-options/ // This code is adapted from isp_prepare. It omits the button and run LED, // and starts right away. To use, open a seri...
fix breakage due to IDE 1.0 changes
fix breakage due to IDE 1.0 changes
Arduino
unlicense
jcw/jeelib,jcw/jeelib
610487a1f1fd999ecd415f60617c51349cb29593
esp12/esp/esp.ino
esp12/esp/esp.ino
#include <TinyGPS++.h> #include <SoftwareSerial.h> #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <DHT.h> #include "FS.h" //device serial number const char* serialNo = "0123a"; // gps static const int RXPin = 5, TXPin = 4; static const uint32_t GPSBaud = 9600; // The TinyGPS...
#include <TinyGPS++.h> #include <SoftwareSerial.h> #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <DHT.h> #include "FS.h" /* //display ------------------------------------------------------------------- #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Ad...
Update esp.ino
Update esp.ino Added photoresistor to the device. Tried to add a oled display to indicate the device serial number. But the power is no enough and some of the sensors stoped working, so for the moment there isn't one.
Arduino
mit
nikolatzotchev/PackageTrack,nikolatzotchev/PackageTrack,nikolatzotchev/PackageTrack,nikolatzotchev/PackageTrack,nikolatzotchev/PackageTrack,nikolatzotchev/PackageTrack
ca010bf342df14f56b3759c590c97beaeea95ac5
resilient_network/resilient_network.ino
resilient_network/resilient_network.ino
// resilient network #include <SoftwareSerial.h> #include "Arduino.h" #include "timers.h" #define leds1pin 11 #define leds2pin 3 #define button1pin 2 #define button2pin 4 #define SERIAL_DEBUG true #define DROPPING_CONNECTOR 254 #define ALERT 255 #define NUM_CONN 3 SoftwareSerial* bus[NUM_CONN]; int RX[NUM_CONN] =...
// resilient network #include <SoftwareSerial.h> #include "Arduino.h" #include "timers.h" #define leds1pin 11 #define leds2pin 3 #define button1pin 2 #define button2pin 4 #define SERIAL_DEBUG true #define DROPPING_CONNECTOR 254 #define ALERT 255 #define NUM_CONN 3 SoftwareSerial* bus[NUM_CONN]; int RX[NUM_CONN] =...
Add initial distance to source
Add initial distance to source
Arduino
mit
knopjesmuseum/resilient-network,knopjesmuseum/resilient-network
4d21cb8a20a18e9f58d8c850e1d3160cc646e877
HBridgePWM/Sabertooth/Sabertooth.ino
HBridgePWM/Sabertooth/Sabertooth.ino
// Copyright (c) 2013 Nautilabs. All rights reserved. // http://code.google.com/p/robokite/source/checkout // This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html // See licen...
// Copyright (c) 2013 Nautilabs. All rights reserved. // http://code.google.com/p/robokite/source/checkout // This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html // See licen...
Change timing not have blocking write Use NMEA message with checksum
Change timing not have blocking write Use NMEA message with checksum
Arduino
mit
baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite
8a3d87c80e146eaa81297aeb252887163ddc5f1f
software/firmware/animTest/animTest.ino
software/firmware/animTest/animTest.ino
#include <Wire.h> #include <Adafruit_PWMServoDriver.h> #include <SimpleBezier.h> #include <ServoAnimatorI2C.h> #include <EEPROM.h> #include <QuadruloopEEPROM.h> #include <CommandQueue.h> #include "Config.h" #include "Animations.h" ServoAnimatorI2C anim(NUM_JOINTS); CommandQueue cmdQ(COMMAND_QUEUE_LENGTH); uint8_t mod...
#include <Wire.h> #include <Adafruit_PWMServoDriver.h> #include <SimpleBezier.h> #include <ServoAnimatorI2C.h> #include <EEPROM.h> #include <QuadruloopEEPROM.h> #include <CommandQueue.h> #include "Config.h" #include "Animations.h" ServoAnimatorI2C anim(NUM_JOINTS); CommandQueue cmdQ(COMMAND_QUEUE_LENGTH); uint8_t mod...
switch to interactive animation with no params to POS
switch to interactive animation with no params to POS useful for testing
Arduino
mit
snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop,snhack/Quadruloop
b596210b7333bd91b9bb5327efe7cc36775bb2a4
DroidMain/DroidMain.ino
DroidMain/DroidMain.ino
// IOT RalliDroid // Copyright Jukka Raivio and Jussi Salonen 2016 // MIT License // // Example code is based on Arduino Mega2560 // /* Temperature & Humidity sensor DHT11 lib & setup * Adafruit version, https://github.com/adafruit/DHT-sensor-library */ #include "DHT.h" #define DHTPIN 2 // 2 digital pi...
// IOT RalliDroid // Copyright Jukka Raivio and Jussi Salonen 2016 // MIT License // // Example code is based on Arduino Mega2560 // // Debugging mode, results is serial monitor (true = on, false = off) boolean debugging = true; /* Temperature & Humidity sensor DHT11 lib & setup * Adafruit version, https://github...
Update DroidMain.ino
Update DroidMain.ino Debugging flag created
Arduino
mit
TampereTC/IOT-Rally-2016-MQTT,TampereTC/IOT-Rally-2016-MQTT
fbdb0edcc4befe4a7417c9bef3620d50f35eb13c
arduino/walt/walt.ino
arduino/walt/walt.ino
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
Switch from digital to analog read for screen photodiode
Switch from digital to analog read for screen photodiode With the amplified photodiode for screen. The amplification was selected to never reach saturation but this also means values below digital 1 for even the brightest screens. Switched to watching the photodiode reading via analogRead. We also need to add a way t...
Arduino
apache-2.0
google/walt,google/walt,google/walt,google/walt
d25c5c51cf3597565f132dc2375fae8c9db51f47
examples/MasterCaution/MasterCaution.ino
examples/MasterCaution/MasterCaution.ino
/* use '#define DCSBIOS_DEFAULT_SERIAL' instead if your Arduino board * does not feature an ATMega328 or ATMega2650 controller. */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" DcsBios::Switch2Pos lampTestBtn("LAMP_TEST_BTN", 10); DcsBios::LED nmspIlsLed(0x1112, 0x0020, 13); void setup() { DcsBios::setup(); } ...
/* use '#define DCSBIOS_DEFAULT_SERIAL' instead if your Arduino board * does not feature an ATMega328 or ATMega2650 controller. */ #define DCSBIOS_IRQ_SERIAL #include "DcsBios.h" /* Declare a Master Caution Reset button on pin 10 */ DcsBios::Switch2Pos masterCautionBtn("UFC_MASTER_CAUTION", 10); /* Make the LED con...
fix MasterCaution sketch
fix MasterCaution sketch
Arduino
mit
dcs-bios/dcs-bios-arduino-library
6f175f0be8827a7422b77f3721f25f653f070d5f
examples/Advanced/Serial/Serial.ino
examples/Advanced/Serial/Serial.ino
/* ******************************************************************************* * Copyright (c) 2021 by M5Stack * Equipped with M5Core sample source code * 配套 M5Core 示例源代码 * Visit the website for more information:https://docs.m5stack.com/en/core/gray * 获取更多资料请访问:https://doc...
#include <M5Stack.h> void setup() { M5.begin(); M5.Power.begin(); Serial.begin(115200); // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert) Serial2.begin(115200, SERIAL_8N1, 16, 17); pinMode(5, OUTPUT); digitalWrite(5, 1); } void loop() { if(Serial.availab...
add some Ex&explain
add some Ex&explain
Arduino
mit
m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack
2f0bb869a2f2b54db45b4d4a4e0afbf17bc58121
firmware/examples/SimpleExample.ino
firmware/examples/SimpleExample.ino
/* DailyTimer.h Library BulldogLowell@gmail.com April, 2016 ** Library provides tools to set daily timers for control of devices such as lamps, appliances, etc. Developed primarilary for houshold presence simulation. ** Allows for setting ON and OFF times, days of the week (i.e. weekends, weekdays, Fridays) and the use...
/* DailyTimer.h Library BulldogLowell@gmail.com April, 2016 ** Library provides tools to set daily timers for control of devices such as lamps, appliances, etc. Developed primarilary for houshold presence simulation. ** Allows for setting ON and OFF times, days of the week (i.e. weekends, weekdays, Fridays) and the use...
Update SimpleExample.ino
Update SimpleExample.ino
Arduino
mit
BulldogLowell/DailyTimerSpark
185f148e96de67600a98d70b3943078a0fcf6408
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 sine wave and ease in-out animations
stairs: add sine wave and ease in-out animations
Arduino
mit
ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight
bb57020cf793f69e28aee9375847fb95417d0328
Sniff_Arduino_Terminal/Sniff_to_arduino_serial/Sniff_to_arduino_serial.ino
Sniff_Arduino_Terminal/Sniff_to_arduino_serial/Sniff_to_arduino_serial.ino
#include <SPI.h> #include "mcp_can.h" MCP_CAN CAN(9); void setup(){ Serial.begin(115200); START_INIT: if(CAN_OK != CAN.begin(CAN_500KBPS)){ Serial.println("Failed to initialize CAN"); Serial.println("Retrying.."); delay(100); goto START_INIT; } Serial.println("Starti...
#include <SPI.h> #include "mcp_can.h" MCP_CAN CAN(9); void setup(){ Serial.begin(115200); START_INIT: if(CAN_OK != CAN.begin(CAN_500KBPS)){ delay(100); goto START_INIT; } //Set filter masks CAN.init_Mask(0, 0, 0xfff); CAN.init_Mask(1, 0, 0xfff); //Set filters // Loo...
Add timestamp of time since sketch start.
Add timestamp of time since sketch start.
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
243dd0aa245279dfc1aa8803930defb7825723e6
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...
Move display logic into Screen
Move display logic into Screen
Arduino
mit
adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros
32559feeb9e6c4544d68c9b4f67b293778901835
examples/fingerprint/fingerprint.ino
examples/fingerprint/fingerprint.ino
/*************************************************** This is an example sketch for our optical Fingerprint sensor Designed specifically to work with the Adafruit BMP085 Breakout ----> http://www.adafruit.com/products/751 These displays use TTL Serial to communicate, 2 pins are required to interface Ada...
/*************************************************** This is an example sketch for our optical Fingerprint sensor Designed specifically to work with the Adafruit BMP085 Breakout ----> http://www.adafruit.com/products/751 These displays use TTL Serial to communicate, 2 pins are required to interface Ada...
Add delay to loop
Add delay to loop Report on forums that running the loop without a delay causes sensor to malfunction. http://forums.adafruit.com/viewtopic.php?f=19&t=62300&p=315863#p315548
Arduino
bsd-3-clause
ekapujiw2002/Adafruit-Fingerprint-Sensor-Library,urandu/Adafruit-Fingerprint-Sensor-Library
1a927343eb9785621cf2c8b0f2648de0a3dcb633
examples/gpioWrite/gpioWrite.ino
examples/gpioWrite/gpioWrite.ino
// demo: Use RX0BF and RX1BF as digital outputs // adlerweb, 2017-06-24 #include <SPI.h> #include "mcp_can.h" /*SAMD core*/ #ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE #define SERIAL SerialUSB #else #define SERIAL Serial #endif #define SPI_CS_PIN 10 MCP_CAN CAN(SPI_CS_PIN); // Set CS pin void setup() { SERI...
// demo: Use RX0BF and RX1BF as digital outputs // adlerweb, 2017-06-24 #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_2518FD #define SPI_CS_PIN BCM8 #ifdef CAN_2...
Complete canbus gpio write example
Complete canbus gpio write example
Arduino
mit
Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield
84bed40a4a9a48a94ccdcaf71e6b0170d207cb40
dragino/dragino_lcd20x4.ino
dragino/dragino_lcd20x4.ino
#include <Process.h> #include "MQTTclient.h" #include "DHT.h" #include <OneWire.h> //Se importan las librerías #include <DallasTemperature.h> #include <LiquidCrystal.h> #define ONE_WIRE_BUS_PIN A1 float tempC2 = 0; float tempC3 = 0; OneWire oneWire(ONE_WIRE_BUS_PIN); DallasTemperature sensors(&oneWire); DeviceAddre...
#Este sketch adquiere datos de temperatura y humedad desde un sensor DHT22 o DHT11 por el pin A0 y datos de #temperatura desde un sensor DS18B20 conectado al pin A1 de un Dragino V2 MS14-S con M32 IoT Module #estos datos son publicados a un broker MQTT al topico test/temp #el display LCD 20*4 Characters - White back ut...
Update dragino_lcd20x4.ino
Update dragino_lcd20x4.ino
Arduino
mit
pumanzor/iot-redlibre,pumanzor/iot-redlibre
f6a2d798ae2ff6e8394e9a8136b00b08e7114553
src/squares/squares.ino
src/squares/squares.ino
#include "FastLED.h" #define NUM_LEDS 64 #define PIN 6 #define FRAME_PERIOD_MILLIS 200 CRGB leds[NUM_LEDS]; int hue = 0; int sat = 255; int val = 60; // pixel indices of various sized squares int p1[] = { 4, 27, 28, 35, 36 }; int p2[] = { 12, 18, 19, 20, 21, 26, 29, 34, 37, 42, 43, 44, 45 }; int p3[] = { 20, 9, 10, ...
#include "FastLED.h" #define NUM_LEDS 64 #define PIN 6 #define FRAME_PERIOD_MILLIS 400 CRGB leds[NUM_LEDS]; int hue = 0; int sat = 255; int val = 60; int vv = 90; // pixel indices of various sized squares int p1[] = { 4, 27, 28, 35, 36 }; int p2[] = { 12, 18, 19, 20, 21, 26, 29, 34, 37, 42, 43, 44, 45 }; int p3[] = ...
Create a class for describing and drawing the animated squares.
Refactor: Create a class for describing and drawing the animated squares.
Arduino
mit
fweiss/badge,fweiss/badge
34da1015395b85590d79120daec08dc821886d33
ArduinoSensorBoard/ArduinoSensorBoard.ino
ArduinoSensorBoard/ArduinoSensorBoard.ino
#include <SPI.h> #include "nRF24L01.h" #include "RF24.h" RF24 radio(9,10); const uint64_t pipes[2] = { 0xF0F0F0F001LL, 0xF0F0F0F002LL }; const byte shortAddr = 0x02; int led = 13; byte lampStatus = 0; byte switchStatus = 0; void setup(void) { Serial.begin(57600); radio.begin(); radio.setAutoAck(false); radi...
#include <SPI.h> #include "nRF24L01.h" #include "RF24.h" //#include "printf.h" RF24 radio(9,10); const uint64_t pipes[2] = { 0xF0F0F0F001LL, 0xF0F0F0F002LL }; const byte shortAddr = 0x02; int led = 13; byte lampStatus = 0; byte switchStatus = 0; void setup(void) { Serial.begin(57600); radio.begin(); radio.set...
Move to decimal
Move to decimal
Arduino
apache-2.0
Ertinfagor/RCHome,Ertinfagor/RCHome,Ertinfagor/RCHome
f6d019f873a43303fd2deb8be82ed5185d54fb8c
MID/MID.ino
MID/MID.ino
/* --------------------------------------------------- Arduino MID Author: Angel Zaprianov <me@fire1.eu> Start Date: 09.06.2016 For the full copyright and license information, please view the LICENSE file that was distributed with this source code. ---------------------------------------------...
/* --------------------------------------------------- Arduino MID Author: Angel Zaprianov <me@fire1.eu> Start Date: 09.06.2016 For the full copyright and license information, please view the LICENSE file that was distributed with this source code. ---------------------------------------------...
Debug improved
Debug improved
Arduino
mit
fire1/ArduinoMid,fire1/ArduinoMid
1d5057981dda11fbeb2123d4eeac4f266aecbb6a
A2DP_Test/A2DP_Test.ino
A2DP_Test/A2DP_Test.ino
#include <SPI.h> #include <SD.h> #include <Adafruit_VS1053.h> extern "C" { #include "nvs.h" #include "nvs_flash.h" #include "esp_log.h" #include "bt.h" #include "bt_app_core.h" #include "bt_app_av.h" #include "esp_bt_main.h" #include "esp_bt_device.h" #include "esp_gap_bt_api.h" #include "esp_a2dp_api.h" #include "es...
#include <SPI.h> #include <SD.h> #include <Adafruit_VS1053.h> extern "C" { #include "nvs.h" #include "nvs_flash.h" #include "esp_log.h" #include "bt.h" #include "bt_app_core.h" #include "bt_app_av.h" #include "esp_bt_main.h" #include "esp_bt_device.h" #include "esp_gap_bt_api.h" #include "esp_a2dp_api.h" #include "es...
Enable registers 0xC017&0xC019
Enable registers 0xC017&0xC019
Arduino
mit
dogieBert/techfest17,dogieBert/techfest17
782205ba6adec90e66207753ec9df9c57eae3074
TinkerTie.ino
TinkerTie.ino
/* * File name: TinkerTie.ino * Author: Tyler Makaro * How to use: * modify the animations.h file to make the desired animations. * License: * May be modified, and reused freely. Attribution is requested. I'd also love to hear about your animations on twitter @tmakaro */ #include <Adafruit_NeoPixel.h> #includ...
/* * File name: TinkerTie.ino * Author: Tyler Makaro * How to use: * modify the animations.h file to make the desired animations. * License: * May be modified, and reused freely. Attribution is requested. I'd also love to hear about your animations on twitter @tmakaro */ #include <Adafruit_NeoPixel.h>...
Update TinkerTie.ino
Update TinkerTie.ino Removed the dual functionally of the capacitive sensor due to the long press being highly unreliable. Added code for a second button that will be installed later.
Arduino
mit
t-makaro/TinkerTie
a04629b263107d2e2ae518020e5444a4326f91b6
Pathfinding_arduino.ino
Pathfinding_arduino.ino
//look at pathfinding in the repo for comments and explanation for a* algo. Here is where i explain obstacle tracking #include <StandardCplusplus.h> #include <system_configuration.h> #include <unwind-cxx.h> #include <utility.h> #include <vector> //#include <Math.h> #include <iostream> using namespace std; ...
//look at pathfinding in the repo for comments and explanation for a* algo. Here is where i explain obstacle tracking #include <StandardCplusplus.h> #include <system_configuration.h> #include <unwind-cxx.h> #include <utility.h> #include <vector> //#include <Math.h> #include <iostream> using namespace std; ...
Update Pathfinding_arduino.ino
Update Pathfinding_arduino.ino added comments to explain live obstacle and path finding
Arduino
mit
Z3-Engineering/Navigation-and-Pathfinding-Codes
41c08cc6a9c673270597259884a0ce11d262a19b
cmdVsens/src/sketch.ino
cmdVsens/src/sketch.ino
/* cmdVsens sketch Waits for a request on the serialport. Then measures the voltage on measurePin 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 measurePin A0 #define activityL...
/* cmdVsens sketch Waits for a request on the serialport. Then measures the voltage on measurePin 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 measurePin A0 #define activityL...
remove shadow declare
remove shadow declare
Arduino
mit
Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino
71ceb0dab0600c1a116b72b17c38694a481fd54d
bsd/bsd.ino
bsd/bsd.ino
/** A small project at the request of my friedn and colleague @ffeldmann This is an arduino sketch that runs on the Arduino Yun. This project shows a webpage where people can press the "BullShit" button which in turns will trigger an alarm and light some pixels BSDetector is a microservice accessible as a ...
/** A small project at the request of my friedn and colleague @ffeldmann This is an arduino sketch that runs on the Arduino Yun. This project shows a webpage where people can press the "BullShit" button which in turns will trigger an alarm and light some pixels BSDetector is a microservice accessible as a ...
Fix issue with IP address string
Fix issue with IP address string
Arduino
mit
bgeorges/tinkering,bgeorges/tinkering,bgeorges/tinkering
fe04d3e357008d19686f67404815d1f0f263cccf
examples/UnitTest/UnitTest.ino
examples/UnitTest/UnitTest.ino
/* * This is not an example sketch, it is used to validate code changes * and determine maximum workable RPM/microsteps parameters for a given board. * * Usage: run with serial terminal open * * All driver tests are done with microstep 1. Increasing microstep halves max rpm with each level. * The maximum usab...
/* * This is not an example sketch, it is used to validate code changes * and determine maximum workable RPM/microsteps parameters for a given board. * * Usage: run with serial terminal open * * All driver tests are done with microstep 1. Increasing microstep halves max rpm with each level. * The maximum usab...
Fix compile warnings
Fix compile warnings
Arduino
mit
laurb9/StepperDriver
b1a2db788c6e3b1ef5463fdab215ee2f8164a6b1
src/Full_decoder.ino
src/Full_decoder.ino
/* If serial output is desired uncommment the #undef line. For production, i.e. without computer connected this line should be commented out. */ #define DEBUG_OUTPUT //#undef DEBUG_OUTPUT #ifdef DEBUG_OUTPUT #define USE_SERIAL #define DEBUG(x) Serial.print(x) #define DEBUGLN(x) Serial.println(x) #else #define DEBUG(x...
/* If serial output is desired uncommment the #undef line. For production, i.e. without computer connected this line should be commented out. */ #define DEBUG_OUTPUT //#undef DEBUG_OUTPUT #ifdef DEBUG_OUTPUT #define USE_SERIAL #define DEBUG(x) Serial.print(x) #define DEBUGLN(x) Serial.println(x) #else #define DEBUG(x...
Debug statements and a bit cleanup
Debug statements and a bit cleanup
Arduino
mit
dirkjankrijnders/universal_decoder,dirkjankrijnders/universal_decoder
c9747b61bf9f531afd01dba1a88812544effba4d
src/Gortobot_v3c.ino
src/Gortobot_v3c.ino
/* Gortobot v3c */ // TODO: battery classes, abstract, fake // TODO: gps classes, abstract, fake // TODO: figure out how to fail from one batt to the next // TODO: integrate IridiumSBD 2.0 and test // TODO: batteries need to wait till 3.4 to comer back on // Program Modes (config) #include "configs/config.h" // Incl...
/* Gortobot v3c */ // TODO: battery classes, abstract, fake // TODO: gps classes, abstract, fake // TODO: figure out how to fail from one batt to the next // TODO: integrate IridiumSBD 2.0 and test // Program Modes (config) #include "configs/config.h" // Includes #include <EEPROM.h> // for saving the runNum after ea...
Remove TODO comment
Remove TODO comment
Arduino
mit
cgorton1313/gortobot,cgorton1313/gortobot
84ffb9628a75bb18e329f771f28c66ab4c5e1b3c
NerfKeyboardRemapper.ino
NerfKeyboardRemapper.ino
#include <hidboot.h> #include <usbhub.h> #include <LiquidCrystal.h> #define FORCE_SHIFT 0x100 #define FORCE_ALTGR 0x200 #define PURIFY 0xFF #define LETTERS_START 0x04 #define LETTERS_END 0x1D #define LETTERS_CNT 26 #define NUMBERS_START 0x1E #define NUMBERS_END 0x27 #define NUMBERS_CNT 10 #define SPE_START 0x2D #defin...
#include <hidboot.h> #include <usbhub.h> #include <LiquidCrystal.h> #define FORCE_SHIFT 0x100 #define FORCE_ALTGR 0x200 #define PURIFY 0xFF #define LETTERS_START 0x04 #define LETTERS_END 0x1D #define LETTERS_CNT 26 #define NUMBERS_START 0x1E #define NUMBERS_END 0x27 #define NUMBERS_CNT 10 #define SPE_START 0x2D #defin...
Fix for multiple key stroke
Fix for multiple key stroke
Arduino
mit
NoobLad/NerfKeyboardRemapper
13330fc5a894d03b93e3027eef8ef72d4e5cb194
barf_esp8266.ino
barf_esp8266.ino
/* This sketch implements a user-friendly though slightly ridiculous serial-wifi bridge for an ESP8266 chip. Upload this sketch to an ESP8266, connect the RX and TX pins to (software or hardware) pins of an arduino and use the barf library on arduino for super-easy bidirectional sending of statuses and commands ove...
/* This sketch implements a user-friendly though slightly ridiculous serial-wifi bridge for an ESP8266 chip. Upload this sketch to an ESP8266, connect the RX and TX pins to (software or hardware) pins of an arduino and use the barf library on arduino for super-easy bidirectional sending of statuses and commands ove...
Make sure to never send \r\n as a linebreak
Make sure to never send \r\n as a linebreak
Arduino
mit
kirberich/barf_esp8266,kirberich/barf_esp8266
98594677d3ed5997e16de1bf64cdab0a7ac97773
ardesp/joinme/joinme.ino
ardesp/joinme/joinme.ino
/* * joinme.ino -- * a port of the Lua Joinme wifi config utility to Arduino ESP IDE */ /* #include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> // TODO // wifi config form // sensor data report, and actuator set form // fix the DNS server, http://www.esp8266.com/viewtopic.php?p=21169 cons...
/* * joinme.ino -- * a port of the Lua Joinme wifi config utility to Arduino ESP IDE */ /* #include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> // TODO // wifi config form // sensor data report, and actuator set form // fix the DNS server, http://www.esp8266.com/viewtopic.php?p=21169 cons...
clear implemented
clear implemented
Arduino
agpl-3.0
hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi,hamishcunningham/fishy-wifi
658df600fdc106bd64cbc5ba62c19bf52de01486
NRF52832/Unicorn_Hat_HD/Wrench-Mask-BLE_Unicorn-Hat-HD.ino
NRF52832/Unicorn_Hat_HD/Wrench-Mask-BLE_Unicorn-Hat-HD.ino
/* Wrench Mask - BLE Version (NRF52832) * * Hardware Used: * Adafruit Feather NRF52 * Pimoroni Unicorn Hat HD x2 * * by Brandon C. Allen * * BLE Functions based on the bleuart example from AdaFruit: * https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/examples...
/* Wrench Mask - BLE Version (NRF52832) * * Hardware Used: * Adafruit Feather NRF52 * Pimoroni Unicorn Hat HD x2 * * by Brandon C. Allen * * BLE Functions based on the bleuart example from AdaFruit: * https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/examples...
Update Wrench-Mask-BLE_Unicorn-Hat-HD.ino
Update Wrench-Mask-BLE_Unicorn-Hat-HD.ino
Arduino
mit
Arudinne/RGB-Wrench-Mask
284adf89eb10ce6468f208d52fbbd86aa45a517c
examples/drawLines/drawLines.ino
examples/drawLines/drawLines.ino
// Draw Lines - Demonstrate drawRectangle and fillRectangle // 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 vers...
// Draw Lines - Demonstrate drawRectangle and fillRectangle // 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 vers...
Update drawLines.ino
Update drawLines.ino
Arduino
mit
jediguy13/TFT_Touch_Shield_V1,jediguy13/TFT_Touch_Shield_V1
46091f71fc3e99aa8f80c77999a2b0343f1acb8e
particle/evcharging.ino
particle/evcharging.ino
// ---------------------------------------------------------- // Firmware for Particle Electron connected to EV charger // ---------------------------------------------------------- void setup() { // Declare a Particle.function to trigger new charging session request Particle.function("new-session", newSession...
// ---------------------------------------------------------- // Firmware for Particle Electron connected to EV charger // ---------------------------------------------------------- void setup() { Serial.begin(9600); // open serial over USB // Declare a Particle.function to trigger new client instance reque...
update particle firmware code
update particle firmware code
Arduino
mit
anamklone/ENGR1050,anamklone/ENGR1050,anamklone/ENGR1050
9d1bd6e76cb424ab4b12695925b21348b292bf74
things/examples/arduino/WaterSensor/WaterSensor.ino
things/examples/arduino/WaterSensor/WaterSensor.ino
#include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <SPI.h> int requestID = 1; unsigned long lastCallbackTime = 0;// the last time the data was written // The MAC address of your Ethernet board (or Ethern...
#include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> #include <util.h> #include <SPI.h> int requestID = 1; unsigned long lastCallbackTime = 0;// the last time the data was written // The MAC address of your Ethernet board (or Ethern...
change device type of water sensor
change device type of water sensor
Arduino
mit
mwittig/steward,TheThingSystem/steward,mwittig/steward,mwittig/steward,TheThingSystem/steward,mwittig/steward,TheThingSystem/steward,estbeetoo/steward,TheThingSystem/steward,TheThingSystem/steward,mwittig/steward,TheThingSystem/steward,estbeetoo/steward,TheThingSystem/steward,mwittig/steward,mwittig/steward,estbeetoo/s...
645b46a378f85d7061d339f002c7e715f8282020
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.31 2016 Mar. 5 * - proc_get() takes 2000 msec wait to show the sender on LCD before the message * v0.30 2016 Mar. 4 * - return [SenderName] in proc_get() * + update proc_get(...
/* * This program is used for a message station shown at * https://hackaday.io/project/9526-bring-your-own-pizero-byop */ /* * v0.31 2016 Mar. 5 * - put wait after AQM0802_Clear() so that people can sense the refresh of the message * + add delay(kWait_beforeShowLcdMessage_msec); * + add [kWait_beforeSh...
put wait (300msec) after AQM0802_Clear() so that people can sense the refresh of the message
put wait (300msec) after AQM0802_Clear() so that people can sense the refresh of the message
Arduino
mit
yasokada/esp8266_160220_BYOP
45acaaae48fcce48ef7dfbe5e0ef54d7676515f8
ESP8266-code/WiFiconfig.ino
ESP8266-code/WiFiconfig.ino
/* * When config button is pressed start accesspoint and interact with user to provide the * required access point credentials and other parameters * Connect to the required access point and stop the server * * In normal mode, collect data and send to the data store * * * configuration needs to set the conf...
/* * on bootup attempt to read configuration from SPIFFS and connect * * When config button is pressed start accesspoint and interact with user to provide the * required access point credentials and other parameters * save configuration to SPIFFS * Connect to the required access point and stop the server * ...
Store configuration in SPIFFS
Store configuration in SPIFFS
Arduino
mit
KitWallace/CitizenSense
aef6d2195f9ca3b91cfd8000dc761130edda2ca6
examples/Widgets/Table/Table_Simple/Table_Simple.ino
examples/Widgets/Table/Table_Simple/Table_Simple.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...
Format examples
Format examples
Arduino
mit
blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library
5546bffbc250a47c016ea6daafd1552d2c204d0c
KomaRoof.ino
KomaRoof.ino
/* * Copyright (c) 2016 Jari Saukkonen * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publ...
/* * Copyright (c) 2016 Jari Saukkonen * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publ...
Fix pin numbering, remove unused pin kludge and temperature formatting in finnish weather
Fix pin numbering, remove unused pin kludge and temperature formatting in finnish weather
Arduino
mit
vehnae/komaroof,vehnae/komaroof
88a88e38c97649b705a7a7507dad5b0c2af40a4c
week4-iot_servos/weather_servos_three.ino
week4-iot_servos/weather_servos_three.ino
/************** Weather Servos 1.0 Nadine Lessio June 2017 Feather pulls and parses JSON data from Weather Underground. Servos respond to wind speed. Like a weather vein. https://github.com/bblanchon/ArduinoJson https://gist.github.com/bbx10/149bba466b1e2cd887bf ******************/ #include <ESP8266WiFi.h> #includ...
/************** Weather Servos 1.0 Nadine Lessio June 2017 Feather pulls and parses JSON data from Weather Underground. Servos respond to wind speed. Like a weather vein. https://github.com/bblanchon/ArduinoJson https://gist.github.com/bbx10/149bba466b1e2cd887bf https://github.com/brendanmatkin/BlindSpot/tree/maste...
add example credit
add example credit
Arduino
mit
sharkwheels/Independet_study_2017,sharkwheels/Independet_study_2017,sharkwheels/Independet_study_2017
c697c095374c03b244664410383c972c31007bf0
reference/leow/Final_arduino_2/Final_arduino_2.ino
reference/leow/Final_arduino_2/Final_arduino_2.ino
//for collecting GPS data and transfering longtitude and lattitude to thingspeak //arduino 2 #include <TinyGPS++.h> #include <SoftwareSerial.h> #include <ThingSpeak.h> #define USE_WIFI101_SHIELD #include <SPI.h> #include <WiFi.h> char ssid[] = "melvin"; // your network SSID (name) char pass[] = "29052012"; ...
//for collecting GPS data and transfering longtitude and lattitude to thingspeak //arduino 2 #include <TinyGPS++.h> #include <SoftwareSerial.h> #include <ThingSpeak.h> #define USE_WIFI101_SHIELD #include <SPI.h> #include <WiFi.h> char ssid[] = "*******"; // your network SSID (name) char pass[] = "*******"; // yo...
remove api keys
remove api keys
Arduino
mit
superoo7/solar_boat,superoo7/solar_boat
9286fcf7d4a09ed8eaad9503e43622666a22f588
code/magnetometer.ino
code/magnetometer.ino
#define HMC5883_ADDRESS 0x1E #define MODE_ADDRESS 0x02 #define DEC_ANGLE 0.5 //in degrees #define NUM_AXIS 3 #define XAXIS 0 #define YAXIS 1 #define ZAXIS 2 #define M1// to be filled after calibration #define M2 #define M3 #define M4 #define M5 #define M6 #define M7 #define M8 #define M9 #define B1 #define B2 #defin...
#define HMC5883_ADDRESS 0x1E #define MODE_ADDRESS 0x02 #define DEC_ANGLE 0.5 //in degrees #define NUM_AXIS 3 #define XAXIS 0 #define YAXIS 1 #define ZAXIS 2 #define M1// to be filled after calibration #define M2 #define M3 #define M4 #define M5 #define M6 #define M7 #define M8 #define M9 #define B1 #define B2 #defin...
Update magnetometer.ino
Update magnetometer.ino
Arduino
unlicense
IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK
a4422574a97284df63d713d373d1a474fa51220f
Arduino/GroundUnit/GroundUnit.ino
Arduino/GroundUnit/GroundUnit.ino
// Copyright (c) 2013 Nautilabs // https://github.com/baptistelabat/robokite // This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) // for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html // See license.txt in the Sabertooth ard...
// Copyright (c) 2013 Nautilabs // https://github.com/baptistelabat/robokite // This file used SoftwareSerial example (Copyright (c) 2012 Dimension Engineering LLC) // for Sabertooth http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/index.html // See license.txt in the Sabertooth ard...
Add gain tuning ability (back from old complete/src/src.ino)
Add gain tuning ability (back from old complete/src/src.ino)
Arduino
mit
baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite
7f20c2a7f495be1abca6c5ced5b45395684a7e49
code/i2c_datatest.ino
code/i2c_datatest.ino
#include <Wire.h> #define SENSOR_ADDR 0x68; void setup(){ Wire.begin(); Wire.beginTransmission(SENSOR_ADDR); Wire.write(0x6b); // POWER register Wire.write(0x00); // dont sleep Wire.endTransmission(true); Serial.begin(9600); } void loop(){ // read DATA here delay(30); }
#include <Wire.h> #define SENSOR_ADDR 0x68; void setup(){ Wire.begin(); Wire.beginTransmission(SENSOR_ADDR); Wire.write(0x6b); // POWER register Wire.write(0x00); // dont sleep Wire.endTransmission(true); Serial.begin(9600); } void loop(){ Wire.beginTransmission(MPU_addr); Wire.write(0x3B...
Update i2c_datatest.ino
Update i2c_datatest.ino
Arduino
apache-2.0
volodink/ishs-course
bcd558f5015e8fe93a310462af67f91b226a14b8
printer.ino
printer.ino
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <EEPROM.h> #include <SoftwareSerial.h> #include <Bounce.h> // ------- Settings for YOU to change if you want --------------------- byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address // The printerType controls the format of th...
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <EEPROM.h> #include <SoftwareSerial.h> #include <Bounce.h> // ------- Settings for YOU to change if you want --------------------- byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address // The printerType controls the format of th...
Reduce sketch size from 31138 to 29210 bytes.
Reduce sketch size from 31138 to 29210 bytes. We don't need the duration, since it can be calculated manually if that's important. Since the `debug` macro was always called with a string, making it a function reduces the number of distinct calls to `millis()` and the other functions within it.
Arduino
mit
exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer
727c78ffeb9d9cb08003a1449c1318a975f24c09
printer.ino
printer.ino
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <EEPROM.h> #include <SoftwareSerial.h> #include <Bounce.h> // -- Settings for YOU to change if you want byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address // The printerType controls the format of the data sent from the server...
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <EEPROM.h> #include <SoftwareSerial.h> #include <Bounce.h> // -- Settings for YOU to change if you want byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address // The printerType controls the format of the data sent from the server...
Rename error function for consistency.
Rename error function for consistency.
Arduino
mit
exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer
73a1e288c0c3ae63a1cd367919b2530fbec7b97a
mutually-assured-destruction.ino
mutually-assured-destruction.ino
// Arduino Libraries #include <Arduino.h> #include <EEPROM.h> #include <Wire.h> #include <Adafruit_MMA8451.h> #include <Adafruit_Sensor.h> #include <CmdMessenger.h> /** * Project Files */ #include "build.h" // Project settings such as pins or build flags #include "Accelerometer.h" #include "Relay.h" #include "fire-...
// Arduino Libraries #include <Arduino.h> #include <EEPROM.h> #include <Wire.h> #include <Adafruit_MMA8451.h> #include <Adafruit_Sensor.h> #include <CmdMessenger.h> /** * Project Files */ #include "build.h" // Project settings such as pins or build flags #include "Accelerometer.h" #include "Relay.h" #include "fire-...
Add booleans for which inputs are enabled
Add booleans for which inputs are enabled
Arduino
mit
objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction,objectiveSee/mutually-assured-destruction
64dc6a49dd178bfc6320c2c78a5559b01d716c43
WeatherSensor_rev2/WeatherSensor_rev2.ino
WeatherSensor_rev2/WeatherSensor_rev2.ino
#include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #include <avr/io.h> #include <avr/interrupt.h> #include <Wire.h> #include "Adafruit_Si7021.h" #include "SparkFunMPL3115A2.h" //Pressure sensor - Search "SparkFun MPL3115" and install from Library Manager #define WDTCR |= _BV(WDIE) Adafruit_Si7021 sen...
#include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #include <avr/io.h> #include <avr/interrupt.h> #include <Wire.h> #include "Adafruit_Si7021.h" #include "SparkFunMPL3115A2.h" //Pressure sensor - Search "SparkFun MPL3115" and install from Library Manager #define WDTCR |= _BV(WDIE) Adafruit_Si7021 sen...
disable unused code
disable unused code Signed-off-by: Robert Nelson <d6c41255011d14bfa93d8562b946ca186cfa0c7b@gmail.com>
Arduino
mit
eewiki/ws_bm_rtc,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation
9479a33389ee2c8dc8733acb26ad0566ee959389
arduino/balcony_garden/balcony_garden.ino
arduino/balcony_garden/balcony_garden.ino
// Author: Brian Scully // Copyright (c) 2016 Agponics #include <Arduino.h> #include "cmd_protocol.h" #include "base_device.h" #include "analog_float_switch.h" #include "relay_switch.h" #include "dht22_sensor.h" #include "ds18b20_sensor.h" #define DELAY 500 #define START_PIN_FLOAT_SWTCH 0 // pin 0: analog float sw...
// Author: Brian Scully // Copyright (c) 2016 Agponics #include <Arduino.h> #include "cmd_protocol.h" #include "base_device.h" #include "analog_float_switch.h" #include "relay_switch.h" #include "dht22_sensor.h" // DHT-22 temp/humidity sensor #include "ds18b20_sensor.h" // one-wire temperature probe #include "hcsr04...
Add HC-SR04 ultrasonic sensor to sketch
Add HC-SR04 ultrasonic sensor to sketch
Arduino
artistic-2.0
Agponics/balcony_garden_pi