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
25e431ce70f4df84254f0e3674869f2ac95e0694
client/client.ino
client/client.ino
/* client.ino This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication. Examples of clients include, for now, lamps and laptops. Lamps ...
/* client.ino This is a general framework to fit in any clients that can be remotely controlled with XBee. Each clients will add additional function of parsing certain commands, while the major application takes charge of external communication. Examples of clients include, for now, lamps and laptops. Lamps ...
fix led timeout that caused ir received didn't make led blink
fix led timeout that caused ir received didn't make led blink
Arduino
bsd-2-clause
nebgnahz/HOBS,nebgnahz/HOBS,nebgnahz/HOBS
48ed6cbac2d3bfab2522ea9a6f85d54fd815cfa6
MidiController.ino
MidiController.ino
#include <MIDI.h> #ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library #include <midi_UsbTransport.h> static const unsigned sUsbTransportBufferSize = 16; typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport; UsbTransport sUsbTransport; MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ...
#include <MIDI.h> #ifndef CORE_TEENSY // Leonardo/Pro Micro USB MIDI library #include <midi_UsbTransport.h> static const unsigned sUsbTransportBufferSize = 16; typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport; UsbTransport sUsbTransport; MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, usbMIDI); // ...
Fix bug tracking latching state
Fix bug tracking latching state Since the latching state was determined from the last value sent, we couldn't figure out the state if both the "on" and "off" values were either >= or < 128. Instead, track it explicitly in a new LatchState array. Also fix an embarassing typo with note events.
Arduino
mit
brianj29/MidiController,brianj29/MidiController
4c43eab33ffc9c6d7e036b54139b3d16a3eaddcb
arduino_fibers.ino
arduino_fibers.ino
// Example Sketch illustrating the use of the fibers library. // Warren W. Gay VE3WWG Sun May 4, 2014 // This is GPL code. #include <fibers.h> // Allocate up to main + 5 fibers: Fibers<6> fibers(2000); // main loop() is allocated 2000 bytes of stack int ledm = 13; // Main LED on teensy 3.x int led0 = 0; ...
// Example Sketch illustrating the use of the fibers library. // Warren W. Gay VE3WWG Sun May 4, 2014 // This is GPL code. #include <fibers.h> // Allocate up to main + 5 fibers: Fibers<6> fibers(2000); // main loop() is allocated 2000 bytes of stack int ledm = 13; // Main LED on teensy 3.x int led0 = 0; ...
Update arduino_fibers.ino
Update arduino_fibers.ino Fixed typos in the example fibers.restart() method calls. Use the index of the fiber to specify which fiber to restart.
Arduino
lgpl-2.1
ve3wwg/teensy3_fibers
2dbe5a2c826771adaddfe43fea3fff6c3a7bc9b6
examples/RF12/syncRecv/syncRecv.ino
examples/RF12/syncRecv/syncRecv.ino
/// @dir syncRecv /// Try to receive periodic transmissions with minimal power consumption. /// @see http://jeelabs.org/2012/11/02/synchronised-reception/ /// @see http://jeelabs.org/2012/11/03/losing-sync-is-bad/ /// @see http://jeelabs.org/2012/11/04/predicting-the-next-packet-time/ /// @see http://jeelabs.org/2012/1...
/// @dir syncRecv /// Try to receive periodic transmissions with minimal power consumption. /// @see http://jeelabs.org/2012/11/02/synchronised-reception/ /// @see http://jeelabs.org/2012/11/03/losing-sync-is-bad/ /// @see http://jeelabs.org/2012/11/04/predicting-the-next-packet-time/ /// @see http://jeelabs.org/2012/1...
Expand the receive window if any packet is lost, not if we're synced
Expand the receive window if any packet is lost, not if we're synced
Arduino
unlicense
jcw/jeelib,jcw/jeelib
a46fbd5ac3f151bbe9fe2c43ce0dfd2fd200afc5
MQTT433gateway.ino
MQTT433gateway.ino
/* MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight Project home: https://github.com/puuu/MQTT433gateway/ The MIT License (MIT) Copyright (c) 2016 Puuu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
/* MQTT433gateway - MQTT 433.92 MHz radio gateway utilizing ESPiLight Project home: https://github.com/puuu/MQTT433gateway/ The MIT License (MIT) Copyright (c) 2016 Puuu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
correct spaces around operators
MQTT433gateway.ino: correct spaces around operators
Arduino
mit
puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway,puuu/MQTT433gateway
8cbfcbe02d09c1dd7d9c1ada2d46c4105b05a83f
Controller/Tiny85-Standalone-22H/Tiny85-Standalone-22H.ino
Controller/Tiny85-Standalone-22H/Tiny85-Standalone-22H.ino
/* * ATtiny85v 8Mhz @ 3.3v * +---U---+ * Reset | 1 8 | Vcc * NC // (PB3) | 2 7 | MOTOR_START (PB2) * POT (PB4/A2) | 3 6 | MOTOR_PWM (PB1) * GND | 4 5 | LED_SPEED (PB0) * +-------+ */ const byte MOTOR_PWM = 1; const byte MOTOR_...
/* * ATtiny85v 8Mhz @ 3.3v * +---U---+ * Reset | 1 8 | Vcc * NC // (PB3) | 2 7 | MOTOR_START (PB2) * POT (PB4/A2) | 3 6 | MOTOR_PWM (PB1) * GND | 4 5 | LED_SPEED (PB0) * +-------+ */ const byte MOTOR_PWM = 1; const byte MOTOR_...
change min/max
change min/max
Arduino
mit
gharris012/StirPlate,gharris012/StirPlate
b829e1218d4eeccdf992fda9e0766e153ff497b5
src/microController/microController.ino
src/microController/microController.ino
// Include //////////////////////////////////////////////////////////////////////////////// #include <EEPROM.h> // Define //////////////////////////////////////////////////////////////////////////////// #define X1_STEP_PIN 54 //X1->X #define X1_DIR_PIN 55 #define X1_ENABLE_PIN 38 ...
// Include //////////////////////////////////////////////////////////////////////////////// #include <EEPROM.h> // Define //////////////////////////////////////////////////////////////////////////////// #define X1_STEP_PIN 54 //X1->X #define X1_DIR_PIN 55 #define X1_ENABLE_PIN 38 ...
Update MCU code for requirement doc specifications
Update MCU code for requirement doc specifications
Arduino
apache-2.0
eric73847/Capstone-Project,eric73847/Capstone-Project,eric73847/Capstone-Project
bca748aa4b74080f6e37e27622906d674e5d69ed
SensorBoard.ino
SensorBoard.ino
#include <SPI.h> #include "nRF24L01.h" #include "RF24.h" RF24 radio(9,10); const uint64_t pipes[2] = { 0xF0F0F0F001LL, 0xF0F0F0F002LL }; void setup(void) { Serial.begin(57600); radio.begin(); //radio.setChannel(0x4b); radio.setAutoAck(false); radio.setRetries(15,15); radio.setPALevel(RF24_PA_MAX); ra...
#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.setChannel(0x4b); radio.setAutoAck(false); radio.setRetries(15,1...
Update Sketch
Update Sketch Add Switch on/of test Add Basic parsing of command
Arduino
apache-2.0
Ertinfagor/RCHome,Ertinfagor/RCHome,Ertinfagor/RCHome
2e698239c76adfc5e5b58590f05351c09922d293
main/main.ino
main/main.ino
#include <Canbus.h> #include <defaults.h> #include <global.h> #include <mcp2515.h> #include <mcp2515_defs.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(14, 3, 4, 5, 6, 7); int brightness = 255; byte fill1[8] = { B10000, B10000, B10000, B10000, B10000, B10000, ...
#include <mcp_can.h> #include <mcp_can_dfs.h> #include <global.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(14, 3, 4, 5, 6, 7); int brightness = 255; byte fill1[8] = { B10000, B10000, B10000, B10000, B10000, B10000, B10000, B10000 }; byte fill2[8] = { ...
swap libs, show afr/tgt
swap libs, show afr/tgt
Arduino
apache-2.0
srenner/meguinauge
4d7265831a0adc0d5e3c93f2bde67a9b290e6cb9
examples/BasicMQTT/BasicMQTT.ino
examples/BasicMQTT/BasicMQTT.ino
/* * This example is meant to be used as a starting point * for working with MQTT publish and subscribe * * 2017/02/07 * by Anto.io team * */ #include <AntoIO.h> const char *ssid = "your access point SSID"; const char *pass = "access point password"; const char *user = "your username"; const char *token = "you...
/* * This example is meant to be used as a starting point * for working with MQTT publish and subscribe * * 2017/02/07 * by Anto.io team * */ #include <AntoIO.h> const char *ssid = "your access point SSID"; const char *pass = "access point password"; const char *user = "your username"; const char *token = "you...
fix anto.mqtt.connect() arguments
fix anto.mqtt.connect() arguments
Arduino
mit
AntoIOT/Arduino-Lib,AntoIOT/anto-esp8266-arduino,AntoIOT/anto-esp8266-arduino,AntoIOT/AntoIO,AntoIOT/Arduino-Lib,AntoIOT/AntoIO
059d6fd00aa02828215863a5ad1f50743e9cf50e
RouterReset_Yun/RouterReset_Yun.ino
RouterReset_Yun/RouterReset_Yun.ino
/* Testing an Arduino Yun: light up green or red when internet is on * * red LED (internet down): pin 3 * green LED (internet up): pin 5 * yellow LED (testing): pin 6 * * needs checkInternet.py installed in /usr/bin in Yun Linino */ #include <Process.h> const int redLED = 3; const int greenLED = 5; const in...
/* Testing an Arduino Yun: light up green or red when internet is on * * red LED (internet down): pin 3 * green LED (internet up): pin 5 * yellow LED (testing): pin 6 * * * needs checkInternet.py installed in /usr/bin in Yun Linino */ #include <Process.h> const int redLED = 3; const int greenLED = 5...
expand RouterReset_Yun to include reset of the router
expand RouterReset_Yun to include reset of the router
Arduino
mit
karlduino/RouterReset,karlduino/RouterReset
ec666c651b01ffe3483d3fa3049ce64d783001ca
examples/Esp32-mqtt/Esp32-mqtt.ino
examples/Esp32-mqtt/Esp32-mqtt.ino
/****************************************************************************** * Copyright 2018 Google * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
/****************************************************************************** * Copyright 2018 Google * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
Update Esp32-mqtt.ino (#29)
Update Esp32-mqtt.ino (#29) Fix array out of bounds
Arduino
apache-2.0
GoogleCloudPlatform/google-cloud-iot-arduino,GoogleCloudPlatform/google-cloud-iot-arduino,GoogleCloudPlatform/google-cloud-iot-arduino
2732d9defb247aa53df7b98d1b042f68e60efb15
tank/src/sketch.ino
tank/src/sketch.ino
#include <Servo.h> #define MAX 250 #define NOM 50 #define BaudRate (115200) //2砲台右回転 const int Turn_A = 2; //3砲台左回転 const int Turn_B = 3; //4,5右モータ制御 const int Right_A = 4; //4,5右モータ制御 const int Right_B = 5; //6右モータ(PWM) const int Right_PWM = 6; //7,8発射のモーター const int Push_A = 7; //7,8発射のモーター const int Push_B = 8...
/*-------------------------------------- Description: Arduino Tank Program Arduino Board: all Use Pin: OUTPUT: 1~15 INPUT: 0 -------------------------------------*/ #include <Servo.h> #define MAX 250 #define NOM 50 #define BaudRate (115200) #define debug false //発射状況 bool launchMode = false; bool laun...
update controller program
update controller program
Arduino
mit
sh4869/TankGame
6dcae4832b45306ccdeb175b646161260d5dde4c
arduino/motors_ahrs/motors_ahrs.ino
arduino/motors_ahrs/motors_ahrs.ino
// Motor controller and AHRS for Urpobotti // IMU https://www.pololu.com/product/1265 (links to the gyro and compass libs) // AHRS library: https://github.com/rambo/MinIMU-9-Arduino-AHRS // Motor shield https://www.pololu.com/product/2502 #include "DualVNH5019MotorShield.h" DualVNH5019MotorShield md; // Needs to be i...
// Motor controller and AHRS for Urpobotti // IMU https://www.pololu.com/product/1265 (links to the gyro and compass libs) // AHRS library: https://github.com/rambo/MinIMU-9-Arduino-AHRS // Motor shield https://www.pololu.com/product/2502 #include "DualVNH5019MotorShield.h" DualVNH5019MotorShield md; // Needs to be i...
check the return value before printing new data
check the return value before printing new data
Arduino
mit
HelsinkiHacklab/urpobotti,HelsinkiHacklab/urpobotti,HelsinkiHacklab/urpobotti,HelsinkiHacklab/urpobotti
74f308ff0b625d79389917d8b0d90e864d482a34
DanceFeather/DanceFeather.ino
DanceFeather/DanceFeather.ino
// SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries // // SPDX-License-Identifier: MIT // #include <Adafruit_APDS9960.h> #include <Adafruit_BMP280.h> #include <Adafruit_LIS3MDL.h> #include <Adafruit_LSM6DS33.h> #include <Adafruit_SHT31.h> #include <Adafruit_Sensor.h> #include <PDM.h> #include <KickFFT...
// SPDX-FileCopyrightText: 2020 Carter Nelson for Adafruit Industries // // SPDX-License-Identifier: MIT // #include <Adafruit_APDS9960.h> #include <Adafruit_BMP280.h> #include <Adafruit_LIS3MDL.h> #include <Adafruit_LSM6DS33.h> #include <Adafruit_SHT31.h> #include <Adafruit_Sensor.h> #include <PDM.h> #include <KickFFT...
fix bug
fix bug
Arduino
mit
crazypills/Dancetimes
ed17e517779580d9b377655f9dbd125382e515b9
examples/SerialCsvLogger/SerialCsvLogger.ino
examples/SerialCsvLogger/SerialCsvLogger.ino
#include "RadiationWatch.h" /* Output the measurements on serial as CSV values. You can use the joined Python script serial_plot.py to plot dynamically the radiation level. */ RadiationWatch radiationWatch; void onRadiationPulse() { // For each radiation update the values sent to serial in CSV. Serial.println(ra...
#include "RadiationWatch.h" /* Output the measurements on serial as CSV values. You can use the joined Python script serial_plot.py to plot dynamically the radiation level. */ RadiationWatch radiationWatch; unsigned long csvStartTime; void csvKeys(Print &print=Serial) { // inizialise start time csvStartTime = mi...
use Print class for csv
SerialCsvLogger.ino: use Print class for csv Streaming of strings is the Arduino way and saves dynamic memory, here 60 bytes.
Arduino
mit
MonsieurV/ArduinoPocketGeiger
41b556372547039797398a8ed871d2451b589486
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...
Comment out reporting on ds18b20
Comment out reporting on ds18b20
Arduino
mit
panoptes/POCS,AstroHuntsman/POCS,AstroHuntsman/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/PACE,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS
a9ed78932bfcf43cea53c49ee979f6ec66356142
src/teensy_sketch/teensy_sketch.ino
src/teensy_sketch/teensy_sketch.ino
#include <Arduino.h> /* Metis-2 launch onboard sketch This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card for further analysis on landing. It also communicates basic data over the 433MHz radio band, as well as 2.4GHz WiFi This sketch is written for use on a Teensy 3.1...
#include <Arduino.h> /* Metis-2 launch onboard sketch This sketch contains logic to read sensor values via I2C and SPI and dump data to an SD card for further analysis on landing. It also communicates basic data over the 433MHz radio band, as well as 2.4GHz WiFi This sketch is written for use on a Teensy 3.1...
Apply stashed changes
Apply stashed changes
Arduino
mit
team-rocket-vuw/metis-2-onboard
b9601b77887337bb7d30a0fe2c3e8bce0691ec6b
e-kettcar.ino
e-kettcar.ino
#include <Arduino.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> #include "Motor.h" #include "Battery.h" #include "GasPedal.h" #include "Gear.h" #include "ExponentialSmoothing.h" #include "settings.h" Motor motor = Motor(PIN_ENABLE_R, PIN_PWM_R, PIN_ENABLE_L, PIN_PWM_L); Gear gear = Gear(PIN_SWITCH_FORWARDS, PIN_...
#include <Arduino.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> #include "Motor.h" #include "Battery.h" #include "GasPedal.h" #include "Gear.h" #include "ExponentialSmoothing.h" #include "settings.h" Motor motor = Motor(PIN_ENABLE_R, PIN_PWM_R, PIN_ENABLE_L, PIN_PWM_L); Gear gear = Gear(PIN_SWITCH_FORWARDS, PIN_...
Use Gas value for display
Use Gas value for display
Arduino
mit
schinken/E-KettCar,schinken/E-KettCar
ffcc4451d7147bd0b5609245c9131711af22aa15
CoreIR.ino
CoreIR.ino
/* * */ #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,...
//****CONFIGURATION OPTIONS**** //change transponder ID # by setting a different transponder number //available values are 1-6 #define transponder1 //****CONFIGURATION END**** //setup for the transponder IR signal #include <IRremote.h> IRsend irsend; int khz = 15; //setup for blinking the arduino LED const int ledP...
Add more transponders, also make changing transponder id easier
Add more transponders, also make changing transponder id easier
Arduino
mit
slacker87/CoreIR,slacker87/CoreIR
a41032e567f85d8e71f84d1dd9ce84c5e288bec3
mocap_usbtext/mocap_usbtext.ino
mocap_usbtext/mocap_usbtext.ino
#include <ahrs.h> #include <Wire.h> #include <I2Cdev.h> #include <LSM9DS0.h> LSM9DS0 sen; boolean connection=false; unsigned long time=0; void setup() { Serial.begin(115200); while (!Serial) ; // wait until somebody is there sen.initialize(); connection = sen.testConnection(); Serial.println( connecti...
#include <ahrs.h> #include <Wire.h> #include <I2Cdev.h> #include <LSM9DS0.h> LSM9DS0 sen; boolean connection=false; unsigned long time=0; void setup() { Serial.begin(115200); while (!Serial) ; // wait until somebody is there connection = sen.testConnection(); Serial.println( connection ? "OK" : "FAILED...
remove unneeded init call
remove unneeded init call
Arduino
bsd-3-clause
pscholl/jnoduino,pscholl/jnoduino,pscholl/jnoduino
66453796a59c051aca7551b7099817898eba0e38
examples/NanoRFMeshNet/RF24MeshMaster/RF24MeshMaster.ino
examples/NanoRFMeshNet/RF24MeshMaster/RF24MeshMaster.ino
/** RF24Mesh_Example_Master.ino by TMRh20 This example sketch shows how to manually configure a node via RF24Mesh as a master node, which will receive all data from sensor nodes. The nodes can change physical or logical position in the network, and reconnect through different routing nodes as required....
/** RF24Mesh_Example_Master.ino by TMRh20 This example sketch shows how to manually configure a node via RF24Mesh as a master node, which will receive all data from sensor nodes. The nodes can change physical or logical position in the network, and reconnect through different routing nodes as required....
Update RF24MeshMaster.ino
Update RF24MeshMaster.ino
Arduino
unlicense
shenkarSElab/nano24rf,shenkarSElab/nanoRF,shenkarSElab/nano24rf,shenkarSElab/nanoRF
73e04256c9479a477e4c7dd4ed46ca3da0555648
dragino/sketch.ino
dragino/sketch.ino
#include <SPI.h> #include <PubSubClient.h> #include <YunClient.h> #include <string.h> int out2 = 2; int out3 = 3; int out4 = 4; int out6 = 6; char message_buff[100]; ////Please here paste info from "devinfo"//////////////// #define IOTUSERNAME "ioioioioio" #define IOTPASSWORD "pppppppp" #define IOTDEVICE "iiiiiiiii"...
//Hello!, this is a sketch to get remote control to your dragino device by bridge mode //The original source and Pubsubclient code comes from: //https://github.com/knolleary/pubsubclient //this is a modified sketch from those repository // //Hola ! Este es un sketch de prueba para tomar control remoto de su dispositiv...
Update sketch.ino
Update sketch.ino
Arduino
apache-2.0
redlibre/iot_platform
b9171ce2646d0c54a53a8dc6453a9347139438e6
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 *...
Print out the accessory state to the terminal
Print out the accessory state to the terminal
Arduino
mit
4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer
11666e474fa37bcbd6a4f376f84f089920d8b78b
examples/DMASpi_example2/DMASpi_example2.ino
examples/DMASpi_example2/DMASpi_example2.ino
//#include <WProgram.h> #include <SPI.h> #include <DmaSpi.h> /** Important The sketch waits for user input through Serial (USB) before it starts the setup. After any key was pressed, it should begin to work. It will ask for a second keypress later. This example cannot simply be modified to use SPI0 or SPI2 i...
//#include <WProgram.h> #include <SPI.h> #include <DmaSpi.h> /** Important The sketch waits for user input through Serial (USB) before it starts the setup. After any key was pressed, it should begin to work. It will ask for a second keypress later. This example cannot simply be modified to use SPI0 or SPI2 i...
Update DMASpi_example2.ino
Update DMASpi_example2.ino
Arduino
mit
crteensy/DmaSpi
d946b2125e95ce1646f133830941580c264dbf92
pug.ino
pug.ino
#include <Servo.h> #define rightMotorPin1 12 #define rightMotorPin2 11 #define leftMotorPin1 9 #define leftMotorPin2 10 #define starterServoPin 18 #define rotateTime 750 // Globals vars Servo starterServo; // # Low level controls // ## Motor Right void backwardRight() { digitalWrite(rightMotorPin1, HIGH); dig...
#include <Servo.h> #define rightMotorPin1 12 #define rightMotorPin2 11 #define leftMotorPin1 9 #define leftMotorPin2 10 #define starterServoPin 18 #define rotateTime 600 // Globals vars Servo starterServo; // # Low level controls // ## Motor Right void backwardRight() { digitalWrite(rightMotorPin1, HIGH); dig...
Add logs
Add logs
Arduino
mit
gobgob/pug,gobgob/pug,gobgob/pug
2f39fa6a02d11e40c91168390d2828aed8cf6062
longboard-ctl.ino
longboard-ctl.ino
/** * Main controller for an electronic longboard (long skateboard) project. * Inteded for Arduino Nano (v3.0). * * ESC control: PWM pins D9 (any pwm: D3, 5, 6, 9, 10, 11) * Accelerometer: I2C (library) pins A4 (SDA), A5 (SCL), D2 (INT2; Data ready interrupt) * Bluetooth: Serial pi...
/** * Main controller for an electronic longboard (long skateboard) project. * Inteded for Arduino Nano (v3.0). * * ESC control: PWM pins D9 (any pwm: D3, 5, 6, 9, 10, 11) * Accelerometer: I2C (library) pins A4 (SDA), A5 (SCL), D2 (INT2; Data ready interrupt) * Bluetooth: Serial pi...
remove accelerometer
remove accelerometer
Arduino
mit
TK009/longboard-ctl
d272389ef8c2e3daea292454e7b01229106c6502
Programmer.ino
Programmer.ino
/* Programmer.ino Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino. Data to write to flash is fed from standard SDCC produced Intel Hex format file using the accompanying programmer.pl perl script. Start the Arduino script first and then run the perl script. When upload...
/* Programmer.ino Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino. Data to write to flash is fed from standard SDCC produced Intel Hex format file using the accompanying programmer.pl perl script. Start the Arduino script first and then run the perl script. When upload...
Fix include path
Fix include path
Arduino
mit
baruch/nRF24LE1_Programmer
afcabf711a26230f8e19294f1cfa1a17a2465a73
RGB_matrix.ino
RGB_matrix.ino
#include "sounds.h" #include "playMelody.h" #include "led_fullcolor_9.h" #define BUZZER_PIN 8 #define SWITCH_PIN 9 #define isPress() (!digitalRead(SWITCH_PIN)) PlayMelody melodyA(BUZZER_PIN); PlayMelody melodyB(BUZZER_PIN); PlayMelody melodyC(BUZZER_PIN); void setup(){ pinMode( SWITCH_PIN, INPUT_PULLUP); a...
#include "sounds.h" #include "playMelody.h" #include "led_fullcolor_9.h" #define BUZZER_PIN 8 #define SWITCH_PIN 9 #define isPress() (!digitalRead(SWITCH_PIN)) #define until(x) while(!(x)) PlayMelody melodyA(BUZZER_PIN); PlayMelody melodyB(BUZZER_PIN); PlayMelody melodyC(BUZZER_PIN); void setup(){ pinMode( SWIT...
fix add comment
fix add comment
Arduino
mit
gitoku/RGB_matrix,gitoku/RGB_matrix
f21818288317954acafcbd9ffd0640689160d226
testing/arduino/self-driving-v6.ino
testing/arduino/self-driving-v6.ino
#include "Arduino.h" #include "Adafruit_NeoPixel.h" #include "Servo.h" #include "NewPing.h" // Base Date const uint16_t initialDelay = 2500; // Ranges and Data const uint8_t rangeLimit_Warning1 = 60; const uint8_t rangeLimit_Warning2 = 50; const uint8_t rangeLimit_Warning3 = 40; const uint8_t rangeLimit_Stop = 25; co...
#include "Arduino.h" #include "Adafruit_NeoPixel.h" #include "Servo.h" #include "NewPing.h" // Base Date const uint16_t initialDelay = 2500; // Ranges and Data const uint8_t rangeLimit_Warning1 = 60; const uint8_t rangeLimit_Warning2 = 55; const uint8_t rangeLimit_Warning3 = 45; const uint8_t rangeLimit_Stop = 35; co...
fix servo range
fix servo range
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
af051670a746ac660ce2f61a22b4631d5e804024
src/main.ino
src/main.ino
#include "MPU6050.h" // Sensor inputs MPU6050 *sensors = new MPU6050(); void setup() { // Setup USB serial output Serial.begin(9600); // Initialize sensors sensors->init(); // Prints out the local IP over Serial. Serial.println(WiFi.localIP()); } void loop() { int16_t accelX, accelY, ac...
#include "MPU6050.h" #include "Motor.h" // Sensor inputs MPU6050 *sensors = new MPU6050(); // Motors Motor *motorFrontLeft = new Motor(A5); Motor *motorFrontRight = new Motor(A4); Motor *motorBackLeft = new Motor(A0); Motor *motorBackRight = new Motor(A1); void setup() { // Setup USB serial output Serial.beg...
Add motors to main app
Add motors to main app
Arduino
mit
sparkcopter/firmware
325974b7881711e782ca573dadd803ffc803bc73
src/main.ino
src/main.ino
extern "C" { #include <user_interface.h> } #define DATA_LENGTH 112 #define TYPE_MANAGEMENT 0x00 #define TYPE_CONTROL 0x01 #define TYPE_DATA 0x02 #define SUBTYPE_PROBE_REQUEST 0x04 struct RxControl { signed rssi:8; // signal intensity of packet unsigned rate:4; unsigned is_g...
extern "C" { #include <user_interface.h> } #define DATA_LENGTH 112 #define TYPE_MANAGEMENT 0x00 #define TYPE_CONTROL 0x01 #define TYPE_DATA 0x02 #define SUBTYPE_PROBE_REQUEST 0x04 struct RxControl { signed rssi:8; // signal intensity of packet unsigned rate:4; unsigned is_g...
Implement channel hoping.
Implement channel hoping.
Arduino
unlicense
kalanda/esp8266-sniffer
c289a6d21c903fd276e86d4f1569a233a448796c
engine-room/engine_arduino/engine_arduino.ino
engine-room/engine_arduino/engine_arduino.ino
#include <PololuLedStrip.h> PololuLedStrip<2> leds; rgb_color colors[4]; void setup() { Serial.begin(9600); pinMode(LED_BUILTIN, OUTPUT); } void loop() { // TEMP, delete once real LEDs come in digitalWrite(LED_BUILTIN, HIGH); delay(2000); digitalWrite(LED_BUILTIN, LOW); delay(2000); colors[0] =...
#include <PololuLedStrip.h> PololuLedStrip<2> leds; rgb_color colors[4]; void setup() { Serial.begin(9600); pinMode(LED_BUILTIN, OUTPUT); } void loop() { // TEMP, delete once real LEDs come in digitalWrite(LED_BUILTIN, HIGH); delay(2000); digitalWrite(LED_BUILTIN, LOW); delay(2000); colors[0] =...
add sketch of future code
add sketch of future code
Arduino
mit
bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne
fd726c482bb46ad9168d10912de14b579a2854ae
blink_strip/blink_strip.ino
blink_strip/blink_strip.ino
static int LED_COUNT = 32; void setup() { DDRB = 0xFF; DDRD = 0xFF; } void send_single_byte(uint8_t c) { // D5 is clock, D4 is data for(uint8_t i = 0; i < 8; i++) { PORTD = (((c >> (7 - i)) & 0x01) << 4); PORTD = (((c >> (7 - i)) & 0x01) << 4) | 0x20; } } void send_pixel(uint8_t red, uint8_t green,...
static int LED_COUNT = 32; void setup() { DDRB = 0xFF; DDRD = 0xFF; } void send_single_byte(uint8_t c) { // D5 is clock, D4 is data for(uint8_t i = 0; i < 8; i++) { PORTD = (((c >> (7 - i)) & 0x01) << 4); PORTD = (((c >> (7 - i)) & 0x01) << 4) | 0x20; } } void send_pixel(uint8_t red, uint8_t green,...
Enable all the leds
Enable all the leds
Arduino
apache-2.0
Blinkinlabs/BlinkyTape,Blinkinlabs/BlinkyTape,Blinkinlabs/BlinkyTape
d28af59e6f4981f7ba6876859e5cbc3c54bd565b
arduino_slave_sensor/Temp_probe.ino
arduino_slave_sensor/Temp_probe.ino
#include <LowPower.h> #include <DHT.h> #define DHTPIN 2 #define DHTTYPE DHT11 #define DHTALIM 3 #define TRANSCEIVERALIM 4 DHT dht(DHTPIN, DHTTYPE); int sleep_index=0; int ack=0; void setup() { Serial.begin(9600); dht.begin(); pinMode(DHTALIM, OUTPUT); pinMode(TRANSCEIVERALIM, OUTPUT); } int sendData(int t...
#include <LowPower.h> #include <DHT.h> #define DHTPIN 2 #define DHTTYPE DHT11 #define DHTALIM 3 #define TRANSCEIVERALIM 4 DHT dht(DHTPIN, DHTTYPE); int sleep_index=0; void setup() { Serial.begin(9600); dht.begin(); pinMode(DHTALIM, OUTPUT); pinMode(TRANSCEIVERALIM, OUTPUT); } int sendData(int temp, int hu...
Send all data in once
Send all data in once
Arduino
bsd-2-clause
st3rk/Cheap_WSN
7dd817a88210d94a125146c5ff81f5d48c7a0548
arduino-cc3000/button/button.ino
arduino-cc3000/button/button.ino
#include <Adafruit_CC3000.h> #include <PubSubClient.h> #include <SPI.h> #define ADAFRUIT_CC3000_IRQ 3 #define ADAFRUIT_CC3000_VBAT 5 #define ADAFRUIT_CC3000_CS 10 #define BUTTON 2 Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000...
#include <Adafruit_CC3000.h> #include <PubSubClient.h> #include <SPI.h> #define ADAFRUIT_CC3000_IRQ 3 #define ADAFRUIT_CC3000_VBAT 5 #define ADAFRUIT_CC3000_CS 10 #define BUTTON 2 Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000...
fix cc3000 button feed name
fix cc3000 button feed name
Arduino
mit
adafruit/adafruit-io-basics,adafruit/adafruit-io-basics
ebca7598c4051d13a5e5e0436e3ad053dfad6b98
src/DryAgeMeat.ino
src/DryAgeMeat.ino
/* * Project DryAgeMeat * Description: * Author: * Date: */ #include "DryAgeMeat.h" DryAgeMeat dryAgeMeat; SYSTEM_THREAD(ENABLED); void setup(void) { dryAgeMeat.setup(); } void loop(void) { dryAgeMeat.loop(); }
/* * Project DryAgeMeat * Description: * Author: * Date: */ #include "DryAgeMeat.h" DryAgeMeat dryAgeMeat; SYSTEM_THREAD(ENABLED); STARTUP(WiFi.selectAntenna(ANT_AUTO)); void setup(void) { dryAgeMeat.setup(); } void loop(void) { dryAgeMeat.loop(); }
Add external antenna support
feat: Add external antenna support
Arduino
mit
FirstBuild/DryAgeMeat
7ac07257a9802f48983a52ade562a939780ce8a6
Foam.ino
Foam.ino
#include <SPI.h> #include <Ethernet.h> #include <ArduinoJson.h> // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0x90, 0xA2, 0XDA, 0x00, 0x45, 0xBA }; IPAddress ip(192, 168, 1, 170); // Enter the IP address of the server you'r...
#include <SPI.h> #include <Ethernet.h> #include <ArduinoJson.h> const int pingPin = 7; const int bufferSize = 160; // Enter a MAC address and IP address for your controller below. byte mac[] = { 0x90, 0xA2, 0XDA, 0x00, 0x45, 0xBA }; // The IP address will be dependent on your local network: IPAddress ip(192, 168, ...
add sensor reading - ping
add sensor reading - ping
Arduino
mit
labzone/Foam,iot-kit/Foam
fe178043ee7e5ed575708cf21d40cc062c14af4e
wled00/wled16_blynk.ino
wled00/wled16_blynk.ino
/* * Remote light control with the free Blynk app */ uint16_t blHue = 0; byte blSat = 255; void initBlynk(const char* auth) { if (WiFi.status() != WL_CONNECTED) return; blynkEnabled = (auth[0] != 0); if (blynkEnabled) Blynk.config(auth); } void handleBlynk() { if (WiFi.status() == WL_CONNECTED && blynkEnab...
/* * Remote light control with the free Blynk app */ uint16_t blHue = 0; byte blSat = 255; void initBlynk(const char* auth) { if (WiFi.status() != WL_CONNECTED) return; blynkEnabled = (auth[0] != 0); if (blynkEnabled) Blynk.config(auth); } void handleBlynk() { if (WiFi.status() == WL_CONNECTED && blynkEnab...
fix blynk
fix blynk
Arduino
mit
Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED,Aircoookie/WLED
2e434df5a7a8fa989630b7b854690620cce3933c
weather-clock.ino
weather-clock.ino
#include <SPI.h> #include "WiFi101.h" #include "keys.h" #include "ArduinoJson.h" #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 // initializes the ring with arguments(number of pixels, input pin, type of pixels) Adafruit_NeoPixel pixels = Adafruit_NeoPixel(24, PIN, NEO_G...
#include <SPI.h> #include "WiFi101.h" #include "keys.h" #include "ArduinoJson.h" #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 // initializes the ring with arguments(number of pixels, input pin, type of pixels) Adafruit_NeoPixel pixels = Adafruit_NeoPixel(24, PIN, NEO_GRB...
add temp fn
add temp fn
Arduino
mit
mgalicer/weather-clock
a1698c538669312fb30138627a8cb8a5ca272260
Device/HC-SR04.ino
Device/HC-SR04.ino
//Reference Value to Get The Status of Parking #define parked 200 #define fault 4000 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 //Flags boolean d1 = 0; boolean d2 = 0; boolean d3 = 0; /* //Deducting the L...
//Reference Value to Get The Status of Parking #define parked 100 #define fault 4500 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 /* //Deducting the Low Pulse fromm the Echo Pin unsigned long echoDeduct(uint...
Update HC-SR04.ino
Update HC-SR04.ino
Arduino
mit
shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking
c2b2c5adc65e1e3d6e5d9393bbb4fdd5345ccd53
libraries/MCP23008/examples/CosaMCP23008/CosaMCP23008.ino
libraries/MCP23008/examples/CosaMCP23008/CosaMCP23008.ino
/** * @file CosaMCP23008.ino * @version 1.0 * * @section License * Copyright (C) 2015, 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 CosaMCP23008.ino * @version 1.0 * * @section License * Copyright (C) 2015, 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...
Clean up.
Clean up.
Arduino
lgpl-2.1
dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa,dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa
f864953373cbf07aa1eebbaf85e5238ec7a7cd43
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...
make inArgv const correct
make inArgv const correct
Arduino
mit
beehoppop/EmbeddedLibrary,beehoppop/EmbeddedLibrary
d88909db3e0330be8323a8a8910c62d987b5ab9f
examples/mqtt_esp8266/mqtt_esp8266.ino
examples/mqtt_esp8266/mqtt_esp8266.ino
/* Basic ESP8266 MQTT example This sketch demonstrates the capabilities of the pubsub library in combination with the ESP8266 board/library. It connects to an MQTT server then: - publishes "hello world" to the topic "outTopic" every two seconds - subscribes to the topic "inTopic", printing out any messages ...
/* Basic ESP8266 MQTT example This sketch demonstrates the capabilities of the pubsub library in combination with the ESP8266 board/library. It connects to an MQTT server then: - publishes "hello world" to the topic "outTopic" every two seconds - subscribes to the topic "inTopic", printing out any messages ...
declare wifi mode prior to connect
declare wifi mode prior to connect must have statement for current Arduino Framework, see also https://github.com/knolleary/pubsubclient/issues/138#issuecomment-326113915
Arduino
mit
knolleary/pubsubclient,knolleary/pubsubclient,knolleary/pubsubclient
95df23cb4cfde3e3696ceb46d9810d7ae0fd6e88
code/code.ino
code/code.ino
#define BAUD_RATE 57600//general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200 #define SD_CARD_PIN 53 #define LED_PIN 50 #define MEGA 0 #define DUE 1 #define PLATFORM MEGA #include <SD.h> #include <SPI.h> #include <Wire.h> #include <mavlink.h> #if (PLATFORM==MEGA) #i...
#define BAUD_RATE 57600//general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200 #define SD_CARD_PIN 53 #define LED_PIN 50 #define MEGA 0 #define DUE 1 #define PLATFORM MEGA #include <SD.h> #include <SPI.h> #include <Wire.h> #include <mavlink.h> #if (PLATFORM==MEGA) #i...
Update code.ino
Update code.ino
Arduino
unlicense
IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK
3d986da9369fa958c058b820b8574153d9d5cb80
jacket.ino
jacket.ino
#include "FastLED.h" #include "plasma.cpp" #include "stripes.cpp" #include "fire.cpp" #include "descent.cpp" #include "solid.cpp" #include "noise.cpp" // These are my specific LED strings #define LED_PIN 6 #define CHIPSET WS2812B #define COLOR_ORDER GRB #define NUM_LEDS 400 // Reasonable for battery-power...
#include "FastLED.h" #include "plasma.cpp" #include "stripes.cpp" #include "fire.cpp" #include "descent.cpp" #include "solid.cpp" #include "noise.cpp" // These are my specific LED strings #define LED_PIN 6 #define CHIPSET WS2812B #define COLOR_ORDER GRB #define NUM_LEDS 400 // Reasonable for battery-power...
Destroy old animations
Destroy old animations
Arduino
mit
SteveEisner/jacket
a7709d792ec8440ca0f65acf06fcbf3c8a462377
Arduino/Arduino.ino
Arduino/Arduino.ino
#include <SoftwareSerial.h> #include <Arduino.h> #include <MideaHeatpumpIR.h> SoftwareSerial esp12(4, 5); //RX,TX IRSenderPWM irSender(3); HeatpumpIR *heatpumpIR = new MideaHeatpumpIR(); char c; boolean gotMessage = false; String message; int temp_value = 19, mode_value = 2, fanspeed_value = 0, swing_value = 0, ac_va...
#include <SoftwareSerial.h> #include <Arduino.h> #include <MideaHeatpumpIR.h> SoftwareSerial esp12(4, 5); //RX,TX IRSenderPWM irSender(8); HeatpumpIR *heatpumpIR = new MideaHeatpumpIR(); char c; boolean gotMessage = false; String message; int temp_value = 19, mode_value = 2, fanspeed_value = 0, swing_value = 0, ac_va...
Update Arduino.ino
Update Arduino.ino
Arduino
mit
MRuniversee/Project_AC
17a28f55ccc4a7e2495c20a55d01942d5c036711
mimmon.ino
mimmon.ino
#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> #include <WiFiClientSecureBearSSL.h> String kBaseUrl = "https://docs.google.com/forms/d/e/YOUR_SPREADSHEET_ID/formResponse?entry.ENTRY_CODE="; // Client fingerprint, to generate, use: // openssl s_client -conne...
#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> #include <WiFiClientSecureBearSSL.h> // Base URL for HTTP GET requests. String kBaseUrl = "https://docs.google.com/forms/d/e/YOUR_SPREADSHEET_ID/formResponse?entry.ENTRY_CODE="; // WiFi SSID and password. constex...
Set insecure mode to prevent fingerprint from expiring.
Set insecure mode to prevent fingerprint from expiring.
Arduino
apache-2.0
AaronWebster/mimmon,AaronWebster/mimmon,AaronWebster/mimmon
3dd609e3d013c320b566b25425c355f4a1224a05
WirelessTrigger.ino
WirelessTrigger.ino
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> // Display #include <LiquidCrystal.h> // Smart switch utils #include "~Switch.h" #define ROLE_...
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> // Display #include <LiquidCrystal.h> // Smart switch utils #include "~Switch.h" #define ROLE_...
Fix LCD and remove debug spew
Fix LCD and remove debug spew
Arduino
mit
WasabiFan/aerial-release-system,WasabiFan/aerial-release-system
dbd01ed6c04617ed74ea1a77906f9278a670f675
examples/HelloPasswd/HelloPasswd.ino
examples/HelloPasswd/HelloPasswd.ino
// // Boilerplate for configurable web server (probably RESTful) running on ESP8266. // // This server includes the wifi configuration module, and optionally the // Over-The-Air update module (to allow uploading new code into the esp12 (or other // board) from the Arduino IDE. // // A "hello" module is added, which gre...
// // Boilerplate for configurable web server (probably RESTful) running on ESP8266. // // This server includes the wifi configuration module, and optionally the // Over-The-Air update module (to allow uploading new code into the esp12 (or other // board) from the Arduino IDE. // // A "hello" module is added, which gre...
Add optional authentication to various modules
Add optional authentication to various modules
Arduino
mit
cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa,cwi-dis/iotsa
55a79a0c35d28531c71244c253efe78cc6271a70
RTC_DS1307_Timer/RTC_DS1307_Timer.ino
RTC_DS1307_Timer/RTC_DS1307_Timer.ino
#include <Wire.h> #include <Time.h> #include <DS1307RTC.h> #include <Timer.h> void pf(const char *fmt, ... ){ char tmp[128]; // resulting string limited to 128 chars va_list args; va_start (args, fmt ); vsnprintf(tmp, 128, fmt, args); va_end (args); Serial.print(tmp); } Timer t; void outputT...
#include <Wire.h> #include <Time.h> #include <DS1307RTC.h> #include <Timer.h> void pf(const char *fmt, ... ){ char tmp[128]; // resulting string limited to 128 chars va_list args; va_start (args, fmt ); vsnprintf(tmp, 128, fmt, args); va_end (args); Serial.print(tmp); } Timer t; void outputT...
add comment
add comment
Arduino
mit
yehnan/arduino_practices,yehnan/arduino_practices,yehnan/arduino_practices
ff2ffe872f85c5b5d43fc749c11e4517da6faec5
hue-light-simulator.ino
hue-light-simulator.ino
int gPowerState = 1; float gHue = 1; float gSaturation = 1; float gBrightness = 1; int redPin = A0; // RED pin of the LED to PWM pin **A0** int greenPin = D0; // GREEN pin of the LED to PWM pin **D0** int bluePin = D1; // BLUE pin of the LED to PWM pin **D1** void setup() { pinMode(redPin, OUTPUT); pinMod...
#include "math.h" int gPowerState = 1; float gHue = 1; float gSaturation = 1; float gBrightness = 1; int redPin = A0; // RED pin of the LED to PWM pin **A0** int greenPin = D0; // GREEN pin of the LED to PWM pin **D0** int bluePin = D1; // BLUE pin of the LED to PWM pin **D1** void setup() { pinMode(redPin,...
Update hue-light-simulator.ino
Update hue-light-simulator.ino Changed to HSB (Homekit uses HSB not HSL)
Arduino
mit
nikita-leonov/particleio-homekit
5260b52508e85c97b614cc2307eaea826e882b53
src/monitor-firmware.ino
src/monitor-firmware.ino
// Firmware for monitor board #include "io.h" #include "mx7219.h" #include "pins.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; void setup() { // Setup all pin modes pinMode(MISO, OUTPUT); // NB: (1) pinMode(MOSI, INPUT); // NB: (1) pinMode(SCLK, O...
// Firmware for monitor board #include "io.h" #include "mx7219.h" #include "pins.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; void setup() { // Setup all pin modes pinMode(MISO, OUTPUT); // NB: (1) pinMode(MOSI, INPUT); // NB: (1) pinMode(SCLK, O...
remove update delay
remove update delay
Arduino
mit
rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri
2686185de1336655a57c55936a4ff292ec58fb75
little-switches/arduino/galoppo/galoppo.ino
little-switches/arduino/galoppo/galoppo.ino
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 #define zampaAS 8 #define zampaAD 6 #define zampaPS 7 #define zampaPD 5 #define piede A0 #define tamburo 2 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; int tempo = 0; float...
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 #define zampaAS 8 #define zampaAD 6 #define zampaPS 7 #define zampaPD 5 #define piede A0 #define tamburo 2 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; int tempo = 0; float...
fix code
fix code
Arduino
unlicense
paolocavagnolo/plastik-art_democracy
e62ff940e8dfd1faece9d8909f63374ba3697e62
firmware/firmware.ino
firmware/firmware.ino
#include <Servo.h> #include "irsharp.h" #include "communication.h" #include "Hdlc.h" #include "mcdriver.h" // comment out for USB serial #define USE_XBEE_FOR_TELEMETRY #ifdef USE_XBEE_FOR_TELEMETRY #define SERIALDEV Serial3 #else #define SERIALDEV Serial #endif #define START_BUTTON_DEBOUNCE_TIME_MS 250 #def...
#include <Servo.h> #include "irsharp.h" #include "communication.h" #include "Hdlc.h" #include "mcdriver.h" // comment out for USB serial #define USE_XBEE_FOR_TELEMETRY #ifdef USE_XBEE_FOR_TELEMETRY #define SERIALDEV Serial3 #else #define SERIALDEV Serial #endif #define START_BUTTON_DEBOUNCE_TIME_MS 250 #defin...
add battery reading, indicator leds, fix debounce, add 5s start delay, change pins
add battery reading, indicator leds, fix debounce, add 5s start delay, change pins
Arduino
mit
rustbuggy/sharprust,rustbuggy/sharprust,rustbuggy/sharprust
0212f143fd62448d3df9050a58dce0c3f22df13a
brew.ino
brew.ino
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" DS18B20 ds18b20 = DS18B20(D1); unsigned long lastTempRequest = 0; char szInfo[64]; int RelayPin = A6; //Define Variables we'll be connecting to double Se...
// https://github.com/br3ttb/Arduino-PID-Library #include "PID.h" // https://github.com/krvarma/Dallas_DS18B20_SparkCore #include "DS18B20.h" #include "OneWire.h" // Input pin where DS18B20 is connected int ds18b20Pin = D1; // Output pin where relay is connected int relayPin = A6; // SparkCloud variable outputs c...
Clean up the code
Clean up the code
Arduino
mit
hekike/spark-core-pid-temperature
641906dc755e08f882d590b98bca0fc78d55eb0d
crypt-gears/gear_arduino/gear_arduino.ino
crypt-gears/gear_arduino/gear_arduino.ino
// hard-coded pin numbers for input/output // TODO(benkraft): I am assuming for the sake of argument that these start at // the top and go clockwise; fix once we know the correct positions. int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, {14, 15, 16, 17, ...
// hard-coded pin numbers for input/output // TODO(benkraft): I am assuming for the sake of argument that these start at // the top and go clockwise; fix once we know the correct positions. int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, {14, 15, 16, 17, ...
Add photoresistor call.
Add photoresistor call.
Arduino
mit
bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne
b3af28af3b11b42e6edaebe505d9536261e9ddf1
examples/More/Sync/Sync.ino
examples/More/Sync/Sync.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 Sync.ino
Update Sync.ino
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
2853f90a74444ba7782239d016a3bbd18168f33b
spi_read_eeprom.ino
spi_read_eeprom.ino
#include <SPI.h> #define SPI_READ_CMD 0x03 #define CS_PIN 10 unsigned int num_bytes; unsigned int i; void setup() { Serial.begin(115200); pinMode(CS_PIN, OUTPUT); digitalWrite(CS_PIN, HIGH); SPI.begin(); } void read_eeprom(unsigned int num_bytes) { unsigned int addr; byte resp; digitalWrite(CS_PIN, ...
#include <SPI.h> #define SPI_READ_CMD 0x03 #define CS_PIN 10 void setup() { Serial.begin(115200); pinMode(CS_PIN, OUTPUT); digitalWrite(CS_PIN, HIGH); SPI.begin(); } void read_eeprom(unsigned int num_bytes) { unsigned int addr; byte resp; digitalWrite(CS_PIN, LOW); /* transmit read command with 3 ...
Convert global variables to local
Convert global variables to local Just a minor edit to move these (unnecessary) global variables into local scope.
Arduino
mit
andre-richter/arduino-spi-read-eeprom,andre-richter/arduino-spi-read-eeprom
26ff1ab2ba25a45b93e649c26b12d11b586f035b
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
9d708e40461e587386e3eb8fab0f73e9fc8b5d6e
examples/AFSK_SerialMessenger/AFSK_SerialMessenger.ino
examples/AFSK_SerialMessenger/AFSK_SerialMessenger.ino
/* Hamshield * Example: AFSK Serial Messenger * Serial glue to send messages over APRS. You will need a * seperate AFSK receiver to test the output of this example. * Connect the HamShield to your Arduino. Screw the antenna * into the HamShield RF jack. After uploading this program * to your Arduino, open the ...
/* Hamshield * Example: AFSK Serial Messenger * Serial glue to send messages over APRS. You will need a * seperate AFSK receiver to test the output of this example. * Connect the HamShield to your Arduino. Screw the antenna * into the HamShield RF jack. After uploading this program * to your Arduino, open the ...
update afsk_messenger example
update afsk_messenger example
Arduino
agpl-3.0
EnhancedRadioDevices/HamShield,EnhancedRadioDevices/HamShield
0c540fca108ec4bc8ea959564516748e3e9bbdf6
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License * This code has NO WARRANTY! You are * responsible for anything that happens */ // Port I/O defines #define THRESHOLD 700 #define LASTPORT 7 #define INSTRUMENTBUTTON 8 #define NOTEBUTTON 9 // MIDI property defines #defi...
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License * This code has NO WARRANTY! You are * responsible for anything that happens */ // Port I/O defines #define THRESHOLD 700 #define LASTPORT 7 #define INSTRUMENTBUTTON 8 #define NOTEBUTTON 9 // MIDI property defines #define...
Add defines for disable delay
Add defines for disable delay Added the option to completely disable delays, instead of just having a delay of 0, which still incurs a penalty for function calls.
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
b0b2f48534069cd51a30bde092466a4474e0cb53
Proto-1/Proto-1.ino
Proto-1/Proto-1.ino
#include <Wire.h> #include <LiquidCrystal_I2C.h> static constexpr unsigned long TimeChunk = 2 * 1000; static LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); static unsigned long endTime; static bool previousPressed; void setup() { lcd.begin(16,2); lcd.backlight(); pinMode(A0, INPUT_PULLUP); delay...
#include <Wire.h> #include <LiquidCrystal_I2C.h> static constexpr unsigned long TimeChunk = 2 * 1000; static LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); static unsigned long endTime; static bool previousPressed; void setup() { lcd.begin(16,2); lcd.backlight(); pinMode(A0, INPUT_PULLUP); delay...
Fix ghost press at launch
Fix ghost press at launch
Arduino
mit
KoltesDigital/Final-Countdown
3bf76b4395db12f7a056167ef34b486ca6ddcf0c
arduino/lmremote/lmremote.ino
arduino/lmremote/lmremote.ino
#include <avr/wdt.h> #include <avr/sleep.h> #include <RF12.h> #include <Ports.h> // Node Idenfier for the RFM12B (2-30) const unsigned char _rfNodeId = 2; // RFM12B band RF12_433MHZ, RF12_868MHZ, RF12_915MHZ const unsigned char _rfBand = RF12_915MHZ; // How long to sleep between probe measurments, in seconds const un...
#include <avr/wdt.h> #include <avr/sleep.h> #include <RF12.h> #include <Ports.h> #define LMREMOTE_SERIAL 115200 // Node Idenfier for the RFM12B (2-30) const unsigned char _rfNodeId = 2; // RFM12B band RF12_433MHZ, RF12_868MHZ, RF12_915MHZ const unsigned char _rfBand = RF12_915MHZ; // How long to sleep between probe ...
Add LMREMOTE_SERIAL define, wait for RF12 transmit in SLEEP_MODE_IDLE, disable stabilizeAdc()
[lmr] Add LMREMOTE_SERIAL define, wait for RF12 transmit in SLEEP_MODE_IDLE, disable stabilizeAdc()
Arduino
mit
CapnBry/HeaterMeter,kdakers80/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,CapnBry/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,CapnBry/HeaterMeter,kdakers80/...
eebaa29fd478e7f1e051851b073d94321572bb2b
firmware/firmware.ino
firmware/firmware.ino
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
improve code readability
firmware: improve code readability
Arduino
mit
arnaudjuracek/xy
65a335e4902f7c42599e86c97c92514126e7285f
Woodstation.ino
Woodstation.ino
#include <TimeLib.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include "ht1632c.h" /// framebuffer static uint8_t** ht1632c_framebuffer = 0; static uint8_t ht1632c_framebuffer_len = 96; const char* ssid = "********"; const char* password = "********"; // NTP Ser...
#include <TimeLib.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include "HT1632.h" #define ESP8266 #define HT1632_CS D1 #define HT1632_CLK D5 #define HT1632_MOSI D7 const char* ssid = "**************"; const char* password = "*************"; // NTP Servers: s...
use HT1632 customized arduino library
use HT1632 customized arduino library Use library lightened from gauravmm/HT1632-for-Arduino with bitbanging spi code, instead of using the esp8266 arduino SPI library.
Arduino
mit
amondit/ESP-Woodstation
434c053c0c81aeb0f3005e3e76766fc573cf40df
examples/Ethernet/CosaSNMP/CosaSNMP.ino
examples/Ethernet/CosaSNMP/CosaSNMP.ino
/** * @file CosaSNMP.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
/** * @file CosaSNMP.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
Clean up of config defines to use fixed IP and bring config to top of sketch
Clean up of config defines to use fixed IP and bring config to top of sketch
Arduino
lgpl-2.1
mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,kc9jud/Cosa,rrobinet/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa,rrobinet/Cosa,rrobinet/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa
40b2f96f0112cd5504a231029f4cbf8838244ecd
sandbox/Razor_AHRS/Output.ino
sandbox/Razor_AHRS/Output.ino
/* This file is part of the Razor AHRS Firmware */ // Output angles: yaw, pitch, roll void output_angles() { if (output_format == OUTPUT__FORMAT_BINARY) { float ypr[3]; ypr[0] = TO_DEG(yaw); ypr[1] = TO_DEG(pitch); ypr[2] = TO_DEG(roll); Serial.write((byte*) ypr, 12); // No new-line } else...
/* This file is part of the Razor AHRS Firmware */ // Output angles: yaw, pitch, roll void output_angles() { if (output_format == OUTPUT__FORMAT_BINARY) { float ypr[3]; ypr[0] = TO_DEG(yaw); ypr[1] = TO_DEG(pitch); ypr[2] = TO_DEG(roll); Serial.write((byte*) ypr, 12); // No new-line } else...
Update Output.ino
Update Output.ino
Arduino
mit
dpattison3/igvc-software,rortiz9/igvc-software,kscharm/igvc-software,jzheng84/igvc-software,kscharm/igvc-software,rmkeezer/igvc-software,monstorium/igvc-software,monstorium/igvc-software,RoboJackets/igvc-software,jzheng84/igvc-software,RoboJackets/igvc-software,dpattison3/igvc-software,rmkeezer/igvc-software,dpattison3...
c68b3ca0b0e8ab3f8bb9886e0051ca0aa122072b
BellaArduno/Bella.ino
BellaArduno/Bella.ino
/* * This sketch demonstrates how to set up a simple HTTP-like server. * The server will set a GPIO pin depending on the request * http://server_ip/gpio/0 will set the GPIO2 low, * http://server_ip/gpio/1 will set the GPIO2 high * server_ip is the IP address of the ESP8266 module, will be * printed to ...
/* * This sketch demonstrates how to set up a simple HTTP-like server. * The server will set a GPIO pin depending on the request * http://server_ip/gpio/0 will set the GPIO2 low, * http://server_ip/gpio/1 will set the GPIO2 high * server_ip is the IP address of the ESP8266 module, will be * printed to ...
Update Bella.ino
Update Bella.ino
Arduino
mit
jcwcheng/aeire-ios,jcwcheng/aeire-ios,jcwcheng/aeire-ios,jcwcheng/aeire-ios
997168af9c43bdf5db1c95d3b2cdcbe911f32e66
FUCAN-spintroller.ino
FUCAN-spintroller.ino
/* * Set pitch to be the ratio of the worm gear in the rotary table. Typically * this value is either 40:1 or 90:1, so enter either 40 or 90. It means 40 or * 90 rotations of the hand wheel will rotate the work piece one revolution. */ int pitch = 90; /* * Set ratio to be the pulley ratio between the stepper moto...
#include "config.ino" void setup() { Serial.begin(serialSpeed); Serial.println(""); Serial.println(""); Serial.println("Initialising FUCAN-spintroller..."); /* Steps per revolution is the calculated number of steps required to rotate * the workpiece one revolution. */ int stepsPerRevolution = micros...
move configuration to config.ino
move configuration to config.ino
Arduino
bsd-2-clause
carneeki/FUCAN-spintroller
73fc792d85319afff9dc1a54c20b691af3ff0ea1
examples/Widgets/Bridge/Bridge.ino
examples/Widgets/Bridge/Bridge.ino
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
Fix #67
Fix #67
Arduino
mit
ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library
2dac0d21998a6d88aff21ab87ca98a8090a02419
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino
#include <AccelStepper.h> #include <Servo.h> #include<stdlib.h> // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1 #define motorLPin3 4 // IN3 on the ULN2003 driver 1 #define motorLPin4 5 // IN4 on the ULN...
#include <AccelStepper.h> #include <Servo.h> // Pin definitions // Left motor driver #define motorLPin1 2 // IN1 on the ULN2003 driver 1 #define motorLPin2 3 // IN2 on the ULN2003 driver 1 #define motorLPin3 4 // IN3 on the ULN2003 driver 1 #define motorLPin4 5 // IN4 on the ULN2003 driver 1 // R...
Fix up issues with pushTo() inserting too many spaces which causes future parsing of the command to fail
Fix up issues with pushTo() inserting too many spaces which causes future parsing of the command to fail
Arduino
mit
snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot
f7943c358b39c7575fd333659766a5f2ebf9b708
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...
Improve output of "help" command
Improve output of "help" command
Arduino
mit
bertrik/rflink,bertrik/rflink
d9a7a8ebf69c361649f25463ff37b4916372a758
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...
Remove use of Serial.read in rflink.ino (replace by serial_read)
Remove use of Serial.read in rflink.ino (replace by serial_read)
Arduino
mit
bertrik/rflink,bertrik/rflink
49265431d5e92fe94a7a5e00cd581f71984cc8e3
Arduino/wheel-read-write/wheel-read-write.ino
Arduino/wheel-read-write/wheel-read-write.ino
// Wheel encoder const byte interrupt1Pin = 2; int interrupt1Count = 0; int previousInterrupt1Count = 0; const byte interrupt2Pin = 3; int interrupt2Count = 0; int previousInterrupt2Count = 0; int previousMillis1 = 0; int previousMillis2 = 0; const int stepsPerRevelation = 20; const int distanceInMMPerRevelation = 2...
// Wheel encoder const byte interrupt1Pin = 2; int interrupt1Count = 0; int previousInterrupt1Count = 0; const byte interrupt2Pin = 3; int interrupt2Count = 0; int previousInterrupt2Count = 0; int previousMillis1 = 0; int previousMillis2 = 0; const int stepsPerRevelation = 20; const int distanceInMMPerRevelation = 2...
speed up wheel r/w
speed up wheel r/w
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
beec61156f3d8f8cb428258ba3701d4cae1ebf5f
arduino/casa_inteligente/casa_inteligente.ino
arduino/casa_inteligente/casa_inteligente.ino
#define TEMPO_NOVA_TENTATIVA 5000 // Carrega biblioteca para economia de energia #include <Narcoleptic.h> // Configurações da shield ethernet #include <SPI.h> #include <Ethernet.h> IPAddress server(192, 168, 0, 108); EthernetClient ethClient; // Endereco MAC da shield ethernet byte mac[] = { 0x64, 0x1c, 0x67, 0x7...
#define TEMPO_NOVA_TENTATIVA 5000 // Carrega biblioteca para economia de energia #include <Narcoleptic.h> // Configurações da shield ethernet #include <SPI.h> #include <Ethernet.h> //IPAddress ip(10, 60, 20, 15); //IPAddress server("m13.cloudmqtt.com"); char server[] = "m13.cloudmqtt.com"; EthernetClient ethClient; ...
Configura acesso ao Cloud MQTT.
Configura acesso ao Cloud MQTT.
Arduino
mit
brunosavyofs/casa_inteligente
fc6cd17cd4b8864b6c23db2695a8658c2922b16f
iDONT.ino
iDONT.ino
#include "mainsm.h" #include "ledsm.h" #include "nvram.h" #include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal #include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal #include <WiFiManager.h> //https://github.com/k...
#include "mainsm.h" #include "ledsm.h" #include "nvram.h" #include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal #include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal #include <WiFiManager.h> //https://github.com/k...
Revert "Remove uneeded header"
Revert "Remove uneeded header" This reverts commit c142750b4d31de0385e2e2ec10bf201b7e17daa0.
Arduino
mit
SpinInven/iDONT,SpinInven/iDONT
6308af15889867beb00a48e1f95b98d04460276b
wifi-feather/wifi-feather.ino
wifi-feather/wifi-feather.ino
#include <ESP8266WiFi.h> #include <ntpclient.h> #include <PrintEx.h> #include <TimeLib.h> #include <WiFiUdp.h> #include "persistent_vector.h" #include "ssid-info.h" #include "util.h" PrintEx serial = Serial; static constexpr unsigned CONNECTION_TIMEOUT = 5000; static constexpr char const* HOST = "192.168.1.2"; stati...
#include <ESP8266WiFi.h> #include <ntpclient.h> #include <PrintEx.h> #include <TimeLib.h> #include <WiFiUdp.h> #include "persistent_queue.h" #include "ssid-info.h" #include "util.h" static constexpr char const* SENSOR_ID = "bostonfern1"; static constexpr unsigned ENABLE_SENSOR_PIN = 14; static constexpr unsigned CON...
Add support for reading sensors.
Add support for reading sensors. Additionally a persistent_queue is now used to store pending messages.
Arduino
mit
betabandido/moisturereader,betabandido/moisturereader
d6180e04acf51fccf49e61a1ea34800a273942d4
examples/SoftWire_MLX90614/SoftWire_MLX90614.ino
examples/SoftWire_MLX90614/SoftWire_MLX90614.ino
#include <AsyncDelay.h> #include <SoftWire.h> /* SoftWire_MLX90614 * * Code to demonstrate how to communicate with an SMBus device such as * the MLX90614 non-contact infrared thermometer. * * Connections: * * For Calunium it is assumed the JTAG pins are used, SDA pin = 16 * (JTAG TDI) and SCL pin = 19 (JTAG TC...
#include <AsyncDelay.h> #include <SoftWire.h> /* SoftWire_MLX90614 * * Code to demonstrate how to communicate with an SMBus device such as * the MLX90614 non-contact infrared thermometer. * * Connections: * * For Calunium it is assumed the JTAG pins are used, SDA pin = 16 * (JTAG TDI) and SCL pin = 19 (JTAG TC...
Fix to compile for ESP8266
Fix to compile for ESP8266 The example now compiles, although the SDA/SCL pin numbers may need adjusting according to device and usage.
Arduino
lgpl-2.1
stevemarple/SoftWire
4c3f7b8984656d528160eab6799c619ae4683a84
sensTMP36/src/sketch.ino
sensTMP36/src/sketch.ino
/* sensTMP36 sketch measures the voltage on analog pin converts the result to a temperature and prints the results to the serial port */ // measurement pin from TMP36 is connected to analog pin 1 #define measurePin A1 #define activityLED 3 // *** declare constants const float ref5V = 5.14; // reference: 5.0...
/* sensTMP36 sketch measures the voltage on analog pin converts the result to a temperature and prints the results to the serial port */ // measurement pin from TMP36 is connected to analog pin 1 #define measurePin A1 #define activityLED 3 // *** declare constants const float ref5V = 5.06; // reference: 5.0...
update 20150216.13:51
update 20150216.13:51
Arduino
mit
Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino
80857d32fb388c216232fcb8e04a5e315294fd29
roto2.ino
roto2.ino
// Copyright (c) 2015 Peter Teichman #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "drawbar_osc.h" #include "voice_allocator.h" // GUItool: begin automatically generated code DrawbarOsc osc1; DrawbarOsc osc2; DrawbarOsc ...
// Copyright (c) 2015 Peter Teichman #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "drawbar_osc.h" #include "voice_allocator.h" // GUItool: begin automatically generated code DrawbarOsc osc1; DrawbarOsc osc2; DrawbarOsc ...
Improve the percussion envelope, but turn it off by default
Improve the percussion envelope, but turn it off by default
Arduino
mit
pteichman/roto2
f5b70df960a4525ebb989e8d260804cae3c496b6
main/main.ino
main/main.ino
#include <Canbus.h> #include <defaults.h> #include <global.h> #include <mcp2515.h> #include <mcp2515_defs.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(7, 8, 9, 10, 11, 12); #define REDLITE 3 #define GREENLITE 5 #define BLUELITE 6 int brightness = 255; byte fill1[8] = {...
#include <Canbus.h> #include <defaults.h> #include <global.h> #include <mcp2515.h> #include <mcp2515_defs.h> #include <LiquidCrystal.h> #include <math.h> //RS,EN,DB4,DB5,DB6,DB7 LiquidCrystal lcd(7, 8, 9, 10, 11, 12); #define REDLITE 3 #define GREENLITE 5 #define BLUELITE 6 int brightness = 255; byte fill1[8] = {...
Update main.ino
Update main.ino
Arduino
apache-2.0
srenner/meguinauge
48064ad57e538e51dd9b7b474102e7c178e56a9e
firmware/examples/readTag/readtag.ino
firmware/examples/readTag/readtag.ino
#include "pn532_i2c\pn532_i2c.h" #include "pn532_i2c\PN532\PN532.h" #include "pn532_i2c\NDEF\NfcAdapter.h" PN532_I2C pn532_i2c(Wire); NfcAdapter nfc = NfcAdapter(pn532_i2c); void setup(void) { Serial.begin(9600); Serial.println("NDEF Reader"); nfc.begin(); } void loop(void) { Serial.println("\nScan a...
#include "pn532_i2c/pn532_i2c.h" #include "pn532_i2c/PN532/PN532.h" #include "pn532_i2cNDEF/NfcAdapter.h" PN532_I2C pn532_i2c(Wire); NfcAdapter nfc = NfcAdapter(pn532_i2c); void setup(void) { Serial.begin(9600); Serial.println("NDEF Reader"); nfc.begin(); } void loop(void) { Serial.println("\nScan a ...
modify header include adding path to libraries
modify header include adding path to libraries
Arduino
mit
reducedhackers/pn532nfcshield,reducedhackers/pn532_i2c_particle,reducedhackers/pn532_i2c_particle,reducedhackers/pn532nfcshield
d1c39ad1c87ee914504f5c402a2a181f0425e59b
firmware/firmware.ino
firmware/firmware.ino
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
// based on https://github.com/fogleman/xy/tree/master/firmware #include <EEPROM.h> #include <Servo.h> #include <SoftwareSerial.h> #include <Wire.h> // data stored in eeprom static union{ struct{ char name[8]; unsigned char motoADir; unsigned char motoBDir; unsigned char motorSwitch; ...
fix servo initial pos
firmware: fix servo initial pos
Arduino
mit
arnaudjuracek/xy
cb89f4163bb7b8c3f344cf2e5a18a5daeb2d28de
arduino/vaz2103mon/vaz2103mon.ino
arduino/vaz2103mon/vaz2103mon.ino
/* vaz2103mon - displays CPU stats on a VAZ 2103 instrument panel This code is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); //init the PWM pins pinMode(3, OUTPUT); ...
/* vaz2103mon - displays CPU stats on a VAZ 2103 instrument panel This code is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); //init the PWM pins pinMode(3, OUTPUT); ...
add 0 to PWM output
add 0 to PWM output
Arduino
cc0-1.0
jekader/vaz2103mon
c969a5fa04a17a148d52626f4d24ca9106ef5772
HIDVolumeKnobV2/HIDVolumeKnobV2.ino
HIDVolumeKnobV2/HIDVolumeKnobV2.ino
#include <HID-Project.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "oleddata.h" #include "gfx.h" #define OLED_RESET 4 Adafruit_SSD1306 display(OLED_RESET); static const unsigned int encoder0PinA = 0; static const unsigned int encoder0PinB = 1; static const u...
#include <HID-Project.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "oleddata.h" #include "gfx.h" #define OLED_RESET 4 Adafruit_SSD1306 display(OLED_RESET); static const unsigned int encoder0PinA = 0; static const unsigned int encoder0PinB = 1; static const u...
Disable text wrapping
Disable text wrapping
Arduino
mit
ThomArmax/MediaKeyboard,ThomArmax/MediaKeyboard,ThomArmax/MediaKeyboard
16449d046f940c21855e26b2afe7ba3b9e54707d
NRF24L01/Remote/NRF24L01-Remote.ino
NRF24L01/Remote/NRF24L01-Remote.ino
/* Wrench Mask Remote - NRF24L01 Version * * by Brandon C. Allen * * Hardware Used: * Adafruit Feather M0 Proto * https://www.adafruit.com/product/2772 * Eight Adafruit DotStar High Density 8x8 Grid - 64 RGB LED Pixel Matrices * https://www.adafruit.com/product/3444 * NRF24L01 2.4GHz Transciever * ...
/* Wrench Mask Remote - NRF24L01 Version * * by Brandon C. Allen * * Hardware Used: * Adafruit Feather M0 Proto * https://www.adafruit.com/product/2772 * Eight Adafruit DotStar High Density 8x8 Grid - 64 RGB LED Pixel Matrices * https://www.adafruit.com/product/3444 * NRF24L01 2.4GHz Transciever * ...
Update NRF24L01-Remote.ino
Update NRF24L01-Remote.ino
Arduino
mit
Arudinne/RGB-Wrench-Mask
5d70dd1f66e35e94e4d45a9be59e97f20aa60c52
TeensyKeySketch/TeensyKeySketch.ino
TeensyKeySketch/TeensyKeySketch.ino
/* TeensyKey TeensyKey receives an int from a dedicated program running on a Linux or Mac machine and returns a password belonging to that int. You must select Raw HID from the "Tools > USB Type" menu */ void setup() { Serial.begin(9600); Serial.println(F("RawHID Example")); for (int i=0; i<7; i++)...
/* TeensyKey TeensyKey receives an int from a dedicated program running on a Linux or Mac machine and returns a password belonging to that int. You must select Raw HID from the "Tools > USB Type" menu */ // Teensy 3.0 has the LED on pin 13 const int ledPin = 13; void setup() { Serial.begin(9600); Se...
Add blinky lights
Add blinky lights 1) Blinks on boot so we know it's working 2) Blinks on receive timeout, so we know it's still working 3) Blinks on request, so we know when it's accessed
Arduino
mit
cwmaguire/teensykey
7f3b877bc17746416841cb57ed5e28f0c6d31fd9
examples/Tools/CosaClockCalibration/CosaClockCalibration.ino
examples/Tools/CosaClockCalibration/CosaClockCalibration.ino
/** * @file CosaClockCalibration.ino * @version 1.0 * * @section License * Copyright (C) 2015, 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....
/** * @file CosaClockCalibration.ino * @version 1.0 * * @section License * Copyright (C) 2015, 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....
Improve clock calibration tool; improved clock synchronization/setup.
Improve clock calibration tool; improved clock synchronization/setup.
Arduino
lgpl-2.1
dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa
60ed8bf5c94f4fdc3bc9d5db9a12a8f7ae0acaa9
inverted-pendulum.ino
inverted-pendulum.ino
// Inverted pendulum - for Teensy 3.2 #include "Encoder.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 #define RIGHT_BUMP_PIN 5...
// Inverted pendulum - for Teensy 3.2 #include "Encoder.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 #define RIGHT_BUMP_PIN 5...
Add swingUp function, which is totally crazy and not working yet
Add swingUp function, which is totally crazy and not working yet
Arduino
mit
andrewadare/inverted-pendulum
8bd54362bfe4b09e3a62317e2b7616f6a3b4c413
examples/SW01_Pressure_Measurement/SW01_Pressure_Measurement.ino
examples/SW01_Pressure_Measurement/SW01_Pressure_Measurement.ino
/************************************************************* This is an examples for the SW01 Digital Temperature, Pressure and Humidity Sensor You can buy one on our store! -----> https://xinabox.cc/SW01/ This example request a pressure meausrement to be made by the SW01 and display the data over the Seri...
/************************************************************* This is an examples for the SW01 Digital Temperature, Pressure and Humidity Sensor You can buy one on our store! -----> https://xinabox.cc/products/SW01 This example request a pressure meausrement to be made by the SW01 and display the data over ...
Update SW01_Pressure_Measurement.ino
Update SW01_Pressure_Measurement.ino
Arduino
mit
xinabox/xSW01
ee8d0c675c9300654a306dfbce5c39763aea1a01
examples/gpio-comparison/gpio-comparison.ino
examples/gpio-comparison/gpio-comparison.ino
// Compare time taken by digitalRead vs. a direct AVR register read for the same pin. #define TEST_PIN 4 // PD4 uint16_t start = 0, end = 0; void setup() { Serial.begin(115200); // Wait for serial port to connect while (!Serial) {} Serial.println(); // Time 10k digitalRead calls start = micros(); for...
// Compare time taken by digitalRead vs. a direct AVR register read for the same pin. #define TEST_PIN 4 // PD4 uint16_t start = 0, end = 0; void setup() { Serial.begin(115200); // Wait for serial port to connect while (!Serial) {} Serial.println(); // Time 10k digitalRead calls start = micros(); for...
Remove my timing results from comments
Remove my timing results from comments
Arduino
mit
andrewadare/arduino-201,andrewadare/arduino-201
f8075d88b7b2b0afa79f8c0ae90f0931a5d597fa
CarTracker/CarTracker.ino
CarTracker/CarTracker.ino
/*************************************************** ****************************************************/ #include "secret.h" #include "config.h" #include "hwconfig.h" //#include <Phant.h> //Phant phant(PHANT_HOST, PHANT_PUBLIC_KEY, PHANT_PRIVATE_KEY); #include "Adafruit_FONA.h" #include "I2Cdev.h" #include "...
/*************************************************** ****************************************************/ #include "secret.h" #include "config.h" #include "hwconfig.h" //#include <Phant.h> //Phant phant(PHANT_HOST, PHANT_PUBLIC_KEY, PHANT_PRIVATE_KEY); #include "Adafruit_FONA.h" #include "I2Cdev.h" #include "...
print latitude, longitude with decimal point
tracker: print latitude, longitude with decimal point
Arduino
bsd-2-clause
ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook,ponty/arduino-sketchbook
e088182201bf29a7ab3f67143c185d64fd0c13b0
hardware/arduino_code/main/sensor.ino
hardware/arduino_code/main/sensor.ino
#include <algorithm> unsigned long restartPressed = 0; const short RESTART_DURATION = 5000; short threshold = 0; byte hasMailPrevious = 0; WiFiClient client; const byte MAX_SAMPLES = 21; short values[MAX_SAMPLES] = {0}; byte _currentIndex = 0; byte currentIndex() { return (_currentIndex = (_currentIndex + 1) % MAX_...
#include <algorithm> unsigned long restartPressed = 0; const short RESTART_DURATION = 5000; short threshold = 0; byte hasMailPrevious = 0; WiFiClient client; const byte MAX_SAMPLES = 21; short values[MAX_SAMPLES] = {0}; byte _currentIndex = 0; byte currentIndex() { return (_currentIndex = (_currentIndex + 1) % MAX_...
Fix a bug
Fix a bug
Arduino
mit
knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal,knovoselic/going-postal
2f575c8bc59613b26ec92d128ec940cd9baf306d
examples/Downlink/Downlink.ino
examples/Downlink/Downlink.ino
/* * Copyright 2017, Helium Systems, Inc. * All Rights Reserved. See LICENCE.txt for license information */ #include "Arduino.h" #include "Board.h" #include "Helium.h" // NOTE: Please ensure you've created a channel called "Helium // MQTT" called in the Helium Dashboard. #define CHANNEL_NAME "AWS IoT" Helium hel...
/* * Copyright 2017, Helium Systems, Inc. * All Rights Reserved. See LICENCE.txt for license information */ #include "Arduino.h" #include "Board.h" #include "Helium.h" // NOTE: Please ensure you've created a channel called "Helium // MQTT" called in the Helium Dashboard. #define CHANNEL_NAME "AWS IoT" Helium hel...
Fix arduino IDE not liking functions that aren't pre-defined
Fix arduino IDE not liking functions that aren't pre-defined
Arduino
bsd-3-clause
helium/helium-arduino,helium/helium-arduino,helium/helium-arduino
86ef655203acfeba68ca2f6a389fa5f78d1696de
zg01_esp/zg01_esp.ino
zg01_esp/zg01_esp.ino
#include <stdint.h> #include <ESP8266WiFi.h> #include <WiFiManager.h> #include <PubSubClient.h> #include "zg01_fsm.h" #define PIN_CLOCK D1 #define PIN_DATA D2 #define MQTT_HOST "mosquitto.space.revspace.nl" #define MQTT_PORT 1883 #define TOPIC_CO2 "revspace/sensors/co2" #define TOPIC_HUMIDITY "revs...
#include <stdint.h> #include <ESP8266WiFi.h> #include <WiFiManager.h> #include <PubSubClient.h> #include "zg01_fsm.h" #define PIN_CLOCK D1 #define PIN_DATA D2 #define MQTT_HOST "mosquitto.space.revspace.nl" #define MQTT_PORT 1883 #define TOPIC_CO2 "revspace/sensors/co2" #define TOPIC_HUMIDITY "revs...
Add mqqtClient.loop() to keep the mqtt client alive.
Add mqqtClient.loop() to keep the mqtt client alive.
Arduino
mit
revspace/co2sensor,revspace/co2sensor
b50bad021b182be8970a3b3ad9c759964b4593bb
VernierThermistorDisplay/VernierThermistorDisplay.ino
VernierThermistorDisplay/VernierThermistorDisplay.ino
/* VernierThermistorDisplay (v 2013.12) Reads the temperature from a Vernier Stainless Steel Temperature Probe (TMP-BTA) or Surface Temperature Sensor (STS-BTA) connected to the BTA connector. As written, the readings will be displayed every half second. Change the variable TimeBetweenReadings to change the rate. We...
/* VernierThermistorDisplay (v 2013.12) Reads the temperature from a Vernier Stainless Steel Temperature Probe (TMP-BTA) or Surface Temperature Sensor (STS-BTA) connected to the BTA connector. As written, the readings will be displayed every half second. Change the variable TimeBetweenReadings to change the rate. We...
Change to pin (9 from 13) in order to work with shield.
Change to pin (9 from 13) in order to work with shield.
Arduino
mit
jeremykenedy/arduino
77b2f46034d3862403b6f5245c4283f15e6243a5
examples/BlinkRunnable/BlinkRunnable.ino
examples/BlinkRunnable/BlinkRunnable.ino
#include <DeepSleepScheduler.h> #define LED_PIN1 12 #define LED_PIN2 13 class BlinkRunnable: public Runnable { private: bool ledOn = true; const byte ledPin; const int delay; public: BlinkRunnable(byte ledPin, int delay) : ledPin(ledPin), delay(delay) { pinMode(ledPin, OUTPUT); } vir...
#include <DeepSleepScheduler.h> #define LED_PIN1 12 #define LED_PIN2 13 class BlinkRunnable: public Runnable { private: bool ledOn = true; const byte ledPin; const unsigned long delay; public: BlinkRunnable(byte ledPin, int delay) : ledPin(ledPin), delay(delay) { pinMode(ledPin, OUTPUT); ...
update example
update example
Arduino
apache-2.0
PRosenb/DeepSleepScheduler,PRosenb/DeepSleepScheduler
7ddfeb3137e6cc4a6b0b97fb7d221dbefd681c50
examples/DmxSerialRecv/DmxSerialRecv.ino
examples/DmxSerialRecv/DmxSerialRecv.ino
// - - - - - // DmxSerial - A hardware supported interface to DMX. // DmxSerialRecv.ino: Sample DMX application for retrieving 3 DMX values: // address 1 (red) -> PWM Port 9 // address 2 (green) -> PWM Port 6 // address 3 (blue) -> PWM Port 5 // // Copyright (c) 2011-2015 by Matthias Hertel, http://www.mathertel.de // ...
// - - - - - // DmxSerial - A hardware supported interface to DMX. // DmxSerialRecv.ino: Sample DMX application for retrieving 3 DMX values: // address 1 (red) -> PWM Port 9 // address 2 (green) -> PWM Port 6 // address 3 (blue) -> PWM Port 5 // // Copyright (c) 2011-2015 by Matthias Hertel, http://www.mathertel.de // ...
set channel to 1+2+3
set channel to 1+2+3
Arduino
bsd-3-clause
mathertel/DMXSerial,mathertel/DMXSerial
f9d6fcc9cec5b6f9a9f22261ed20a763bb81c622
arduino/cash-register.ino
arduino/cash-register.ino
#include <avr/sleep.h> const int OBSTACLE_SENSOR = 2; const int BUZZER = 3; const int SOUND_DURATION = 40; const int RANDOM_ERROR_COUNT = 20; int lastObstacleValue; /** * Sleep mode */ void sleep() { set_sleep_mode(SLEEP_MODE_PWR_DOWN); sleep_enable(); noInterrupts(); attachInterrupt(digitalPinToInterrup...
#include <avr/sleep.h> const int OBSTACLE_SENSOR = 2; const int OBSTACLE_BATTERY = 5; const int BUZZER = 3; const int BUZZER_BATTERY = 6; const int SOUND_DURATION = 40; const int RANDOM_ERROR_COUNT = 20; int lastObstacleValue; /** * Sleep mode */ void sleep() { set_sleep_mode(SLEEP_MODE_PWR_DOWN); noInterrup...
Update cash-register.ino
Update cash-register.ino
Arduino
mit
neolao/cash-register