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
41de1f77fdb7c0cfc72ef63dc52d74e4a71ff80b
AI-Thinker_RGBW_Bulb.ino
AI-Thinker_RGBW_Bulb.ino
/* Alternative firmware for AI Thinker RGBW bulbs, based on ESP8266. See the README at https://github.com/mertenats/AI-Thinker_RGBW_Bulb for more information. Licensed under the MIT license. */ #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino #include <PubSubClient.h> // https://gi...
/* Alternative firmware for AI Thinker RGBW bulbs, based on ESP8266. See the README at https://github.com/mertenats/AI-Thinker_RGBW_Bulb for more information. Licensed under the MIT license. */ #include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino #include <PubSubClient.h> // https://gi...
add OTA support
add OTA support Not tested
Arduino
mit
mertenats/AI-Thinker_RGBW_Bulb,mertenats/AI-Thinker_RGBW_Bulb
dc54597822eb713161227cc4dbd23694219214e4
0_Test_Device/Python/tclab2/tclab2.ino
0_Test_Device/Python/tclab2/tclab2.ino
/* TCLab Temperature Control Lab Firmware Jeffrey Kantor February, 2019 This firmware provides a high level interface to the Temperature Control Lab. The firmware scans the serial port for commands. Commands are case-insensitive. Any unrecognized command results in sleep model. Each command returns ...
/* TCLab Temperature Control Lab Firmware Jeffrey Kantor, Bill Tubbs, John Hedengren May 2019 This firmware provides a high level interface to the Temperature Control Lab. The firmware scans the serial port for commands. Commands are case-insensitive. Any unrecognized command results in sleep model....
Update tclab2.ino
Update tclab2.ino
Arduino
apache-2.0
APMonitor/arduino,APMonitor/arduino,APMonitor/arduino
2c3427250a4f457c9a7f7a46bd9f6b45cd816a93
sploder.ino
sploder.ino
/* SPLODER - a connected button for blowing stuff up. Or whatever else you want to do with it. Check the README.md for info on the Sploder circuit. Copyright (C) 2015 George White <stonehippo@gmail.com>. All rights reserved. See https://raw.githubusercontent.com/stonehippo/sploder/master/LICENSE.txt for license deta...
/* SPLODER - a connected button for blowing stuff up. Or whatever else you want to do with it. Check the README.md for info on the Sploder circuit. Copyright (C) 2015 George White <stonehippo@gmail.com>. All rights reserved. See https://raw.githubusercontent.com/stonehippo/sploder/master/LICENSE.txt for license deta...
send FSM status to BLE app on connection
send FSM status to BLE app on connection
Arduino
mit
stonehippo/sploder,stonehippo/sploder
4cd67bd007df42b48b3cb81e1938f9978b510eaa
gsm_tracker/gsm_tracker.ino
gsm_tracker/gsm_tracker.ino
#include <SoftwareSerial.h> #include <Adafruit_GPS.h> #include <Adafruit_FONA.h> #include "Location.h" #include "keys.h" #define FONA_RST A0 #define FONA_PS A1 #define FONA_KEY A2 #define FONA_RI 3 // <-- must be connected to external interrupt pin #define FONA_RX A4 #define FONA_TX A5 #define GPS_RX 4 #define G...
#include <SoftwareSerial.h> #include <Adafruit_GPS.h> #include <Adafruit_FONA.h> #include "Location.h" #include "keys.h" #define FONA_RST A0 #define FONA_PS A1 #define FONA_KEY A2 #define FONA_RI 3 // <-- must be connected to external interrupt pin #define FONA_RX A4 #define FONA_TX A5 #define GPS_RX 4 #define G...
Add battery voltage to the Status response.
Add battery voltage to the Status response.
Arduino
isc
lectroidmarc/gsm-tracker,lectroidmarc/gsm-tracker
90e0cc6091c75407d18cc0529c3d85ebb1522437
examples/JsonHttpClient/JsonHttpClient.ino
examples/JsonHttpClient/JsonHttpClient.ino
// Sample Arduino Json Web Client // Downloads and parse http://jsonplaceholder.typicode.com/users/1 // // Copyright Benoit Blanchon 2014-2016 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, please add a star! #include <ArduinoJson.h> #include <SPI.h> ...
// Sample Arduino Json Web Client // Downloads and parse http://jsonplaceholder.typicode.com/users/1 // // Copyright Benoit Blanchon 2014-2016 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, please add a star! #include <ArduinoJson.h> #include <SPI.h> ...
use HTTP 1.0 instead of 1.1 (issue #397, PR #399 by @Chris685)
JsonHttpClient: use HTTP 1.0 instead of 1.1 (issue #397, PR #399 by @Chris685) Downgrading to HTTP 1.0 to prevent HTTP Chunked Transfer Encoding.
Arduino
mit
bblanchon/ArduinoJson,janelia-arduino/ArduinoJson,janelia-arduino/ArduinoJson,peterpolidoro/ArduinoJson,peterpolidoro/ArduinoJson,bblanchon/ArduinoJson,peterpolidoro/ArduinoJson,peterpolidoro/ArduinoJson,bblanchon/ArduinoJson,janelia-arduino/ArduinoJson,janelia-arduino/ArduinoJson
1a32295d280064c093f5362062e911270f0c492c
lcd_temperature_display.ino
lcd_temperature_display.ino
// vim: ts=2 et /* * * LCD Temperature Display * * Assumes: * LM35 temperature device (analog pin 0) * 16x2 display connected to WickedDevices LCD shield * Pushbutton on digital pin 7 held high by pin 8 * Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively * * Ryan Tucker <rtuck...
// vim: ts=2 et /* * * LCD Temperature Display * * Assumes: * LM35 temperature device (analog pin 0) * 16x2 display connected to WickedDevices LCD shield * Pushbutton on digital pin 7 held high by pin 8 * Red/Green/Blue backlights on digital pins 6, 9, and 10 respectively * * Ryan Tucker <rtuck...
Use floating point division to compute temperatures
Use floating point division to compute temperatures stupid integers
Arduino
mit
rtucker/lcd_temperature_display
bb9328de7791a17dd0f2b6afaf1ec236cbcc7b85
little-switches/arduino/galoppo/galoppo.ino
little-switches/arduino/galoppo/galoppo.ino
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 #define zampaAS 8 #define zampaAD 6 #define zampaPS 7 #define zampaPD 5 #define piede A0 #define tamburo 2 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; int tempo = 0; void...
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 #define zampaAS 8 #define zampaAD 6 #define zampaPS 7 #define zampaPD 5 #define piede A0 #define tamburo 2 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; int tempo = 0; float...
fix code
fix code
Arduino
unlicense
paolocavagnolo/plastik-art_democracy
838b55b5173750f1734e241b348a9aa183c7b3a5
_arduino/ardu/estado.ino
_arduino/ardu/estado.ino
void StatusLED(){ if(bStatusLED){ digitalWrite(pinLED,HIGH); }else{ digitalWrite(pinLED,LOW); } bStatusLED = !bStatusLED; } void StopPause(){ sendData(); xyzp[0]=0; xyzp[1]=0; xyzp[2]=0; rx=0; ry=0; _saveAddX=0; _saveAddY=0; start=false; } void sendData(){ Serial.print(xyzp[0]); ...
void StatusLED(){ if(bStatusLED){ digitalWrite(pinLED,HIGH); }else{ digitalWrite(pinLED,LOW); } bStatusLED = !bStatusLED; } void StopPause(){ sendData(); xyzp[0]=0; xyzp[1]=0; xyzp[2]=0; rx=0; ry=0; _saveAddX=0; _saveAddY=0; start=false; } void sendData(){ Serial.print(xyzp[0]); S...
fix merger
fix merger
Arduino
mit
MaraniMatias/cnc-arduino-nodejs-electronjs,MaraniMatias/router-cnc-nodejs-arduino,MaraniMatias/cnc-arduino-nodejs-electronjs,MaraniMatias/router-cnc-nodejs-arduino,MaraniMatias/cnc-arduino-nodejs-electronjs
7b066d587f14159ba71181a05274115566f44d09
examples/04-FrequencyDomain/FrequencyShifter_FD/FrequencyShifter_FD.ino
examples/04-FrequencyDomain/FrequencyShifter_FD/FrequencyShifter_FD.ino
// FreqShifter_FD // // Demonstrate frequency shifting via frequency domain processin. // // Created: Chip Audette (OpenAudio) Aug 2019 // // Approach: This processing is performed in the frequency domain. // Frequencies can only be shifted by an integer number of bins, // so small frequency shifts are not possib...
// FreqShifter_FD // // Demonstrate frequency shifting via frequency domain processin. // // Created: Chip Audette (OpenAudio) Aug 2019 // // Approach: This processing is performed in the frequency domain. // Frequencies can only be shifted by an integer number of bins, // so small frequency shifts are not possib...
update FreqShifter_FD for revised class name
Examples: update FreqShifter_FD for revised class name
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
7900d67c60be8c4d70cd1828fc34d5c6d076f571
examples/Widgets/LED/LED.ino
examples/Widgets/LED/LED.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...
remove warning. new iOS released with fix.
remove warning. new iOS released with fix.
Arduino
mit
blynkkk/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,ivankravets/blynk-library
fe44bcf493226eb2ff51f6d3741afffc1094c669
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...
merge rainbow and rainbowcycle modes
stairs: merge rainbow and rainbowcycle modes
Arduino
mit
ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight
1b2a0fbcd1d7c876a04157ab61aeeba1bb73a757
serialtemp.ino
serialtemp.ino
// TmonN // Arduino Thermistor reader // Copyright (C) <2017> <Xander Jansen> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or...
// TmonN // Arduino Thermistor reader // Copyright (C) <2017> <Xander Jansen> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or...
Use median instead of average
Use median instead of average
Arduino
agpl-3.0
zahndy/ArduinoThermistorMonitor
e049c2abdb235242df8c817e0eda792f348ff762
skittle-color-sorter.ino
skittle-color-sorter.ino
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 #define PIN_TOP_SERVO 13 // * Bottom Servo (Arm) // Digital pin 10 #define PIN_BTM_SERVO 10 // * Color Sensor // SDA pin to analog pin 4 // SCL pin to analog p...
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 #define PIN_TOP_SERVO 13 // * Bottom Servo (Arm) // Digital pin 10 #define PIN_BTM_SERVO 10 // * Color Sensor // SDA pin to analog pin 4 // SCL pin to analog p...
Add more doc comments
Add more doc comments
Arduino
mit
CharmySoft/skittle-color-sorter
387c0cfcb68f218d08ae0e025df321138ad733a6
src/blinky.ino
src/blinky.ino
/* * Project particle-neopixel-ring-blinky * Description: round blinky thing * Author: Gabe Conradi <gabe.conradi@gmail.com> * Date: idklol */ #include "FastLED.h" #include "hsv.h" #define PIXEL_COUNT 24 #define PIXEL_PIN 6 #define PIXEL_TYPE NSFastLED::NEOPIXEL #define HUE_STEP 10 // 1..255, each loop increments...
/* * Project particle-neopixel-ring-blinky * Description: round blinky thing * Author: Gabe Conradi <gabe.conradi@gmail.com> * Date: idklol */ #include "FastLED.h" #include "hsv.h" #define PIXEL_COUNT 24 #define PIXEL_PIN 6 #define PIXEL_TYPE NSFastLED::NEOPIXEL #define HUE_STEP 10 // 1..255, each loop increments...
add basic pattern support
add basic pattern support
Arduino
apache-2.0
byxorna/particle-neopixel-ring-blinky
e608f494190660f6664f332db7d281f8847245b6
ComboKeypad/Keypad.ino
ComboKeypad/Keypad.ino
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many c...
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many...
Update Keypad.ino
Update Keypad.ino
Arduino
mit
TeodorLys/Arduino_Projects
7f9a208bba0b0fb6e63a94a53e5420d2e0be7655
examples/Widgets/RTC/RTC.ino
examples/Widgets/RTC/RTC.ino
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces...
/************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces...
Fix #337
Fix #337
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
bb82bb62cf9e85f2d1fe1964d9b4c4dadc655925
firmware/examples/BMP280.ino
firmware/examples/BMP280.ino
// IMPORTANT: When including a library in a firmware app, a sub dir prefix is needed // before the particular .h file. #include "Adafruit_BMP280/Adafruit_Sensor.h" #include "Adafruit_BMP280/Adafruit_BMP280.h" // #define BMP_CS A2 // #define BMP_SCK A3 // #define BMP_MISO A4 // #define BMP_MOSI A5 Adafruit_BMP280 bm...
// IMPORTANT: When including a library in a firmware app, a sub dir prefix is needed // before the particular .h file. #include "Adafruit_BMP280/Adafruit_Sensor.h" #include "Adafruit_BMP280/Adafruit_BMP280.h" // #define BMP_CS A2 // #define BMP_SCK A3 // #define BMP_MISO A4 // #define BMP_MOSI A5 Adafruit_BMP280 bmp...
Change Particle.Publish Data String
Change Particle.Publish Data String
Arduino
mit
cloudzombie/Adafruit_BMP280_Library
34467bd6e411112404d14bbe11d26804e344f6a1
src/Music/Music.ino
src/Music/Music.ino
// Compile for Uno Pro or Uno Pro Mini #include <SPI.h> #include <Adafruit_VS1053.h> #include <SD.h> #include <Streaming.h> // <<-style printing #include <Metro.h> // timers #include <EasyTransfer.h> // data transfer between arduinos #include <SoundMessage.h> // message structure (used with EasyTransfer) // Serial sp...
// Compile for Uno Pro or Uno Pro Mini #include <SPI.h> #include <Adafruit_VS1053.h> #include <SD.h> #include <Streaming.h> // <<-style printing #include <Metro.h> // timers #include <EasyTransfer.h> // data transfer between arduinos #include <SoundMessage.h> // message structure (used with EasyTransfer) // Serial sp...
Add EasyTransfer integration to Music.ino
Add EasyTransfer integration to Music.ino
Arduino
mit
akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon
165ab54b1183b399f879112fd9c7c2cba901c7af
src/src.ino
src/src.ino
#include <math.h> typedef struct Location { double lat; double lng; } Location; typedef struct Destination { char name[16]; Location loc; } Destination; // Updated by onNewGps // Location Location currentLoc = {0}; // Time in milliseconds unsigned long currentTime = 0; unsigned long lastTime = 0; double delt...
#include <math.h> typedef struct Location { double lat; double lng; } Location; typedef struct Destination { char name[16]; Location loc; } Destination; // Updated by on_new_gps // Location Location current_loc = {0}; // Time in milliseconds unsigned long current_time = 0; unsigned long last_time = 0; double...
use snake case
refactor: use snake case
Arduino
mit
mplewis/sternidae
4ef068d0985733e2b681398c7cbabe7f62612250
examples/WebServerSD/WebServerSD.ino
examples/WebServerSD/WebServerSD.ino
// -*- c++ -*- // // Copyright 2010 Ovidiu Predescu <ovidiu@gmail.com> // Date: June 2010 // Updated: 08-JAN-2012 for Arduno IDE 1.0 by <Hardcore@hardcoreforensics.com> // #include <SPI.h> #include <Ethernet.h> #include <Flash.h> #include <SD.h> #include <TinyWebServer.h> boolean file_handler(TinyWebServer& web_serve...
// -*- c++ -*- // // Copyright 2010 Ovidiu Predescu <ovidiu@gmail.com> // Date: June 2010 // Updated: 08-JAN-2012 for Arduno IDE 1.0 by <Hardcore@hardcoreforensics.com> // #include <SPI.h> #include <Ethernet.h> #include <Flash.h> #include <SD.h> #include <TinyWebServer.h> boolean file_handler(TinyWebServer& web_serve...
Update WebServerSD.ino
Update WebServerSD.ino Cleanup Error handling; Add additional check for missing file system
Arduino
lgpl-2.1
commshare/TinyWebServer,ovidiucp/TinyWebServer,commshare/TinyWebServer,commshare/TinyWebServer,suxinde2009/TinyWebServer,commshare/TinyWebServer
12f06469356d0ab139f4adc573b8957881c4bbb7
alarm.ino
alarm.ino
#include "action.h" #include "alarm.h" #include "libcwap.h" #include "linked_list.h" #include "menu.h" #include "time.h" typedef struct { uint8_t actionno; linked_list_t * actionspecs; } action_t; typedef struct { uint8_t alarmno; char * name; time_t timestamp; weekdays_t repetition; linke...
#include "action.h" #include "alarm.h" #include "libcwap.h" #include "linked_list.h" #include "menu.h" #include "time.h" typedef struct { uint8_t actionno; linked_list_t * actionspecs; } action_t; typedef struct { uint8_t alarmno; char * name; time_t timestamp; weekdays_t repetition; linke...
Fix weekly repetition logic...
Fix weekly repetition logic... ... to handle repeats from the day you're already on
Arduino
mit
xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc
524eaf2b4a7ddba7a8f0c0585fc469c10fb34706
SeguidorDeParede.ino
SeguidorDeParede.ino
#include <Servo.h> Servo rodaDireita; Servo rodaEsquerda; int echoFrontal = 2; int trigFrontal = 3; int echoLateral = 8; int trigLateral = 7; void setup( ){ pinMode(trigFrontal,OUTPUT); pinMode(echoFrontal,INPUT); pinMode(trigLateral,OUTPUT); pinMode(echoLateral,INPUT); digitalWrite(trigFr...
#include <Servo.h> Servo rodaDireita; Servo rodaEsquerda; int echoFrontal = 2; int trigFrontal = 3; int echoLateral = 8; int trigLateral = 7; void setup( ){ pinMode(trigFrontal,OUTPUT); pinMode(echoFrontal,INPUT); pinMode(trigLateral,OUTPUT); pinMode(echoLateral,INPUT); digitalWrite(trigFr...
Update 3 e 4
Update 3 e 4 3 e 4
Arduino
mit
faidertms/ControleDigital
ed0552790f0c4e6acad9be150527b405ae1b69de
MessageWaitingIndicator/MessageWaitingIndicator.ino
MessageWaitingIndicator/MessageWaitingIndicator.ino
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> // device specifics #include "WirelessConfig.h" #define BLINK_INTERVAL_SECONDS 1 #define LED_PIN D6 #define MESSAGE_WAITING_TOPIC "phone/messageWaiting" IPAddress server(mqttServer[0], mqttServer[1], mqttServer[2], mqttServer[3]); ...
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> // device specifics #include "WirelessConfig.h" #define BLINK_INTERVAL_SECONDS 1 #define LED_PIN D6 #define MESSAGE_WAITING_TOPIC "phone/messageWaiting" IPAddress server(mqttServer[0], mqttServer[1], mqttServer[2], mqttServer[3]); ...
make sure to call loop often enough
src: make sure to call loop often enough You need to call loop often enough to let background work take place
Arduino
mit
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
8e66b87db9d67691edcd840018f15f085e567df8
tin_counter/tin_counter.ino
tin_counter/tin_counter.ino
/* HC-SR04 Ping distance sensor] VCC to arduino 5v GND to arduino GND Echo to Arduino pin 13 Trig to Arduino pin 12 Red POS to Arduino pin 11 Green POS to Arduino pin 10 560 ohm resistor to both LED NEG and GRD power rail More info at: http://goo.gl/kJ8Gl Original code improvements to the Ping sketch sourced from Troll...
/* HC-SR04 Ping distance sensor] VCC to arduino 5v GND to arduino GND Echo to Arduino pin 13 Trig to Arduino pin 12 Red POS to Arduino pin 11 Green POS to Arduino pin 10 560 ohm resistor to both LED NEG and GRD power rail */ #define trigPin 13 #define echoPin 12 #define green 11 #define red 10 int count =...
Update tin_counter.ino
Update tin_counter.ino
Arduino
mit
tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects
74d7961d25795de38dc35f972677128433829e86
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...
Call useNoDelay on server
Call useNoDelay on server
Arduino
mit
kirberich/barf_esp8266,kirberich/barf_esp8266
a60f668866fff826ca0e1d6ad6b6bde7bd2474e5
example/shadow.ino
example/shadow.ino
#include "mjson.h" // Sketch -> Add File -> Add mjson.h static int ledOn = 0; // Current LED status static void reportState(void) { jsonrpc_call("{\"method\":\"Shadow.Report\",\"params\":{\"on\":%s}}", ledOn ? "true" : "false"); } void setup() { // Init RPC library. Pass a "sender" function that...
#include "mjson.h" // Sketch -> Add File -> Add mjson.h static int ledOn = 0; // Current LED status static void reportState(void) { jsonrpc_call("{\"method\":\"Shadow.Report\",\"params\":{\"on\":%s}}", ledOn ? "true" : "false"); } void setup() { // Init RPC library. Pass a "sender" function that...
Add uptime code
Add uptime code
Arduino
mit
cesanta/mjson
8b76365b29ffa98e2355a9ecf16519003e43d5eb
bolt-arduino.ino
bolt-arduino.ino
#include "button.h" #include "led.h" #include "screen.h" #include "game.h" #include "clock.h" #include "const.h" #include "controller.h" #include "flasher.h" #include "logger.h" void setup() { Serial.begin(115200); //Attach interrupt for 64 button shield attachInterrupt(digitalPinToInterrupt(P_BUTTON_INTERRUPT...
#include "button.h" #include "led.h" #include "screen.h" #include "game.h" #include "clock.h" #include "const.h" #include "controller.h" #include "flasher.h" #include "logger.h" void setup() { Serial.begin(115200); //Attach interrupt for 64 button shield attachInterrupt(digitalPinToInterrupt(P_BUTTON_INTERRUPT...
Change flashing button to 0 from 1
Change flashing button to 0 from 1
Arduino
mit
SUPERETDUPER/bolt-arduino
3ab065156f5f452ad301003eaa4090a0a120447b
Xmas2013/chaseRedGreen/chaseRedGreen.ino
Xmas2013/chaseRedGreen/chaseRedGreen.ino
#include <G35String.h> //#define TWO_STRINGS #ifdef TWO_STRINGS #define LIGHT_COUNT 50 #define G35_PIN1 9 #define G35_PIN2 10 G35String lights1(G35_PIN1, LIGHT_COUNT); G35String lights2(G35_PIN2, LIGHT_COUNT); #else #define LIGHT_COUNT 49 #define G35_PIN 9 G35String lights(G35_PIN, LIGHT_COUNT); #endi...
#include <G35String.h> //#define TWO_STRINGS #ifdef TWO_STRINGS #define LIGHT_COUNT 50 #define G35_PIN1 9 #define G35_PIN2 10 G35String lights1(G35_PIN1, LIGHT_COUNT); G35String lights2(G35_PIN2, LIGHT_COUNT); #else #define LIGHT_COUNT 49 #define G35_PIN 9 G35String lights(G35_PIN, LIGHT_COUNT); #endi...
include a randomised delay
include a randomised delay
Arduino
unlicense
davidb24v/G35Stuff
94d00c83037671c3729f9a48d06a76af32ccc1ef
DigitalSynthVRA8.ino
DigitalSynthVRA8.ino
#include "Arduino.h" #include "Common.h" #include "Synth.h" #include "AudioOut.h" void setup() { Synth::initialize(); Serial.begin(SERIAL_SPEED); AudioOut::open(); } void loop() { static boolean demo = true; #if 1 if (Serial.available() > 0) { uint8_t b = Serial.read(); Synth::receiveMIDIByte(b); ...
#include "Arduino.h" #include "Common.h" #include "Synth.h" #include "AudioOut.h" void setup() { Synth::initialize(); Serial.begin(SERIAL_SPEED); AudioOut::open(); } void loop() { while(true) { static boolean demo = true; #if 1 if (Serial.available() > 0) { uint8_t b = Serial.read(); Synth...
improve speed
improve speed
Arduino
cc0-1.0
risgk/DigitalSynthVRA8,risgk/DigitalSynthVRA8,risgk/DigitalSynthVRA8,risgk/DigitalSynthVRA8
ce7cca496c683e1bc285c7b7698ea6b9ea4d9d55
simon_says/simon_says.ino
simon_says/simon_says.ino
/** * An Arduino circuit design and program that simulates the game "Simon Says". * * Author: David Timmons ( http://david.timmons.io ) * License: MIT */ // TODO Reset game in the middle of a game. // TODO Go back to light show after losing or winning a game. // Turn debug mode on or off. const boolean DEBUG = t...
/** * An Arduino circuit design and program that simulates the game "Simon Says". * * Author: David Timmons ( http://david.timmons.io ) * License: MIT */ // TODO Reset game in the middle of a game. // Turn debug mode on or off. const boolean DEBUG = true; // Define LED pin positions. const int RED_1 = 13; const...
Reset game to the light show after losing or winning all rounds.
Reset game to the light show after losing or winning all rounds.
Arduino
mit
davidtimmons/simon-says-circuit
e1b36200c55e94623bc46bfa628285cfffacb5ab
examples/adsr/adsr.ino
examples/adsr/adsr.ino
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
Fix envelope peak at 10V and add 5V output.
Fix envelope peak at 10V and add 5V output.
Arduino
bsd-3-clause
logickworkshop/du-ino,logickworkshop/du-ino
1b72a8cb1d8a0376ccf9618db86c1f918e51e18a
examples/Node/Node.ino
examples/Node/Node.ino
#include <TheThingsNetwork.h> #include <TheThingsNode.h> const char *appEui = "0000000000000000"; const char *appKey = "00000000000000000000000000000000"; #define loraSerial Serial1 #define debugSerial Serial TheThingsNetwork ttn(loraSerial, debugSerial, TTN_FP_EU868); TheThingsNode *node; enum port : byte { PORT...
#include <TheThingsNetwork.h> #include <TheThingsNode.h> // Set your AppEUI and AppKey const char *appEui = "0000000000000000"; const char *appKey = "00000000000000000000000000000000"; #define loraSerial Serial1 #define debugSerial Serial // Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915 #define freqPlan REPLA...
Use define for freqPlan
Use define for freqPlan
Arduino
mit
TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib
c9d76f58963e48fdada944f7d21a60b809bec42a
examples/adsr/adsr.ino
examples/adsr/adsr.ino
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
Add more comments to the ADSR logic.
Add more comments to the ADSR logic.
Arduino
bsd-3-clause
logickworkshop/du-ino,logickworkshop/du-ino
40f93ec6c4f638e3ac37912eb36742e346a46649
EPROM_Dumper/EPROM_Dumper.ino
EPROM_Dumper/EPROM_Dumper.ino
#define MAX_ADDR 4096 //Take 2 to the power of the number of address lines void setup() { Serial.begin(9600); // Opens Serial Port to receive data DDRL = B00000000; //Sets up L-pins as 8-bit input A + C as 16 bit output DDRA = B11111111; //Lower address DDRC = B11111111; //Upper address PORTA...
#define MAX_ADDR 4096 //Take 2 to the power of the number of address lines void setup() { Serial.begin(9600); // Opens Serial Port to receive data /* *Sets up L-pins as 8-bit input A + C as 16 bit output */ DDRL = B00000000; DDRA = B11111111; //Lower address DDRC = B11111111; //Upp...
Update EPROM_Dumper.ino
Update EPROM_Dumper.ino
Arduino
mit
johnzl-777/EPROM-Dumper
331bb064f0623d2fea72adfcc6293eccc5fcfa54
monitoring-temp-arduino-code/monitoring/monitoring.ino
monitoring-temp-arduino-code/monitoring/monitoring.ino
/**************************************************************/ /* define pin setup, what sensor/fan is connected to what pin */ /**************************************************************/ int LM35_1_PIN = A0; int LM35_2_PIN = A1; int FAN_PWM_PIN = 9; #define SEND_TEMP_VALUES_TO_HOST true #define SEND_TO_HOST...
/**************************************************************/ /* define pin setup, what sensor/fan is connected to what pin */ /**************************************************************/ int LM35_1_PIN = A0; int LM35_2_PIN = A1; int FAN_PWM_PIN = 9; #define SEND_TEMP_VALUES_TO_HOST true #define SEND_TO_HOST...
refactor into separate method
refactor into separate method
Arduino
mit
nitram509/temperature-based-fan-control-for-time-capsule
f17341f97763778de65ea831108f6e926e0309de
Arduino_Code/Arduino_Code.ino
Arduino_Code/Arduino_Code.ino
/* Created by Geoff Spielman on 2016-06-25. Copyright (c) 2016 Geoff Spielman. All rights reserved. */ // put your setup code here, to run once: const int btn0 = 2; const int btn1 = 7; const int btn2 = 12; const int btn3 = 8; const int led0 = 5; const int led1 = 3; const int led2 = 4; const int led3 =...
/* Created by Geoff Spielman on 2016-06-25. Copyright (c) 2016 Geoff Spielman. All rights reserved. */ // put your setup code here, to run once: const int btn0 = 2; const int btn1 = 7; const int btn2 = 12; const int btn3 = 8; const int led0 = 5; const int led1 = 3; const int led2 = 4; const int led3 =...
Add conversion from serial string to actual values functionality
Add conversion from serial string to actual values functionality
Arduino
mit
GeoffSpielman/SimonSays,GeoffSpielman/SimonSays,GeoffSpielman/SimonSays,GeoffSpielman/SimonSays
f717f72cfd6910bfcab5b7b52870d37c64823c19
skittle-color-sorter.ino
skittle-color-sorter.ino
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 #define PIN_TOP_SERVO 13 // * Bottom Servo (Arm) // Digital pin 10 #define PIN_BTM_SERVO 10 // * Color Sensor // SDA pin to analog pin 4 // SCL pin to analog p...
/* Skittle Color Sorter This sketch programs the Skittle Color Sorter that we assembled. */ // The circuit: // * Top Servo // Digital pin 13 #define PIN_TOP_SERVO 13 // * Bottom Servo (Arm) // Digital pin 10 #define PIN_BTM_SERVO 10 // * Color Sensor // SDA pin to analog pin 4 // SCL pin to analog p...
Add color view signals
Add color view signals
Arduino
mit
CharmySoft/skittle-color-sorter
78a7307d5819ebd681f3ba348a5a2435edb8646b
arduino-test/arduino-test.ino
arduino-test/arduino-test.ino
#include <SPI.h> #include "mx7219.h" #include "pins.h" byte spi_communicate(byte mxreg, byte mxval, byte key_out = 0) { byte key_state; SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0)); digitalWrite(DPYSS_BAR, LOW); key_state = SPI.transfer(0); SPI.transfer(key_out); SPI.transfe...
#include <SPI.h> #include "mx7219.h" #include "pins.h" byte spi_communicate(byte mxreg, byte mxval, byte key_out = 0) { byte key_state; SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0)); digitalWrite(DPYSS_BAR, LOW); key_state = SPI.transfer(0); SPI.transfer(key_out); SPI.transfe...
Make blinkelights a bit prettier
Make blinkelights a bit prettier
Arduino
mit
rjw57/buri-front-panel,rjw57/buri-front-panel
b5812d2d02f537436eeaa4498824113a05c98fdf
remap.ino
remap.ino
#include "gamecube.h" #ifndef SERIAL_DEBUG uint8_t prevButtons[numberOfButtons]; uint8_t curButtons[numberOfButtons]; GameCubeData_t oldData; bool didJoystick; bool didX360; void* usbMode; const Injector_t* prevInjector = NULL; void buttonizeStick(uint8_t* buttons, uint8_t x, uint8_t y) { uint8_t dx = x < 128 ? 12...
#include "gamecube.h" #ifndef SERIAL_DEBUG uint8_t prevButtons[numberOfButtons]; uint8_t curButtons[numberOfButtons]; GameCubeData_t oldData; bool didJoystick; bool didX360; void* usbMode; const Injector_t* prevInjector = NULL; void buttonizeStick(uint8_t* buttons, uint8_t x, uint8_t y) { uint8_t dx = x < 128 ? 12...
fix x360/joy switch
fix x360/joy switch
Arduino
mit
arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter
d6fe07f6b072a972272949c8c43cf2c226b27c17
BatteryCharger/BatteryCharger.ino
BatteryCharger/BatteryCharger.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_INA219.h" Adafruit_INA219 ina219_A; Adafruit_INA219 ina219_B(0x44); int counter=10; #define RELAY_UNDEF 0 #define RELAY_A0_ON 1 #define RELAY_A1_ON 2 volatile in...
#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_INA219.h" Adafruit_INA219 ina219_A; Adafruit_INA219 ina219_B(0x44); int counter=10; #define RELAY_UNDEF 0 #define RELAY_A0_ON 1 #define RELAY_A1_ON 2 volatile in...
bump turn on with low current 13.0 -> 13.1
bump turn on with low current 13.0 -> 13.1 Signed-off-by: Robert Nelson <d6c41255011d14bfa93d8562b946ca186cfa0c7b@gmail.com>
Arduino
mit
eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/WeatherStation,eewiki/ws_bm_rtc,eewiki/WeatherStation,eewiki/ws_bm_rtc
0ead3a629051fd98b46168322b3186999bb0cddf
stairs/main.ino
stairs/main.ino
// Use the FastLED library. #include <FastLED.h> // Serial DEBUG mode on/off #undef DEBUG_SERIAL #undef DEBUG_ANIMATION #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, w...
// Use the FastLED library. #include <FastLED.h> // Serial DEBUG mode on/off #undef DEBUG_SERIAL #undef DEBUG_ANIMATION #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, w...
use cubic in/out eased triangle wave for the breathing effect
stairs: use cubic in/out eased triangle wave for the breathing effect
Arduino
mit
ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight
48f27133cabb7014f314170f33c5f75774dce5e0
gpsfeatures/gpsfeatures.ino
gpsfeatures/gpsfeatures.ino
/* ----------------------------------------------------------- This example shows a lot of different features. As configured here it'll check for a good GPS fix every 10 minutes and publish that data if there is one. If not, it'll save you data by staying quiet. It also registers 3 Particle.functions for changing wheth...
/* ----------------------------------------------------------- This example shows a lot of different features. As configured here it'll check for a good GPS fix every 10 minutes and publish that data if there is one. If not, it'll save you data by staying quiet. It also registers 3 Particle.functions for changing wheth...
Add danielawspush publish.
Add danielawspush publish.
Arduino
mit
pwdel/sharetrack,pwdel/sharetrack,pwdel/sharetrack
e5164ba8c23709df93c0e09f996ab03d3fa6173e
temp/temp.ino
temp/temp.ino
#include <Arduino.h> #include <SoftwareSerial.h> #include <ESP8266_Simple.h> #include <LiquidCrystal.h> #include <DHT.h> #define DEBUG 1 #define PHOTOpin A0 // analog photoresistor #define GASpin A7 // analog gas #define PIRsensorPin 24// digital PIR #define pBlu 3 // digital blue LED #define...
#include <Arduino.h> #include <SoftwareSerial.h> #include <ESP8266_Simple.h> #include <LiquidCrystal.h> #include <DHT.h> #define DEBUG 1 #define PHOTOpin A0 // analog photoresistor #define GASpin A7 // analog gas #define PIRsensorPin 24// digital PIR #define pBlu 3 // digital blue LED #define...
Update featuring optimisations
Update featuring optimisations The next three months, I had to create a website for my project with a well-based front-end and back-end, test the product in my room almost daily, fix the bugs and take my exams. This is the piece I updated from the last source code with further optimisation and bug fixes. In the event...
Arduino
mit
Seba7159/myHaum,Seba7159/myHaum,Seba7159/myHaum
e94982f56ecced358cda04b97b59441ac2810a47
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 encoder bug
Fix encoder bug
Arduino
mit
vehnae/komaroof,vehnae/komaroof
e533373b7a088b38f13f3bf5bd3f132dca8cda16
xadow-watch.ino
xadow-watch.ino
#include <Wire.h> #include <SPI.h> #include <EEPROM.h> #include "SGL.h" #include "SSD1331.h" #include "xadow.h" // These are arduino pin definitions. Note that on leonardo // boards MOSI and sclk cannot be directly used, and hence // D16 and D15 is a thing only with the Xadow board #define cs (A5) #define dc ...
#include <Wire.h> #include <SPI.h> #include <EEPROM.h> #include "SGL.h" #include "SSD1331.h" #include "xadow.h" // These are arduino pin definitions. Note that on leonardo // boards MOSI and sclk cannot be directly used, and hence // D16 and D15 is a thing only with the Xadow board #define cs (A5) #define dc ...
Update to use animation_boot and adds disconnect interaction during boot
Update to use animation_boot and adds disconnect interaction during boot Disconnect interaction requires disconnection of USB before powering down USB module. Not doing so seems to be a source of kernel panics on OS X
Arduino
mit
freespace/xadow-watch,freespace/xadow-watch
d57ae5d94205cc7b21f018dee71040eb30019f88
VardeLED.ino
VardeLED.ino
#include "FastLED.h" #include <SPI.h> #include <Ethernet.h> #include <ArtNode.h> #include "TeensyMAC.h" #include <EEPROM.h> #define VERSION_HI 0 #define VERSION_LO 3 #define RGBW_PER_UNIVERSE 127 // Should be 128, but madmapper wont send 128 rgbw channels out.... #define RGB_PER_UNIVERSE RGBW_PER_UNIVERSE*4.0/3...
#include "FastLED.h" #include <SPI.h> #include <Ethernet.h> #include <ArtNode.h> #include "ArtNetFrameExtension.h" #include "TeensyMAC.h" #include <EEPROM.h> #define VERSION_HI 0 #define VERSION_LO 3 #define RGBW_PER_UNIVERSE 128 #define RGB_PER_UNIVERSE RGBW_PER_UNIVERSE*4.0/3.0 #define NUM_RGB_LEDS_4 (i...
Use more channels
Use more channels
Arduino
mit
vertigo-dk/BlackLED,vertigo-dk/VardeLED,vertigo-dk/VertigoLED
a3f06fb4c2757a31e126523c9d1b4a1cf5376dc1
flappyhalloween.ino
flappyhalloween.ino
/******************************************************************************* * Copyright (c) 2015 Andrew Low. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * h...
/******************************************************************************* * Copyright (c) 2015 Andrew Low. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * h...
Update for Arduboy library V1.0
Update for Arduboy library V1.0 Change deprecated library functions to their replacements. Remove unneeded #includes. Remove trailing whitespace.
Arduino
epl-1.0
andrewlow/flappyhalloween,andrewlow/flappyhalloween
f644f9220d78cec6ee44bdd4f5996b081596e207
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...
implement rainbow cycle mode
stairs: implement rainbow cycle mode
Arduino
mit
ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight
f53627bdb878808a06cbe7c768fdfbfe9fc24242
examples/MalariaFMSynth/MalariaDSP1/MalariaDSP1.ino
examples/MalariaFMSynth/MalariaDSP1/MalariaDSP1.ino
#include <MozziGuts.h> #include <Oscil.h> #include <tables/sin2048_int8.h> #include <ADSR.h> #include <mozzi_midi.h> #include <MIDI.h> #include <Malaria.h> const byte ledPin = 13; const Q8n8 mod_index = float_to_Q8n8(1.0f); Oscil<SIN2048_NUM_CELLS, AUDIO_RATE> aCarrier(SIN2048_DATA); Oscil<SIN2048_NUM_CELLS, AUDIO_RA...
#include <MozziGuts.h> #include <MIDI.h> #include <Malaria.h> #include <malaria_instruments.h> const byte ledPin = 13; MIDI_CREATE_DEFAULT_INSTANCE(); FMBell instrument; MalariaPcmWriter pcmWriter; void setup() { pinMode(ledPin, OUTPUT); digitalWrite(ledPin, LOW); startMozzi(CONTROL_RATE); MIDI.setHandleNote...
Move instrument definition to malaria_instruments.
Move instrument definition to malaria_instruments.
Arduino
mit
anarkiwi/Malaria
3c8a9fc64da88fa3632cea8ae03b3f688c074e44
sketch/sketch.ino
sketch/sketch.ino
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} if(sum > 175){return 180;} return currentAngle + difference; } protected: void rotateServo(...
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} if(sum > 175){return 180;} return currentAngle + difference; } protected: void rotateServo(...
Update name IO class to Control
Update name IO class to Control
Arduino
mit
eliza0x/Suno
45fc1f5603c0d96e5b7a4b6b8d8096e887a60bf4
arduino/bridgehead/bridgehead.ino
arduino/bridgehead/bridgehead.ino
// fancontrol.ino // // Intentionally left simple and stupid so that all intelligent code can reside on the host side. #include <SoftPWM.h> // pins to which the fans are connected physically // connector index 0 1 2 3 4 5 6 7 int PINS_PWM[] = {2, 6, 9, 4, A3, 15, 10, A1}; int PINS_PULSE[] = {3, 7, 8, 5,...
// fancontrol.ino // // Intentionally left simple and stupid so that all intelligent code can reside on the host side. #include <SoftPWM.h> // pins to which the fans are connected physically // connector index 0 1 2 3 4 5 6 7 int PINS_PWM[] = {2, 6, 9, 4, A3, 15, 10, A1}; int PINS_PULSE[] = {3, 7, 8, 5,...
use preset in zeroth iteration
use preset in zeroth iteration
Arduino
mit
Bengt/AL-FanControl,Bengt/AL-FanControl,Bengt/AL-FanControl
c116076f36668ec3ab60c99528ed386e482d81f8
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
0e708c0385f0603717f33c3826715db573914c3d
teensy_octo.ino
teensy_octo.ino
/** * Teensy Octo v1.0 * * Custom-built USB peripheral with eight buttons, a RGB LED and a Piezo speaker. * Based on the Teensy 2 microcontroller - http://www.pjrc.com/teensy * * Made as a birthday present to Waher (http://waher.net/about-waher-net) * * @author David <david@sqroot.eu> 2013 * * Useful links...
/** * Teensy Octo v1.0 * * Custom-built USB peripheral with eight buttons, a RGB LED and a Piezo speaker. * Based on the Teensy 2 microcontroller - http://www.pjrc.com/teensy * * Created as a birthday present to Waher (http://waher.net/about-waher-net) * * @author David <david@sqroot.eu> 2013 * * Useful li...
Change pin numbers to correlate to the changes during soldering
Change pin numbers to correlate to the changes during soldering
Arduino
mit
anroots/teensy-moonica
8dabf98c766d89d0f8db598c80422b573637f2aa
src/GPSLogger/GPSLogger.ino
src/GPSLogger/GPSLogger.ino
#include "SoftwareSerial.h" #include "dGPS.h" #include "SPI.h" #include "SD.h" dGPS dgps = dGPS(); // Construct dGPS class #define MAX_FILENAME_LENGTH 13 char cfilename[MAX_FILENAME_LENGTH]; String sdate; String stime; void setup() { Serial.begin(9600); // Serial output back to computer. ...
#include "SoftwareSerial.h" #include "dGPS.h" #include "SPI.h" #include "SD.h" #define FILE_SUFFIX ".csv" #define FLOAT_DELTA 0.000001 #define FLOAT_PRECISION 6 #define MAX_FILENAME_LENGTH 13 #define SD_PIN 10 long date = 0; long time = 0; float lat = 0; float lng = 0; float plat = 0;...
Check coordinates
Check coordinates Only log if the coordinates have changed significantly
Arduino
mit
ledlogic/GPSLogger
bd3017ce9c3ed0cfd7d7e59b6bd0aa6a4b5adc22
Weather_Station/Solar-Weather-Station-V2.0-wifi_mgr.ino
Weather_Station/Solar-Weather-Station-V2.0-wifi_mgr.ino
//---------------------------------------------------------------------------------------------------- // Project Name : Solar Powered WiFi Weather Station V2.0 // Authors: Keith Hungerford and Debasish Dutta // Website : www.opengreenenergy.com // This code is derived from the example code of farmerkeith_BMP280.h ...
//---------------------------------------------------------------------------------------------------- // Project Name : Solar Powered WiFi Weather Station V2.0 (original) // Authors: Keith Hungerford and Debasish Dutta // Website : www.opengreenenergy.com (https://www.instructables.com/id/Solar-Powered-WiFi-Weather...
Update Solar-Weather-Station-V2.0-wifi_mgr.ino
Update Solar-Weather-Station-V2.0-wifi_mgr.ino
Arduino
apache-2.0
chancsc/SC_SmartThings,chancsc/SC_SmartThings
1e0a89e5c51660a27205f59cd3f472b9b5011336
examples/CardinalSerialInputDegrees/CardinalSerialInputDegrees.ino
examples/CardinalSerialInputDegrees/CardinalSerialInputDegrees.ino
/****************************************************************************** CardinalSerialInputDegrees.ino Cardinal Library example file Originally Created: August 10, 2015 Written by DaAwesomeP (https://daawesomep.github.io/) Project homepage at https://github.com/DaAwesomeP/arduino-cardinal This s...
/****************************************************************************** CardinalSerialInputDegrees.ino Cardinal Library example file Originally Created: August 10, 2015 Written by DaAwesomeP (https://daawesomep.github.io/) Project homepage at https://github.com/DaAwesomeP/arduino-cardinal This s...
Update License Copyright
Update License Copyright
Arduino
apache-2.0
DaAwesomeP/arduino-cardinal
e79cb8540b1f97844d444db87d33cac0d132d0e3
project-03/project-03.ino
project-03/project-03.ino
const int sensorPin = A0; const float baselineTemp = 20.0; void setup() { Serial.begin(9600); // open a serial port Serial.println("Setting up the pins ..."); // <-- not a part of the original starter kit project code! for (int pinNumber = 2; pinNumber<5; pinNumber++) { pinMode(pinNumber, OUTPUT); digitalWrite...
const int sensorPin = A0; const float baselineTemp = 23.73; // <-- change this value to the average value you see from the serial monitor before touching the TMP36 void setup() { Serial.begin(9600); // open a serial port Serial.println("Setting up the pins ..."); // <-- not a part of the original starter kit projec...
Change baselineTemp to the initial room temperature value I saw on my Arduino Uno
Change baselineTemp to the initial room temperature value I saw on my Arduino Uno
Arduino
mit
bgoodr/arduino-starter-kit-using-mk-utils,bgoodr/arduino-starter-kit-using-mk-utils
12d25874484385a2c3d6ef21d0afa9d767e87b93
wioterminal.ino
wioterminal.ino
#include <rpcWiFi.h> #include <WebServer.h> #include <Wire.h> #include "SHT31.h" #include <ArduinoJson.h> /* * Required libraries: * ArduinoJson * Grove_SHT31_Temp_Humi_Sensor * Seeed_Arduino_FS * Seeed_Arduino_mbedtls * Seeed_Arduino_rpcUnified * Seeed_Arduino_rpcWiFi * Seeed_Arduino_SFUD */ // CHANGE THE...
#include <Wire.h> #include "SHT31.h" #include <ArduinoJson.h> /* * Required libraries: * ArduinoJson * Grove_SHT31_Temp_Humi_Sensor */ SHT31 sht31 = SHT31(); const int ledPin = 13; // Reads the sensors and returns values as JSON String readSensors() { digitalWrite(ledPin, 1); const uint8_t lightMeasCount ...
Update Wio Terminal code
Update Wio Terminal code Remove also WiFi server support as unreliable and rely on serial reading.
Arduino
mit
terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger
3246412deb4c35c4414c262d1a70ba128473896a
code/arduino/SG90_and_dynamixel/SG90_and_dynamixel.ino
code/arduino/SG90_and_dynamixel/SG90_and_dynamixel.ino
#include <Servo.h> #include <Wire.h> #include <DynamixelSerial.h> //Dynamixel const const int DYNAMIXEL_ADDRESS = 6; const int DYNAMIXEL_CTRL_PIN = 2; //RIGHT VALUE FOR DYNAMIXEL const int ANGLE_DYNAMIXEL_HORIZONTAL = 508; const int ANGLE_DYNAMIXEL_VERTICAL = 830; //const int ANGLE_VERTICAL = 205; Depend on the dyn...
#include <Servo.h> #include <Wire.h> #include <DynamixelSerial.h> //Dynamixel const const int DYNAMIXEL_ADDRESS = 6; const int DYNAMIXEL_CTRL_PIN = 2; //RIGHT VALUE FOR DYNAMIXEL const int ANGLE_DYNAMIXEL_HORIZONTAL = 508; const int ANGLE_DYNAMIXEL_VERTICAL = 830; //const int ANGLE_VERTICAL = 205; Depend on the dyn...
Change servo push parameters
Change servo push parameters
Arduino
mit
Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main
028606b1e8b764d75f6727334ece309829fe81e5
Melodies/SonarPiano.ino
Melodies/SonarPiano.ino
#include "pitches.h" int ThreshHold = 50; 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, NOTE_G2, NOTE_GS2,NOTE_A2,NOTE_AS2,NOTE_B2,NOTE_C3,NOTE_CS3, NOTE_D3,NOTE_DS3...
#include "pitches.h" int ThreshHold = 50; 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, NOTE_G2, NOTE_GS2,NOTE_A2,NOTE_AS2,NOTE_B2,NOTE_C3,NOTE_CS3, NOTE_D...
Update SonarPiano.ino
Update SonarPiano.ino Added setup for single octave piano
Arduino
mit
celeryellery/CSS427FinalProject,celeryellery/CSS427FinalProject
e4192ddb179fe2d1fc48488ecf2d47e505b420d2
sketches/EnerginoBattery/EnerginoBattery.ino
sketches/EnerginoBattery/EnerginoBattery.ino
/* * Energino * * Energino is a energy consumption meter for DC loads (win average). * * Circuit: * Analog inputs attached to pins A0 (Current), A1 (Voltage) * Digital output attached to pin D2 (Relay) * * Supported commands from the serial: * #P<integer>, sets the period between two updates (in ms) [defau...
/* * Energino * * Energino is a energy consumption meter for DC loads (win average). * * Circuit: * Analog inputs attached to pins A0 (Current), A1 (Voltage) * Digital output attached to pin D2 (Relay) * * Supported commands from the serial: * #P<integer>, sets the period between two updates (in ms) [defau...
add fitted battery model
add fitted battery model
Arduino
bsd-3-clause
rriggio/energino,rriggio/energino,rriggio/energino,rriggio/energino
64894cbaadaca7e171c028053e6e0e4fc5c93bd5
Arduino/v0.3.0_no_conditioning/v0.3.0_no_conditioning.ino
Arduino/v0.3.0_no_conditioning/v0.3.0_no_conditioning.ino
byte moduloReplacement; /******* SETUP *********/ void setup() { // Defining PB1 and PB2 as outputs by setting PORTB1 and PORTB2 // Setting DDB1 and DDB2 DDRB |= bit (DDB1) | bit (DDB2); //Set D pins to input DDRD = 0x00; Serial.begin(2000000); //Serial.println("Starting..."); setupClockSignal...
bool flip = false; void setup() { //Set B pins to output DDRB = 0b11111111; //Set D pins to input DDRD = 0x00; Serial.begin(2000000); } int currentByte = 0; int i=0; void loop() { currentByte = 0; for (i=0; i < 8; i += 2) { runClockSignals(); runClockSignals(); byte pinVal = (PIND >> 6...
Update no conditioning Arduino source with correct code
Update no conditioning Arduino source with correct code
Arduino
mit
robseward/Ziffer
6d9f142bec1771014c070a6c693d6274f7d7faea
4/readbutton.ino
4/readbutton.ino
int BUTTON_PIN = 2; void setup() { pinMode(BUTTON_PIN, INPUT); Serial.begin(9600); } void loop() { //Serial.println("Hello computer!"); //Serial.print("This line will mash together with the next."); int buttonPressed = digitalRead(BUTTON_PIN); if(buttonPressed == 1) { Serial.println("I pressed the ...
int BUTTON_PIN = 2; void setup() { pinMode(BUTTON_PIN, INPUT_PULLUP); Serial.begin(9600); } void loop() { //Serial.println("Hello computer!"); //Serial.print("This line will mash together with the next."); int buttonPressed = digitalRead(BUTTON_PIN); if(buttonPressed == LOW) { Serial.println("I pre...
Update readbutton.ino
Update readbutton.ino
Arduino
bsd-2-clause
peplin/electronics-and-programming-class
bbf1671f8125026dfea3b87c12e3f50abc7da173
examples/Widgets/Table/Table_Advanced/Table_Advanced.ino
examples/Widgets/Table/Table_Advanced/Table_Advanced.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...
Change Table Vpin for sketch description
Change Table Vpin for sketch description
Arduino
mit
blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library
8141e3fc355447697de72663740014d21205469a
Redbot/AvoidLines_NN/AvoidLines_NN.ino
Redbot/AvoidLines_NN/AvoidLines_NN.ino
#include <RedBot.h> #define LINETHRESHOLD 800 #define SPEED 60 // sets the nominal speed. Set to any number from 0 - 255. RedBotMotors motors; boolean s1 = true; boolean s2 = true; boolean s3 = true; int leftSpeed; // variable used to store the leftMotor speed int rightSpeed; // variable used to store the rightMo...
#include <RedBot.h> #define LINETHRESHOLD 800 #define SPEED 60 // sets the nominal speed. Set to any number from 0 - 255. RedBotMotors motors; int leftSpeed; // variable used to store the leftMotor speed int rightSpeed; // variable used to store the rightMotor speed RedBotSensor left = RedBotSensor(A3); // init...
Update AvoidLines_NN.ino
Update AvoidLines_NN.ino
Arduino
apache-2.0
oneasteriskone/IA-Project
f38977da51ced30cac9ea4b1078574d27ee58b0a
examples/enroll/enroll.ino
examples/enroll/enroll.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 printout of ID number
Add printout of ID number
Arduino
bsd-3-clause
urandu/Adafruit-Fingerprint-Sensor-Library,ekapujiw2002/Adafruit-Fingerprint-Sensor-Library
3a78957fe5bdbbf4b54c9f37495e733ef24c351e
src/homie-sonoff-touch.ino
src/homie-sonoff-touch.ino
/* WARNING: untested */ #include <Homie.h> #define FW_NAME "homie-sonoff-touch" #define FW_VERSION "0.0.5" /* Magic sequence for Autodetectable Binary Upload */ const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75"; const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ...
/* WARNING: untested */ #include <Homie.h> #define FW_NAME "homie-sonoff-touch" #define FW_VERSION "0.0.5" /* Magic sequence for Autodetectable Binary Upload */ const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75"; const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ...
Increase the reset trigger to 10 seconds
Increase the reset trigger to 10 seconds
Arduino
mit
kylegordon/homie-sonoff-touch
26ba0d14f4638c1860be0c9fc7ab500297dfc369
examples/CS5490_Basics/CS5490_Basics.ino
examples/CS5490_Basics/CS5490_Basics.ino
#include<CS5490.h> CS5490 line(MCLK_default,14,12); void setup() { //Inicializa a comunicação com o CS5490 //600 é a velocidade default do CI para comunicação serial line.begin(600); //Inicializa a comunicação com o PC para debug Serial.begin(9600); } void loop() { //Obtem informação da configuraçã...
#include<CS5490.h> CS5490 line(MCLK_default,14,12); void setup() { //Inicializa a comunicação com o CS5490 //600 é a velocidade default do CI para comunicação serial line.begin(600); //Inicializa a comunicação com o PC para debug Serial.begin(115200); //Send 21 instruct //Seta Conversão p/ continuo...
Ajuste no example
Ajuste no example
Arduino
mit
tiagolobao/CS5490
ee38be56654cbc7dc0feea931aa00d19d4175164
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...
Update ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino
Update ArduCAM_Mini_5MP_Plus_4CAM_Capture2SD.ino
Arduino
mit
ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino
ea60a591a854dfbf1a577bddbe9dbbee0887e0a0
sheild_sdlog_gps_color_v3/sheild_sdlog_gps_color_v3.ino
sheild_sdlog_gps_color_v3/sheild_sdlog_gps_color_v3.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 nick@unsalted.nu - // In association with: Art Center College of Design - Media Design Practices - MFA // // This code is...
#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...
Update intro text
Update intro text
Arduino
mit
unsalted/color_station
c77d9217292fb44afd2da90e31ad04c4d694c761
ScoutWeatherStation/scout_weather_station.ino
ScoutWeatherStation/scout_weather_station.ino
//////////////////////////////////////////////////// // // Brookline Pack 6 Weather Station // Craig Hagan // // MIT License // Free for public use // No statement of liability, etc. //////////////////////////////////////////////////// // // set up which devices we are using // // wifi? #undef USING_WIRELESS // senso...
//////////////////////////////////////////////////// // // Brookline Pack 6 Weather Station // Craig Hagan // // MIT License // Free for public use // No statement of liability, etc. //////////////////////////////////////////////////// // // set up which devices we are using // // wifi? #undef USING_WIRELESS // senso...
change pressure to mbar
change pressure to mbar
Arduino
mit
craighagan/hackprojects
1bcf26181e86bc2382602ff8bd8719ffa779eb06
K_Nearest_Neighbors_Cups/K_Nearest_Neighbors_Cups.ino
K_Nearest_Neighbors_Cups/K_Nearest_Neighbors_Cups.ino
#include <Arduino.h> #include <math.h> #include <LiquidCrystal.h> #include "Object.h" #include <NewPing.h> #include <HX711.h> // LCD Screen const int rs = 41, en = 39, d4 = 37, d5 = 35, d6 = 33, d7 = 31; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); String lcd_current = ""; // IR Sensor #define IR_SENSOR_PIN_1 6 // He...
#include <Arduino.h> #include <math.h> #include <LiquidCrystal.h> #include "Object.h" #include <NewPing.h> #include <HX711.h> // LCD Screen const int rs = 41, en = 39, d4 = 37, d5 = 35, d6 = 33, d7 = 31; LiquidCrystal lcd(rs, en, d4, d5, d6, d7); String lcd_current = ""; // IR Sensor #define IR_SENSOR_PIN_1 6 // He...
Update K_Nearest_Neighbors_Cups.ino
Update K_Nearest_Neighbors_Cups.ino
Arduino
mit
baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition
22b60b4b4c5047f6f4c1cad5fdf30a5e6c6cc092
monitor_client/monitor_client.ino
monitor_client/monitor_client.ino
#include "GPRS_Shield_Arduino.h" #include <SoftwareSerial.h> #include <Wire.h> #include "Suli.h" //DHT11 #include "DHT11.h" #define DHT11PIN 2 dht11 DHT11; //DSM int pin = 3; unsigned long duration; unsigned long starttime; unsigned long sampletime_ms = 30000; unsigned long lowpulseoccupancy = 0; float ratio = 0; flo...
#include "GPRS_Shield_Arduino.h" #include <SoftwareSerial.h> #include <Wire.h> #include "Suli.h" //DHT11 #include "DHT11.h" #define DHT11PIN 2 dht11 DHT11; //DSM int pin = 3; unsigned long duration; unsigned long starttime; unsigned long sampletime_ms = 30000; unsigned long lowpulseoccupancy = 0; float ratio = 0; flo...
Debug Mode.
Debug Mode.
Arduino
apache-2.0
lincanbin/Arduino-Location-Based-Environment-Detector-Client,lincanbin/Arduino-Location-Based-Environment-Detector-Client
82c99c8ce1a474955758d00d07aac68f26685eac
Arduino/firmware/firmware.ino
Arduino/firmware/firmware.ino
/* * Firmware for Autonomia low-level Arduino controller. * * The low-level controller intercepts from the receiver the values for throttle and servo and sends them to the host. * From the host receives from the PWM settings for throttle and servo. * * Copyright (C) 2016 Visible Energy, Inc. * * Licensed unde...
/* * Firmware for Autonomia low-level Arduino controller. * * The low-level controller intercepts from the receiver the values for throttle and servo and sends them to the host. * From the host receives from the PWM settings for throttle and servo. * * Copyright (C) 2016 Visible Energy, Inc. * * Licensed unde...
send receiver readings to host only when changed
send receiver readings to host only when changed
Arduino
apache-2.0
cometa/Autonomia
bd453dc14e6e961dd2a72910dcded2f4352d3d04
examples/BasicExample/BasicExample.ino
examples/BasicExample/BasicExample.ino
/* Author: Brent Pease The MIT License (MIT) Copyright (c) 2015-FOREVER Brent Pease 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 ri...
/* Author: Brent Pease The MIT License (MIT) Copyright (c) 2015-FOREVER Brent Pease 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 ri...
Update for second release
Update for second release
Arduino
mit
beehoppop/EmbeddedLibrary,beehoppop/EmbeddedLibrary
592f5fba29b2ab6dd032cb1521518f0c5d87f238
examples/helium-us915/helium-us915.ino
examples/helium-us915/helium-us915.ino
/******************************************************************************* * Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman * Copyright (c) 2018 Terry Moore, MCCI * * Permission is hereby granted, free of charge, to anyone * obtaining a copy of this document and accompanying files, * to do whatever...
/******************************************************************************* * Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman * Copyright (c) 2018 Terry Moore, MCCI * * Permission is hereby granted, free of charge, to anyone * obtaining a copy of this document and accompanying files, * to do whatever...
add Catena 4610 and Disco L072CZ to Helium example
add Catena 4610 and Disco L072CZ to Helium example
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
5db4f6a0756a4eed87ff1f83e01a712de4258cc1
proj/ledvo_lounge_button_test/ledvo_lounge_button_test.ino
proj/ledvo_lounge_button_test/ledvo_lounge_button_test.ino
// LED library #include <FastLED.h> // C++ Libraries (yay!) //#include <StandardCplusplus.h> //#include <vector> // Arduino Libraries #ifdef __AVR__ #include <avr/interrupt.h> #endif // Analog Pins #define RATE_POT 0 // Potentiometer for animation rate #define HUE_POT 1 // Potentiometer for global hue #define VAL_PO...
// LED library #include <FastLED.h> // C++ Libraries (yay!) //#include <StandardCplusplus.h> //#include <vector> // Arduino Libraries #ifdef __AVR__ #include <avr/interrupt.h> #endif // Analog Pins #define RATE_POT 0 // Potentiometer for animation rate #define HUE_POT 1 // Potentiometer for global hue #define VAL_PO...
update ledvo button test
update ledvo button test
Arduino
mit
Eli-Woods/arduino,Eli-Woods/arduino,Eli-Woods/arduino,Eli-Woods/arduino
4e78e4a77b9b90ef4e094a3479be21a923b67a4c
AnimatedGIFs.ino
AnimatedGIFs.ino
/* * Animated GIFs Display Code for SmartMatrix and 32x32 RGB LED Panels * * Uses SmartMatrix Library for Teensy 3.1 written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby grante...
/* * Animated GIFs Display Code for SmartMatrix and 32x32 RGB LED Panels * * Uses SmartMatrix Library for Teensy 3.1 written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby grante...
make it easier to disable scrolling text
make it easier to disable scrolling text
Arduino
mit
pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs
22dae63052dadb1483997f67aa9ff4bae837a28a
arduino/main.ino
arduino/main.ino
/** * Name: nightsky/main * Author: Amjad Saadeh <mail@amjadsaadeh.de> * * Description: A simple firmware for an ArduinoUNO controller to manage a 5x6 LED-matrix * with multiplexing. The used shift register if the 74HC595 (todo: link to build plan). * The firmware saves the animation within the EEPROM a...
/** * Name: nightsky/main * Author: Amjad Saadeh <mail@amjadsaadeh.de> * * Description: A simple firmware for an ArduinoUNO controller to manage a 5x6 LED-matrix * with multiplexing. The used shift register if the 74HC595 (todo: link to build plan). * The firmware saves the animation within the EEPROM a...
fix default animation
fix default animation
Arduino
mit
Trion/nightsky
4095553729854d076a113efd7329adfc39868249
Arduino/BlueCube/BlueCube.ino
Arduino/BlueCube/BlueCube.ino
/********************************************************************* This is an example for our nRF51822 based Bluefruit LE modules Pick one up today in the adafruit shop! Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing product...
/* * File: BlueCube.ino * Version: 0.8 * Author: Adam Reed (adam@secretcode.ninja) * Licence: BSD 3-Clause Licence * ============================================================================ APPLICATION SETTINGS (USER EDITABLE) - General VERBOSE_MODE Set to 'true' enables ...
Improve code layout
Improve code layout
Arduino
bsd-3-clause
neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube,neographophobic/BlueCube
3bad664aa75dcac69d5845242a253adfb4c9344c
examples/enroll/enroll.ino
examples/enroll/enroll.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...
Change type of ID and p
Change type of ID and p Trying to figure out why ID changes to 0 sometimes.
Arduino
bsd-3-clause
urandu/Adafruit-Fingerprint-Sensor-Library,ekapujiw2002/Adafruit-Fingerprint-Sensor-Library
3fac52a6a53b88b1e3e69e666c0ae54c955ca743
bolt-arduino.ino
bolt-arduino.ino
#include "button.h" #include "led.h" #include "screen.h" #include "game.h" #include "timer.h" #include "const.h" #include "controller.h" #include "flasher.h" #include "logger.h" #include "helper.h" void setup() { Serial.begin(115200); //Generate new random seed randomSeed(analogRead(0)); //Setup button::s...
#include "button.h" #include "led.h" #include "screen.h" #include "game.h" #include "timer.h" #include "const.h" #include "controller.h" #include "flasher.h" #include "logger.h" #include "helper.h" void setup() { Serial.begin(115200); //Generate new random seed randomSeed(analogRead(0)); //Setup button::s...
Move main to setup to not repeat
Move main to setup to not repeat
Arduino
mit
SUPERETDUPER/bolt-arduino
2f82d469ced81307415ad1c32bb61d055492ed72
StackEnvMon/StackEnvMon.ino
StackEnvMon/StackEnvMon.ino
#include <OneWire.h> #include <DHT.h> // Sketch to run on Arduino (Uno) // monitoring environment in Stacken Computer Club server room // using one or more Dallas DS18[S]20 temperature sensors, // a DHT22 Temp+Humidity sensor // and a Light Dependent Resistor to detect lights on/off //Outputs serial lines in these fo...
#include <OneWire.h> #include <DHT.h> // Sketch to run on Arduino (Uno) // monitoring environment in Stacken Computer Club server room // using one or more Dallas DS18[S]20 temperature sensors, // a DHT22 Temp+Humidity sensor // and a Light Dependent Resistor to detect lights on/off //Outputs serial lines in these fo...
Simplify data consumer parsing by sending 2 params for all sensors
Simplify data consumer parsing by sending 2 params for all sensors
Arduino
apache-2.0
stacken/stack-env-monitor
4520c7c40ad8d36903f1b834315da47770251ca4
time.ino
time.ino
#include <stdlib.h> #include "time.h" // "Globally" available time data through getters static time_t current_timestamp = 0; static bool time_has_been_set = false; static time_t measured_time_drift = 0; static uint32_t sync_interval = 300; static uint32_t previous_millis = 0; static uint32_t next_sync_threshold = 0;...
#include <stdlib.h> #include "time.h" // "Globally" available time data through getters static time_t current_timestamp = 0; static bool time_has_been_set = false; static time_t measured_time_drift = 0; static uint32_t sync_interval = 300; static uint32_t previous_millis = 0; static uint32_t next_sync_threshold = 0;...
Fix extremely obvious rounding error
Fix extremely obvious rounding error
Arduino
mit
xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc
96fcda2cbc2ee9efaff3d59848b7c57a58799d52
build/shared/examples/01.Basics/BareMinimum/BareMinimum.ino
build/shared/examples/01.Basics/BareMinimum/BareMinimum.ino
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
make editor folding happy
make editor folding happy
Arduino
lgpl-2.1
tbowmo/Arduino,weera00/Arduino,NicoHood/Arduino,jamesrob4/Arduino,ThoughtWorksIoTGurgaon/Arduino,ogahara/Arduino,spapadim/Arduino,majenkotech/Arduino,byran/Arduino,byran/Arduino,NeuralSpaz/Arduino,ikbelkirasan/Arduino,mateuszdw/Arduino,onovy/Arduino,danielchalef/Arduino,ssvs111/Arduino,leftbrainstrain/Arduino-ESP8266,P...
b5218d1b93004e1b49722a4c11008d803c1334c3
examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino
examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino
/** * This is a kind of unit test for DEV for now */ #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager #include <time.h> #define TRIGGER_PIN 0 const char* modes[] = { "NULL", "STA", "AP", "STA+AP" }; // // #define MYOLED // #include <Wire.h> // #include <Adafruit_GFX.h> // #include <Adafruit_SSD1306...
/** * This is a kind of unit test for DEV for now */ #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager #include <time.h> #define TRIGGER_PIN 0 const char* modes[] = { "NULL", "STA", "AP", "STA+AP" }; // // #define MYOLED // #include <Wire.h> // #include <Adafruit_GFX.h> // #include <Adafruit_SSD1306...
fix travis compile on esp32
fix travis compile on esp32
Arduino
mit
tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager
ec7ca5fbda10c4f47782f4bee8d59f45e6137e46
ESP8266HueEmulator/ESP8266HueEmulator.ino
ESP8266HueEmulator/ESP8266HueEmulator.ino
/** * Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and * requests URLs like /api/UjBZ0nvTLu7aMdOe but in the end it does not succeed "finding" the emulated bridge * (even if the app is talking to it) **/ #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiUDP.h> #inclu...
/** * Emulate Philips Hue Bridge ; so far the Hue app finds the emulated Bridge and * requests URLs like /api/UjBZ0nvTLu7aMdOe but in the end it does not succeed "finding" the emulated bridge * (even if the app is talking to it) **/ #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <WiFiUDP.h> #inclu...
Use ESP8266SSDP library and add NeoPixel strip
Use ESP8266SSDP library and add NeoPixel strip
Arduino
mit
Quanghoster/ESP8266HueEmulator
d05f11b5735fa5db0f3794d9ab1e1c541f2d7837
arduino/lockdown/lockdown.ino
arduino/lockdown/lockdown.ino
const String VERSION = "0.1.0"; const int EGRESS = 0; const int MOTION = 1; const int TRIP = 2; const int CLOSED = 0; const int OPEN = 1; const String TYPES[] = { "egress", "motion", "trip" }; String incoming = ""; // All sensor states int states[54]; int lastStates[54]; void setup() { //start serial connectio...
const String VERSION = "0.1.0"; const int EGRESS = 0; const int MOTION = 1; const int TRIP = 2; const int CLOSED = 0; const int OPEN = 1; const String TYPES[] = { "egress", "motion", "trip" }; String incoming = ""; // All sensor states int states[50]; int lastStates[50]; void setup() { //start serial connectio...
Change array length to 50
Change array length to 50
Arduino
mit
cannikin/lockdown,cannikin/lockdown
818a524607da319e452d44a5cd5140d294a628af
examples/WeatherStationDemo/WeatherStationDemo.ino
examples/WeatherStationDemo/WeatherStationDemo.ino
/**The MIT License (MIT) Copyright (c) 2016 by Daniel Eichhorn 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, m...
/**The MIT License (MIT) Copyright (c) 2016 by Daniel Eichhorn 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, m...
Document WU lang code mapping
Document WU lang code mapping
Arduino
mit
squix78/esp8266-weather-station
b359119ffa74094bb988384d3be22af07f906434
examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.ino
examples/Boards_WiFi/ESP8266_Shield/ESP8266_Shield.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...
Add link to the article
Add link to the article
Arduino
mit
blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library
8bf8705579709c7e923b595462009e441e6ccdaf
tactA_single/tactA_single.ino
tactA_single/tactA_single.ino
/** * Tact example for handling capacitive sensing. * Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the...
/** * Tact example for handling capacitive sensing. * Copyright (C) 2013, Tomek Ness, Jack Rusher and Studio NAND * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the...
send peak and bias via serial (all the time)
send peak and bias via serial (all the time)
Arduino
lgpl-2.1
philippschmitt/tact-arduino
3810804bef0359ce72e52ade3ffa782ac379d6c9
projects/arduino/simple_alarm_system/src/alarm/alarm.ino
projects/arduino/simple_alarm_system/src/alarm/alarm.ino
#include <Arduino.h> #include <NewTone.h> #include <Adafruit_NeoPixel.h> #include <NewPing.h> // LED Light Strand Pin #define LED_PIN 2 #define MAX_ALARM_TIME 10000 #define TRIGGER_PIN 6 // Arduino pin tied to trigger pin on the ultrasonic sensor. #define ECHO_PIN 7 // Arduino pin tied to echo pin on the...
#include <Arduino.h> #include <NewTone.h> #include <Adafruit_NeoPixel.h> #include <NewPing.h> // LED Light Strand Pin #define LED_PIN 2 #define MAX_ALARM_TIME 10000 #define TRIGGER_PIN 6 // Arduino pin tied to trigger pin on the ultrasonic sensor. #define ECHO_PIN 7 // Arduino pin tied to echo pin on the...
Update alarm.ino
Update alarm.ino
Arduino
mit
borq79/cs.edu,borq79/cs.edu
0c122ba927b4a969c066816ba8ff92780f5a8aa7
payload/payload.ino
payload/payload.ino
#include <Wire.h> // RCR headers #include "Setupable.h" SdFatSdio sd_card; // SD card manager File file; // file manager // To shorten RCR namespace, use namespace alias "custom". namespace custom = rcr::level1payload; // Array of pointers to Setupable-implementing objects which require // initialization logic to ...
#include <Adafruit_Sensor.h> #include <Wire.h> #include <SPI.h> // SD card libraries #include <BlockDriver.h> //#include <FreeStack.h> // something is wrong with this library. #include <MinimumSerial.h> #include <SdFat.h> #include <SdFatConfig.h> #include <SysCall.h> // Sensor libraries. #include <Adafruit_BME280.h> ...
Generalize the setup logic
Generalize the setup logic
Arduino
mit
nolanholden/geovis,nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis
c582d78c223a5c23c884b42c5a04987f21a82a5d
blobs.ino
blobs.ino
#include <EEPROM.h> #include <SPI.h> #include <GD2.h> #define NBLOBS 128 //' a{ #define OFFSCREEN -16384 struct xy { int x, y; } blobs[NBLOBS]; void setup() { GD.begin(); for (int i = 0; i < NBLOBS; i++) { blobs[i].x = OFFSCREEN; blobs[i].y = OFFSCREEN; } Serial.begin(1000000); // JCB } ...
#include <EEPROM.h> #include <SPI.h> #include <GD2.h> #define NBLOBS 128 //' a{ #define OFFSCREEN -16384 struct xy { int x, y; } blobs[NBLOBS]; void setup() { GD.begin(); for (int i = 0; i < NBLOBS; i++) { blobs[i].x = OFFSCREEN; blobs[i].y = OFFSCREEN; } Serial.begin(1000000); // JCB } ...
Add on-screen message
Add on-screen message
Arduino
bsd-3-clause
jamesbowman/gd2-lib,jamesbowman/gd2-lib,jamesbowman/gd2-lib
35e9fb2f5e9ffb1fc49adca1900657540b7866c1
examples/02-Utility/MyAudioAlgorithm/MyAudioAlgorithm.ino
examples/02-Utility/MyAudioAlgorithm/MyAudioAlgorithm.ino
/* MyAudioAlgorithm Created: Chip Audette, OpenAudio, Apr 2017 Purpose: Be a blank canvas for adding your own floating-point audio processing. Uses Tympan Audio Adapter. MIT License. use at your own risk. */ //These are the includes from the Teensy Audio Library #include <Audio.h> //Teensy Audi...
/* MyAudioAlgorithm Created: Chip Audette, OpenAudio, Apr 2017 Purpose: Be a blank canvas for adding your own floating-point audio processing. Uses Tympan Audio Adapter. MIT License. use at your own risk. */ //These are the includes from the Teensy Audio Library #include <Audio.h> //Teensy Audi...
Update MyAudioAlgorithm.ino
Update MyAudioAlgorithm.ino AudioViaUSB changed input to INPUT_JACK_AS_MIC
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
3b73bb2b06eba8e54934b2be69a3be8ac20281b0
PaperTapePuncher.ino
PaperTapePuncher.ino
/* This software is written for Arduino boards and turn it into a Control unit replacement for FACIT Paper tape puncher. */ #include "fifo.h" #include "hex.h" #include "dec.h" #include "human.h" #include "baudot.h" #define PinBit0 10 #define PinBit1 2 #define PinBit2 3 #define PinBit3 4 #define PinBit4 5 #define P...
/* This software is written for Arduino boards and turn it into a Control unit replacement for FACIT Paper tape puncher. */ #include "fifo.h" #include "hex.h" #include "dec.h" #include "human.h" #include "baudot.h" // Arduino Pro Mini // #define PinBit0 10 // Arduino Nano #define PinBit0 14 #define PinBit1 2 #de...
add support for Arduino Nano
add support for Arduino Nano
Arduino
mit
Wene/PaperTapePuncher
0b551af23d54390d1c38c1c848d7e652932a9a71
Part2_DHT22WebserverESP8266_SPIFFS/Part2_DHT22WebserverESP8266_SPIFFS.ino
Part2_DHT22WebserverESP8266_SPIFFS/Part2_DHT22WebserverESP8266_SPIFFS.ino
/* * ESP8266 + DHT22 + BMP180 + BOOTSTRAP + SPIFFS + GOOGLE CHARTS * Copyright (C) 2017 http://www.projetsdiy.fr - http://www.diyprojects.io * * Part 2 : Interaction between Arduino code and HTML interface, data exchange in JSON * - How to prepare a JSON object to send measurements to the HTML interface from Ardu...
/* * ESP8266 + DHT22 + BMP180 + BOOTSTRAP + SPIFFS + GOOGLE CHARTS * Copyright (C) 2017 http://www.projetsdiy.fr - http://www.diyprojects.io * * Part 2 : Interaction between Arduino code and HTML interface, data exchange in JSON * - How to prepare a JSON object to send measurements to the HTML interface from Ardu...
Update Part2_DHT22WebserverESP8266_SPIFFS.ino
Update Part2_DHT22WebserverESP8266_SPIFFS.ino
Arduino
mit
projetsdiy/ESP8266-Webserver-Tutorials,projetsdiy/ESP8266-Webserver-Tutorials
bb30182ff33ef35aa983ce802b0a828ef95c8ab5
espwifisniff.ino
espwifisniff.ino
#include <stdint.h> #include <stdbool.h> #include <string.h> #include <ctype.h> #include "Arduino.h" #include "ESP8266WiFi.h" extern "C" { #include <user_interface.h> } // maximum number of unique mac addresses to remember #define MAX_MAC 64 static int unique_num = 0; static uint8_t unique_mac[MAX_MAC][6]; // retur...
#include <stdint.h> #include <stdbool.h> #include <string.h> #include <ctype.h> #include "Arduino.h" #include "ESP8266WiFi.h" extern "C" { #include <user_interface.h> } // maximum number of unique mac addresses to remember #define MAX_MAC 200 static int unique_num = 0; typedef struct { uint8_t mac[6]; unsig...
Implement a table of MAC addresses along with a timestamp, so entries can expire after some time.
Implement a table of MAC addresses along with a timestamp, so entries can expire after some time.
Arduino
mit
bertrik/espwifisniff
81697131c434fdf23a4240cb9526b0c387c27173
Sender/Sender.ino
Sender/Sender.ino
#include <Wire.h> #include "Adafruit_Trellis.h" #include <Crypt.h> #include <CustomProtocol.h> #define STATE_UID 0 #define STATE_MSG 1 #define STATE_ACK 2 #define DEBUG_MODE false #define WAIT_TIME 1000 // time to wait for response Adafruit_Trellis matrix0 = Adafruit_Trellis(); Adafruit_TrellisSet trellis = Adafrui...
#include <Wire.h> #include "Adafruit_Trellis.h" #include <Crypt.h> #include <CustomProtocol.h> #define STATE_UID 0 #define STATE_MSG 1 #define STATE_ACK 2 #define LED_BUTTON 10 #define LED_UID 11 #define LED_MSG 12 #define LED_ERR 13 #define BUTTON 8 #define DEBUG_MODE false #define WAIT_TIME 1000 // time to wait f...
Change LED pin variables to #define constants
Change LED pin variables to #define constants
Arduino
mit
Lilyheart/CIS126_Final_Project,Lilyheart/CIS126_Final_Project
d098965f5cc051cbeca4ec08f35e06f02a54bdcf
Teensy/Teensy.ino
Teensy/Teensy.ino
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
Update Teensy.ino
Update Teensy.ino
Arduino
mit
munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights