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
0054ef2a0259d2e7993545d2fab6af6ecaa05bdb
inverted-pendulum.ino
inverted-pendulum.ino
// Inverted pendulum - for Teensy 3.2 #include "Encoder.h" #include "Pendulum.h" #include "PIDControl.h" #include "SimpleShell.h" #define LEFT HIGH #define RIGHT LOW #define TRACK_ENCODER_PIN_A 0 #define TRACK_ENCODER_PIN_B 1 #define PENDULUM_ENCODER_PIN_A 2 #define PENDULUM_ENCODER_PIN_B 3 #define LEFT_BUMP_PIN 4 #d...
// Inverted pendulum - for Teensy 3.2 #include "Encoder.h" #include "Pendulum.h" #include "PIDControl.h" #include "SimpleShell.h" #define LEFT HIGH #define RIGHT LOW #define TRACK_ENCODER_PIN_A 0 #define TRACK_ENCODER_PIN_B 1 #define PENDULUM_ENCODER_PIN_A 2 #define PENDULUM_ENCODER_PIN_B 3 #define LEFT_BUMP_PIN 4 #d...
Use Pendulum::update
Use Pendulum::update
Arduino
mit
andrewadare/inverted-pendulum
d4c7a3a0278c6ab3793abef96e515e35f2f67a32
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] =...
Initialize based on isSource
Initialize based on isSource
Arduino
mit
knopjesmuseum/resilient-network,knopjesmuseum/resilient-network
7f51831d740b228405293913a031562b01d578af
Edzna/device/main.ino
Edzna/device/main.ino
/* MQTT Light for Home-Assistant - NodeMCU (ESP8266) https://home-assistant.io/components/light.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient Sources : - File > Examples > ES8266WiFi > WiFiClient ...
/* MQTT Light for Home-Assistant - NodeMCU (ESP8266) https://home-assistant.io/components/light.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient Sources : - File > Examples > ES8266WiFi > WiFiClient ...
Update main.ino
Update main.ino
Arduino
apache-2.0
TheIoTLearningInitiative/CodeLabs,TheIoTLearningInitiative/CodeLabs,TheIoTLearningInitiative/CodeLabs,TheIoTLearningInitiative/CodeLabs,TheIoTLearningInitiative/CodeLabs,TheIoTLearningInitiative/CodeLabs
a58cd727e47c58ea0d88f3bebcd9e0d06bdf4edd
EmotionalClothing.ino
EmotionalClothing.ino
#include <WaveHC.h> #include <WaveUtil.h> String fileNames[4] = {"BUGS2.WAV", "DAFFY1.WAV", "BUGS1.WAV", "DAFFY2.WAV"}; SdReader card; // This object holds the information for the card FatVolume vol; // This holds the information for the partition on the card FatReader root; // This holds the information for ...
#include <WaveHC.h> #include <WaveUtil.h> #include <Wire.h> #include "Adafruit_TCS34725.h" String fileNames[4] = {"BUGS2.WAV", "DAFFY1.WAV", "BUGS1.WAV", "DAFFY2.WAV"}; SdReader card; // This object holds the information for the card FatVolume vol; // This holds the information for the partition on the card Fat...
Implement setup for RGB Color Sensor
Implement setup for RGB Color Sensor
Arduino
mit
IgorGee/Emotional-Clothing
b453e09c78a09b8f2528012cf48721793828deae
src/audio_sampler/src/audio_sampler/audio_sampler.ino
src/audio_sampler/src/audio_sampler/audio_sampler.ino
/* * Silence Thresholder * For Chatty Coasters */ /* DECLARATIONS */ /* Discretize audio input to one sample every SAMPLE_WINDOW mS: * e.g. 50mS = 20Hz sample rate. */ const int sampleWindow = 50; /* After TIME_THRESH sampleWindows below VOL_THRESH, trigger event * 20Hz * 5S wait time = 100 */ int timeThresh =...
/* * Silence Thresholder * For Chatty Coasters */ /* DECLARATIONS */ /* Discretize audio input to one sample every SAMPLE_WINDOW mS: * e.g. 50mS = 20Hz sample rate. */ const int sampleWindow = 50; /* After TIME_THRESH sampleWindows below VOL_THRESH, trigger event * 20Hz * 5S wait time = 100 */ int timeThresh =...
fix normalizing issues
fix normalizing issues
Arduino
mit
jhaazpr/live-object
bd4330ed996e0b36a631f6a407defab385f1dcd9
arduino/magsensor/magsensor.ino
arduino/magsensor/magsensor.ino
#include <EEPROM.h> #include <RCSwitch.h> #include <LowPower.h> #include "limits.h" #include "protocol.h" #include "sensor_types.h" #include "voltmeter.h" #include "diagnostic.h" RCSwitch rfDevice = RCSwitch(); int SERIAL_COMMUNICATION_SPEED = 9600; // How long do we sleep. The longer, the better for the battery but ...
#include <EEPROM.h> #include <RCSwitch.h> #include <LowPower.h> #include "limits.h" #include "protocol.h" #include "sensor_types.h" #include "voltmeter.h" #include "diagnostic.h" RCSwitch rfDevice = RCSwitch(); int SERIAL_COMMUNICATION_SPEED = 9600; // How long do we sleep. The longer, the better for the battery but ...
Use only one codeword now.
Use only one codeword now.
Arduino
apache-2.0
jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos,jdmichaud/domos
acc63e8b7cfb6609a960e87de6279d23ea9d9586
examples/all1V8Sensors/all1V8Sensors.ino
examples/all1V8Sensors/all1V8Sensors.ino
/* * All 1.8 V sensors example * * This sketch shows you how to use all 1.8 V ROHM sensors simultaneously. * * Before powering up your Arduino, make sure to select 1.8V on jumper J15 on the shield! */ // define all the sensors we will use #define INCLUDE_ALL_1V8_SENSORS // include the library #inc...
/* * All 1.8 V sensors example * * This sketch shows you how to use all 1.8 V ROHM sensors simultaneously. * * Before powering up your Arduino, make sure to select 1.8V on jumper J15 on the shield! */ // define all the sensors we will use #define INCLUDE_ALL_1V8_SENSORS // include the library #inc...
Update all1V8Sensors.ino
Update all1V8Sensors.ino
Arduino
mit
jgromes/RohmMultiSensor
e27a87bf3cc83a5adc5733bad754df7d37dd9630
RGB_lamps/RGB_lamps.ino
RGB_lamps/RGB_lamps.ino
#include <ComplementaryColors.h> #include <RGBLamp.h> /* RGBLamp.h - Library for controlling RGB diodes. Created by Claus Lensbøl, May 19, 2013. For license, see LICENSE file. */ RGBLamp lamps[4]; int colors[216][3]; int dayCols[20][3]; int cycleFade[4] = {0,0,0,0}; void setup() { Serial.begin(9600); ra...
#include <ComplementaryColors.h> #include <RGBLamp.h> /* RGBLamp.h - Library for controlling RGB diodes. Created by Claus Lensbøl, May 19, 2013. For license, see LICENSE file. */ RGBLamp lamps[4]; int colors[216][3]; int dayCols[20][3]; float cycleFade[4] = {0,0,0,0}; void setup() { Serial.begin(9600); ...
Fix fades
Fix fades
Arduino
mit
cmol/arduino-rgb,cmol/arduino-rgb
9a82032664419f118ff5bc62033174d441e5101d
loggertask.ino
loggertask.ino
void IRAM_ATTR loggerTask ( void * pvParameters ) { const TickType_t loggerTaskdelayTime = ( 1000 * 120 ) / portTICK_PERIOD_MS; while (1) { const char * appendError = "Failed to write to log file."; char content[60]; uint8_t charCount = 0; static bool systemHasBooted = tr...
void IRAM_ATTR loggerTask ( void * pvParameters ) { const TickType_t loggerTaskdelayTime = ( 1000 * 120 ) / portTICK_PERIOD_MS; while (1) { const char * appendError = "Failed to write to log file."; char content[60]; uint8_t charCount = 0; static bool systemHasBooted = tr...
Reset strings are now locals.
Reset strings are now locals.
Arduino
mit
CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32
846e8703a73c2a695bd9e009d95e7de00532d746
examples/02.IO/Brightness/Brightness.ino
examples/02.IO/Brightness/Brightness.ino
#include <ParkingShield.h> ParkingShield shield; void setup() { Serial.begin(9600); } void loop() { Serial.print(F("Light intensity is : " )); Serial.print(shield.getBrightness() / 1024. * 100); Serial.print(" %% \n"); delay(1000); }
#include <ParkingShield.h> ParkingShield shield; void setup() { Serial.begin(9600); } void loop() { Serial.print(F("Light intensity is : " )); Serial.print(shield.getBrightness() / 1024. * 100); Serial.print(" % \n"); delay(1000); }
Fix typo
Fix typo
Arduino
mit
iotl/IoT-Shield-Firmware
935ecd462a38fc789a09917528f0be850b9a379b
examples/withoutLib_SS/withoutLib_SS.ino
examples/withoutLib_SS/withoutLib_SS.ino
/* 1 - THIS EXAMPLE DOES NOT USES CS5490 LIBRARY, use only if you want to understand only if you are having some trouble or needs to understante how it works 2 - THIS EXAMPLES USES SoftwareSerial library, it means that will be useful only for ARDUINO UNO, ESP8622 and others */ #include <SoftwareSerial.h> #define...
/* 1 - THIS EXAMPLE DOES NOT USES CS5490 LIBRARY, use only if you want to understand only if you are having some trouble or needs to understante how it works 2 - THIS EXAMPLES USES SoftwareSerial library, it means that will be useful only for ARDUINO UNO, ESP8622 and others */ #include <SoftwareSerial.h> #define...
Fix UNO Bug withoutLib_SS
Fix UNO Bug withoutLib_SS
Arduino
mit
tiagolobao/CS5490
5a8deca244682109b1a2f9131fab3d8418211397
IHM595/exemples/HelloWorld/HelloWorld.ino
IHM595/exemples/HelloWorld/HelloWorld.ino
/* * Marcelo H Moraes * marceloh220@hotmail.com * * Hello World! * All the fancy is only for demonstration */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; IHM595 board(2,3,4); void setup() { board.background(HIGH); board.set(2,0); String a = "Hello World!"; board.print(a); } void loop() { boa...
/* * Marcelo H Moraes * marceloh220@hotmail.com * * Hello World! * All the fancy is only for demonstration */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; //(Data pin, Clock pin, Enable pin) IHM595 board(2,3,4); void setup() { board.background(HIGH); board.set(2,0); String a = "Hello World!"; boar...
Update HelloWorld.ino
Update HelloWorld.ino
Arduino
mit
marceloh220/Arduino,marceloh220/Arduino
7808924273ffc9b71b6872004ea8b5b1c401e060
NeoPixelNightLight/NeoPixelNightLight.ino
NeoPixelNightLight/NeoPixelNightLight.ino
#include <EEPROM.h> // RTC // Date and time functions using a DS1307 RTC connected via I2C and Wire lib #include <Wire.h> #include "RTClib.h" #if defined(ARDUINO_ARCH_SAMD) // for Zero, output on USB Serial console, remove line below if using programming port to program the Zero! #define Serial SerialUSB #endif RTC_...
#include <EEPROM.h> // RTC // Date and time functions using a DS1307 RTC connected via I2C and Wire lib #include <Wire.h> #include "RTClib.h" #if defined(ARDUINO_ARCH_SAMD) // for Zero, output on USB Serial console, remove line below if using programming port to program the Zero! #define Serial SerialUSB #endif RTC_...
add dst to nightlight
add dst to nightlight
Arduino
mit
Seekatar/GpioPlayground,Seekatar/GpioPlayground,Seekatar/GpioPlayground,Seekatar/GpioPlayground,Seekatar/GpioPlayground
7964b68546837c858916bbe10edc1fc488915426
examples/FSM/CosaPingPong/CosaPingPong.ino
examples/FSM/CosaPingPong/CosaPingPong.ino
/** * @file CosaPingPong.ino * @version 1.0 * * @section License * Copyright (C) 2012, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
/** * @file CosaPingPong.ino * @version 1.0 * * @section License * Copyright (C) 2012, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
Fix return value from state transition functions.
Fix return value from state transition functions.
Arduino
lgpl-2.1
jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,SinishaDjukic/Meshwork,rrobinet/Cosa,SinishaDjukic/Meshwork,mikaelpatel/Cosa,jeditekunum/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,SinishaDjuki...
929edb6b0e74d05d5776392da644e4854bf5e036
examples/accel/accel.ino
examples/accel/accel.ino
#include <Helper2.h> #include <Wire.h> void setup() { initialize(); led1.off(); led2.color(0); led2.off(); led2.color(0.5); } void loop() { if (accel.freefall()) { led1.on(); } else { led1.off(); } if (accel.active()) { led2.on(); } else { led2.off(); } wait(20); };
#include <Helper2.h> #include <Wire.h> void setup() { initialize(); led1.off(); led1.color(0.5); led2.off(); led2.color(0.5); } void loop() { if (accel.freefall()) { led1.on(); } else { led1.off(); } if (accel.active()) { led2.on(); } else { led2.off(); } wait(20); }
update accel.ino
update accel.ino
Arduino
mit
UEC-VBSeminar/Helper2.h
11e1812dc4140d05334592f9f490842c95e8691b
examples/Wireless/CosaWirelessDS18B20/CosaWirelessDS18B20.ino
examples/Wireless/CosaWirelessDS18B20/CosaWirelessDS18B20.ino
/** * @file CosaWirelessDS18B20.ino * @version 1.0 * * @section License * Copyright (C) 2013-2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * versio...
/** * @file CosaWirelessDS18B20.ino * @version 1.0 * * @section License * Copyright (C) 2013-2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * versio...
Correct wireless power-down in example sketch; CosaWirelessDS18B20.
Correct wireless power-down in example sketch; CosaWirelessDS18B20.
Arduino
lgpl-2.1
mikaelpatel/Cosa,rrobinet/Cosa,jeditekunum/Cosa,kc9jud/Cosa,kc9jud/Cosa,kc9jud/Cosa,dansut/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,rrobinet/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,dansut/Cosa,rrobinet/Cosa,dansut/Cosa
c6163d05d2a515426f723a0de7eb466611289565
code/LadybugAttiny85/LadybugAttiny85.ino
code/LadybugAttiny85/LadybugAttiny85.ino
#include <LadybugActions.h> #include <Bounce2.h> #include <Adafruit_NeoPixel.h> #include <avr/sleep.h> #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #endif #ifndef sbi #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #endif enum color_mode { MODE_RAINBOW, MODE_BREATHE, MODE_RANDOM }; #defin...
#include <LadybugActions.h> #include <Bounce2.h> #include <Adafruit_NeoPixel.h> #include <avr/sleep.h> #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #endif #ifndef sbi #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #endif enum color_mode { MODE_RAINBOW, MODE_BREATHE, MODE_RANDOM }; #defin...
Clean up some whitespace.
Clean up some whitespace.
Arduino
mit
z2amiller/ladybug
92b70045a2ca3107561e92d0ac4d2ea1e3fc60af
MagnusCore/MagnusCore.ino
MagnusCore/MagnusCore.ino
#include <Adafruit_NeoPixel.h> #include <stdlib.h> #include <string.h> #include "animation.hpp" #include "circbuff.hpp" // first communication pin for neo pixel string #define BASE_PIN 2 #define NUM_STRINGS 1 // one for each resonator //#define NUM_STRINGS 8 // one for each resonator const uint16_t LEDS_PE...
#include <Adafruit_NeoPixel.h> #include <stdlib.h> #include <string.h> #include "animation.hpp" #include "circbuff.hpp" // first communication pin for neo pixel string #define BASE_PIN 2 #define NUM_STRINGS 1 // one for each resonator //#define NUM_STRINGS 8 // one for each resonator const uint16_t LEDS_...
Fix whitespace woes
Fix whitespace woes
Arduino
mit
TeamNorCal/arduino-portal-core
5ca25ea6490047fc1df68b88bb867ea60e372acb
RssDisp/RssDisp.ino
RssDisp/RssDisp.ino
#include "conf.h" #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ESP8266HTTPClient.h> #include <time.h> #if USE_OTA #include <ArduinoOTA.h> #include "ota_util.h" #endif #include <Adafruit_GFX.h> #include <Fontx.h> #include <fontx/ILGH16XB.h> #include <fontx/ILGZ16XB.h> #inc...
#include "conf.h" #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ESP8266HTTPClient.h> #include <time.h> #if USE_OTA #include <ArduinoOTA.h> #include "ota_util.h" #endif #include <Adafruit_GFX.h> #include <Fontx.h> #include <fontx/ILGH16XB.h> #include <fontx/ILGZ16XB.h> #inc...
fix bug:screen display was sisturbed
fix bug:screen display was sisturbed
Arduino
mit
h-nari/HSES_NODE_OLED_Sample_programs,h-nari/HSES_NODE_OLED_Sample_programs,h-nari/HSES_NODE_OLED_Sample_programs
d2a77460b6c2eea91823082ac1dd6c6b65b2420a
WirelessTrigger.ino
WirelessTrigger.ino
#define ROLE_GROUND 0 #define ROLE_SKY 1 // SET THE TARGET ROLE HERE ------------------------------- #define ROLE ROLE_SKY // Standard libraries #include <Arduino.h> #include <printf.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #if ROLE == ROLE_GROUND // Smart...
#define ROLE_GROUND 0 #define ROLE_SKY 1 // SET THE TARGET ROLE HERE ------------------------------- #define ROLE ROLE_SKY // Standard libraries #include <Arduino.h> #include <printf.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #if ROLE == ROLE_GROUND // Smart...
Add logic to attempt to fix zero issue
Add logic to attempt to fix zero issue
Arduino
mit
WasabiFan/aerial-release-system,WasabiFan/aerial-release-system
8cb77cb604b09312ea0806f07020e09fa587d82f
docs/arduino-nano-netshield/ant_switch_arduino_netshield.ino
docs/arduino-nano-netshield/ant_switch_arduino_netshield.ino
#include <UIPEthernet.h> /* * * Arduino nano + ENC29J60 ethernet shield antenna switch * * 8 selecteable antennas in digital outputus d2,d3,d4,d5,d6,d7,d8,d9 * * curl http://172.16.50.19/?cmd=1 set antenna 1 (only) * curl http://172.16.50.19/?cmd=+1 add antenna 1 * curl http://172.16.50.19/?cmd=-1 remove an...
#include <UIPEthernet.h> /* * * Arduino nano + ENC29J60 ethernet shield antenna switch * * 8 selecteable antennas in digital outputs d2,d3,d4,d5,d6,d7,d8,d9 * * curl http://172.16.50.19/?cmd=1 set antenna 1 (only) * curl http://172.16.50.19/?cmd=+1 add antenna 1 * curl http://172.16.50.19/?cmd=-1 remove ant...
Update ant_switch_arduino_netshield.ino
Update ant_switch_arduino_netshield.ino
Arduino
mit
OH1KK/KiwiSDR-antenna-switch-extension,OH1KK/KiwiSDR-antenna-switch-extension,OH1KK/KiwiSDR-antenna-switch-extension
6ff9afacd42399d1464caff32cb8b181bb0744f2
arduino/rflink/rflink.ino
arduino/rflink/rflink.ino
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "rfm69.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "radio.h" // Arduino needs these in the .ino file ... #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 // number of time divisio...
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "rfm69.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "radio.h" // Arduino needs these in the .ino file ... #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 // number of time divisio...
Set baudrate using a Long type
Set baudrate using a Long type
Arduino
mit
bertrik/rflink,bertrik/rflink
8440a0f76061abd895c7e092e82439b9fd6fba34
camera_box/camera_box.ino
camera_box/camera_box.ino
#include <Wire.h> #include <stdlib.h> #include <Adafruit_MMA8451.h> #include <Adafruit_Sensor.h> #include <DHT.h> #define DHTPIN 4 // DHT Temp & Humidity Pin #define DHTTYPE DHT22 // DHT 22 (AM2302) int CAM_01_PIN = 5; int CAM_02_PIN = 6; int led_pin = 13; int led_value = LOW; Adafruit_MMA8451 mma = Adafruit_MMA...
#include <Wire.h> #include <stdlib.h> #include <Adafruit_MMA8451.h> #include <Adafruit_Sensor.h> #include <DHT.h> #define DHTPIN 4 // DHT Temp & Humidity Pin #define DHTTYPE DHT22 // DHT 22 (AM2302) int CAM_01_PIN = 5; int CAM_02_PIN = 6; int led_pin = 13; int led_value = LOW; Adafruit_MMA8451 mma = Adafruit_MMA...
Support reading serial in so we can toggle cameras (and led); cleaning up debug statements
Support reading serial in so we can toggle cameras (and led); cleaning up debug statements
Arduino
mit
AstroHuntsman/POCS,AstroHuntsman/POCS,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,panoptes/PACE
57f9dba516a10a756fdba51cf9a01e9a0af009e8
K_Nearest_Neighbors_Template/K_Nearest_Neighbors_Template.ino
K_Nearest_Neighbors_Template/K_Nearest_Neighbors_Template.ino
#include <Arduino.h> #include <math.h> // FIXME: Add the libraries needed for each pin #include "Object.h" // FIXME: Can change pin number #define IR_SENSOR_PIN_1 6 // Define Pins for each sensor // Distance Sensor (Height) int test = 0; bool wait = false; // Define anything else needed for sensors ...
#include <Arduino.h> #include <math.h> // FIXME: Add the libraries needed for each pin #include "Object.h" // FIXME: Can change pin number #define IR_SENSOR_PIN_1 6 // Define Pins for each sensor // Distance Sensor (Height) int test = 0; bool wait = false; // Define anything else needed for sensors ...
Update K_Nearest_Neighbors_Template.ino
Update K_Nearest_Neighbors_Template.ino
Arduino
mit
baileyherms/Pattern-Recognition,baileyherms/Pattern-Recognition
7be52c441c63b632514f1903a84f41a0b89b52da
onboard_controller/onboard_controller.ino
onboard_controller/onboard_controller.ino
#include <math.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> /*--debug macros--*/ //#define readDebug //print Serial1 reads to console //#define writeDebug //print Serial1 writes to console #define fakeGPS //fake the presence of a gps //#define rawGPSDebug //print raw gps data to console //make sure these ...
#include <math.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> /*--debug macros--*/ //#define readDebug //print Serial1 reads to console //#define writeDebug //print Serial1 writes to console #define fakeGPS //fake the presence of a gps //#define rawGPSDebug //print raw gps data to console //make sure these ...
switch flags to use struct for clarity test directive triggers flag
switch flags to use struct for clarity test directive triggers flag
Arduino
mit
CURocketry/LaunchVehicleController2015,CURocketry/LaunchVehicleController
2483f719446e1a0b65ba3305ad7d07acb8aaeb4a
interduino/src/sketch.ino
interduino/src/sketch.ino
// Interduino is the physical manifestation of cigtee - an arduino sketch designed to take serial commands to make stuff happen IRL void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } int pinState[6]; void loop() { if(Serial.available()){ int ledState = Serial.read(); if(ledState == 65){ digitalWri...
// Interduino is the physical manifestation of cigtee - an arduino sketch designed to take serial commands to make stuff happen IRL void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } int pinState[6]; void loop() { if(Serial.available()){ int ledState = Serial.read(); if(ledState == 65){ digitalWri...
increase delay
increase delay
Arduino
agpl-3.0
NegativeK/telehack,NegativeK/telehack
1e457462e1643b543bb31b7bb0e8acf4a182df6a
Photon/IoTlib/examples/starter/starter.ino
Photon/IoTlib/examples/starter/starter.ino
/****************************************************************** Example starting point sketch for Patriot library This example uses the built-in blue LED. You can use the Patriot iOS app or Alexa or the Alexa app to turn the LED on or off. It is provided as a quick start for your own sketches. Refer also to the e...
/****************************************************************** Example starting point sketch for Patriot library This example uses the built-in blue LED. You can use the Patriot iOS app or Alexa or the Alexa app to turn the LED on or off. It is provided as a quick start for your own sketches. Refer also to the e...
Add non-pwm argument
Add non-pwm argument
Arduino
mit
rlisle/ParticleIoT,rlisle/Patriot,rlisle/Patriot,rlisle/ParticleIoT,rlisle/Patriot,rlisle/Patriot,rlisle/ParticleIoT
a50f624275ca3d8c918cc78a18f5dd25c9966e4a
arduinoTest/USB_FocusST_PCB/USB_FocusST_PCB.ino
arduinoTest/USB_FocusST_PCB/USB_FocusST_PCB.ino
/* ------------------------------------------------- | Zachary Nelson | znelson1@ford.com | | **To be used with Shift Knob PCBs** | | Test communication over USB with Android host | to read in and display current gear. | | Using a 74hc595 shift register and a | 7-sement display to display the numbers 0 - 9. It | is u...
/* ------------------------------------------------- | Zachary Nelson | znelson1@ford.com | | **To be used with Shift Knob PCBs** | | Test communication over USB with Android host | to read in and display current gear. | | Using a 74hc595 shift register and a | 7-sement display to display the numbers 0 - 9. It | is u...
add motor pulse functionality.
add motor pulse functionality.
Arduino
bsd-3-clause
openxc/shiftknob-android
4d0548170b6db631f7a2e53349b2832ff891babd
countdown/countdown.ino
countdown/countdown.ino
#include "FastSPI_LED2.h" #define ROWS 10 #define COLS 10 #define NUM_LEDS (ROWS*COLS) CRGB leds[NUM_LEDS]; CRGB walker_leds[NUM_LEDS]; //separate array that holds the leds that 'walk/move out' of the table CRGB counter_leds[NUM_LEDS]; //separate array that holds the counter (digits) // Return 0-based led index for ...
#include "FastSPI_LED2.h" #include "Streaming.h" #define ROWS 10 #define COLS 10 #define NUM_LEDS (ROWS*COLS) CRGB leds[NUM_LEDS]; CRGB walker_leds[NUM_LEDS]; //separate array that holds the leds that 'walk/move out' of the table CRGB counter_leds[NUM_LEDS]; //separate array that holds the counter (digits) // Return...
Sort of working: need smoother walking, and pause in-between leds
Sort of working: need smoother walking, and pause in-between leds
Arduino
mit
padvinder95/ledtafel
5156ff9909e7cc14c50462f6f40c575162b8002f
MainStation/MainStation.ino
MainStation/MainStation.ino
// // Display Temp // // Use Library from : // Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified // Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor // LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home // Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso...
// // Display Temp // // Use Library from : // Adafruit BMP085 https://github.com/adafruit/Adafruit_BMP085_Unified // Adafruit Sensor https://github.com/adafruit/Adafruit_Sensor // LCD : https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home // Touch Sensor : https://github.com/arduino-libraries/CapacitiveSenso...
Add TX Node TeleInfo
Add TX Node TeleInfo
Arduino
mit
totothekiller/weather-station,totothekiller/weather-station
7e7fb2321f70b2deed0cf1d0850404cf68507663
examples/test/test.ino
examples/test/test.ino
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
/* * #### #### * #### #### * #### #### ## * #### #### #### * #### ############ ############ #### ########## #### ...
Add gate I/O state to test function.
Add gate I/O state to test function.
Arduino
bsd-3-clause
logickworkshop/du-ino,logickworkshop/du-ino
08ea6aee0a3656dc613f0ff3b10ca35198059e20
examples/ReadAndWrite/ReadAndWrite.ino
examples/ReadAndWrite/ReadAndWrite.ino
/* * MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT. * The library file MFRC522.h has a wealth of useful info. Please read it. * The functions are documented in MFRC522.cpp. * * Based on code Dr.Leong ( WWW.B2CQSHOP.COM ) * Created by Miguel Balboa (circuitito.com)...
/* * MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT. * The library file MFRC522.h has a wealth of useful info. Please read it. * The functions are documented in MFRC522.cpp. * * Based on code Dr.Leong ( WWW.B2CQSHOP.COM ) * Created by Miguel Balboa (circuitito.com)...
Update ReadAndWrite.ino
Update ReadAndWrite.ino Comments need to be corrected to match Arduino Mega pinout
Arduino
unlicense
Rotzbua/rfid,yaalsn/rfid,sophiekovalevsky/rfid,1upon0/rfid,r44947/rfid,smallkid/rfid,webdevbrian/rfid,mirko314/rfid,lpr0lpd/rfid,CapeSepias/rfid,mangine/mraa_MFRC522,miguelbalboa/rfid,irhastofa/rfid,prikevs/rfid,juantejedavz/rfid,Rotzbua/rfid,tamchau2809/rfid,LaloHao/rfid,hramrach/rfid,northDacoder/rfid
b378453e64c45cc2404fb75eda6c2e7120377bbe
teensy_hat_firmware/teensy_hat_firmware.ino
teensy_hat_firmware/teensy_hat_firmware.ino
#include "Defines.h" #include "PinPulseIn.h" #include "FlySkyIBus.h" #include "PCA9685Emulator.h" #include <Servo.h> PinPulseIn<11> rcSteer; PinPulseIn<12> rcThrottle; PinPulseIn<13> rcMode; Servo svoSteer; Servo svoThrottle; uint16_t iBusInput[10]; FlySkyIBus fsIbus(IBUS_SERIAL, iBusInput, 10); PCA9685Emulator p...
#include "Defines.h" #include "PinPulseIn.h" #include "FlySkyIBus.h" #include "PCA9685Emulator.h" #include <Servo.h> PinPulseIn<11> rcSteer; PinPulseIn<12> rcThrottle; PinPulseIn<13> rcMode; Servo svoSteer; Servo svoThrottle; uint16_t iBusInput[10]; FlySkyIBus fsIbus(IBUS_SERIAL, iBusInput, 10); PCA9685Emulator p...
fix protocol bugs
fix protocol bugs
Arduino
mit
jwatte/donkey_racing,jwatte/donkey_racing,jwatte/donkey_racing,jwatte/donkey_racing
b8171e34ed23c7ba31bc903639b0c9b5cc76afc0
ins-node/src/wifi_module/wifi_module.ino
ins-node/src/wifi_module/wifi_module.ino
#include <stdint.h> #include <vector> #include <utility> #include <ESP8266WiFi.h> #include "wifi_credentials.h" #define device_id 1; ESP8266WiFiClass wifi; const char SERVER_IP[] = "192.168.0.136"; const int8_t CONNECTION_RETRIES = 3; // The maximum amount of wifi connection attempts const uint8_t TRANSMISSION_SIZE =...
#include <stdint.h> #include <vector> #include <utility> #include <ESP8266WiFi.h> #include "wifi_credentials.h" ESP8266WiFiClass wifi; EspClass espPower; const uint8_t DEVICE_ID = 1; // The identification for the specific node const char SERVER_IP[] = "192.168.0.136"; const int8_t CONNECTION_RETRIES = 3; // The maximu...
Use locally created variable for ESP
Use locally created variable for ESP This will facilitate testing
Arduino
apache-2.0
platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system
1a94f8c8becb6e3efe3c8e98a385b1581ffc8b59
octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino
octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <Math.h> #include <Wire.h> #include <prometheus.h> #include <adc128d818.h> #define SDAPIN 13 #define SCLPIN 12 #define SERVER_IP "10.1.20.200" #define SERVER_PORT 9091 // TODO(z2amiller): Set up interrupts to call back when the temperature...
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <Math.h> #include <Wire.h> #include <prometheus.h> #include <adc128d818.h> #define SDAPIN 13 #define SCLPIN 12 #define SERVER_IP "10.1.20.200" #define SERVER_PORT 9091 // TODO(z2amiller): Set up interrupts to call back when the temperature...
Initialize the wire library explicitly.
Initialize the wire library explicitly.
Arduino
apache-2.0
z2amiller/snippets
6236dadd6cda55c30326d0323b987e567625a86e
Arduino/six_legged_robot/six_legged_robot.ino
Arduino/six_legged_robot/six_legged_robot.ino
// ========================================================== // ==== 六足机器人综合程序 ==== // ========================================================== // ====== 各模块与 Arduino Mega2560 的连接方式 ====== // 左侧为模块引脚,右侧为2560引脚 /** * LCD连接: * * LCD Arduino * PIN1 --> GND * PIN2 --...
// ========================================================== // ==== 六足机器人综合程序 ==== // ========================================================== // ====== 各模块与 Arduino Mega2560 的连接方式 ====== // 左侧为模块引脚,右侧为2560引脚 /** * LCD连接: * * LCD Arduino * PIN1 --> GND * PIN2 --...
添加11-13动作组
添加11-13动作组
Arduino
mit
chulinyin/graduation_design_software
e52bae7e4157ef4e831d5aa4467c7e27dc73180c
roto.ino
roto.ino
/* Copyright (c) 2018 Peter Teichman */ #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SerialFlash.h> #include "amfm_audio.h" #include "manual.h" #include "monitor_audio.h" #include "tonewheel_osc_audio.h" #include "vibrato_audio.h" // Hammond B-3. AudioMixer4 organOut; TonewheelOsc tonewheels; Moni...
/* Copyright (c) 2018 Peter Teichman */ #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SerialFlash.h> #include "amfm_audio.h" #include "manual.h" #include "monitor_audio.h" #include "tonewheel_osc_audio.h" #include "vibrato_audio.h" // Hammond B-3. AudioMixer4 organOut; TonewheelOsc tonewheels; Moni...
Copy leslie to usb audio output
Copy leslie to usb audio output
Arduino
mit
pteichman/roto,pteichman/roto
2d076d0364dcdd3bf3ffd59f2b8cb0ff3a077496
Arduino/linkit_duo_led6/linkit_duo_led6.ino
Arduino/linkit_duo_led6/linkit_duo_led6.ino
#include <PololuLedStrip.h> #include <random_seed.h> #include <auto_brightness.h> #include <color_math.h> #include <colors.h> #include <command_processor.h> #include <power_ease.h> #include <elastic_ease.h> #include <blink_effects.h> #include <breathe_effects.h> #include <effects_processor.h> #include <buffer.h> #inclu...
#include <PololuLedStrip.h> #include <random_seed.h> #include <auto_brightness.h> #include <color_math.h> #include <colors.h> #include <command_processor.h> #include <power_ease.h> #include <elastic_ease.h> #include <blink_effects.h> #include <breathe_effects.h> #include <effects_processor.h> #include <buffer.h> #inclu...
fix fade
fix fade
Arduino
mit
jhogsett/linkit,jhogsett/linkit,jhogsett/linkit,jhogsett/linkit,jhogsett/linkit,jhogsett/linkit
86089e6b8a48e16e7bcbdb375a0e965ea7186117
OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino
OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib #include <Wire.h> #include "RTClib.h" //serial peripheral interface and library for SD card reader #include <SPI.h> //serial peripheral interface for SD card reader #include <SD.h> //library for SD card reader //communication protocols for t...
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib #include <Wire.h> #include "RTClib.h" //serial peripheral interface and library for SD card reader #include <SPI.h> //serial peripheral interface for SD card reader #include <SD.h> //library for SD card reader //communication protocols for t...
Fix EC & Temp Sensor Timing Bug
Fix EC & Temp Sensor Timing Bug Fixes issue that caused EC sensor output to occasionally contain weird characters or miss line-endings. I found this happened when the serial data from the EC sensor happened to come in at the same time that a temperature sensor was sending its data (which occurred because the temp sens...
Arduino
mit
OceanographyforEveryone/OpenCTD
04ea0a1621b590fbc6d35c99e719b79e0d0ad1bb
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
#include <AccelStepper.h> #include <CommandQueue.h> #include <LogobotText.h> #include <Servo.h> // Maths stuff #define DEGTORAD PI/180.0 #define RADTODEG 180.0/PI // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1...
#include <AccelStepper.h> #include <CommandQueue.h> #include <LogobotText.h> #include <Servo.h> // Maths stuff #define DEGTORAD PI/180.0 #define RADTODEG 180.0/PI // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1...
Remove unused variables (no space saving, must have been optimised away)
Remove unused variables (no space saving, must have been optimised away)
Arduino
mit
snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot
667fda5e19ef7c4c7d2a4b009b27a6da43ba94b7
Arduino/weather-tree.ino
Arduino/weather-tree.ino
#include "neopixel/neopixel.h" #include "PixelControl.h" Adafruit_NeoPixel neopixelRingLarge = Adafruit_NeoPixel(24, 4, WS2812); PixelControl ringLarge = PixelControl(); Adafruit_NeoPixel neopixelRingMedium = Adafruit_NeoPixel(16, 5, WS2812); PixelControl ringMedium = PixelControl(); Adafruit_NeoPixel neopixelRingS...
#include "neopixel/neopixel.h" #include "PixelControl.h" Adafruit_NeoPixel neopixelRingLarge = Adafruit_NeoPixel(24, 4, WS2812); PixelControl ringLarge = PixelControl(); Adafruit_NeoPixel neopixelRingMedium = Adafruit_NeoPixel(16, 5, WS2812); PixelControl ringMedium = PixelControl(); Adafruit_NeoPixel neopixelRingS...
Add rain function
Add rain function
Arduino
mit
projectweekend/Spark-Core-Weather-Tree,projectweekend/Spark-Core-Weather-Tree
92a71762946d1309c41efc3bbb82021d6736ee16
arduino/rflink/rflink.ino
arduino/rflink/rflink.ino
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 static void print(char *fmt, ...) { char buf[128]; // resulting string limited to 12...
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 // number of time division slots #define NUM_SLOTS 9 static void print(char *fmt, ......
Implement buffer status command, indicate reception only when status changes, mark buffer empty after reading it
Implement buffer status command, indicate reception only when status changes, mark buffer empty after reading it
Arduino
mit
bertrik/rflink,bertrik/rflink
48819826442cf96e8447c3ce009e24ed6bbb0323
arduino/sensor/sensor.ino
arduino/sensor/sensor.ino
#include <Wire.h> #include <SoftwareSerial.h> #include <OneWire.h> #include <DallasTemperature.h> #include <dht.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP085_U.h> #include <LowPower.h> /* Datapins for DS18B20, DHT22 and software serial The BMP180 must be connected to the I2C interface */ #define ONE_WIRE_P...
#include <Wire.h> #include <OneWire.h> #include <DallasTemperature.h> #include <dht.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP085_U.h> #include <LowPower.h> #include <SPI.h> #include "RF24.h" /* configuration for DS18B20, DHT22 and NRF24L01 The BMP180 must be connected to the I2C interface */ #define ONE_W...
Change Bluetooth to RF24
Change Bluetooth to RF24
Arduino
mit
IPSW1/RasPi_Station,IPSW1/RasPi_Station,IPSW1/RasPi_Station
47eafcc60a0f563eba21c3ce1711642e2e22300a
arduino/src/sketch.ino
arduino/src/sketch.ino
#include <DHT.h> #include <TimerOne.h> #define MQ7PIN A0 #define MQ2PIN A2 #define DHTPIN 8 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); float h = 0; float t = 0; int mq7Value = 0; int mq2Value = 0; int readMQ7() { int value; value = analogRead(pin); if (isnan(value)) { return NULL; } els...
#include <DHT.h> #include <TimerOne.h> #define MQ7PIN A0 #define MQ2PIN A2 #define DHTPIN 8 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); float h = 0; float t = 0; int mq7Value = 0; int mq2Value = 0; int readMQ7() { int value; value = analogRead(pin); if (isnan(value)) { return -1; } else ...
implement serialize function
implement serialize function
Arduino
mit
pedroscaff/sensor_platform,pedroscaff/sensor_platform
2a6e1ee76fdd75e7c8877ea09e2db76e6fdc85dc
examples/SxXBee2/SxXBee2.ino
examples/SxXBee2/SxXBee2.ino
/* * SxXBee2.ino * * Changed on: 12.10.2015 new protocol rev1.1 * Changed on: 04.09.2015 broadcast of power state * Created on: 28.08.2015 * * * Author and Copyright: Michael Blank * * reads date from xbee and sends them to SX Bus * * !!! SX lib does not work with SoftwareSerial Lib !!! * * H...
/* * SxXBee2.ino * * Changed on: 12.10.2015 new protocol rev1.1 * Changed on: 04.09.2015 broadcast of power state * Created on: 28.08.2015 * * * Author and Copyright: Michael Blank * * reads date from xbee and sends them to SX Bus * * !!! SX lib does not work with SoftwareSerial Lib !!! * * H...
Update SxXBee2.ino
Update SxXBee2.ino #include <SX22Command.h> ("22" fehlte) SX22Command sxcmd; ("22" fehlte)
Arduino
agpl-3.0
opensx/SX22b
ad44c3470577cbec871d5f482fe51a5656099547
examples/IniFileExample/IniFileExample.ino
examples/IniFileExample/IniFileExample.ino
#include <SD.h> //#include <IniFile.h> #include <SPI.h> #include <Ethernet.h> #include <IniFile.h> // The select pin used for the SD card //#define SD_SELECT 4 #define SD_SELECT 22 #define ETHERNET_SELECT 10 void printErrorMessage(uint8_t e, bool eol = true) { switch (e) { case IniFile::errorNoError: Serial....
#include <SD.h> #include <SPI.h> #include <Ethernet.h> #include <IniFile.h> // The select pin used for the SD card //#define SD_SELECT 4 #define SD_SELECT 22 #define ETHERNET_SELECT 10 void printErrorMessage(uint8_t e, bool eol = true) { switch (e) { case IniFile::errorNoError: Serial.print("no error"); ...
Remove old code
Remove old code
Arduino
lgpl-2.1
stevemarple/IniFile,stevemarple/IniFile
d82689c2074f64fca777d0a2af5513e88c9bd77d
examples/MDriver_no_PWM/MDriver_no_PWM.ino
examples/MDriver_no_PWM/MDriver_no_PWM.ino
#include "MDriver.h" /* *Этот пример управляет двигателями без ШИМ(PWM) сигнала, при этом на пины *ENA и ENB на плате драйвера двигателей подтянуты к высокому логическому уровню (+5V). * * Библиотека MDrive предназначена для управление коллекторными двигателями * посредством драйвера двигателей на микросхеме L293...
#include "MDriver.h" /* *Этот пример управляет двигателями без ШИМ(PWM) сигнала, при этом на пины *ENA и ENB на плате драйвера двигателей подтянуты к высокому логическому уровню (+5V). * * Библиотека MDrive предназначена для управление коллекторными двигателями * посредством драйвера двигателей на микросхеме L293...
Update MDriver_no_PWM.ino
Update MDriver_no_PWM.ino
Arduino
mit
AlcoCoder/MDriver
3cf5f30e230e181010e75695a828bb6a08053d9c
Accessory_Controller/Accessory_Controller.ino
Accessory_Controller/Accessory_Controller.ino
#include <SPI.h> #include <mcp_can.h> #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" #include "BMW_R1200_GS_K25_State.h" /* Compile time Flags */ #define DEBUG 0 #define PRINT_STATUS_TO_SERIAL_CONSOLE 1 /* Helper Macros */ #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) /* Debug Macros *...
#include <SPI.h> #include <mcp_can.h> #include "BMW_R1200_GS_K25_CAN_Bus_Defines.h" #include "BMW_R1200_GS_K25_State.h" /* Compile time Flags */ #define DEBUG 0 #define PRINT_STATUS_TO_SERIAL_CONSOLE 1 /* Helper Macros */ #define HI_NIBBLE(b) (((b) >> 4) & 0x0F) #define LO_NIBBLE(b) ((b) & 0x0F) /* Debug Macros *...
add support for controlling th aux lights with a monster motor driver
add support for controlling th aux lights with a monster motor driver
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
9275283d6d9853f54f45cd2ec295969374532501
firmware/Arduino/Arduino.ino
firmware/Arduino/Arduino.ino
void setup() { Serial.begin(9600); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); for (int ...
void setup() { Serial.begin(9600); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); for (int ...
Change initial state of all pins to LOW for new Relay Module
ENH: Change initial state of all pins to LOW for new Relay Module
Arduino
bsd-3-clause
SiLab-Bonn/basil,SiLab-Bonn/basil,MarcoVogt/basil
4cba472625728c7d5471421342720ae7ec13fc13
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...
Use ternary for incr, drop _ms on delay variables
Use ternary for incr, drop _ms on delay variables
Arduino
mit
jtai/blinkytape-orb,jtai/blinkytape-orb
f82f7c886bfe5db04a787647d750cdf6074669e0
examples/ready_to_localize/ready_to_localize.ino
examples/ready_to_localize/ready_to_localize.ino
#include <Pozyx.h> #include <Pozyx_definitions.h> #include <Wire.h> //////////////////////////////////////////////// ////////////////// PARAMETERS ////////////////// //////////////////////////////////////////////// uint8_t num_anchors = 4; uint16_t anchors[4] = {0x6641,0x6639,0x663D,0x6670}; int32_t heights[4] = {250...
#include <Pozyx.h> #include <Pozyx_definitions.h> #include <Wire.h> //////////////////////////////////////////////// ////////////////// PARAMETERS ////////////////// //////////////////////////////////////////////// uint8_t num_anchors = 4; // the number of anchors uint16_t anchors[4...
Update ready to localize example
Update ready to localize example The example now also includes: - manual anchor calibration - output for the processing sketch
Arduino
mit
pozyxLabs/Pozyx-Arduino-library,pozyxLabs/Pozyx-Arduino-library
e6ab8ed3be7354c45bf7821ae425901574a8327b
MarantzVolumeMonitor.ino
MarantzVolumeMonitor.ino
#include "DFRobotLCDShield.h" #include "DisplayManager.h" #include <LiquidCrystal.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> byte mac[] = { 0x00, 0xAB, 0xBA, 0xC1, 0xDD, 0x03 }; IPAddress receiverAddress; LiquidCrysta...
#include "DFRobotLCDShield.h" #include "DisplayManager.h" #include <LiquidCrystal.h> #include <Dhcp.h> #include <Dns.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <EthernetUdp.h> byte mac[] = { 0x00, 0xAB, 0xBA, 0xC1, 0xDD, 0x03 }; IPAddress receiverAddress; LiquidCrysta...
Increment logic nearly complete.
Increment logic nearly complete.
Arduino
mit
tillig/MarantzVolumeMonitor,tillig/MarantzVolumeMonitor
c13159023448083b1f6f84b88eeb288b1c9f8d90
html/examples/chibitronics/neopixel/neopixel.ino
html/examples/chibitronics/neopixel/neopixel.ino
#include "Adafruit_NeoPixel.h" // Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixel...
#include "Adafruit_NeoPixel.h" // Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixel...
remove float debugging calls
neopixel: remove float debugging calls This was an experiment to see if we can call float code. We can. Signed-off-by: Sean Cross <d7e19930cc1f42c2d0781f4d9e6f1fe5891bf9cf@xobs.io>
Arduino
mit
chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer
72b334e642c15730a325df79af660c2ccb3ed9a0
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
Update Firmware.ino
Update Firmware.ino
Arduino
bsd-3-clause
UCHIC/WaterMonitor
a04e31149161f35025d44f37bda2733c3c913111
sw-machine-control/platform/src/Sortic150.ino
sw-machine-control/platform/src/Sortic150.ino
#define ARDUINOJSON_ENABLE_PROGMEM 0 // Arduino Bug https://arduinojson.org/faq/esp32/?utm_source=github&utm_medium=issues #include <Arduino.h> #include <NewPing.h> #include <MFRC522.h> #include <ChassisDigital.h> #include <HandlingUnit.h> #include <HandlingUnitSerial.h> #include <MachineLogic.h> #include <Component.h>...
#define ARDUINOJSON_ENABLE_PROGMEM 0 // Arduino Bug https://arduinojson.org/faq/esp32/?utm_source=github&utm_medium=issues #include <Arduino.h> #include <NewPing.h> #include <MFRC522.h> #include <ChassisDigital.h> // #include <HandlingUnit.h> #include <HandlingUnitSerial.h> #include <MachineLogic.h> #include <Component...
Use HandlingUnitSerial
Use HandlingUnitSerial
Arduino
mit
HSRLCLab/sortic150,HSRLCLab/sortic150
4649df237d81b79b43ac06cc382cef5e0b3eca98
examples/AlarmInterrupt/AlarmInterrupt.ino
examples/AlarmInterrupt/AlarmInterrupt.ino
/* AlarmInterrupt.ino Jacob Nuernberg 08/22 Example on using interrupts with DS3231 alarms. Connect DS3231 SQW pin to Arduino interrupt pin 2 Tested on: - Arduino UNO - Arduino nano */ #include <DS3231.h> #include <Wire.h> // myRTC interrupt pin #define CLINT 2 // Setup clock DS3231 myRTC; // Interrupt signalin...
/* AlarmInterrupt.ino Jacob Nuernberg 08/22 Example on using interrupts with DS3231 alarms. Hardware setup: Connect DS3231 SQW pin to Arduino interrupt pin 2 Tested on: - Arduino UNO - Arduino nano Added to this example: 1. Descriptively named variables to pass parameter values. 2. Modify AlarmBits for Alarm 1 ...
add code features, clarify AlarmBits
add code features, clarify AlarmBits
Arduino
unlicense
NorthernWidget/DS3231,NorthernWidget/DS3231
c1cdc7ca3efa02f70fffcb53a16a26823f31f43d
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 */ /* * - fix bug > proc_get() > mistake in secret message display on LCD * v0.22 2016 Feb. 26 * - hide secret message (do not show on LCD) * + update proc_get() * + msgStorageLib: a...
/* * This program is used for a message station shown at * https://hackaday.io/project/9526-bring-your-own-pizero-byop */ /* * - update proc_get() > add 3rd parameter [isSecret(0|1)] (ref. protocol v0.7) * - fix bug > proc_get() > mistake in secret message display on LCD * v0.22 2016 Feb. 26 * - hide secre...
update proc_get() > add 3rd parameter [isSecret(0|1)] (ref. protocol v0.7)
update proc_get() > add 3rd parameter [isSecret(0|1)] (ref. protocol v0.7)
Arduino
mit
yasokada/esp8266_160220_BYOP
f5ceb968afab77c514a1cce0bfeedb80c898ae55
sketch/sketch.ino
sketch/sketch.ino
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ Servo servo; /* サーボのピン */ /* サーボモータが可動範囲外に回転するのを防ぐ関数*/ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} /* 5度以下なら0度を返す */ if(sum > 175){return...
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ Servo servo; /* サーボのピン */ /* サーボモータが可動範囲外に回転するのを防ぐ関数*/ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} /* 5度以下なら0度を返す */ if(sum > 175){return...
Rename functions
Rename functions
Arduino
mit
eliza0x/Suno
78b67f6b270efcab079e3d93d8a68f10fa94a904
code/lissajous/lissajous.ino
code/lissajous/lissajous.ino
// This is based on Sweep // by BARRAGAN <http://barraganstudio.com> #include <Servo.h> // Create the servo objects Servo servox; Servo servoy; double pos = 0; // Position incrementer float spd = 0.005; // This value seems to work for reasonable speed. float facter = 1.0; // Ratio between servox and servoy perio...
// This is based on Sweep // by BARRAGAN <http://barraganstudio.com> #include <Servo.h> // Create the servo objects Servo servox; Servo servoy; double pos = 0; // Position incrementer float spd = 0.005; // This value seems to work for reasonable speed. float facter = 1.0; // Ratio between servox and servoy perio...
Scale up the image to max servo range
Scale up the image to max servo range
Arduino
mit
jbeyers/lissajous,jbeyers/lissajous,jbeyers/lissajous
fcd2f246f8796ba643d2c6e3a045084420085014
SensorBoard.ino
SensorBoard.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; void setup(void) { Serial.begin(57600); radio.begin(); radio.setAutoAck(false); radio.setRetries(15,15); radio.setPALevel(RF24_...
#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; char switchStatus = 0; char lampStatus = 0; void setup(void) { Serial.begin(57600); radio.begin(); radio.setAutoAck(false); radio...
Add sensorboard switch control variable and functions
Add sensorboard switch control variable and functions
Arduino
apache-2.0
Ertinfagor/RCHome,Ertinfagor/RCHome,Ertinfagor/RCHome
19598439e1785f50c3fbd7588b2b7ab8996db945
time.ino
time.ino
#include "time.h" static unsigned long previous_millis = 0; static uint32_t sync_interval = 300; static uint32_t next_sync_threshold = 0; static request_time_function_t time_requester = NULL; void split_timestamp(time_t time, struct time_data * data){ data->second = time % SECS_PER_MIN; time /= SECS_PER_MIN;...
#include "time.h" static unsigned long previous_millis = 0; static uint32_t sync_interval = 300; static uint32_t next_sync_threshold = 0; static request_time_function_t time_requester = NULL; void split_timestamp(time_t time, struct time_data * data){ data->second = time % SECS_PER_MIN; time /= SECS_PER_MIN;...
Handle millis() wraparound
Handle millis() wraparound
Arduino
mit
xim/tsoc,xim/tsoc,xim/tsoc,xim/tsoc
ad4456859e7f938b861c9a5249efd4e778b1a5eb
sonar.ino
sonar.ino
/* Basicamente este es un programa Arduino que se ejecuta cuando recibe por el puerto serie // // la letra p (de prendido quizas?), se fija si hay un objeto en la distacina especificada // // y si esta espera a que alguien lo saque, para mandar la señal R (de reproducir?) por el // // puerto serie. Si no hay nada ade...
/* Basicamente este es un programa Arduino que se ejecuta cuando recibe por el puerto serie // // la letra p (de prendido quizas?), se fija si hay un objeto en la distacina especificada // // y si esta espera a que alguien lo saque, para mandar la señal R (de reproducir?) por el // // puerto serie. Si no hay nada ade...
Update sonar.ino
Update sonar.ino Agregado boton de test
Arduino
agpl-3.0
seba-wetzel/Video-wall
55db233bedf8b59901fd0828da17400c40a495e9
laserharp.ino
laserharp.ino
#ifdef GINSING #include <GinSing.h> #include <GinSingDefs.h> #include <GinSingMaster.h> #include <GinSingPoly.h> #include <GinSingPreset.h> #include <GinSingSerial.h> #include <GinSingSerialMacros.h> #include <GinSingSynth.h> #include <GinSingVoice.h> #include <Wire.h> #include <GinSing.h> #endif #include <Adafruit_M...
#ifdef GINSING #include <GinSing.h> #include <GinSingDefs.h> #include <GinSingMaster.h> #include <GinSingPoly.h> #include <GinSingPreset.h> #include <GinSingSerial.h> #include <GinSingSerialMacros.h> #include <GinSingSynth.h> #include <GinSingVoice.h> #include <Wire.h> #include <GinSing.h> #endif #include <Adafruit_M...
Adjust motor via serial if there are no buttons, and a lot of formatting (sorry)
Adjust motor via serial if there are no buttons, and a lot of formatting (sorry)
Arduino
apache-2.0
benroy/laserharp,benroy/laserharp
1092ad23efdcbab0e77031c95707b632608f6dc3
SRC/ArincShieldAutoTest.ino
SRC/ArincShieldAutoTest.ino
// // Arinc Shield Test.ino // V1.01 (15/03/2017) : ACLK divider is a parameter, to cope with both units: // - 12MHz (prototypes) or // - 16MHz (serial production) // #include <SPI.h> // pin numbers #define SS 10 // SPI Slave Select #define OE 9 // Output Enable of voltage translator (TXB0104) #defin...
// // Arinc Shield Test.ino // // author: JPP // // Version V1.01 (15/03/2017) : ACLK divider is a parameter, to cope with both units: // - 12MHz (prototypes) or // - 16MHz (serial production) // // This program is distributed in the hope that it will be useful, but without any // warranty; without even t...
Update ArincShieldAutoTest.ino
Update ArincShieldAutoTest.ino
Arduino
apache-2.0
Art-ut-Kia/NAV-429-tester
d633522e3363a77a012181cc1f5dc35f7431905a
plane/TRANSMITTER/sketch_aug08a/sketch_aug08a.ino
plane/TRANSMITTER/sketch_aug08a/sketch_aug08a.ino
/* * Arduino Wireless Communication Tutorial * Example 2 - Transmitter Code * * by Dejan Nedelkovski, www.HowToMechatronics.com * * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/ */ #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #define led 12 RF24 radio(7, 8); // CNS, ...
/* * Arduino Wireless Communication Tutorial * Example 2 - Transmitter Code * * by Dejan Nedelkovski, www.HowToMechatronics.com * * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/ */ int value = 0; // set values you need to zero #include <SPI.h> #include <nRF24L01.h> #include <RF24...
Update sketch_aug08a.ino
Update sketch_aug08a.ino
Arduino
apache-2.0
mohamedalichelbi/Arduino-Plane
828f97692b9ac2e62ee19476fb25a0e03c9f069f
moros/moros.ino
moros/moros.ino
#include <SPI.h> #include <TFT.h> #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10 #define CHAR_WIDTH_PX 42 #define DISPLAY_WIDTH_CHAR 4 //#define INITIAL_TIME_MS 300000 #define INITIAL_TIME_MS 5000 int active_player = NONE; volatile int button_pressed = NONE; inline void ...
#include <SPI.h> #include <TFT.h> #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SIZE * 10 #define CHAR_WIDTH_PX 42 #define DISPLAY_WIDTH_CHAR 4 //#define INITIAL_TIME_MS 300000 #define INITIAL_TIME_MS 5000 int active_player = NONE; volatile int button_pressed = NONE; inline void ...
Use C99 initializers all around
Use C99 initializers all around
Arduino
mit
adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros
6131c2d38ae9a9efe61d2240e64653bbc7f6b371
examples/Basic/Basic.ino
examples/Basic/Basic.ino
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager void setup() { // put your setup code here, to run once: Serial.begin(115200); //WiFiManager, Local intialization. Once its business is done, there is no need to keep it around WiFiManager wm; //reset settings - wipe credentials...
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager void setup() { // put your setup code here, to run once: Serial.begin(115200); // WiFi.mode(WiFi_STA); // it is a good practice to make sure your code sets wifi mode how you want it. //WiFiManager, Local intialization. Once its busi...
update basic.ino
update basic.ino
Arduino
mit
tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager,tzapu/WiFiManager
35a3424df9319f6c62c19480c19cf79d48e69d2c
sketches/test_midi/test_midi.ino
sketches/test_midi/test_midi.ino
/* Test pseudo-MIDI commands from a 3x2 key matrix. Turns on a LED when at least one key is pressed. The circuit: * LED built in to pin 13, connected to ground * Key matrix: C, C#, and D from two keyboards * C into digital pin 8 * C# into digital pin 9 * D into digital pin 10 * Internal pull-up resis...
/* Test pseudo-MIDI commands from a 3x2 key matrix. Turns on a LED when at least one key is pressed. The circuit: * OrganDuino PCB shield, populated with diodes * First two octaves (24 keys) soldered in * Rank 0 jumper bridged on reverse side created 2016 by @JDWarner */ #define keyON 127 #define keyOFF 0 /...
Fix test MIDI sketch with proper setup and docs.
Fix test MIDI sketch with proper setup and docs.
Arduino
apache-2.0
JDWarner/organduino
21ca0d1928b1b19a61628e1b3a982b006df08739
Photon/Controllers/FrontPanel/src/FrontPanel.ino
Photon/Controllers/FrontPanel/src/FrontPanel.ino
/** FrontPanel Controller Description: This sketch controls all the switches in the Cyclone 4005 front control panel. Author: Ron Lisle Date: 9/16/17 This isn't the bridge controller, so we shouldn't receive any activities from particle.io To update Photon: 1. Edit this code 2. "particle flash Fr...
/** FrontPanel Controller Description: This sketch controls all the switches in the Cyclone 4005 front control panel. Author: Ron Lisle Date: 9/16/17 This isn't the bridge controller, so we shouldn't receive any activities from particle.io To update Photon: 1. Edit this code 2. "particle flash Fr...
Enable LED boards
Enable LED boards
Arduino
mit
rlisle/ParticleIoT,rlisle/ParticleIoT,rlisle/Patriot,rlisle/Patriot,rlisle/ParticleIoT,rlisle/Patriot,rlisle/Patriot
4f32e02b93abada2d39b8bc44e3adb15c64828a5
arduino/blinkytape_orb.ino
arduino/blinkytape_orb.ino
#include "FastLED.h" // hardware #define NUM_LEDS 12 #define DATA_PIN 3 // 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_DURATION 800 // state CRGB leds[NUM_LEDS]; u...
#include "FastLED.h" // hardware #define NUM_LEDS 12 #define LED_CORRECTION TypicalSMD5050 #define DATA_PIN 3 // 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_DURATIO...
Set LED correction
Set LED correction Orange and yellow look a lot better
Arduino
mit
jtai/blinkytape-orb,jtai/blinkytape-orb
5723299d43e45f46e6a4acc371e04e02f696be09
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 */ /* * - update proc_clear() to call MsgServer_Clear() * - add [kAuthorizationCode], which is used to protect to clear all the messages * v0.23 2016 Feb. 27 * - add [CMD_ALL_CLEAR] in Ser...
/* * This program is used for a message station shown at * https://hackaday.io/project/9526-bring-your-own-pizero-byop */ /* * v0.24 2016 Feb. 27 * - update proc_clear() to call MsgServer_Clear() * - add [kAuthorizationCode], which is used to protect to clear all the messages * v0.23 2016 Feb. 27 * - add ...
update version comment
update version comment
Arduino
mit
yasokada/esp8266_160220_BYOP
aa32a6554a61d848098dde507728481607225b13
example/mpxv6115v.ino
example/mpxv6115v.ino
#include "MPXV6115V.h" #include "DRV8833.h" #include "Arduino.h" #include "EEPROM.h" #include "MAX7219.h" const int vacuum=A0; const int temp=A1; const int batt=A2; const int up=2; const int down=4; float vakum; int setting=250; int tolerance=25; void setup() { pinMode(up,INPUT); pinMode(down,INPUT); ...
#include "MPXV6115V.h" #include "DRV8833.h" #include "Arduino.h" #include "EEPROM.h" #include "MAX7219.h" LedControl lc=LedControl(12,11,10,4); DRV8833 driver=DRV8833(); //DRV8833 sınıfı bir nesne olarak tanımlandırıldı MPXV6115V mpxv6115v(A0); const int vacuum=A0; //vakum const int temp=A1; const int bat...
Update mpxv6115v.ino
Update mpxv6115v.ino
Arduino
apache-2.0
tunataskintuna35/MPXV6115Vacuum
a4c9a7ffca3f2e32857aa3f9e824b6a9b6748409
document/arduino/motor_control/motor_control.ino
document/arduino/motor_control/motor_control.ino
/* Copyright 2017 ADLINK Technology Inc. Developer: Chester, Tseng (for pySerial & encoder) HaoChih, LIN (for controller) Email: chester.tseng@adlinktech.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
/* Copyright 2017 ADLINK Technology Inc. Developer: Chester, Tseng (for pySerial & encoder) HaoChih, LIN (for controller) Email: chester.tseng@adlinktech.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
improve controller
improve controller
Arduino
apache-2.0
Adlink-ROS/adlink_ddsbot,Adlink-ROS/adlink_ddsbot
fa6024241bdd2485cadb00e95a25afd004a56e07
computer_box/computer_box.ino
computer_box/computer_box.ino
#include <stdlib.h> #include <OneWire.h> #include <DHT.h> #define DHTPIN 3 // DHT Temp & Humidity Pin #define DHTTYPE DHT22 // DHT 22 (AM2302) int ac_probe = 0; int dc_probe = 1; int led_pin = 13; int led_value = LOW; int fan_pin = 4; int ds18_01_pin = 2; const int num_ds18 = 3; // Number of DS18B20 Sensors ui...
#include <stdlib.h> #include <OneWire.h> #include <DHT.h> #define DHTPIN 3 // DHT Temp & Humidity Pin #define DHTTYPE DHT22 // DHT 22 (AM2302) int ac_probe = 0; int dc_probe = 1; int led_pin = 13; int led_value = LOW; int fan_pin = 4; int ds18_01_pin = 2; const int num_ds18 = 3; // Number of DS18B20 Sensors ui...
Use millis() instead of counter
Use millis() instead of counter
Arduino
mit
panoptes/POCS,AstroHuntsman/POCS,panoptes/PACE,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,AstroHuntsman/POCS,AstroHuntsman/POCS
db3f91835e0221bf4bd8282fb043e15c926f4d8a
_70-homekit-accessories-light/_70-homekit-accessories-light.ino
_70-homekit-accessories-light/_70-homekit-accessories-light.ino
// Using Sonoff wifi switch, 80MHz, 1M #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include <WiFiClientSecure.h> #include <PubSubClient.h> #include <ArduinoJson.h> #include <Ticker.h> #include "/usr/local/src/aptls_setting.h" extern "C" { #include "user_interface.h" }...
// Using Sonoff wifi switch, 80MHz, 1M #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include <WiFiClientSecure.h> #include <PubSubClient.h> #include <ArduinoJson.h> #include <Ticker.h> #include "/usr/local/src/aptls_setting.h" extern "C" { #include "user_interface.h" }...
remove serial.print
remove serial.print
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
7ba742e0346c48aad95c995f35890336cfcaad4c
examples/Drivers/CosaTSOP4838/CosaTSOP4838.ino
examples/Drivers/CosaTSOP4838/CosaTSOP4838.ino
/** * @file CosaTSOP4838.ino * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
/** * @file CosaTSOP4838.ino * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
Update after changing of visibility. Should use IR::Receiver::reset.
Update after changing of visibility. Should use IR::Receiver::reset.
Arduino
lgpl-2.1
dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,kc9jud/Cosa,rrobinet/Cosa,kc9jud/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,jeditekunum/Cosa,SinishaDjukic/Meshwork,mikaelpatel/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,mikaelpatel/Cosa,Sinish...
92204f3f1806401de10a5cd5bf037a666f0c2fc0
oled.ino
oled.ino
void updateOLEDbar() { int barWidth = DISPLAY_WIDTH / numberOfChannels; OLED.clear(); for ( byte thisChannel = 0; thisChannel < numberOfChannels; thisChannel++ ) { int x1 = barWidth * thisChannel; int bottomOfBar = DISPLAY_HEIGHT - 11; int y1 = ( bottomOfBar ) - ( bottomOfBar * ( channel[thisChannel...
time_t nextOLEDswitch = now() + 5; //switch between showing IP or hostname every 5 seconds bool showIP = true; void updateOLEDbar() { int barWidth = DISPLAY_WIDTH / numberOfChannels; OLED.clear(); for ( byte thisChannel = 0; thisChannel < numberOfChannels; thisChannel++ ) { int x1 = barWi...
Refactor OLED code.
Refactor OLED code.
Arduino
mit
CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2
db703c3cc6650fec1b9672e055efa4c82a848c1c
short-circuit-limiter/short-circuit-limiter.ino
short-circuit-limiter/short-circuit-limiter.ino
#include <U8g2lib.h> #include "CTSensor.h" #define CURRENT_ENABLE_THRESHOLD 0.2 #define CURRENT_MCB_CUT 20 #define PIN_LED 26 #define PIN_CT A0 #define PIN_BUTTON_ENTER 24 #define PIN_TEMP A11 #define PIN_RELAY_MCB 5 #define PIN_RELAY_LIMITER 7 #define CT_CALIBRATION_VALUE 60.6 // (100A / 0.05A) / 33 ohms #define ...
#include <U8g2lib.h> #include "CTSensor.h" #define CURRENT_ENABLE_THRESHOLD 0.2 #define CURRENT_MCB_CUT 16 #define PIN_LED 26 #define PIN_CT A0 #define PIN_BUTTON_ENTER 24 #define PIN_TEMP A11 #define PIN_RELAY_MCB 5 #define PIN_RELAY_LIMITER 7 #define CT_CALIBRATION_VALUE 60.6 // (100A / 0.05A) / 33 ohms #define ...
print mob tripped current
print mob tripped current
Arduino
mit
yeokm1/repair-kopitiam-training-and-equipment,yeokm1/repair-kopitiam-training-and-equipment
397664c3638ed5156d5258f3acf3898a97e561eb
volvo_hid.ino
volvo_hid.ino
//Lbus = LIN BUS from Car //Vss = Ground //Vbb = +12V // MCP2004 LIN bus frame: // ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE #include "Mouse.h" #include "Keyboard.h" // https://github.com/zapta/linbus/tree/master/analyzer/arduino #include "lin_frame.h" #define CS_PIN 15 #define RX_LED 17 #define HEARTB...
//Lbus = LIN BUS from Car //Vss = Ground //Vbb = +12V // MCP2004 LIN bus frame: // ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE #include "Mouse.h" #include "Keyboard.h" // https://github.com/zapta/linbus/tree/master/analyzer/arduino #include "lin_frame.h" #define CS_PIN 15 #define RX_LED 17 #define HEARTB...
Rename key timeout to click timeout
Rename key timeout to click timeout
Arduino
mit
laurynas/volvo_hid
1328ee915f9b66ca46d63a501e7b4dda7d80e7b2
sketch/sketch.ino
sketch/sketch.ino
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ //{{{ Servo servo; /* サーボのピン */ /* サーボモータが可動範囲外に回転するのを防ぐ関数*/ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} /* 5度以下なら0度を返す */ if(sum > 175){...
/* サーボのヘッダファイルを準備 */ #include <Servo.h> /* サーボモータの制御クラス */ class ServoIO{ //{{{ Servo servo; /* サーボのピン */ /* サーボモータが可動範囲外に回転するのを防ぐ関数*/ int angleCalc(const int currentAngle, const int difference){ const int sum = currentAngle + difference; if(sum < 5){return 0;} /* 5度以下なら0度を返す */ if(sum > 175){...
Improve sketch.ino: refactoring for better OOP
Improve sketch.ino: refactoring for better OOP
Arduino
mit
eliza0x/Suno
71c5760b05585bc3758f480f3d31eced33c540f5
Vertex.ino
Vertex.ino
#include <Servo.h> #include <Wire.h> #include <PID_v1.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_BMP085_U.h> #include <Adafruit_L3GD20_U.h> #include <Adafruit_10DOF.h> Servo ESC1; Servo ESC2; Servo ESC3; Servo ESC4; /* Motor setup 4 1 \ / \___/ / \ / \...
#include <Servo.h> #include <Wire.h> #include <PID_v1.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_BMP085_U.h> #include <Adafruit_L3GD20_U.h> #include <Adafruit_10DOF.h> Servo ESC1; Servo ESC2; Servo ESC3; Servo ESC4; /* Motor setup 4 1 \ / \___/ / \ / \...
Make sensor error a struct rather than an array
Make sensor error a struct rather than an array
Arduino
mit
petschekr/Vertex,petschekr/Vertex
8ef664019b378548860078402d9fbb60170a058c
CoreIR.ino
CoreIR.ino
/* * */ #include <IRremote.h> IRsend irsend; int khz = 15; // 38kHz carrier frequency for the NEC protocol unsigned int rawData[33] = {20, 25, 45, 25, 85, 25, 20, 25, 45, 20, 90, 25, 45, 45, 25, 45, 25, 45, 25, 65, 45, 95, 95, 25, 20, 25, 20, 55, 45, 45, 45, 20, 20}; void setup() { pinMode(13, OUTPUT); d...
/* * */ #include <IRremote.h> IRsend irsend; int khz = 15; // 38kHz carrier frequency for the NEC protocol //6491857 unsigned int rawData[33] = {22, 22, 48, 22, 88, 22, 22, 22, 48, 22, 88, 22, 48, 48, 22, 48, 22, 48, 22, 68, 48, 93, 93, 22, 22, 22, 22, 53, 48, 48, 48, 22, 22}; unsigned int rawData[35] = {22,...
add a second transponder
add a second transponder
Arduino
mit
slacker87/CoreIR,slacker87/CoreIR
00fec9947170ce0f4a5289c1cfd27b52675ab656
arduino/arduino_md03_v_5_0/arduino_md03_v_5_0.ino
arduino/arduino_md03_v_5_0/arduino_md03_v_5_0.ino
/*************************************************** ArcEyes MD03 I2C sandbox ****************************************************/ /* #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> //int LCD pins on I2C bus #define I2C_ADDR 0x27 #define BACKLIGHT_PIN 3 #define En_pin 2 #define Rw_...
/*************************************************** ArcEyes USB Serial ****************************************************/ /* #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> //int LCD pins on I2C bus #define I2C_ADDR 0x27 #define BACKLIGHT_PIN 3 #define En_pin 2 #define Rw_p...
Update arduino_md03_v_5_0.ino
Update arduino_md03_v_5_0.ino Changed headder
Arduino
apache-2.0
Pitchless/arceye,Pitchless/arceye
bd09c6435b1597d1f6d362c2880d2ea3c238d6b4
examples/PatternPlayer/PatternPlayer.ino
examples/PatternPlayer/PatternPlayer.ino
#include <FastLED.h> #include <avr/pgmspace.h> #include <Animation.h> #include "animation.h" #define LED_COUNT 60 struct CRGB leds[LED_COUNT]; #define LED_OUT 13 #define BUTTON_IN 10 #define ANALOG_INPUT A9 #define IO_A 7 #define IO_B 11 #define BRIGHT_STEP_COUNT 5 uint8_t brightnesSteps[BRI...
#include <FastLED.h> //#include <avr/pgmspace.h> #include <Animation.h> #include "animation.h" #define LED_COUNT 60 struct CRGB leds[LED_COUNT]; #define LED_OUT 13 #define BUTTON_IN 10 #define ANALOG_INPUT A9 #define IO_A 7 #define IO_B 11 #define BRIGHT_STEP_COUNT 5 uint8_t brightnesSteps[...
Update pattern player example
Update pattern player example
Arduino
mit
Blinkinlabs/BlinkyTape_Arduino
b4289797a19a95e9936c4fa336229139af8c7338
capteurQ/capteurQ.ino
capteurQ/capteurQ.ino
/* capteurQ Copyright (c) 2017 IOT-4DL Licensed under the MIT license. */ /* * HC-05 will be paired with default PIN : 1234 */ #include "DHT.h" #include "DigitalPin.h" // use software serial port to communicate with bluetooth module hc-05 #include "SoftwareSerial.h" //#include <DHT.h> ...
/* capteurQ Copyright (c) 2017 IOT-4DL Licensed under the MIT license. */ /* * HC-05 will be paired with default PIN : 1234 */ #include "DHT.h" #include "DigitalPin.h" // use software serial port to communicate with bluetooth module hc-05 #include "SoftwareSerial.h" //#include <DHT.h> ...
correct issue on rx/tx number pin
correct issue on rx/tx number pin
Arduino
mit
IOT-4DL/capteurQ
93ade3213adb51b366b01e9eaa8df93712b8100e
timer/timer.ino
timer/timer.ino
// #include "toneAC.h" #include "Constants.h" #include "Display.h" #include "Pulser.h" #include "Speaker.h" #include "Buttons.h" #include "Countdown.h" #include "Shutdown.h" Display display; Pulser pulser; Speaker speaker; Buttons buttons; Countdown countdown; Shutdown shutdown; #define STATE_WAITING 1 #define ST...
// #include "toneAC.h" #include "Constants.h" #include "Display.h" #include "Pulser.h" #include "Speaker.h" #include "Buttons.h" #include "Countdown.h" #include "Shutdown.h" Display display; Pulser pulser; Speaker speaker; Buttons buttons; Countdown countdown; Shutdown shutdown; #define STATE_WAITING 1 #define ST...
Fix so that restart button restarts countdown when in beeping state
Fix so that restart button restarts countdown when in beeping state
Arduino
agpl-3.0
OmniRose/watch-timer,OmniRose/watch-timer
fb51ae3d26217221e2914712d86f2f0c17e1ce05
Arduino/noise_multiplier/noise_multiplier.ino
Arduino/noise_multiplier/noise_multiplier.ino
#include "AES.h" #define CHAIN_SIZE 2 #define BLOCK_SIZE 16 #define SAMPLE_SIZE BLOCK_SIZE * CHAIN_SIZE AES128 aes128; byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}; byte sourcePool[SAMPLE_SIZE]; void setup() { // Defining PB1 ...
#include "AES.h" #include "CBC.h" #define CHAIN_SIZE 2 #define BLOCK_SIZE 16 #define SAMPLE_SIZE (BLOCK_SIZE * CHAIN_SIZE) byte key[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}; CBC<AES128> cbc; byte sourcePool[SAMPLE_SIZE]; void setup...
Add conditioning implementation
Add conditioning implementation
Arduino
mit
robseward/Ziffer
afe4845d33d820638dab3ba298d7dd21acb95e30
ScoutWeatherStation/scout_weather_station.ino
ScoutWeatherStation/scout_weather_station.ino
#define USE_ESP 1 #undef USE_ARDUINO #ifdef USE_ARDUINO #include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #endif #ifdef USE_ESP #include <ESP8266WiFi.h> #endif #include <SPI.h> #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP085_U.h> #include <Adafruit_BME280.h> #include <Adaf...
#define USE_ESP 1 #undef USE_ARDUINO #ifdef USE_ARDUINO #include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #endif #ifdef USE_ESP #include <ESP8266WiFi.h> #endif #include <SPI.h> #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP085_U.h> #include <Adafruit_BME280.h> #include <Adaf...
make bme280 actually work
make bme280 actually work
Arduino
mit
craighagan/hackprojects
f91f6d3b506de67f54ad472d0d21391a2130b1d2
WiFi_Profile_Grabber/WiFi_Profile_Grabber.ino
WiFi_Profile_Grabber/WiFi_Profile_Grabber.ino
//This DigiSpark script writes the wireless network credentials to a csv file in a usb mounted at d:\ - change accordingly. //Credits to p0wc0w. #include "DigiKeyboard.h" void setup() { } void loop() { DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(500); DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); Digi...
//This DigiSpark script writes the wireless network credentials to a csv file on a usb drive. //Change "VolumeName='USB_DRIVE_LABEL'" to reflect your drive's label. //Credits to p0wc0w. #include "DigiKeyboard.h" void setup() { } void loop() { DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(500); DigiKeyboard...
Update to Wifi_Profile_Grabber
Update to Wifi_Profile_Grabber Altered the PS script to copy via drive label as opposed to hard coded drive letter. Also condensed some of the digi script into the PS script to further lessen the time exposed.
Arduino
mit
CedArctic/DigiSpark-Scripts,CedArctic/DigiSpark-Scripts
2a70e6775c935727526285323028196eb7b21807
sketches/WHID_and_Cactus_micro_rev2_sketches/Arduino_Sketch/Arduino_Sketch.ino
sketches/WHID_and_Cactus_micro_rev2_sketches/Arduino_Sketch/Arduino_Sketch.ino
/* * WHID Injector - Arduino Sketch * http://whid.ninja * Forked by Luca Bongiorni * Based on ESPloit by Corey Harding of www.LegacySecurityGroup.com */ /* For individual keypresses or combinations of key presses send the following via software serial: -"Press:X" or "Press:X+Y" or "Press:X+Y+Z" and so forth --Expe...
/* * ################################################ * #### DEPRECATED FW! Please use ESPloitV2!!! #### * ################################################ * WHID Injector - Arduino Sketch * http://whid.ninja * Forked by Luca Bongiorni * Based on ESPloit by Corey Harding of www.LegacySecurityGroup.com */ /* For...
Update Arduino_Sketch.ino
Update Arduino_Sketch.ino
Arduino
mit
whid-injector/WHID,whid-injector/WHID,whid-injector/WHID
cc74c2defacc3056965a6ed05942f3f5dca01558
iGPS.ino
iGPS.ino
/* * GPS解析 * 包括: * 时间、日期、经纬度、海拔 */ #include <SoftwareSerial.h> #include "LCD4884.h" #define GPS_TX 12 #define GPS_RX 13 #define GPRMC "$GPRMC" // 推荐最小定位信息 #define GPVTG "$GPVTG" // 地面速度信息 #define GPGGA "$GPGGA" // 获取海拔高度 #define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量 #define VALID "A" // A=Valid 有效 #define INVALID "...
/* * GPS解析 * 包括: * 时间、日期、经纬度、海拔 */ #include <SoftwareSerial.h> #include "LCD4884.h" #define GPS_TX 12 #define GPS_RX 13 #define GPRMC "$GPRMC" // 推荐最小定位信息 #define GPVTG "$GPVTG" // 地面速度信息 #define GPGGA "$GPGGA" // 获取海拔高度 #define GPZDA "$GPZDA" // UTC时间/日期及本地时区偏移量 #define VALID "A" // A=Valid 有效 #define INVALID "...
Update iGPS.ino
Update iGPS.ino 增加摇杆控制
Arduino
apache-2.0
snowolf-zlex/iGPS,snowolf-zlex/iGPS
0e6c0f9e32af450cbb7e870dfd4c90f61a6252ac
boieng.ino
boieng.ino
#define JOE 1 #define MIKE !JOE #include <Wire.h> #include "prog.h" const auto FORWARD = HIGH; const auto BAKWARD = LOW; void setup() { set_wheel_pins(); begin_gyro(); Serial.begin(9600); } void wheel(int f, int b, float n) { if (n < 0.0) { analogWrite(f, 0); analogWrite(b, n > -216 ? round(-n-40) ...
#define JOE 1 #define MIKE !JOE #include <Wire.h> #include "prog.h" const auto FORWARD = HIGH; const auto BAKWARD = LOW; void setup() { set_wheel_pins(); begin_gyro(); Serial.begin(9600); } void wheel(int f, int b, float n) { if (n < 0.0) { analogWrite(f, 0); analogWrite(b, n > -216 ? round(-n-40) ...
Stop clearing multiple times
Stop clearing multiple times
Arduino
mit
oeb25/boieng,oeb25/boieng,oeb25/boieng
8a7cd08cc4cc0f85dcef960e89c3b8ac74603606
buttonbar/buttonbar.ino
buttonbar/buttonbar.ino
// pinout #define MUX_A 10 #define MUX_B 11 #define MUX_C 12 #define MUX_COM1 14 #define MUX_COM2 15 #define MUX_COM3 16 #define SWITCH_A_UP 2 #define SWITCH_A_DN 3 #define SWITCH_B_UP 0 #define SWITCH_B_DN 1 // number of buttons #define BUTTON_COUNT 20 // MIDI params #define MIDI_CHANNEL 1 // uncomment to enable seria...
// pinout #define MUX_A 10 #define MUX_B 11 #define MUX_C 12 #define MUX_COM1 14 #define MUX_COM2 15 #define MUX_COM3 16 #define SWITCH_A_UP 2 #define SWITCH_A_DN 3 #define SWITCH_B_UP 0 #define SWITCH_B_DN 1 // number of buttons #define BUTTON_COUNT 20 // MIDI params #define MIDI_CHANNEL 1 // uncomment to enable seria...
Disable debugging.
Disable debugging.
Arduino
unlicense
jessecrossen/hautmidi,jessecrossen/hautmidi,jessecrossen/hautmidi,jessecrossen/hautmidi
3b069938a64ccfe703681132b5b4e5d752a49838
ha_mqtt_sensor_dht22/ha_mqtt_sensor_dht22.ino
ha_mqtt_sensor_dht22/ha_mqtt_sensor_dht22.ino
/* MQTT temperature and humidity sensor (DHT22) for Home-Assistant (esp8266) https://home-assistant.io/components/sensor.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient - DHT : https://github.com/adafruit/...
/* MQTT temperature and humidity sensor (DHT22) for Home-Assistant (esp8266) https://home-assistant.io/components/sensor.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient - DHT : https://github.com/adafruit/...
Update ha_mqtt_sensor_dht22.ino
Update ha_mqtt_sensor_dht22.ino
Arduino
mit
mertenats/Open-Home-Automation,mertenats/Open-Home-Automation
d1cf197269f12fbd23c3a8e7c70fd0606b09ac8d
examples/CustomSettings/CustomSettings.ino
examples/CustomSettings/CustomSettings.ino
#include <Homie.h> const int DEFAULT_TEMPERATURE_INTERVAL = 300; unsigned long lastTemperatureSent = 0; HomieNode temperatureNode("temperature", "temperature"); HomieSetting<unsigned long> temperatureIntervalSetting("temperatureInterval", "The temperature interval in seconds"); void setupHandler() { t...
#include <Homie.h> const int DEFAULT_TEMPERATURE_INTERVAL = 300; unsigned long lastTemperatureSent = 0; HomieNode temperatureNode("temperature", "temperature"); HomieSetting<unsigned long> temperatureIntervalSetting("temperatureInterval", "The temperature interval in seconds"); void setupHandler() { t...
Fix custom settings example
:bug: Fix custom settings example
Arduino
mit
euphi/homie-esp8266,marvinroger/homie-esp8266,euphi/homie-esp8266,euphi/homie-esp8266,euphi/homie-esp8266,marvinroger/homie-esp8266,marvinroger/homie-esp8266,marvinroger/homie-esp8266
392a4174f1ec03074c9ced408d285b59371a9d82
experiments/esp8266_monitor/esp8266_monitor.ino
experiments/esp8266_monitor/esp8266_monitor.ino
/** * Takes a serial payload from the LoRa client (LoRa_Radiohead_RX.ino) * and publishes it on various protocols. * * To subscribe to the UDP data: listen for broadcasts on 239.0.0.57 port 12345 * To subscribe to the MQTT data: mosquitto_sub -t solar * To subscribe to the websocket go to WiFi.localIP() port 80...
/** * Takes a serial payload from the LoRa client (LoRa_Radiohead_RX.ino) * and publishes it on various protocols. * * To subscribe to the UDP data: listen for broadcasts on 239.0.0.57 port 12345 * To subscribe to the MQTT data: mosquitto_sub -t solar * To subscribe to the websocket go to WiFi.localIP() port 80...
Set current_payload to the value of the first byte
Set current_payload to the value of the first byte
Arduino
mit
theapi/solar,theapi/solar,theapi/solar,theapi/solar,theapi/solar
58bfed9c3b75ff3fff3d83167ad2c41132e23ed2
Clock.ino
Clock.ino
#include "Arduino.h" #include <LiquidCrystal.h> #include <Wire.h> #include <SPI.h> #include <RTClib.h> #include <RTC_DS3231.h> #include <Adafruit_NeoPixel.h> #include <EasingLibrary.h> #define UpdateSkips 8 #define LEDStartDelay 3 RTC_DS3231 RTC; LiquidCrystal lcd(11, 10, 9, 12, 4, 3); Adafruit_NeoPixel strip = Adafr...
#include "Arduino.h" #include <LiquidCrystal.h> #include <Wire.h> #include <SPI.h> #include <RTClib.h> #include <RTC_DS3231.h> #include <Adafruit_NeoPixel.h> #include <EasingLibrary.h> #define Brightness 30 #define UpdateSkips 8 #define LEDStartDelay 3 RTC_DS3231 RTC; LiquidCrystal lcd(11, 10, 9, 12, 4, 3); Adafruit_...
Add global brightness definition, fix display of minutes
Add global brightness definition, fix display of minutes
Arduino
mit
Excure/LED-Clock
cd0e4506c60bb26d6bbddd5878037e96376da71f
src/homie-sonoff-touch.ino
src/homie-sonoff-touch.ino
#include <ClickButton.h> #include <Homie.h> #define FW_NAME "homie-sonoff-touch" #define FW_VERSION "2.0.2" /* 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 ...
#include <ClickButton.h> #include <Homie.h> #define FW_NAME "homie-sonoff-touch" #define FW_VERSION "2.0.2" /* 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 ...
Reboot timeout for #4. To be tested.
Reboot timeout for #4. To be tested.
Arduino
mit
kylegordon/homie-sonoff-touch
e2cccca315e9cad149c34e97d1928849fc3b8939
examples/GettingStarted/ValuePull/ValuePull.ino
examples/GettingStarted/ValuePull/ValuePull.ino
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
Update ValuePull.ino
Update ValuePull.ino
Arduino
mit
okhiroyuki/blynk-library,flashvnn/blynk-library,flashvnn/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,sstocker46/blynk-library,ivankravets/blynk-library,CedricFinance/blynk-library,okhiroyuki/blynk-library,johan--/blynk-library,csicar/blynk-library,al1271/blynk-library,radut/blynk-library,csicar/blynk-...
33a4c6a5a7c63ed51a934b1a228d5e18794bea91
libraries/ESP8266HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino
libraries/ESP8266HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino
/** StreamHTTPClient.ino Created on: 24.05.2015 */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> ESP8266WiFiMulti WiFiMulti; void setup() { Serial.begin(115200); // Serial.setDebugOutput(true); Serial.println(); Serial.println(); Ser...
/** StreamHTTPClient.ino Created on: 24.05.2015 */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> ESP8266WiFiMulti WiFiMulti; void setup() { Serial.begin(115200); // Serial.setDebugOutput(true); Serial.println(); Serial.println(); Ser...
Update StreamHttpClient.ino (#6030)
Update StreamHttpClient.ino (#6030) Fix WiFiClient vs. HttpClient declaration order Fixes #6028
Arduino
lgpl-2.1
sticilface/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,esp8266/Arduino,esp8266/Arduino,esp8266/Arduino