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
2ab78f0adbf16c81bc7584e74e4675751364f19b
HPDL1414_clock.ino
HPDL1414_clock.ino
#include <Wire.h> // i2c library #include <RTClib.h>// ds1307 library from adafruit ;D #include <DL1414.h>// DL1414 Dot matrix and 16 segment version int WR = A1; int Addr0 =A3; int Addr1 = A2; int D0 = 2; int D1 = 3; int D2 = 4; int D3 = 5; int D4 = A0; int D5 = 13; int D6 = 6; // Init Library with proper pin defi...
#include <Wire.h> // i2c library #include <RTClib.h>// ds1307 library from adafruit ;D #include <DL1414.h>// DL1414 Dot matrix and 16 segment version int WR = A1; int Addr0 =A3; int Addr1 = A2; int D0 = 2; int D1 = 3; int D2 = 4; int D3 = 5; int D4 = A0; int D5 = 13; int D6 = 6; // Init Library with proper pin defi...
Add files via upload
Add files via upload removed day of weeks .because not working.
Arduino
unlicense
TiNredmc/HPDL1414_clock
0627e6e9df5fc1648ba98a123b568ae6e9d94112
examples/rfid_default_keys/rfid_default_keys.ino
examples/rfid_default_keys/rfid_default_keys.ino
/* * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. Please read it. * * Released into the public d...
/* * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. Please read it. * * Released into the public d...
Update rfid_default_keys.ino
Update rfid_default_keys.ino Updated code to account for serial behavior change in ATMEGA32U4
Arduino
unlicense
hramrach/rfid,r44947/rfid,juantejedavz/rfid,sophiekovalevsky/rfid,irhastofa/rfid,Rotzbua/rfid,prikevs/rfid,northDacoder/rfid,tamchau2809/rfid,yaalsn/rfid,smallkid/rfid,Rotzbua/rfid,LaloHao/rfid,lpr0lpd/rfid,mangine/mraa_MFRC522,mirko314/rfid,miguelbalboa/rfid,webdevbrian/rfid,1upon0/rfid,CapeSepias/rfid
97e50edff09180c14fb38c3d0daf0814c92fa7b8
arduino_sds011.ino
arduino_sds011.ino
#include <SoftwareSerial.h> #include "Sds011.h" #include "Pcd8544.h" static const int PM25_NORM=25; static const int PM10_NORM=40; static const int SAMPLES=10; #ifdef ESP8266 Sds011 sensor(Serial); #else // RX, TX SoftwareSerial mySerial(8,9); Sds011 sensor(mySerial); #endif Pcd8544 display; void display_data(int p...
#include <SoftwareSerial.h> #include "Sds011.h" #include "Pcd8544.h" static const int PM25_NORM=25; static const int PM10_NORM=40; static const int SAMPLES=10; #ifdef ESP8266 Sds011 sensor(Serial); #else // RX, TX SoftwareSerial mySerial(8,9); Sds011 sensor(mySerial); #endif Pcd8544 display; void display_data(int p...
Fix sensor mode.
Fix sensor mode.
Arduino
mit
kadamski/arduino_sds011,kadamski/arduino_sds011,kadamski/arduino_sds011
edaa9142031cba35b77de7f410145df03de43d05
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> const char* ssid = "........"; const char* password = "........"; MDNSResponder mdns; ESP8266WebServer server(80); const int led = 13; void handleRoot() { digitalWrite(led, 1); server.send(200, "text/plain",...
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> const char* ssid = "........"; const char* password = "........"; MDNSResponder mdns; ESP8266WebServer server(80); const int led = 13; void handleRoot() { digitalWrite(led, 1); server.send(200, "text/plain",...
fix HelloServer sample
fix HelloServer sample close #168
Arduino
lgpl-2.1
Alfredynho/AgroSis,adafruit/ESP8266-Arduino,mc-hamster/esp8266-Arduino,eeijcea/Arduino-1,adafruit/ESP8266-Arduino,myrtleTree33/Arduino,spapadim/Arduino,tannewt/Arduino,ogahara/Arduino,EmuxEvans/Arduino,piersoft/esp8266-Arduino,shiitakeo/Arduino,drpjk/Arduino,Protoneer/Arduino,piersoft/esp8266-Arduino,shiitakeo/Arduino,...
1ae41a6a9d855c002ef606c35346119e12223871
arduino_sensors/arduino_sensors.ino
arduino_sensors/arduino_sensors.ino
f#include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_9DOF.h> #include <Adafruit_L3GD20_U.h> #include <SPI.h> #include <Pixy.h> #include <LIDARLite.h> #include <Wire.h> #include <Timer.h> #define X_CENTER ((PIXY_MAX_X-PIXY_MIN_X)/2) Pixy pixy; LIDARLite lidar; uint16_t blocks; boolean debug =...
f#include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_9DOF.h> #include <Adafruit_L3GD20_U.h> #include <SPI.h> #include <Pixy.h> #include <LIDARLite.h> #include <Wire.h> #include <Timer.h> #define X_CENTER ((PIXY_MAX_X-PIXY_MIN_X)/2) int ultrasonicpin = 0; //Pixy pixy; LIDARLite lidar; uint16_...
read ultrasonice code by scott and shane
read ultrasonice code by scott and shane
Arduino
mit
wando-advanced-robotics/steamworks-robot
9c6fb3970756b4d80b17bba4fe9dc8ce64b1c5f1
microcontrollers/arduino-pic32/lenny-tetris/lenny-tetris.ino
microcontrollers/arduino-pic32/lenny-tetris/lenny-tetris.ino
/* * Tetris (C) Copyright 1995, Vadim Antonov * Port to Arduino (C) 2018, Serge Vakulenko * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee is hereby * granted, provided that the above copyright notice appear in all * copies and that both th...
/* * Tetris (C) Copyright 1995, Vadim Antonov * Port to Arduino (C) 2018, Serge Vakulenko * * Permission to use, copy, modify, and distribute this software * and its documentation for any purpose and without fee is hereby * granted, provided that the above copyright notice appear in all * copies and that both th...
Use Adafruit library for Lenny tetris demo.
Use Adafruit library for Lenny tetris demo.
Arduino
apache-2.0
sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-o...
a54d4e3abc00785756f587dcad5401ef1adfc1c4
AnimatedGIFs.ino
AnimatedGIFs.ino
/* * Animated GIFs Display Code for SmartMatrix and 32x32 RGB LED Panels * * Uses SmartMatrix Library for Teensy 3.1 written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby grante...
/* * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels * * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby granted, free of char...
Make example title more generic
Make example title more generic
Arduino
mit
pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs
2abea81a442b158866a6623df725a22ffa3ff001
oak/oak_weather.ino
oak/oak_weather.ino
/*Oak Weather Shield sample code * Using SparkFunHTU21D.h library from https://github.com/sparkfun/SparkFun_HTU21D_Breakout_Arduino_Library * Using BMP180_Breakout_Arduino_Library from https://github.com/sparkfun/BMP180_Breakout_Arduino_Library * * Get temperature and humidity from HTU21D, pressure from BMP180 with...
/*Oak Weather Shield sample code * Using SparkFunHTU21D.h library from https://github.com/sparkfun/SparkFun_HTU21D_Breakout_Arduino_Library * Using BMP180_Breakout_Arduino_Library from https://github.com/sparkfun/BMP180_Breakout_Arduino_Library * * Get temperature and humidity from HTU21D, pressure from BMP180 with...
Change the format to human readable
Change the format to human readable
Arduino
mit
jhitze/oak_weather_recorder
71f2a1275a7e3835c9f2b217d896b94c169fd44a
oled_temp_monitor.ino
oled_temp_monitor.ino
#include <Wire.h> #include <DHT.h> #include <SSD1306.h> #define DHTPIN D8 #define OLED_SDA D2 // pin 14 #define OLED_SDC D4 // pin 12 #define OLED_ADDR 0x3C SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); DHT dht(DHTPIN, DHT22); float h, t; int i; void setup() { Serial.begin(115200); Serial.println("...
#include <Wire.h> #include "DHT.h" #include "SSD1306.h" #define DHTPIN D8 #define OLED_SDA D2 // pin 14 #define OLED_SDC D4 // pin 12 #define OLED_ADDR 0x3C SSD1306 display(OLED_ADDR, OLED_SDA, OLED_SDC); DHT dht(DHTPIN, DHT22); float h, t; int i; void setup() { Serial.begin(115200); Serial.println(...
Use local include paths
Use local include paths
Arduino
apache-2.0
shenki/oled_temp_monitor,shenki/oled_temp_monitor
1dd0a2b11a869f26c9c590752733d0b62cc86aa3
arduino/relays_unit/relays_unit.ino
arduino/relays_unit/relays_unit.ino
/* Arduino Relays Unit Web Server This script is a part of my home automation setup Based on Webduino library https://github.com/sirleech/Webduino Vasily Klenov, 2014 I use this script with Arduino Mega 2560 connected with Ethernet Shield https://github.com/sirleech/Webduino/blob/master/examples/Web_Pa...
/* Arduino Relays Unit Web Server This script is a part of my home automation setup Based on Webduino library https://github.com/sirleech/Webduino Vasily Klenov, 2014 I use this script with Arduino Mega 2560 connected with Ethernet Shield https://github.com/sirleech/Webduino/blob/master/examples/Web_Pa...
fix 404 message relays unit v. 0.0.3
fix 404 message relays unit v. 0.0.3
Arduino
mit
klenov/homeAutomationExample,klenov/homeAutomationExample,klenov/cherdak_home_automation,klenov/homeAutomationExample,klenov/cherdak_home_automation,klenov/homeAutomationExample,klenov/cherdak_home_automation,klenov/cherdak_home_automation,klenov/cherdak_home_automation,klenov/homeAutomationExample,klenov/cherdak_home_...
a3c63d73774ef7f4ce6527480ae998c552061917
tm.ino
tm.ino
/* * tm, by poinck, CC0 */ #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 3 OneWire ourWire(ONE_WIRE_BUS); DallasTemperature sensors(&ourWire); String s1 = ""; String s2 = ""; void setup() { Serial.begin(9600); delay(1000); Serial.println("start tm with serial 9600 .."); ...
/* * tm, by poinck, CC0 */ #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 6 OneWire ourWire(ONE_WIRE_BUS); DallasTemperature sensors(&ourWire); String s1 = ""; String s2 = ""; void setup() { Serial.begin(9600); delay(1000); Serial.println("start tm with serial 9600 .."); ...
change w1 data-port for later lcd connection
tm: change w1 data-port for later lcd connection
Arduino
cc0-1.0
poinck/tm,poinck/tm,poinck/tm,poinck/tm,poinck/tm
e604722fac778b6c5f164d9fe31954ead9248791
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 USB Serial ****************************************************/ const int debug = 0; if (debug == 1){ #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> //int LCD pins on I2C bus #define I2C_ADDR 0x27 #d...
/*************************************************** ArcEyes USB Serial ****************************************************/ //settings: const int debug = 0; const float referenceVolts = 4.94; //set the refrence multiplyer for the volt meter unsigned long previousBattCheck = 10000; if (debug == 1){ ...
Update arduino_md03_v_5_0.ino
Update arduino_md03_v_5_0.ino Added battery monitor on to pin A3, low batt led on pin 13
Arduino
apache-2.0
Pitchless/arceye,Pitchless/arceye
409e00c0f431c1265f463e537d09fa0374b22cbd
ArduCAM/examples/mini/ArduCAM_Mini_OV2640_LowPowerMode/ArduCAM_Mini_OV2640_LowPowerMode.ino
ArduCAM/examples/mini/ArduCAM_Mini_OV2640_LowPowerMode/ArduCAM_Mini_OV2640_LowPowerMode.ino
#include <Wire.h> #include <ArduCAM.h> #include <SPI.h> #include "memorysaver.h" // set pin 4 as the slave select for the digital pot: const int CS = 4; ArduCAM myCAM(OV2640,CS); void setup() { uint8_t vid,pid; uint8_t temp; #if defined(__SAM3X8E__) Wire1.begin(); #else Wire.begin(); #endif Serial.begin(92...
#include <Wire.h> #include <ArduCAM.h> #include <SPI.h> #include "memorysaver.h" // set pin 4 as the slave select for the digital pot: const int CS = 4; ArduCAM myCAM(OV2640,CS); void setup() { uint8_t vid,pid; uint8_t temp; #if defined(__SAM3X8E__) Wire1.begin(); #else Wire.begin(); #endif Serial.begin(92...
Fix the LowPowerMode
Fix the LowPowerMode When the sketch is idle in loop(), the module's low-power mode will be enabled, which makes the following operations (e.g. after a reboot or re-flashing the sketch) fail, since the module will still be in low-power mode. Fix this by forcing the module to wake up at the beginning of setup(), and w...
Arduino
mit
ArduCAM/Arduino,ArduCAM/Arduino,ArduCAM/Arduino
35ceb4510b4bb8d17bd7ea263b666822542c3abb
arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_setup/turtlebot3_setup_motor/turtlebot3_setup_motor.ino
arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_setup/turtlebot3_setup_motor/turtlebot3_setup_motor.ino
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
update debug code
update debug code
Arduino
apache-2.0
ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR
389ff3ba99d2e0b6e65ed5ddbf94205e5d0d607f
examples/QuickStart/QuickStart.ino
examples/QuickStart/QuickStart.ino
#include <TheThingsNetwork.h> // Set your AppEUI and AppKey const byte appEui[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const byte appKey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define debugSerial Serial #define loraSerial Serial1 #def...
#include <TheThingsNetwork.h> // Set your AppEUI and AppKey const byte appEui[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const byte appKey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define debugSerial Serial #define loraSerial Serial1 #def...
send current led status as well
send current led status as well
Arduino
mit
TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib
c14460b6d8e8c38544e41009b14cbceb048284fd
src/kite_flag/kite_flag.ino
src/kite_flag/kite_flag.ino
// Author: Rasmus Stougaard #define DEBUG_MAIN 1 #include <LiquidCrystal.h> #include "UserInterface.h" #include "Horn.h" #include "Motor.h" #include "common.h" // select the pins used on the LCD shield LiquidCrystal lcd(8, 9, 4, 5, 6, 7); UserInterface ui(&lcd); Horn horn(HORN); Motor motor(FLAG_MOTOR); // boot ...
// Author: Rasmus Stougaard // #define DEBUG_MAIN 1 #include <LiquidCrystal.h> #include "UserInterface.h" #include "Horn.h" #include "Motor.h" #include "common.h" // select the pins used on the LCD shield LiquidCrystal lcd(8, 9, 4, 5, 6, 7); UserInterface ui(&lcd); Horn horn(HORN); Motor motor(FLAG_MOTOR); // bo...
Disable debugging of main sequence
Disable debugging of main sequence
Arduino
mit
stou/kite_flag_arduino,stou/kite_flag_arduino
89d760beb5034ec7eafd7093ba0909262e68a80d
wordclock.ino
wordclock.ino
// This #include statement was automatically added by the Particle IDE. #include "neopixel/neopixel.h" #define PIXEL_PIN A5 #define PIXEL_COUNT 97 #define PIXEL_TYPE WS2812B Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); #define photoresistorPin A1 // Variables // Time Sync int la...
// This #include statement was automatically added by the Particle IDE. #include "neopixel/neopixel.h" #define PIXEL_PIN A5 #define PIXEL_COUNT 97 #define PIXEL_TYPE WS2812B Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); #define photoresistorPin A1 // Variables // Time Sync int la...
save color in EEPROM
save color in EEPROM
Arduino
mit
Trekky12/photon_wordclock
360fdf707aa49d40d96dc29b0c91ea6338907e8f
examples/raw-feather/raw-feather.ino
examples/raw-feather/raw-feather.ino
/* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1 Copyright notice: This file copyright (C) 2017 by MCCI Corporation 3520 Krums Corners Road It...
/* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1 Copyright notice: This file copyright (C) 2017 by MCCI Corporation 3520 Krums Corners Road It...
Change to test of downlink channel 3 and DR4
Change to test of downlink channel 3 and DR4
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
e9c85692c4ef124ee4706b3d8ac6a224075d137b
energyMonitor.ino
energyMonitor.ino
/**********************************************************************/ /* EnergyMonitor example /* An example to collect data from a pulse wattmeter using PulseSensor class /* version 0.1 ALPHA 17/09/2015 /* Author: Jaime García @peninquen /* Licence: Apache License Version 2.0. /* /*********************************...
/**********************************************************************/ /* EnergyMonitor example /* An example to collect data from a pulse wattmeter using PulseSensor class /* version 0.1 ALPHA 17/09/2015 /* Author: Jaime García @peninquen /* Licence: Apache License Version 2.0. /* /*********************************...
Update energyMonitor.ino
Update energyMonitor.ino very low frecuency, I'm considering change count period between pulses instead of number of pulses per second to determine instant power.
Arduino
apache-2.0
peninquen/PulseSensor-Arduino-library
0e42755b77297bd9d08f254198922181bf8965b0
examples/HTTP_Server/HTTP_Server.ino
examples/HTTP_Server/HTTP_Server.ino
/** * Copyright (C) 2014 James Sleeman * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge,...
/** * Copyright (C) 2014 James Sleeman * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge,...
Update HTTP_Server.ino
Update HTTP_Server.ino
Arduino
mit
Autonomi/ESP8266,koltegirish/ESP8266_Simple,sleemanj/ESP8266_Simple
7a40f652b3e9af1a932de088c05318de00451d3e
_03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino
_03-hx711-scale/_03-hx711-scale-v3-adaptor/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino
#include <PubSubClient.h> #include <ESP8266WiFi.h> #include <Average.h> #if defined(ESP8266) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif #include <Wire.h> // wifi #ifdef __IS_MY_HOME #include "/usr/local/src/ap_setting.h" #else #include "ap_setting.h" #endif #define nemoisOnPin 14 #define ledPin 13 ...
#include <PubSubClient.h> #include <ESP8266WiFi.h> #include <Average.h> #if defined(ESP8266) #include <pgmspace.h> #else #include <avr/pgmspace.h> #endif #include <Wire.h> // wifi #ifdef __IS_MY_HOME #include "/usr/local/src/ap_setting.h" #else #include "ap_setting.h" #endif #define nemoisOnPin 14 #define ledPin 13 ...
check spike
check spike
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
e5941592495be7a3b88f8704aeb3df1aa7a66683
Head/Stabiliser/Arduino-firmware/bb-8-Head-stabiliser-controller/bb-8-Head-stabiliser-controller.ino
Head/Stabiliser/Arduino-firmware/bb-8-Head-stabiliser-controller/bb-8-Head-stabiliser-controller.ino
/* - OPEN BB-X - A open source BB-8 for create you own BB-8! ########################################### https://github.com/Gruniek/OPEN-BB-X Made by Daniel M/Gruniek/MOUS Compatible only with an Arduino Nano and the specific PCB. PCB Link : https://github.com/Gruniek/OPEN-BB-X/tree/master/Head/Stabiliser/PC...
/* - OPEN BB-X - A open source BB-8 for create you own BB-8! ########################################### https://github.com/Gruniek/OPEN-BB-X Made by Daniel M/Gruniek/MOUS Compatible only with an Arduino Nano and the specific PCB. PCB Link : https://github.com/Gruniek/OPEN-BB-X/tree/master/Head/Stabiliser/PC...
Update bb-8-Head-stabiliser-controller.ino
Update bb-8-Head-stabiliser-controller.ino
Arduino
mit
Gruniek/BB-UNIT,Gruniek/BB-UNIT
7604c884ba6db748d69368e067082627354bf377
relais_serre_LCDi2c_V.2.ino
relais_serre_LCDi2c_V.2.ino
//--------------LCD 20x4-------------------- #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> #define I2C_ADDR 0x22 // Define I2C Address where the PCF8574A is #define BACKLIGHT_PIN 3 LiquidCrystal_I2C lcd(I2C_ADDR,2,1,0,4,5,6,7); /* En_pin 2, Rw_pin 1, Rs_pin 0, D4_pin 4, D5_pin 5, D6_p...
//--------------LCD 20x4-------------------- #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> #define I2C_ADDR 0x22 // Define I2C Address where the PCF8574A is #define BACKLIGHT_PIN 3 LiquidCrystal_I2C lcd(I2C_ADDR,2,1,0,4,5,6,7); /* En_pin 2, Rw_pin 1, Rs_pin 0, D4_pin 4, D5_pin 5, D6_p...
Update relais_serre_LCDi2c_V.2.ino
Update relais_serre_LCDi2c_V.2.ino Include the code for the clock
Arduino
unlicense
LoupHC/Greenhouse-controller,LoupHC/Greenhouse-controller
3c1beeea487afc8772b8d85d78a1f4d7d813e007
module/module.ino
module/module.ino
#include <SoftwareSerial.h> #include "RFID.h" SoftwareSerial WIFI(WIFI_RX, WIFI_TX); SoftwareSerial RFID(RFID_RX, RFID_TX); void setup() { // Set up pins pinMode(ledPin, OUTPUT); pinMode(driverX, INPUT); pinMode(driverY, INPUT); pinMode(speakerPin, OUTPUT); pinMode(interlock, OUTPUT); pinMode(wifi_rst, OUT...
#include <SoftwareSerial.h> #include "RFID.h" SoftwareSerial WIFI(WIFI_RX, WIFI_TX); SoftwareSerial RFID(RFID_RX, RFID_TX); void setup() { // Set up pins pinMode(ledPin, OUTPUT); pinMode(driverX, INPUT); pinMode(driverY, INPUT); pinMode(speakerPin, OUTPUT); pinMode(interlock, OUTPUT); pinMode(wifi_rst, OUT...
Clean up
Clean up
Arduino
mit
MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM
e7c462a131429e95b8c4aa9258d9dd22bd5fb951
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser GuZheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ // Port I/O defines #define THRESHOLD 700 #define LASTPORT 7 #define INSTRUMENTBUTTON 8 // MIDI property defines #define VOLUME 0x7F #define DELAY 0 // MIDI Instrument Array #define NUMINSTRUMENTS 6 // MIDI command d...
/* 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...
Document more code
Document more code
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
d667871100fa1ea84b89510845ecee73eb6a593b
src/current_sketch.ino
src/current_sketch.ino
#include "LedControl.h" #include <Wire.h> #include <LiquidCrystal_I2C.h> // pin to sink LED current from 3.3 v source #define motionSensor 5 #define motionLED 6 #define numOfDisplay 2 #define RELAY_PIN 7 #define CURRENT_SENSOR_PIN 0 LedControl lc=LedControl(2,3,4,numOfDisplay); LiquidCrystal_I2C lcd(0x27, 2...
#include "LedControl.h" #include <Wire.h> #include <LiquidCrystal_I2C.h> // pin to sink LED current from 3.3 v source #define motionSensor 5 #define motionLED 6 #define numOfDisplay 2 #define RELAY_PIN 7 #define CURRENT_SENSOR_PIN 0 LedControl lc=LedControl(2,3,4,numOfDisplay); LiquidCrystal_I2C lcd(0x27, 2...
add break and minor fix in current_sketch
add break and minor fix in current_sketch
Arduino
mit
icve/liv-Ard,icve/liv-Ard,icve/liv-Ard,icve/liv-Ard,icve/liv-Ard
b46f6c0942bcb73d409432579cf21462160cdced
Current_Designs/Computational_Datalogger/Firmware/Computational_Firmware/Computational_Firmware.ino
Current_Designs/Computational_Datalogger/Firmware/Computational_Firmware/Computational_Firmware.ino
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.9 // Utah Water Research Lab // Updated: 9/10/2019 // Daniel Henshaw and Josh Tracy /*****************************************************************************************************************\ * Hardware Description * _____________...
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.9 // Utah Water Research Lab // Updated: 9/11/2019 // Daniel Henshaw and Josh Tracy /*****************************************************************************************************************\ * Hardware Description * _____________...
Update Computational_Firmware.ino
Update Computational_Firmware.ino
Arduino
bsd-3-clause
UCHIC/WaterMonitor
54af9f3e20adfd65c0ee18f8de3714aabb2d4fa9
RobotBase.ino
RobotBase.ino
#include <BMSerial.h> #include <RoboClaw.h> #include <Wire.h> #include <Adafruit_PWMServoDriver.h> #define LED_PIN 13 // serial input // #define MAX_COMMAND 10 #define BUF_SIZE 32 byte buf[BUF_SIZE]; byte cmd = 0; byte bytes = 0; byte crc = 0; // RoboClaw // #define RC_ADDR 0x80 #define RC_RX_PIN 12 #define RC_TX_PI...
#include <BMSerial.h> #include <RoboClaw.h> #include <Wire.h> #include <Adafruit_PWMServoDriver.h> #define LED_PIN 13 // serial input // #define MAX_COMMAND 10 #define BUF_SIZE 32 byte buf[BUF_SIZE]; byte cmd = 0; byte bytes = 0; byte crc = 0; // RoboClaw // #define RC_ADDR 0x80 #define RC_RX_PIN 12 #define RC_TX_PI...
Revert "Power management hardware added"
Revert "Power management hardware added" This reverts commit cb86de2a99a9806fc599f56778dd639688bd66f5.
Arduino
mit
h0lmes/RobotBase
dbedabefd7a51915c7c1075fc50c8af19753a9b9
examples/TwoPulseSensors_On_OneArduino_Alternative/TwoPulseSensors_On_OneArduino_Alternative.ino
examples/TwoPulseSensors_On_OneArduino_Alternative/TwoPulseSensors_On_OneArduino_Alternative.ino
/* Arduino Sketch to detect pulses from two PulseSensors. Here is a link to the tutorial https://pulsesensor.com/pages/two-or-more-pulse-sensors Copyright World Famous Electronics LLC - see LICENSE Contributors: Joel Murphy, https://pulsesensor.com Yury Gitman, https://pulsesensor.com Br...
/* Arduino Sketch to detect pulses from two PulseSensors. Here is a link to the tutorial https://pulsesensor.com/pages/two-or-more-pulse-sensors Copyright World Famous Electronics LLC - see LICENSE Contributors: Joel Murphy, https://pulsesensor.com Yury Gitman, https://pulsesensor.com Br...
set USE_ARDUINO_INTERRUPTS to false
set USE_ARDUINO_INTERRUPTS to false
Arduino
mit
bneedhamia/PulseSensorBPM
e1fa61f9c008ba99df8238586a81515d4a116300
arduino/monitor/monitor.ino
arduino/monitor/monitor.ino
/* Totally happy and ultra fluffy ESD safe weather tracker of doom. Copyright (C) 2014 Greg Lincoln. Released under the FreeBSD License. Inspired by Nathan Seidle's WIMP. (https://github.com/sparkfun/Wimp_Weather_Station) */ #include <Wire.h> #include <SoftwareSerial.h> #include <HTU21D.h> #include <SFE_BMP180.h> #i...
/* Totally happy and ultra fluffy ESD safe weather tracker of doom. Copyright (C) 2014 Greg Lincoln. Released under the FreeBSD License. Inspired by Nathan Seidle's WIMP. (https://github.com/sparkfun/Wimp_Weather_Station) */ #include <Wire.h> #include <SoftwareSerial.h> #include <HTU21D.h> #include <SFE_BMP180.h> #i...
Tweak watchdog settings.
Tweak watchdog settings.
Arduino
bsd-2-clause
tetious/FluffyWeather,tetious/FluffyWeather,tetious/FluffyWeather
6cef858be588baaceb10a1dbcd0eccc8eae5bc28
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Chain/d_open_manipulator_chain/d_open_manipulator_chain.ino
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
add tool control
add tool control
Arduino
apache-2.0
ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR
417706ba47fc3f9d20768b6f26cb00adee703a89
Arduino/drive_motors/drive_motors.ino
Arduino/drive_motors/drive_motors.ino
#include <Servo.h> Servo leftMotor; // create servo for the left motor int leftMotorPin = 11; // Left Motor on pin 11 Servo rightMotor; // create servo for the right motor int rightMotorPin = 12; // Right Motor on pin 12 int inByte = 0; // incoming serial byte int onMessage = 49; // expected ...
#include <Servo.h> Servo leftMotor; // create servo for the left motor int leftMotorPin = 11; // Left Motor on pin 11 Servo rightMotor; // create servo for the right motor int rightMotorPin = 12; // Right Motor on pin 12 int inByte = 0; // incoming serial byte int onMessage = '1'; ...
Add protocol for motor control
Add protocol for motor control
Arduino
mit
knewter/android_and_arduino,knewter/android_and_arduino
d4cce45dd25bb5201317270fa4b38b83d5872296
OpenROV/OpenROV.ino
OpenROV/OpenROV.ino
#include <Servo.h> #include <Arduino.h> #include "Motors.h" #include "Command.h" #include "Device.h" #include "Timer.h" Motors motors(9, 10, 11); Command cmd; Device vout("vout", 0, vout.analog, vout.in); Device light("light", 5, light.analog, light.out); Timer time; Servo tilt; // IMPORTANT! // array[0] will be the ...
#include <Servo.h> #include <Arduino.h> #include "Motors.h" #include "Command.h" #include "Device.h" #include "Timer.h" Motors motors(9, 10, 11); Command cmd; Device vout("vout", 0, vout.analog, vout.in); Device iout("iout", 3, iout.analog, iout.in); Device light("light", 5, light.analog, light.out); Timer time; Serv...
Update arduino/OpenROV/OpenROV.ino
Update arduino/OpenROV/OpenROV.ino add sensor support for cape current - iout
Arduino
mit
BrianAdams/openrov-software-arduino,OpenROV/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,OpenROV/openrov-software-arduino,binary42/openrov-software-arduino,spiderkeys/openrov-software-arduino,LeeCheongAh/openrov-software-arduino,dieface/openrov-software-arduino,dieface/openrov-software-arduino,OpenROV/...
315cd2dac7171803df81b807989ea44ef2a6a77a
examples/cloud_services/mqtt_bluemix_test/mqtt_bluemix_test.ino
examples/cloud_services/mqtt_bluemix_test/mqtt_bluemix_test.ino
#define DEBUG_MODE // #define DEBUG_LEVEL_VERBOSE #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <MqttWrapper.h> #include <PubSubClient.h> // const char* ssid = "OpenWrt_NAT_500GP.101"; // const char* pass = "activegateway"; // const char* ssid = "MAKERCLUB-CM"; // const char* pass = "welcomegog...
#define DEBUG_MODE #define DEBUG_LEVEL_VERBOSE #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <MqttWrapper.h> #include <PubSubClient.h> const char* ssid = "CMMC.32"; const char* pass = "guestnetwork"; MqttWrapper *mqtt; void connect_wifi() { WiFi.begin(ssid, pass); int retries = 0; ...
test bluemix.
test bluemix.
Arduino
mit
cmmakerclub/CMMC_Connector,cmmakerclub/CMMC_Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector,cmmakerclub/MQTT-Connector
de0ad1e63c6da2ccceb06e2c1d1c441fc457200d
examples/SW01_Humidity_Measurement/SW01_Humidity_Measurement.ino
examples/SW01_Humidity_Measurement/SW01_Humidity_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/modules/sensors/SW01/ This example request a humidity meausrement to be made by the SW01 ad display the dat...
/************************************************************* 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 humidity meausrement to be made by the SW01 and display the data over the Seri...
Update SW01_Humidity_Measurement.ino
Update SW01_Humidity_Measurement.ino
Arduino
mit
xinabox/xSW01
551a64e2f7e3aec1f6b4814a6a09daadf05aee5c
Arduino/MIMIC_Extras/SGANT/SGANT.ino
Arduino/MIMIC_Extras/SGANT/SGANT.ino
#include <Adafruit_NeoPixel.h> #include <Servo.h> #include <string.h> //Connect USB port to Pi USB Port Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, 6, NEO_GRB + NEO_KHZ800); Servo XEL_servo; Servo EL_servo; const int ledBluePin = 13; String test; int EL = 0; int XEL = 0; boolean Transmit = false; int pos = 0; int...
#include <Adafruit_NeoPixel.h> #include <Servo.h> #include <string.h> //Connect USB port to Pi USB Port Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, 6, NEO_GRB + NEO_KHZ800); Servo XEL_servo; Servo EL_servo; const int ledBluePin = 13; String test; int EL = 0; int XEL = 0; boolean Transmit = false; int pos = 0; int...
Update SGANT.ino
Update SGANT.ino Adding fire when gimbals at starting position
Arduino
mit
ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic,ISS-Mimic/Mimic
f4740a33731e072eddc5c113cc4c34cdac531c8c
src/src.ino
src/src.ino
#include "ILI9341_t3.h" #include "SPI.h" #include <math.h> // Hardware // TFT LCD const int TFT_DC = 9; const int TFT_CS = 10; ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC); // A physical location typedef struct Location { double lat; double lng; } Location; // A name attached to a physical location typedef struct...
#include "ILI9341_t3.h" #include "SPI.h" #include "Average.h" #include <math.h> // Hardware // TFT LCD const int TFT_DC = 9; const int TFT_CS = 10; ILI9341_t3 lcd = ILI9341_t3(TFT_CS, TFT_DC); // A physical location typedef struct Location { double lat; double lng; } Location; // A name attached to a physical lo...
use library
avg: use library
Arduino
mit
mplewis/sternidae
e4b89c7efc2bcd20ee5d7ca10a247be1ce6b2ae7
Arduino/Arduino.ino
Arduino/Arduino.ino
// This will be the code uploaded to the main control Arduino // INCLUDES #include <Servo.h> Servo myservo; // create servo object to control a servo int pos = 90; // variable to store the servo position int ByteReceived; int Change = 0; void setup() { myservo.attach(9); // attaches the servo on pin 9 to t...
// This will be the code uploaded to the main control Arduino // INCLUDES #include <Servo.h> // SERVOS Servo throttle; Servo rotatingFront; Servo rotatingBack; Servo leftRight; Servo upDown; int pos = 90; // variable to store the servo position int ByteReceived; int Change = 0; void setup() { throttle.attach(...
Add different servos
Update: Add different servos
Arduino
apache-2.0
MagnusFlieger/Arduino
c90a020b8e9e6a4f0b496bc2ffe0ea69e950580b
voteino.ino
voteino.ino
/* Author (C) 2012 S. Kuusik <silver.kuusik@gmail.com> Author (C) 2012 B. Vittal <bala561989@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ /** * Voteino client and s...
/* * Voteino by Silver Kuusik ( Multiuser Voting system for Arduino ) * Copyright (C) 2012 Silver Kuusik * * 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....
Update voteino.ino
Update voteino.ino updated license description
Arduino
mit
silps/voteino,silps/voteino,silps/voteino,silps/voteino
1fc74d6d4721c45aa511b79a6e4788b230dc596a
arduino/project.ino
arduino/project.ino
#include <ArduinoJson.h> #include <stdlib.h> const int ledPinArmed = 12; const int ledPinDisarmed = 13; int incomingByte = 0; const int buttonArmed = 9; const int buttonDisarmed = 8; const int buzzerAlarm = 11; const int sensorPir = 10; int stateSensor; int stateArmed = 0; int stateDisarmed = 0; double fixedLat = -2...
#include <ArduinoJson.h> #include <stdlib.h> const int ledPinArmed = 12; const int ledPinDisarmed = 13; int incomingByte = 0; const int buttonArmed = 9; const int buttonDisarmed = 8; const int buzzerAlarm = 11; const int sensorPir = 10; int stateSensor; int stateArmed = 0; int stateDisarmed = 0; double fixedLat = -2...
change deviceId number
change deviceId number
Arduino
unlicense
leonardosouza/am-final-project,leonardosouza/am-final-project
44ac054446d0168c7d72b824fd60b5441e15b3eb
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser GuZheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ /* Uncomment the define if you are using a wind instrument, such * as a trumpet or flute. It will disable several things that * are specific to string and percussion instruments. DO NOT * uncomment it if you are usi...
/* Code for laser GuZheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ /* Uncomment the define if you are using a wind instrument, such * as a trumpet or flute. It will disable several things that * are specific to string and percussion instruments. DO NOT * uncomment it if you are usi...
Rearrange functions and update comments
Rearrange functions and update comments
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
4c58b27290c3e4251345f4fb78236a6620d631a2
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 = 50; const uint8_t rangeLimit_Warning3 = 40; const uint8_t rangeLimit_Stop = 25; co...
Change Pins
Change Pins
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
c6f56041c2e3326eded1d2e451d5d315f3a86f70
arduino/motor_2.ino
arduino/motor_2.ino
#include <Wire.h> double potcurval; // variable to read the value from the analog pin int angel; //Integer value of angle double angle =0; double curangle,kP=28.00,kI=42,kD=4,Last=0; double P=0,I=0,D=0,Drive,Error=0,Integral=0; void backward() { digitalWrite(12,HIGH); digitalWrite(9,LOW); } void forw...
#include <Wire.h> double potcurval; // variable to read the value from the analog pin double angle =0; double curangle,kP=28.00,kI=42,kD=4,Last=0; double P=0,I=0,D=0,Drive,Error=0,Integral=0; void backward() { digitalWrite(12,HIGH); digitalWrite(9,LOW); } void forward() { digitalWrite(12,LOW); ...
Update motor_2.ino
Update motor_2.ino
Arduino
mit
RationalAsh/invkin,RationalAsh/invkin,RationalAsh/invkin
2f148441912a4ae402864215ce0e094991607f59
firmware/examples/fingerprint/fingerprint.ino
firmware/examples/fingerprint/fingerprint.ino
/*************************************************** This is an example sketch for our optical Fingerprint sensor Designed specifically to work with the Adafruit BMP085 Breakout ----> http://www.adafruit.com/products/751 These displays use TTL Serial to communicate, 2 pins are required to interface Ada...
/*************************************************** This is an example sketch for our optical Fingerprint sensor Designed specifically to work with the Adafruit BMP085 Breakout ----> http://www.adafruit.com/products/751 These displays use TTL Serial to communicate, 2 pins are required to interface Ada...
Update fingerprint.ino
Update fingerprint.ino Fix for SPARK compiler directive
Arduino
bsd-3-clause
pkourany/Adafruit_Fingerprint_Library
30ec492348bc6b5e2858babd84cf4029c9c664a5
RouterReset_Yun/RouterReset_Yun.ino
RouterReset_Yun/RouterReset_Yun.ino
/* Router Reset for Arduino Yun * * red LED (internet down): pin 6 * green LED (internet up): pin 5 * yellow LED (testing): pin 3 * blue LED (router on): pin 8 * power switch tail: pin 9 * switch: pin 12 * * needs ~/Python/pingGoogle.py on Yun Linino */ #include <Process.h> cons...
/* Router Reset for Arduino Yun * * red LED (internet down): pin 6 * green LED (internet up): pin 5 * yellow LED (testing): pin 3 * blue LED (router on): pin 8 * power switch tail: pin 9 * switch: pin 12 * * needs ~/Python/pingGoogle.py on Yun Linino */ #include <Process.h> cons...
Add flash of LEDs; longer start-up delay
Add flash of LEDs; longer start-up delay - I was having a problem where the log time was off a bit; increasing the startup delay to avoid this - flash all of the LEDs (green/red/yellow) for 1 sec before trying to connect the "Bridge"
Arduino
mit
karlduino/RouterReset,karlduino/RouterReset
23737416ddd767e74840e0eb6d28a2acd39f5751
firmware/examples/ReadSensorData.ino
firmware/examples/ReadSensorData.ino
// This #include statement was automatically added by the Particle IDE. #include "I2CSensorParticle/I2CSensorParticle.h" I2CSensorParticle sensor; void setup() { Serial.begin(9600); sensor.begin(); // reset sensor delay(1000); // give some time to boot up String address = String(sensor.getAddress()); Str...
// This #include statement was automatically added by the Particle IDE. #include "I2CSensorParticle/I2CSensorParticle.h" I2CSensorParticle sensor; void setup() { Particle.publish("setup", "Start setup", 300, PRIVATE); Serial.begin(9600); sensor.begin(); // reset sensor Particle.publish("setup", "sensor.beg...
Update ReadSensorData.ino
Update ReadSensorData.ino
Arduino
mit
jbgariel/I2CSensorParticle
8546ac5058f66f3387002ff9af78bfe06b36b9eb
examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino
examples/GPS_HardwareSerial_Parsing/GPS_HardwareSerial_Parsing.ino
// Test code for Ultimate GPS Using Hardware Serial (e.g. GPS Flora or FeatherWing) // // This code shows how to listen to the GPS module via polling. Best used with // Feathers or Flora where you have hardware Serial and no interrupt // // Tested and works great with the Adafruit GPS FeatherWing // ------> https://www...
// Test code for Ultimate GPS Using Hardware Serial (e.g. GPS Flora or FeatherWing) // // This code shows how to listen to the GPS module via polling. Best used with // Feathers or Flora where you have hardware Serial and no interrupt // // Tested and works great with the Adafruit GPS FeatherWing // ------> https://www...
reduce excess newlines. fix header
reduce excess newlines. fix header
Arduino
bsd-3-clause
adafruit/Adafruit-GPS-Library
8073821fcd60b1c11f57665322517c1dd171a6de
examples/tap/tap.ino
examples/tap/tap.ino
#include <Helper2.h> #include <Wire.h> void setup() { initialize(); led1.on(); led1.color(10, 10, 0); led2.off(); led1.color(20, 0, 20); } void loop() { if (accel.tap()) { led1.randomcolor(); } if (accel.doubletap()) { led2.flip(); } wait(200); };
#include <Helper2.h> #include <Wire.h> void setup() { initialize(); } void loop() { led2.on(); if (accel.doubletap()) { led2.randomcolor(); } if (accel.tap()) { led1.on(); } else { led1.off(); } wait(20); };
Fix keyword.txt
Fix keyword.txt
Arduino
mit
UEC-VBSeminar/Helper2.h
32005df09038d8f82fb436e3f6158e57aba3aead
Arduino/Arduino.ino
Arduino/Arduino.ino
// This will be the code uploaded to the main control Arduino // INCLUDES #include <Servo.h> // SERVOS Servo throttle; // Speed Servo rotatingFront; // cylinder at the front Servo rotatingBack; // cylinder at the back Servo leftRight; // left-right Servo upDown; // up-down // SENSORS // Nothing...
// This will be the code uploaded to the main control Arduino // INCLUDES #include <Servo.h> // SERVOS Servo throttle; // Speed Servo rotatingFront; // cylinder at the front Servo rotatingBack; // cylinder at the back Servo leftRight; // left-right Servo upDown; // up-down // SENSORS // Nothing...
Update the servo reading procedure to increase efficiency
Update the servo reading procedure to increase efficiency
Arduino
apache-2.0
MagnusFlieger/Arduino
801dd347b7b37dfb6228d190bb87033047c7baf3
esp8266_dht11_oled.ino
esp8266_dht11_oled.ino
#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <U8g2lib.h> #include "wifi_creds.h" #define FINAL 0 #if FINAL #define DEBUG_PRINTLN(...) #define DEBUG_PRINT(...) #else #define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__) #define DE...
#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <U8g2lib.h> #include "wifi_creds.h" #define FINAL 0 #if FINAL #define DEBUG_PRINTLN(...) #define DEBUG_PRINT(...) #else #define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__) #define DE...
Put the icons in PROGMEM
Put the icons in PROGMEM
Arduino
mit
slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled,slurdge/esp8266_dht11_oled
839d0cde4494b37085f23d0bc278d26035d94095
d_BacpacCommands.ino
d_BacpacCommands.ino
// bacpac commands // void emulateDetachBacpac() { // to exit 3D mode, emulate detach and attach bacpac // // detach bacpac pinMode(BPRDY, INPUT); delay(1000); // attach bacpac again pinMode(BPRDY, OUTPUT); digitalWrite(BPRDY, LOW); } // what does this mean? i have no idea... const unsigned char valida...
// bacpac commands // void emulateDetachBacpac() { // to exit 3D mode, emulate detach and attach bacpac // // detach bacpac pinMode(BPRDY, INPUT); delay(1000); // attach bacpac again pinMode(BPRDY, OUTPUT); digitalWrite(BPRDY, LOW); } // what does this mean? i have no idea... const unsigned char valida...
remove bogus SH
remove bogus SH
Arduino
mit
jcanseco/MewPro,hunt0r/MewPro,jcanseco/MewPro,orangkucing/MewPro,orangkucing/MewPro
fc90b233f37855cc3394a30e416f147a80b90d9d
src/basic/basic.ino
src/basic/basic.ino
#include <rn2xx3.h> #include <TinyGPS++.h> #include <SoftwareSerial.h> #include "keys.h" SoftwareSerial myLoraSerial(7, 8); // RX, TX #define RST 2 static const int RXPin = 4, TXPin = 3; static const uint32_t GPSBaud = 9600; // The serial connection to the GPS device SoftwareSerial gpsSerial(RXPin, TXPin); rn2xx3 my...
#include <rn2xx3.h> #include <TinyGPS++.h> #include <SoftwareSerial.h> #include "keys.h" SoftwareSerial myLoraSerial(7, 8); // RX, TX #define RST 2 static const int RXPin = 4, TXPin = 3; static const uint32_t GPSBaud = 9600; // The serial connection to the GPS device SoftwareSerial gpsSerial(RXPin, TXPin); rn2xx3 my...
break out of loop after successful gps status receive.
break out of loop after successful gps status receive.
Arduino
mit
GabrielKatz/bicycletracking,GabrielKatz/bicycletracking
4e906d47bf919f003a26d290c98b51e37c88fcb2
ESP8266-code/ADXL335Test.ino
ESP8266-code/ADXL335Test.ino
#include <Wire.h> #include <Adafruit_ADS1015.h> Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ const int calibratePin = D5; // Raw Ranges: // initialize to first reading and allow calibration to // find the minimum and maximum for each axis int xRawMin,xRawMax,yRawMin,yRawMax,zRawMin,zRawMax; // Tak...
#include <Wire.h> #include <Adafruit_ADS1015.h> Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ const int calibratePin = D5; // Raw Ranges: // initialize to first reading and allow calibration to // find the minimum and maximum for each axis int xRawMin,xRawMax,yRawMin,yRawMax,zRawMin,zRawMax; // Tak...
tidy code
tidy code
Arduino
mit
KitWallace/CitizenSense
47f930f01ca150edc5e59d7a625e61abe6aca2ec
mech/mech.ino
mech/mech.ino
// Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor // Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold" // Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot" // Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear). // Measured 2964 steps 360 degrees rev...
// Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor // Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold" // Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot" // Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear). // Measured 2964 steps 360 degrees rev...
Update mech.ino
Update mech.ino
Arduino
mit
dkaukov/ratu,dkaukov/ratu
a8fc554eb039516adc8826d505f8f5a847c2d412
onboard_controller/onboard_controller.ino
onboard_controller/onboard_controller.ino
#include <math.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> //debug macros #define debug //print debug info to console #define fakeGPS //fake the presence of a gps //make sure these match on the receiving end #define MARKER_LAT 0xFB #define MARKER_LON 0xFC #define MARKER_ALT 0xFD #define MARKER_FLAG 0xFE ...
#include <math.h> #include <Adafruit_GPS.h> #include <SoftwareSerial.h> //debug macros #define debug //print debug info to console #define fakeGPS //fake the presence of a gps //make sure these match on the receiving end #define MARKER_LAT 0xFB #define MARKER_LON 0xFC #define MARKER_ALT 0xFD #define MARKER_FLAG 0xFE ...
convert payload variables to struct again
convert payload variables to struct again
Arduino
mit
CURocketry/LaunchVehicleController2015,CURocketry/LaunchVehicleController
f515386908da9b5cfb1e57db5f287e99ead8b31c
examples/LEDUbidots.ino
examples/LEDUbidots.ino
/* Example with LED for Ubidots This sketch connect to Ubidots (http://www.ubidots.com) using an Arduino Wifi shield. This example is written for a network using WPA encryption. You only need your SSID and PASS. This example implements the Ubidots library for the Arduino WiFi Shield, for the 1.6 API version...
/* Example with LED for Ubidots This sketch connect to Ubidots (http://www.ubidots.com) using an Arduino Wifi shield. This example is written for a network using WPA encryption. You only need your SSID and PASS. This example implements the Ubidots library for the Arduino WiFi Shield, for the 1.6 API version...
Update LEDUbidots.ino
Update LEDUbidots.ino
Arduino
mit
ubidots/ubidots-arduino-wifi
bf71726bd16de80f263add81892619acbf79402b
Examples/DHT22/DHT22.ino
Examples/DHT22/DHT22.ino
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <ESP8266httpUpdate.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include <FS.h> #include <ESPMetRED.h> #include <math.h> #include <DHT.h> const char* MQTT_PUBLISH_TOPIC = "ESPMetRED/OUT"; const char* MQTT_SUBSCRIBE_TOPIC = "ESPMetRED/IN"; const ...
#include <ESP8266WiFi.h> #include <ESP8266httpUpdate.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include <FS.h> #include <ESPMetRED.h> #include <math.h> #include <DHT.h> const char* MQTT_PUBLISH_TOPIC = "ESPMetRED/OUT"; const char* MQTT_SUBSCRIBE_TOPIC = "ESPMetRED/IN"; const char* CLIENT_ID...
Update DHT22.ino
Update DHT22.ino
Arduino
mit
HobbytronicsPK/ESPMetRED
03e00562775a19b46a152d965a16df1644203d21
Sketch.ino
Sketch.ino
#include <IRremote.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> // Set the LCD address to 0x3F for a 16 chars and 2 line display // You can find the address of your I2C device using https://playground.arduino.cc/Main/I2cScanner LiquidCrystal_I2C lcd(0x3F, 16, 2); // 14 is A0 on Arduino UNO, this is the pin for...
#include <IRremote.h> #include <LiquidCrystal_I2C.h> #include <Wire.h> // Set the LCD address to 0x3F for a 16 chars and 2 line display // You can find the address of your I2C device using https://playground.arduino.cc/Main/I2cScanner LiquidCrystal_I2C lcd(0x3F, 16, 2); // 14 is A0 on Arduino UNO, this is the pin for...
Fix LCD Backlight Bug
Fix LCD Backlight Bug
Arduino
mit
erhanalankus/Arduino-Wake-Up-Light
d48f7ba17f9bd577b394fde65e2a41b351acc5c9
examples/Ports/isp_flash/isp_flash.ino
examples/Ports/isp_flash/isp_flash.ino
/// @dir isp_flash /// Derived from http://arduino.cc/en/Tutorial/ArduinoISP // - 2010-04-17, jcw // // see http://jeelabs.org/2010/04/24/isp-plug/ // and http://jeelabs.org/2011/05/29/summary-of-isp-options/ // pin definitions #define PIN_SCK 14 #define PIN_MISO 4 #define PIN_MOSI 17 #define PIN_RESET 7 #...
/// @dir isp_flash /// Derived from http://arduino.cc/en/Tutorial/ArduinoISP // - 2010-04-17, jcw // // see http://jeelabs.org/2010/04/24/isp-plug/ // and http://jeelabs.org/2011/05/29/summary-of-isp-options/ // pin definitions #define PIN_SCK 14 #define PIN_MISO 4 #define PIN_MOSI 17 #define PIN_RESET 7 #...
fix baud rate for use as "Arduino as ISP" programmer
fix baud rate for use as "Arduino as ISP" programmer
Arduino
unlicense
jcw/jeelib,jcw/jeelib
30af27dcd63ff20784ea9362456361423f5acbb4
src/basic/basic.ino
src/basic/basic.ino
#include <rn2xx3.h> #include <SoftwareSerial.h> #include "keys.h" SoftwareSerial mySerial(7, 8); // RX, TX #define RST 2 rn2xx3 myLora(mySerial); // Setup routine runs once when you press reset void setup() { pinMode(13, OUTPUT); led_on(); // Open serial communications and wait for port to open: Serial.beg...
#include <rn2xx3.h> #include <TinyGPS++.h> #include <SoftwareSerial.h> #include "keys.h" SoftwareSerial myLoraSerial(7, 8); // RX, TX #define RST 2 static const int RXPin = 4, TXPin = 3; static const uint32_t GPSBaud = 9600; // The serial connection to the GPS device SoftwareSerial gpsSerial(RXPin, TXPin); rn2xx3 my...
put tiny gps functionality in (not working yet…)
put tiny gps functionality in (not working yet…)
Arduino
mit
GabrielKatz/bicycletracking,GabrielKatz/bicycletracking
ff3c8ed5a4d7345d0f3d574f23b1b2d95a2c0ac3
src/blinky.ino
src/blinky.ino
/* * Project particle-neopixel-ring-blinky * Description: * Author: * Date: */ #include "neopixel/neopixel.h" #include "hsv.h" #define PIXEL_COUNT 24 #define PIXEL_PIN D6 #define PIXEL_TYPE WS2812B #define HUE_STEP 10 // 1..255, each loop increments hue by this value #define LOOP_DELAY 100 //ms #define HSV_BRIGHT...
/* * Project particle-neopixel-ring-blinky * Description: * Author: * Date: */ #include "neopixel/neopixel.h" #include "hsv.h" #define PIXEL_COUNT 24 #define PIXEL_PIN D6 #define PIXEL_TYPE WS2812B #define HUE_STEP 10 // 1..255, each loop increments hue by this value #define LOOP_DELAY 100 //ms #define HSV_BRIGHT...
add quarter rotating disorient pattern
add quarter rotating disorient pattern
Arduino
apache-2.0
byxorna/particle-neopixel-ring-blinky
f52500c2dff95fe3c5d038e52a737da9f49cb18a
src/wolves.ino
src/wolves.ino
#include <Arduino.h> #include "App.h" #include "LED.h" #include "RFIDSensor.h" #include "Solenoid.h" LED leds[] = { LED(0,0), LED(0,0), LED(0,0) }; RFIDSensor sensors[] = { RFIDSensor(0, 0), RFIDSensor(0, 0), RFIDSensor(0, 0) }; Solenoid solenoids[] = { Solenoid(0, sensors[0], leds[0]), ...
#include <Arduino.h> #include "App.h" #include "LED.h" #include "RFIDSensor.h" #include "Solenoid.h" #define N_OF_QUESTIONS 3 LED leds[N_OF_QUESTIONS] = { LED(0,0), LED(0,0), LED(0,0) }; RFIDSensor sensors[N_OF_QUESTIONS] = { RFIDSensor(0, 0), RFIDSensor(0, 0), RFIDSensor(0, 0) }; Solenoid s...
Add calls to begin
Add calls to begin
Arduino
apache-2.0
BlueMasters/arduino-wolves,BlueMasters/arduino-wolves,BlueMasters/arduino-wolves
1bd77b768f4db6074a8d4b84f03cc97b57dae7e5
TURIPshell/examples/TURIPbridge/TURIPbridge.ino
TURIPshell/examples/TURIPbridge/TURIPbridge.ino
#include <TURIPclientSPI.h> #include <TURIPserver.h> #include <TURIPshell.h> const uint32_t TURIP_MODEL = 0x00000001; const uint32_t TURIP_SERIAL = 0x00000000; void setup() { Serial.begin(9600); TURIPclientSPI.addPin(6); TURIPclientSPI.addPin(7); TURIPclientSPI.addPin(8); TURIPclientSPI.addPin(9); TURIPc...
#include <TURIPclientSPI.h> #include <TURIPserver.h> #include <TURIPshell.h> const uint32_t TURIP_MODEL = 0x1; const uint32_t TURIP_SERIAL = 0x0; void setup() { Serial.begin(9600); TURIPclientSPI.addPin(6); TURIPclientSPI.addPin(7); TURIPclientSPI.addPin(8); TURIPclientSPI.addPin(9); TURIPclientSPI.addPi...
Change TURIPbridge sample
Change TURIPbridge sample
Arduino
mit
turippj/TURIPlibrariesForArduino,turippj/TURIPlibrariesForArduino
d025264507083b624282bf61590e4414248a06a5
ableton-midi-foot-controller.ino
ableton-midi-foot-controller.ino
#include "Button.h" #include "base64/Base64.h" #include <Wire.h> #include "NewLiquidCrystal/LiquidCrystal_I2C.h" //#define DEBUG_BUTTONS true //#define SINGLE_LED_TEST true //#define LCD_TEST true #define SONG_CONFIGURATION_DEBUG true byte counter; const byte CLOCK = 248; const byte START = 250; const byte CONTINUE =...
#include "Button.h" #include "base64/Base64.h" #include <Wire.h> #include "NewLiquidCrystal/LiquidCrystal_I2C.h" //#define DEBUG_BUTTONS true //#define SINGLE_LED_TEST true //#define LCD_TEST true #define SONG_CONFIGURATION_DEBUG true byte counter; const byte CLOCK = 248; const byte START = 250; const byte CONTINUE =...
Send stop button midi note
Send stop button midi note
Arduino
apache-2.0
LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/ableton-midi-foot-controller,LeovR/ableton-midi-foot-controller,LeovR/amtrac,LeovR/amtrac,LeovR/ableton-midi-foot-controller
adf5bb472acb4f3f8a5e603fc0778acf0b8f7a86
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> #include "Config.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> #include "Config.h" Servo ESC1; Servo ESC2; Servo ESC3; Servo ESC4; /* Motor setup 4 1 \ / \___...
Disable unneeded autoranging
Disable unneeded autoranging Saves 10 bytes!
Arduino
mit
petschekr/Vertex,petschekr/Vertex
cf67a2e07ebe75c8417d42c2d92a27ea131efe6b
client.ino
client.ino
#include <Adafruit_SleepyDog.h> #include <RHReliableDatagram.h> #include <RH_RF95.h> #include <SPI.h> // AdaFruit Feather 32u4. #define RFM95_CS 8 #define RFM95_RST 4 #define RFM95_INT 7 #define BATT 9 #define CLIENT_ADDRESS 1 #define SERVER_ADDRESS 2 #define SONAR_TRIGGER 11 #define RED_LED 13 // Radio driver. D...
#include <Adafruit_SleepyDog.h> #include <RHReliableDatagram.h> #include <RH_RF95.h> #include <SPI.h> // AdaFruit Feather 32u4. #define RFM95_CS 8 #define RFM95_RST 4 #define RFM95_INT 7 #define BATT 9 #define CLIENT_ADDRESS 1 #define SERVER_ADDRESS 2 #define SONAR_TRIGGER 11 #define RED_LED 13 // Radio driver. D...
Update poll interval to 5 minutes.
Update poll interval to 5 minutes.
Arduino
apache-2.0
AaronWebster/mimmon,AaronWebster/mimmon,AaronWebster/mimmon
35ed57f97363d0362e33d2cbae5904814b944367
examples/temp_sensor/temp_sensor.ino
examples/temp_sensor/temp_sensor.ino
// TimerOne library: https://code.google.com/p/arduino-timerone/ #include <TimerOne.h> // DHT library: https://github.com/adafruit/DHT-sensor-library #include "DHT.h" #include <SPI.h> #include <BLEPeripheral.h> // define pins (varies per shield/board) #define BLE_REQ 10 #define BLE_RDY 2 #define BLE_RST 9 #defi...
// TimerOne library: https://code.google.com/p/arduino-timerone/ #include <TimerOne.h> // DHT library: https://github.com/adafruit/DHT-sensor-library #include "DHT.h" #include <SPI.h> #include <BLEPeripheral.h> // define pins (varies per shield/board) #define BLE_REQ 10 #define BLE_RDY 2 #define BLE_RST 9 #defi...
Use BLEFloatCharacteristic
Use BLEFloatCharacteristic
Arduino
mit
possan/arduino-BLEPeripheral,pi19404/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,femtoduino/arduino-BLEPeripheral,pi19404/arduino-BLEPeripheral,femtoduino/arduino-BLEPeripheral,possan/arduino-BLEPeripheral
f1fe69df63d40f01a7a9a3e4c0c500e214999e0f
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...
Move delay into main loop instead of blink_lead; rename blink_led to toggle_led
Move delay into main loop instead of blink_lead; rename blink_led to toggle_led
Arduino
mit
AstroHuntsman/POCS,AstroHuntsman/POCS,panoptes/PACE,panoptes/POCS,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,AstroHuntsman/POCS
65d960f2c5bdf21d198cd5a97ddaaf3b25ef812b
Wikiduino/Wikiduino.ino
Wikiduino/Wikiduino.ino
// Copyright (c) 2011, Ward Cunningham // Released under MIT and GPLv2 #include <SPI.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <OneWire.h> #define num(array) (sizeof(array)/sizeof(array[0])) // Ethernet Configuration byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ...
// Copyright (c) 2011, Ward Cunningham // Released under MIT and GPLv2 #include <SPI.h> #include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <OneWire.h> #define num(array) (sizeof(array)/sizeof(array[0])) // Ethernet Configuration byte mac[] = { 0xEE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED ...
introduce a time-reference url to allow the arduino to make its own clock-based decisions. 'topOfHour' is intended to indicate the unsigned long millis() result for the top-of-the-hour.
introduce a time-reference url to allow the arduino to make its own clock-based decisions. 'topOfHour' is intended to indicate the unsigned long millis() result for the top-of-the-hour.
Arduino
mit
rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,rkh/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki,WardCunningham/Smallest-Federated-Wiki
88df107d3b51a24a21a1a586fc462b2915b4af79
arduino-neopixel.ino
arduino-neopixel.ino
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 5 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter...
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 5 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter...
Revert "change command protocol (char to string)"
Revert "change command protocol (char to string)" This reverts commit 4252b97f2a81e60d5e9705a1091db3b0ab9dbc51.
Arduino
mit
karappo/ptw-wheel
49a282277c5c4ecd0e5f87340e642cedede1cfdb
examples/Modules/SERVO/SERVO.ino
examples/Modules/SERVO/SERVO.ino
/* ******************************************************************************* * Copyright (c) 2021 by M5Stack * Equipped with M5Core sample source code * 配套 M5Core 示例源代码 * Visit the website for more information:https://docs.m5stack.com/en/module/servo * 获取更多资料请访问:https://...
/* ******************************************************************************* * Copyright (c) 2021 by M5Stack * Equipped with M5Core sample source code * 配套 M5Core 示例源代码 * Visit the website for more information:https://docs.m5stack.com/en/module/servo * 获取更多资料请访问:https://...
Update SERVO.ino
Update SERVO.ino
Arduino
mit
m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack
07172219f5c6a90d396a84e9fc483c4b9688a62a
nrf52/nrf52.ino
nrf52/nrf52.ino
// Copyright (c) Sandeep Mistry. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Import libraries (BLEPeripheral depends on SPI) #include <SPI.h> #include <BLEPeripheral.h> #include <Arduino.h> #include <Adafruit_GFX.h> #include <Adafruit_Ne...
// Copyright (c) Sandeep Mistry. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Import libraries (BLEPeripheral depends on SPI) #include <SPI.h> #include <BLEPeripheral.h> #include <Arduino.h> #include <Adafruit_GFX.h> #include <Adafruit_Ne...
Add error messages
Add error messages
Arduino
mit
cujomalainey/MapsUp,cujomalainey/MapsUp,cujomalainey/MapsUp
aed4e0adbe33f5cc2c2f9a107e0b9e602a9bd923
water_heater_monitor/thermometer.ino
water_heater_monitor/thermometer.ino
/** * Wrapper for a thermometer. * * In this case it's a BMP085 barometric sensor, because that's what I had laying around. */ #include <Wire.h> #include <I2Cdev.h> #include <BMP085.h> BMP085 barometer; boolean hasThermometer; boolean initThermometer () { Serial.print(F("Setting up BMP085 for temperature..."))...
/** * Wrapper for a thermometer. * * In this case it's a BMP085 barometric sensor, because that's what I had laying around. */ #include <Wire.h> #include <Adafruit_BMP085.h> Adafruit_BMP085 barometer; boolean hasThermometer; boolean initThermometer () { Serial.print(F("Setting up BMP085 for temperature...")); ...
Switch to Adafruit's BPM085 library.
Switch to Adafruit's BPM085 library. Lighter code and saves about 10 bytes.
Arduino
isc
lectroidmarc/water-heater-monitor
2634db2f730639f96f6314d07f51009b3dca5345
arduino/accelerometer/accelerometer.ino
arduino/accelerometer/accelerometer.ino
/****************************************************************************** MMA8452Q_Basic.ino SFE_MMA8452Q Library Basic Example Sketch Jim Lindblom @ SparkFun Electronics Original Creation Date: June 3, 2014 https://github.com/sparkfun/MMA8452_Accelerometer This sketch uses the SFE_MMA8452Q library to initialize...
/****************************************************************************** MMA8452Q_Basic.ino SFE_MMA8452Q Library Basic Example Sketch Jim Lindblom @ SparkFun Electronics Original Creation Date: June 3, 2014 https://github.com/sparkfun/MMA8452_Accelerometer This sketch uses the SFE_MMA8452Q library to initialize...
Add pitch and roll angles in accelerometer example
Add pitch and roll angles in accelerometer example
Arduino
lgpl-2.1
maltboard/malt-java
082e756b78c267e60d69e27d4023715a85bc66c8
2018-Firefighter/2018-Firefighter.ino
2018-Firefighter/2018-Firefighter.ino
#include <Servo.h> #include <Ultrasonic.h> #define LEFT_SERVO_PIN 4 #define RIGHT_SERVO_PIN 5 #define IR_PIN 6 #define EXTINGUISHER_PIN 7 #define MIC_PIN 43 #define FLAME_LED 9 #define MIC_LED 11 #define BABY_LED 17 #define CAMERA 15 #define CAMERA_LED 16 #define FRONT_US_ECHO 2 #define FRONT_US_TRIG 3 #define...
#include <Servo.h> #include <Ultrasonic.h> #define LEFT_SERVO_PIN 4 #define RIGHT_SERVO_PIN 5 #define IR_PIN 6 #define EXTINGUISHER_PIN 7 #define MIC_PIN 43 #define FLAME_LED 9 #define MIC_LED 11 #define BABY_LED 17 #define CAMERA 15 #define CAMERA_LED 16 #define FRONT_US_ECHO 2 #define FRONT_US_TRIG 3 #define...
Fix compilation errors
Fix compilation errors
Arduino
mit
GW-Robotics/2018-Firefighter
5f8e04b2ea2d7274d94f18e59caffc749687fec3
IHM595/exemples/Cock_HEX/Cock_HEX.ino
IHM595/exemples/Cock_HEX/Cock_HEX.ino
/* * Marcelo H Moraes * marceloh220@hotmail.com * * A simple hexadecimal display clock. * Well, not so simples. * All the fancy is only for demonstration. * You don't realy need of a String object to print something. */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; IHM595 board(2,3,4); void setup() { ...
/* * Marcelo H Moraes * marceloh220@hotmail.com * * A simple hexadecimal display clock. * Well, not so simples. * All the fancy is only for demonstration. * You don't realy need of a String object to print something. */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; //(Data pin, Clock pin, Enable pin) IHM...
Update Cock_HEX.ino
Update Cock_HEX.ino
Arduino
mit
marceloh220/Arduino,marceloh220/Arduino
0859e9c843c6256b16d45fd732915c2d239ec0d8
brotherKH930_arduino.ino
brotherKH930_arduino.ino
#include "brotherKH930.h" PinSetup pins = kniticV2Pins(); BrotherKH930 brother(pins, onChange, 0); void setup() { Serial.begin(115200); brother.start(); Serial.println("Ready."); for (int i=0; i<200; i++) brother.needle(0, false); } boolean changed = true; void onChange(void* c) { changed = true; } ...
#include "brotherKH930.h" PinSetup pins = kniticV2Pins(); BrotherKH930 brother(pins, onChange, 0); void setup() { Serial.begin(115200); brother.start(); Serial.println("Ready."); for (int i=0; i<200; i++) brother.needle(0, false); } boolean changed = true; void onChange(void* c) { changed = true; } ...
Change serial interface to be more consistent.
Change serial interface to be more consistent.
Arduino
apache-2.0
msiegenthaler/brotherKH930_arduino
93947dd626db991686d99756a5549558a3b86ff4
examples/DMXOutputUsingUSART/DMXOutputUsingUSART.ino
examples/DMXOutputUsingUSART/DMXOutputUsingUSART.ino
/* DMXOutputUsingUSART.ino This sketch demonstrates converting Art-Net or sACN packets recieved using an Arduino Ethernet Shield to DMX output using serial output to a driver chip. This sketch requires software such as LXConsole, QLC+ or DMXWorkshop that can send Art-Net or sACN packets to the Arduino. The sk...
/* DMXOutputUsingUSART.ino This sketch demonstrates converting Art-Net or sACN packets recieved using an Arduino Ethernet Shield to DMX output using serial output to a driver chip. This sketch requires software such as LXConsole, QLC+ or DMXWorkshop that can send Art-Net or sACN packets to the Arduino. The sk...
Update DMXOutputUsingUSART.ino
Update DMXOutputUsingUSART.ino add "Ethernet.maintain()" to loop. This should enable obtaining an ip-adress via dhcp if inital try fails. A quick basic test resulted in a success
Arduino
bsd-3-clause
claudeheintz/LXDMXEthernet_library,claudeheintz/LXDMXEthernet_library
fb7430615e2907fe2b732ce6ff4b79d49c625404
firmware/examples/Transports/SparkCore/SparkCore.ino
firmware/examples/Transports/SparkCore/SparkCore.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 SparkCore.ino
Update SparkCore.ino
Arduino
mit
chieftuscan/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark
f608d457d58510bae577dfb94ebaf9d188449108
examples/raw-feather/raw-feather.ino
examples/raw-feather/raw-feather.ino
/* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1 Copyright notice: This file copyright (C) 2017 by MCCI Corporation 3520 Krums Corners Road It...
/* raw-feather.ino Sat Apr 1 2017 22:26:22 tmm */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.5.0 Sat Apr 1 2017 22:26:22 tmm Edit level 1 Copyright notice: This file copyright (C) 2017 by MCCI Corporation 3520 Krums Corners Road It...
fix commentary
fix commentary
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
16682af93e8ff81c09836fc9a45970214180b7e4
examples/TestRoutine/TestRoutine.ino
examples/TestRoutine/TestRoutine.ino
/* * This is a full-fledged test routine used to validate Phoenard operation. * All connections to on-board components are tested where possible. * For sensors, an additional damage check is performed. * This means sample data is measured and the range/deviation is checked. * Heavily fluctuating or extreme outputs...
/* * This is a full-fledged test routine used to validate Phoenard operation. * All connections to on-board components are tested where possible. * For sensors, an additional damage check is performed. * This means sample data is measured and the range/deviation is checked. * Heavily fluctuating or extreme outputs...
Move firmware code up a little
Move firmware code up a little Generation delay made it seem the screen glitched half.
Arduino
mit
Phoenard/Phoenard,Phoenard/Phoenard
3aa9c4124dc5990bbffcc157a64709a99a626771
home/moz4r/mouthcontrol_hardware.ino
home/moz4r/mouthcontrol_hardware.ino
// HARDWARE MOUTHCONTROL // // dedicated arduino // Read voltage value from speaker and move jaw // First POC version, need to be calibrated and fixed : // If you want test it please read Analog values when you have NO SOUND and enter MIN , min is the value when robot speak // I use AREF 1 volt and sound come from una...
// HARDWARE MOUTHCONTROL // // dedicated arduino // Read voltage value from speaker and move jaw // First POC version, need to be calibrated and fixed : // If you want test it please read Analog values when you have NO SOUND and enter MIN , min is the value when robot speak // I use AREF 1 volt and sound come from una...
Update mouthcontrol_hardware.ino (#41)
Update mouthcontrol_hardware.ino (#41) mouth sync improvement
Arduino
apache-2.0
MyRobotLab/pyrobotlab,MyRobotLab/pyrobotlab,MyRobotLab/pyrobotlab,MyRobotLab/pyrobotlab,MyRobotLab/pyrobotlab
4280a09d05c339d7374d65474e3f5228f0718838
examples/raw-feather/raw-feather.ino
examples/raw-feather/raw-feather.ino
/* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2 Copyright notice: This file copyright (C) 2017, 2018 by MCCI Corporation 3520 Krums Corners...
/* raw-feather.ino Tue Jan 23 2018 10:25:50 chwon */ /* Module: raw-feather.ino Function: Slightly improved Raw test example, for Adafruit Feather M0 LoRa Version: V0.7.0 Tue Jan 23 2018 10:25:50 chwon Edit level 2 Copyright notice: This file copyright (C) 2017, 2018 by MCCI Corporation 3520 Krums Corners...
fix commentary
fix commentary
Arduino
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
6aef8ef33282b073c613059d1643b11c26401b37
AnimatedGIFs.ino
AnimatedGIFs.ino
/* * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels * * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby granted, free of char...
/* * Animated GIFs Display Code for SmartMatrix and HUB75 RGB LED Panels * * Uses SmartMatrix Library written by Louis Beaudoin at pixelmatix.com * * Written by: Craig A. Lindley * * Copyright (c) 2014 Craig A. Lindley * Refactoring by Louis Beaudoin (Pixelmatix) * * Permission is hereby granted, free of char...
Remove accidentally committed test code
Remove accidentally committed test code
Arduino
mit
pixelmatix/AnimatedGIFs,pixelmatix/AnimatedGIFs
a388b1fd6746be117c621f43e11e04ad87f86b34
examples/statsd_basic/statsd_basic.ino
examples/statsd_basic/statsd_basic.ino
#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <Statsd.h> // Create the UDP object and configure the StatsD client. WiFiUDP udp; // or EthernetUDP, as appropriate. Statsd statsd(udp, "192.168.0.16", 8125); void setup() { const char* ssid = "my_wifi_ssid"; const char* wifi_password = "my_wifi_password";...
#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <Statsd.h> // Create the UDP object and configure the StatsD client. WiFiUDP udp; // or EthernetUDP, as appropriate. Statsd statsd(udp, "192.168.0.16", 8125); void setup() { const char* ssid = "my_wifi_ssid"; const char* wifi_password = "my_wifi_password";...
Remove note about tags in basic example
Remove note about tags in basic example
Arduino
mit
aelse/ArduinoStatsd
57db0b8066af91957e52bc3a7690038ec17d812b
arduino/TestProgram1/TestProgram1.ino
arduino/TestProgram1/TestProgram1.ino
#include <Servo.h> Servo right; Servo left; void Move_Forward(int speed) { //0 //from 0-90 //moves forward right.write(180-speed); left.write(speed); } void Move_Backward(int speed) { //180 //moves backward right.write(180-speed); left.write(speed); } void Move_Right(int speed) { //0 //move...
#include <Servo.h> Servo right; Servo left; // Moves the car forward (0-89), backward (91-180), or stop (90). void Move(int speed) { right.write(180 - speed); left.write(speed); } void Turn_Right(int speed) { //0 //moves right right.write(180 - speed); left.write(90); } void Turn_Left(int speed) { //...
Update move function
Update move function
Arduino
mit
ebkalderon/gesturebot,ebkalderon/gesturebot
809558ce3db10a7b80b19b5248327782bb0318b3
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser GuZheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ // Port I/O defines #define THRESHOLD 500 #define LASTPORT 7 #define BUTTONPORT 2 // MIDI property defines #define VOLUME 0x7F #define DELAY 0 // MIDI command defines #define NOTEON 0x90 #define NOTEOFF 0x80 #define C...
/* Code for laser GuZheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ // Port I/O defines #define THRESHOLD 500 #define LASTPORT 7 #define BUTTONPORT 2 // MIDI property defines #define VOLUME 0x7F #define DELAY 0 // MIDI command defines #define NOTEON 0x90 #define NOTEOFF 0x80 #define C...
Use array for instruments
Use array for instruments Use an array to store instruments, allowing us to cycle between instruments with the press of a button. The nice thing is you can add more instruments relatively easily, as long as timidity supports it. If timidity has no output, you may need to install an extended sound font for timidty, su...
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
548dae3ba2a18a5c825df5d80f00786f3ad2bb75
ntptask.ino
ntptask.ino
void ntpTask( void * pvParameters ) { const char * NTPpool = "pool.ntp.org"; const char * defaultTimezone = "CET-1CEST,M3.5.0/2,M10.5.0/3"; static char NTPpoolAdress[20]; if ( COUNTRY_CODE_ISO_3166 ) snprintf( NTPpoolAdress, sizeof( NTPpoolAdress ), "%s.%s", COUNTRY_CODE_ISO_3166, NTPpool ); else...
void ntpTask( void * pvParameters ) { const char * NTPpool = "pool.ntp.org"; const char * defaultTimezone = "CET-1CEST,M3.5.0/2,M10.5.0/3"; static char NTPpoolAdress[20]; if ( COUNTRY_CODE_ISO_3166 ) snprintf( NTPpoolAdress, sizeof( NTPpoolAdress ), "%s.%s", COUNTRY_CODE_ISO_3166, NTPpool ); else...
Reset reason formatting fixed.
Reset reason formatting fixed.
Arduino
mit
CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32
e02e9fb1e8da4f8d9053b0997423036a1725bf8a
CS26410.ino
CS26410.ino
#include <SharpIR.h> #include <NewPing.h> #include <Servo.h> #define LDRLeft A0 #define LDRCenter A1 #define LDRRight A2 #define LDRTop A4 #define SharpIr A3 #define SerialRx 0 #define SerialTx 1 #define IrRx 2 #define IrTx 3 #define PB1 4 #define Dright 5 #define Dleft 6 #define LEDRed 7 #define Ping1 8 #define Ping...
#include <SharpIR.h> #include <NewPing.h> #include <Servo.h> #define LDRLeft A0 #define LDRCenter A1 #define LDRRight A2 #define LDRTop A4 #define SharpIr A3 #define SerialRx 0 #define SerialTx 1 #define IrRx 2 #define IrTx 3 #define PB1 4 #define Dright 5 #define Dleft 6 #define LEDRed 7 #define Ping1 8 #define Ping...
add starting cal values for servos
add starting cal values for servos
Arduino
mit
naturesyouth/CS26410
c7a61d78625e5d8af4b7fa2d9e08e81f4ec932e4
main/main.ino
main/main.ino
/* ZoomMRT-3B_MIDI_USB Created: 13/3/2017 Author: HyDz USB Midified ZoomMRT-3B for Traktor */ #define MidiChannel 2 // channel 3 (channel 1 has value 0) #include "MIDIUSB.h" void controlChange(byte channel, byte control, byte value) { Serial.print("CC: "); Serial.print(channel); Serial.print("| ")...
/* ZoomMRT-3B_MIDI_USB Created: 13/3/2017 Author: HyDz USB Midified ZoomMRT-3B for Traktor */ #define ENABLE_DEBUG 0 // Set to 1 to enable serial debug out #include "screen.h" #include "minimidi.h" #include "IOS.h" void setup() { #if ENABLE_DEBUG Serial.begin(115200); Serial.println("start setup")...
Update main.ino
Update main.ino Lot of Changes !!!!! Add a Screen DEBUG ON/OFF option Use less external libraries Merge inputs and outputs in a same file Add a file for Midi config
Arduino
mit
HyDz/ZoomMRT-3B_MIDI_USB
5cc47f2dbf96f07c6a753c0b29d600c7bb4a0d66
Wemos/ATSDashboard.ino
Wemos/ATSDashboard.ino
#include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <ESP8266WiFi.h> // SCL GPIO5 // SDA GPIO4 #define OLED_RESET 0 // GPIO0 Adafruit_SSD1306 display(OLED_RESET); #define NUMFLAKES 10 #define XPOS 0 #define YPOS 1 #define DELTAY 2 const char* ssid = "WIFI_SSID_HERE...
#include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <ESP8266WiFi.h> // SCL GPIO5 // SDA GPIO4 #define OLED_RESET 0 // GPIO0 Adafruit_SSD1306 display(OLED_RESET); #define NUMFLAKES 10 #define XPOS 0 #define YPOS 1 #define DELTAY 2 const char* ssid = "WIFI_SSID_HERE...
Update ATSDashboard.ino
Update ATSDashboard.ino
Arduino
mit
ardaozkal/IoT_ATS_Dashboard
0330cd69aceb363cdd41e581355a2b492355b805
watermeter/core.ino
watermeter/core.ino
String makeMacAddress() { String mac = ""; for (int i = 0; i < macAddress.length(); i++) { if (macAddress[i] != ':') mac += macAddress[i]; } return mac; } /* For read and write to EEPROM */ unsigned long crc_update(unsigned long crc, byte data) { byte tbl_idx; tbl_idx = crc ^ (data >> (0 * 4)); ...
String makeMacAddress() { String mac = ""; for (int i = 0; i < macAddress.length(); i++) { if (macAddress[i] != ':') mac += macAddress[i]; } return mac; } /* For read and write to EEPROM */ unsigned long crc_update(unsigned long crc, byte data) { byte tbl_idx; tbl_idx = crc ^ (data >> (0 * 4)); ...
Fix os_timer_disarm()
Fix os_timer_disarm()
Arduino
unlicense
slacky1965/watermeter,slacky1965/watermeter,slacky1965/watermeter,slacky1965/watermeter
f040440d728674cf715d61c51f17b33a77aeeb6b
examples/DMX2Ethernet/DMX2Ethernet.ino
examples/DMX2Ethernet/DMX2Ethernet.ino
/**************************************************************************/ /*! @file DMX2Ethernet.ino @author Claude Heintz @license BSD (see LXDMXEthernet.h) @copyright 2015-2017 by Claude Heintz Example using LXDMXEthernet_Library for input from DMX to Art-Net or E1.31 sACN Art-...
/**************************************************************************/ /*! @file DMX2Ethernet.ino @author Claude Heintz @license BSD (see LXDMXEthernet.h) @copyright 2015-2017 by Claude Heintz Example using LXDMXEthernet_Library for input from DMX to Art-Net or E1.31 sACN Art-...
remove unneeded includes
remove unneeded includes
Arduino
bsd-3-clause
claudeheintz/LXDMXEthernet_library,claudeheintz/LXDMXEthernet_library
796006edfb5cf85fbbe8e49399d2b354f5106704
examples/SimpleSensor/SimpleSensor.ino
examples/SimpleSensor/SimpleSensor.ino
#include <Homie.h> const int TEMPERATURE_INTERVAL = 300; unsigned long last_temperature_sent = 0; void setupHandler() { // Do what you want to prepare your sensor } void loopHandler() { if ((millis() - last_temperature_sent >= TEMPERATURE_INTERVAL * 1000UL || last_temperature_sent == 0) && !shutters->moving()) ...
#include <Homie.h> const int TEMPERATURE_INTERVAL = 300; unsigned long last_temperature_sent = 0; void setupHandler() { // Do what you want to prepare your sensor } void loopHandler() { if ((millis() - last_temperature_sent >= TEMPERATURE_INTERVAL * 1000UL || last_temperature_sent == 0)) { float temperature...
Fix SimpleSensor example
Fix SimpleSensor example
Arduino
mit
euphi/homie-esp8266,marvinroger/homie-esp8266,marvinroger/homie-esp8266,euphi/homie-esp8266,euphi/homie-esp8266,enavarro222/homie-esp8266,marvinroger/homie-esp8266,marvinroger/homie-esp8266,euphi/homie-esp8266
5c02ed5cf82846cfc2e122e8b6ca8bad5c8e2903
examples/IniFileExample/IniFileExample.ino
examples/IniFileExample/IniFileExample.ino
#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"); ...
#include <SD.h> #include <SPI.h> #include <IPAddress.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"); ...
Use IPAddress.h instead of Ethernet.h
Use IPAddress.h instead of Ethernet.h
Arduino
lgpl-2.1
stevemarple/IniFile,stevemarple/IniFile
68bf079d075748a4bb718c1ec05f1aadd6122cfe
volvo_hid.ino
volvo_hid.ino
#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 KEY_TIMEOUT 100 #define MOUSE_BASE_SPEED 8.0 #define MOUSE_SPEEDUP 3 #define SYN_FIELD 0x55 #define SWM_ID 0x20 #define NAV_UP 1 #define NAV_DO...
#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 KEY_TIMEOUT 100 #define MOUSE_BASE_SPEED 8 #define MOUSE_SPEEDUP 3 #define SYN_FIELD 0x55 #define SWM_ID 0x20 #define NAV_UP 1 #define NAV_DOWN...
Use int for mouse speed
Use int for mouse speed
Arduino
mit
laurynas/volvo_hid
c0bb0a922a676c65e081e19f55c923ab81fe9259
examples/OLED_SSD1306_Demo/OLED_SSD1306_Demo.ino
examples/OLED_SSD1306_Demo/OLED_SSD1306_Demo.ino
/**The MIT License (MIT) Copyright (c) 2015 by Daniel Eichhorn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
/**The MIT License (MIT) Copyright (c) 2015 by Daniel Eichhorn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
Use the denbit library too
Use the denbit library too
Arduino
mit
theapi/denbit,theapi/denbit
c519c1f3a64386d58ebea1153c01546aa5e78fc1
src/monitor-firmware.ino
src/monitor-firmware.ino
// Firmware for monitor board #include "debounced_switch.h" #include "edge_trigger.h" #include "mx7219.h" #include "pins.h" #include "serialstatemachine.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; // Status bits byte status_bits; enum StatusBitMask { SB_RWBAR...
// Firmware for monitor board #include "debounced_switch.h" #include "edge_trigger.h" #include "mx7219.h" #include "pins.h" #include "serialstatemachine.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; // Status bits byte status_bits; enum StatusBitMask { SB_RWBAR...
add single cycle to CLI
add single cycle to CLI
Arduino
mit
rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri
0a8a8fce263bbb8941902fb12af5050801925c0a
src/Gortobot_v3c.ino
src/Gortobot_v3c.ino
/* Gortobot v3c */ // TODO: // battery classes, abstract, fake // gps classes, abstract, fake // get rid of warnings in build log <<<<<<< HEAD // merge back into master ======= // vref maxes at 4.096, do something about this >>>>>>> Event-driven_serials // Program Modes (config) #include "configs/config.h" // Includ...
/* Gortobot v3c */ // TODO: // battery classes, abstract, fake // gps classes, abstract, fake // get rid of warnings in build log // merge back into master // vref maxes at 4.096, do something about this // Program Modes (config) #include "configs/config.h" // Includes #include <EEPROM.h> // for saving the runNum af...
Clean merge conflict text
Clean merge conflict text
Arduino
mit
cgorton1313/gortobot,cgorton1313/gortobot
ac98fdd660f8ef0c046ce41e460806deb7aa1370
firmware/firmware.ino
firmware/firmware.ino
#include <ESP8266WiFi.h> #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_Client.h" #define WLAN_SSID "YOUR SSID" #define WLAN_PASS "YOUR PASSWORD" #define SERVER "minibian" #define SERVERPORT 1883 #define LED 4 #define DS18B20 5 // Dallas DS18B20 digital thermometer unsigned int brightness ...
#include <ESP8266WiFi.h> #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_Client.h" #define WLAN_SSID "YOUR SSID" #define WLAN_PASS "YOUR PASSWORD" #define SERVER "minibian" #define SERVERPORT 1883 #define LED 4 #define DS18B20 5 // Dallas DS18B20 digital thermometer unsigned int i = 0; uns...
Update firmware to check if the led strip is already on/off and correspondingly apply new changes or not
Update firmware to check if the led strip is already on/off and correspondingly apply new changes or not
Arduino
mit
nicoandra/leddimmer,stelioskat/esp8266-led-dimmer