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 |
|---|---|---|---|---|---|---|---|---|---|
f247d5cf595ea9d137951a4be184c03e1cdf490d | main/main.ino | main/main.ino | #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] = {
... | #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] = {
... | add cases, cleanup | add cases, cleanup
| Arduino | apache-2.0 | srenner/meguinauge |
e350575e23e06c7068785628fac97ac85a577b0f | dynamixel_workbench_toolbox/DynamixelWorkbench/example/o_Monitor/o_Monitor.ino | dynamixel_workbench_toolbox/DynamixelWorkbench/example/o_Monitor/o_Monitor.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 monitor example | add monitor example
| Arduino | apache-2.0 | ROBOTIS-GIT/dynamixel-workbench,ROBOTIS-GIT/dynamixel-workbench |
a1571995e1b8b30b21ff7f7412bf0684365cc914 | tempserver.ino | tempserver.ino | #include <SPI.h>
#include <Ethernet.h>
// Input pins
const int insideTempPin = A0;
const int photoresistorPin = A1;
const int thermistorPin = A2;
// 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, 0x0E, 0x9A, 0xF... | #include <SPI.h>
#include <Ethernet.h>
// Input pins
const int photoresistorPin = A1;
// 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, 0x0E, 0x9A, 0xFC };
IPAddress ip(192, 168, 1, 10);
// Initialize the Ether... | Use a NTC sensor also for indoor temperature measurement | Use a NTC sensor also for indoor temperature measurement
| Arduino | mit | terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger,terop/env-logger |
6d91f19df9e9126e6170fae2ae828bc73c66e320 | examples/h_SDI-12_slave_implementation/h_SDI-12_slave_implementation.ino | examples/h_SDI-12_slave_implementation/h_SDI-12_slave_implementation.ino | /**
* @file h_SDI-12_slave_implementation.ino
* @copyright (c) 2013-2020 Stroud Water Research Center (SWRC)
* and the EnviroDIY Development Team
* This example is published under the BSD-3 license.
* @date 2016
* @author D. Wasielewski
*
* @brief Example H: Using SDI-12 in ... | /**
* @file h_SDI-12_slave_implementation.ino
* @copyright (c) 2013-2020 Stroud Water Research Center (SWRC)
* and the EnviroDIY Development Team
* This example is published under the BSD-3 license.
* @date 2016
* @author D. Wasielewski
*
* @brief Example H: Using SDI-12 in ... | Update h_SDI-12_slave_implementation.ino | Update h_SDI-12_slave_implementation.ino
To avoid the chance that the slave has to enter in handle interrupt pin vector, we set de Hold mode. Doing that we reinforce that sensor will do all the code they have to do and continue to listen just after forceListen() function set it again.
| Arduino | lgpl-2.1 | StroudCenter/Arduino-SDI-12 |
d19e808a9792dbc198b09218354714ab0d8e6fe3 | arduino/DC_motor_CAN/DC_motor_CAN.ino | arduino/DC_motor_CAN/DC_motor_CAN.ino | // demo: CAN-BUS Shield, send data
// loovee@seeed.cc
#include <mcp_can.h>
#include <SPI.h>
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(SPI_CS_PIN); // Set CS pin
unsigned char rotate[8] = {0x... | // demo: CAN-BUS Shield, send data
// loovee@seeed.cc
#include <mcp_can.h>
#include <SPI.h>
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(SPI_CS_PIN); // Set CS pin
unsigned char rotate[8] = {0x... | Fix motor stop and on. | Modify: Fix motor stop and on.
| Arduino | apache-2.0 | hdh7485/AVEES_scale_car,hdh7485/AVEES_scale_car,hdh7485/AVEES_scale_car |
795a9b66e51758b49cd300fe512c67a318abe885 | little-switches/arduino/3_setup-rel/3_setup-rel.ino | little-switches/arduino/3_setup-rel/3_setup-rel.ino | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | #include <PS2Keyboard.h>
const int DataPin = 9;
const int IRQpin = 3;
#define pot A3
PS2Keyboard keyboard;
long t1 = 0;
long t2 = 0;
long t3 = 0;
long t4 = 0;
long t5 = 0;
long t6 = 0;
long t7 = 0;
long t8 = 0;
int tempo = 0;
void setup() {
delay(1000);
keyboard.begin(DataPin, IRQpin);
Serial.begin(9600);
... | fix code | fix code
| Arduino | unlicense | paolocavagnolo/plastik-art_democracy |
a5e8f891820f63d727595dfe07b6ccb7a10d4657 | src/monitor-firmware.ino | src/monitor-firmware.ino | // Firmware for monitor board
#include "debounced_switch.h"
#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;
// Status bits
byte status_bits;
// Showing display test
byte showing_dt;
const int DPY_TST_DURATION = 500; ... | // Firmware for monitor board
#include "debounced_switch.h"
#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;
// Status bits
byte status_bits;
// Showing display test
byte showing_dt;
const int DPY_TST_DURATION = 500; ... | speed up demo mode | speed up demo mode
| Arduino | mit | rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri |
acaf0e093e24d08ecf537ed1fa05987c9c712934 | 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 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 checkInternet.py installed in /... | /* 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... | Move pingGoogle.py to ~/Python/; editor main comment | Move pingGoogle.py to ~/Python/; editor main comment
| Arduino | mit | karlduino/RouterReset,karlduino/RouterReset |
11352d2fbdf8b4e8f50011b70a35cb02b9af1d79 | Arduino/ADXL335/ADXL335.ino | Arduino/ADXL335/ADXL335.ino | int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
int zpin = A3;
int ypin = A4;
int xpin = A5;
void setup() {
Serial.begin(115200);
pinMode(vinpin, OUTPUT); digitalWrite(vinpin, HIGH);
pinMode(gndpin, OUTPUT); digitalWrite(gndpin, LOW);
pinMode(voutpin, INPUT);
pinMode(xpin, INPUT);
pinMode(ypin, INPUT);... | int vinpin = A0;
int voutpin = A1;
int gndpin = A2;
int zpin = A3;
int ypin = A4;
int xpin = A5;
void setup() {
Serial.begin(9600);
pinMode(vinpin, OUTPUT); digitalWrite(vinpin, HIGH);
pinMode(gndpin, OUTPUT); digitalWrite(gndpin, LOW);
pinMode(voutpin, INPUT);
pinMode(xpin, INPUT);
pinMode(ypin, INPUT);
... | Change baud rate to 9600. | Change baud rate to 9600.
| Arduino | bsd-3-clause | damellis/ESP,damellis/ESP |
196c9552b33538961c4d5f204dc4fced24d6935c | examples/Pins/CosaPins/CosaPins.ino | examples/Pins/CosaPins/CosaPins.ino | /**
* @file CosaPins.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-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 th... | /**
* @file CosaPins.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-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 th... | Clean up. | Clean up.
| Arduino | lgpl-2.1 | jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa |
ec841e5b93ce08dd015f28282e2edcb2c8e28862 | arduino/libraries/SequantoAutomation/examples/hello_world/hello_world.ino | arduino/libraries/SequantoAutomation/examples/hello_world/hello_world.ino | /* To try this example use the menu item:
*
* Tools->Generate Automation
*
* Before compiling.
*
* BEGIN AUTOMATION
*
* function /hello hello_world
* property /led led_get led_set
*
* END AUTOMATION
*/
static SQBool s_led = SQ_FALSE;
SQBool led_get ()
{
return s_led;
}
void led_get ( SQBool v )
{
... | /* To try this example use the menu item:
*
* Tools->Generate Automation
*
* Before compiling.
*
* BEGIN AUTOMATION
*
* function /mult multiply
* property /led led_get led_set
* property /iterations iterations_get
*
* END AUTOMATION
*/
const int LED = 13;
int multiply(int a, int b)
{
return a*b;
}
... | Improve hello_world, implement /led and add /iterations and /multiply - remove /hello_world - something bad happens which makes the arduino spew out garbage. | Improve hello_world, implement /led and add /iterations and /multiply - remove /hello_world - something bad happens which makes the arduino spew out garbage.
| Arduino | apache-2.0 | micronpn/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,seqzap/sequanto-automation,micronpn/sequanto-automation,seqzap/sequanto-automation,rasmus-toftdahl-olesen/sequanto-automation,micronpn/... |
e85cb444f2b971c4e44bdca1e5918fbf5a09ef9a | examples/Blynk.Inject/Template_MKR1010/Template_MKR1010.ino | examples/Blynk.Inject/Template_MKR1010/Template_MKR1010.ino | /*************************************************************
This is a DEMO. You can use it only for development and testing.
You should open Setting.h and modify General options.
If you would like to add these features to your product,
please contact Blynk for Businesses:
http://www.blyn... | /*************************************************************
This is a DEMO. You can use it only for development and testing.
You should open Setting.h and modify General options.
If you would like to add these features to your product,
please contact Blynk for Businesses:
http://www.blyn... | Fix typo | Fix typo
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library |
012ef5c7b16ee3096d561d92d7d0664d66385a58 | ino/light.ino | ino/light.ino | #include "neopixel.h" // use for local build
// IMPORTANT: Set pixel PIN, COUNT, and TYPE
// Supported pixel types: WS2812, WS2812B, WS2812B2, WS2811, TM1803, TM1829, SK6812RGBW
#define PIXEL_PIN D2
#define PIXEL_COUNT 7
#define PIXEL_TYPE SK6812RGBW
#define BRIGHTNESS 200 // 0 - 255
Adafruit_NeoPixel strip = Adafru... | #include "neopixel.h" // use for local build
// IMPORTANT: Set pixel PIN, COUNT, and TYPE
// Supported pixel types: WS2812, WS2812B, WS2812B2, WS2811, TM1803, TM1829, SK6812RGBW
#define PIXEL_PIN D2
#define PIXEL_COUNT 7
#define PIXEL_TYPE SK6812RGBW
#define BRIGHTNESS 255 // 0 - 255
Adafruit_NeoPixel strip = Adafru... | Update pulse lighting settings | Update pulse lighting settings
| Arduino | mit | drejkim/o-holy-night,drejkim/o-holy-night |
50c6022aedfb58517c0e4f0263cc4c045981ac7d | src/colorpicker_v0/colorpicker_v0.ino | src/colorpicker_v0/colorpicker_v0.ino | /*
initialize
v
---------------> ready <--------------------------
| | |
(timeout) reset | ... | /*
]
initialize
v
---------------> ready <--------------------------
| | |
(timeout) reset |... | complete pseudocode and state map | complete pseudocode and state map
| Arduino | apache-2.0 | brushyfork23/colorpicker,brushyfork23/colorpicker |
4bb5b1bf5cdc78268a478b180262015b50c425ef | examples/ReadSensorData.ino | examples/ReadSensorData.ino | #include <I2CSoilMoistureSensor.h>
I2CSoilMoistureSensor sensor;
void setup() {
Serial.begin(9600);
sensor.begin(); // reset sensor
delay(1000); // give some time to boot up
string address = sensor.getAddress();
string version = sensor.getVersion();
// publish sensors info
Particle.publish("setup", ... | // This #include statement was automatically added by the Particle IDE.
#include "I2CSoilMoistureSensor/I2CSoilMoistureSensor.h"
I2CSoilMoistureSensor sensor;
void setup() {
Serial.begin(9600);
sensor.begin(); // reset sensor
delay(1000); // give some time to boot up
String address = String(sensor.getAddre... | Update ReadSensorData.ino | Update ReadSensorData.ino | Arduino | mit | jbgariel/I2CSensorParticle |
23bdba268e2593a3871d2d38ea2189e3f3674dcf | examples/analogReadIntervalTimer/analogReadIntervalTimer.ino | examples/analogReadIntervalTimer/analogReadIntervalTimer.ino | /*
This example shows how to use the IntervalTimer library and the ADC library in the Teensy 3.0/3.1
The three important objects are: the ADC, the (one or more) IntervalTimer and the same number of RingBuffer.
The ADC sets up the internal ADC, you can change the settings as usual. Enable interrupts.
T... | /*
This example shows how to use the IntervalTimer library and the ADC library in the Teensy 3.0/3.1
The three important objects are: the ADC, the (one or more) IntervalTimer and the same number of RingBuffer.
The ADC sets up the internal ADC, you can change the settings as usual. Enable interrupts.
T... | use a normal buffer | use a normal buffer
| Arduino | mit | pedvide/ADC,pedvide/ADC |
21f1501c751654c185d3e9b6c980c605807e66df | WaterTankSensor/WaterTankSensor.ino | WaterTankSensor/WaterTankSensor.ino | // Copyright the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
// device specifics
#include "Wirel... | // Copyright the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
// device specifics
#include "Wirel... | add abitility to get tank metrics | src: add abitility to get tank metrics
Signed-off-by: Michael Dawson <697f19bdc6386e09c0d34238f49474ef87a73bae@devrus.com>
| Arduino | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
2b1c4d8b0ae114ac1115dd50c29dcb700b0dcd08 | drone/WebServerESC/WebServerESC.ino | drone/WebServerESC/WebServerESC.ino | /*
* Allows control of an Electronic Speed Controller (ESC) via a web server.
* The request happens through a GET http method.
*/
#include <Servo.h>
#include <WiServer.h>
byte thestart = 0;
#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2
// Wireless configuration parameters --------------------------... | /*
* Allows control of an Electronic Speed Controller (ESC) via a web server.
* The request happens through a GET http method.
*/
#include <avr/pgmspace.h>
#include <Servo.h>
#include <WiServer.h>
byte thestart = 0;
#define WIRELESS_MODE_INFRA 1
#define WIRELESS_MODE_ADHOC 2
// Wireless configuration parameters ... | move big strings into flash memory | move big strings into flash memory | Arduino | mit | gfxblit/mylatestmoneysink,gfxblit/mylatestmoneysink,gfxblit/mylatestmoneysink |
ae6676168274dc0fd5b4d510506a0244b78b8481 | gamecubecontroller.ino | gamecubecontroller.ino | // This requires this library:
// https://github.com/arpruss/USBHID_stm32f1
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// Instructions here: http://wiki.stm32duino.com/index.php?title=Burning... | // This requires this library:
// https://github.com/arpruss/USBHID_stm32f1
// Software steps:
// Install this bootloader: https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pb12.bin?raw=true
// Instructions here: http://wiki.stm32duino.com/index.php?title=Burning... | update to use new feature report API in USBHID library | update to use new feature report API in USBHID library | Arduino | mit | arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter |
c9700c1ffe98e297abd9d5cf0ed49ec8b5a13384 | main.ino | main.ino | /* Use the FastLED library instead of the Adafruit NeoPixel library. */
#include <FastLED.h>
/* This optional setting causes Encoder to use more optimized code,
* It must be defined before Encoder.h is included. */
#define ENCODER_OPTIMIZE_INTERRUPTS
#include <Encoder.h>
/* Digital IO pins. */
#define PIN_ROTARY_ONE... | /* Use the FastLED library instead of the Adafruit NeoPixel library. */
#include <FastLED.h>
/* This optional setting causes Encoder to use more optimized code,
* It must be defined before Encoder.h is included. */
#define ENCODER_OPTIMIZE_INTERRUPTS
#include <Encoder.h>
/* Digital IO pins. */
#define PIN_ROTARY_ONE... | Reset parameters to reasonable default values | Reset parameters to reasonable default values
| Arduino | mit | ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight,ambientsound/wirelight |
a25ba9a2384e7b0feb7bad3e724888466e73eb23 | OpenStage/c_userSettings_MEGA_PCB.ino | OpenStage/c_userSettings_MEGA_PCB.ino | // Some global definitions that need to be modified by the user for the stage to work
// This file is set up for three axes, an LCD display, and a game pad. This requires a
// Mega as a lot of pins are used.
//------------------------------------------------------------------------------------------------
// * Ena... | // Some global definitions that need to be modified by the user for the stage to work
// This file is set up for three axes, an LCD display, and a game pad. This requires a
// Mega as a lot of pins are used.
//------------------------------------------------------------------------------------------------
// * Ena... | Set up PCB settings file. | Set up PCB settings file.
| Arduino | agpl-3.0 | raacampbell13/openstage,raacampbell13/openstage |
e92922c9eb86c5ebbe4fc8f1d9cf6a0419d677ff | tests/Light/ButtonTest/ButtonTest.ino | tests/Light/ButtonTest/ButtonTest.ino | #include <Adafruit_GFX.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_NeoMatrix.h>
#include <Streaming.h>
#include <Metro.h>
#include <EasyTransfer.h>
#include <LightMessage.h> // common message definition
#include <avr/wdt.h> // watchdog timer
#include "Light.h"
#include "Animations.h"
#include "ConcurrentAnimat... | #include <Adafruit_GFX.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_NeoMatrix.h>
#include <Streaming.h>
#include <Metro.h>
#include <EasyTransfer.h>
#include <LightMessage.h> // common message definition
#include <avr/wdt.h> // watchdog timer
#include "Light.h"
#include "Animations.h"
#include "ConcurrentAnimat... | change animation func | change animation func
| Arduino | mit | akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon |
674947e452577ebe8e487a9fbe175b03d8f0abe1 | Photon/Plugins/DHT/examples/dht/dht.ino | Photon/Plugins/DHT/examples/dht/dht.ino | /*******************************************************
DHT Example
This example contains 1 DHT sensor connected to pin D4
http://www.github.com/rlisle/Patriot
Written by Ron Lisle
BSD license, check LICENSE for more information.
All text above must be included in any redistribution.
Changelog:
2017-05-20: Initia... | /*******************************************************
DHT Example
This example contains 1 DHT sensor connected to pin D4
http://www.github.com/rlisle/Patriot
Written by Ron Lisle
BSD license, check LICENSE for more information.
All text above must be included in any redistribution.
Changelog:
2017-10-28: Update... | Update example | Update example
| Arduino | mit | rlisle/Patriot,rlisle/Patriot,rlisle/Patriot,rlisle/ParticleIoT,rlisle/Patriot,rlisle/ParticleIoT,rlisle/ParticleIoT |
85df58357ca6505c322d6d2adada3ab66e530534 | Launchpad_Data_Processor/Launchpad_Data_Processor.ino | Launchpad_Data_Processor/Launchpad_Data_Processor.ino |
/* 6th AUGUST 2014
========================================================================================
========================= Engineering Design 3A - FSAE TEAM 52 =========================
====================================================... |
/* 6th AUGUST 2014
========================================================================================
========================= Engineering Design 3A - FSAE TEAM 52 =========================
====================================================... | Update Launchpad_Data_Processor.ino | Update Launchpad_Data_Processor.ino
Made a few extra changes to the Xbee config:
- There is now an extra 'ATCN' command to exit command mode, meaning it starts transmitting data much more quickly
- I've added a timeout on the initial '+++' so that if the Xbee doesn't provide an OK the first time around, after 5 seco... | Arduino | mit | T52/T52_FSAE_Telemetry,T52/T52_FSAE_Telemetry |
0429a7721a6998971535c4c03b4383bbf2b6bf72 | MorseCodeDecoder.ino | MorseCodeDecoder.ino | /**
* (c) 2017 Daniel Savaria
* Released under the MIT license
*/
const int LED = LED_BUILTIN;
const int BUTTON = 7;
const int NOTHING = 0; //represents no input
const int DOT = 1; //represent dot input
const int DASH = 2; //represent dash input
unsigned long dotMillisMin = 50; //minimum length of a button press ... | /**
* (c) 2017 Daniel Savaria
* Released under the MIT license
*/
const int LED = LED_BUILTIN;
const int BUTTON = 7;
const int NOTHING = 0; //represents no input
const int DOT = 1; //represent dot input
const int DASH = 2; //represent dash input
unsigned long dotMillisMin = 50; //minimum length of a button press ... | make the serial output less debug-ish | make the serial output less debug-ish
| Arduino | mit | DTSavaria/ArduinoMorseCodeDecoder |
bd881a814680ee10c88a83649964d39cab3c2995 | rs485/RS485_UnoR3_Slave.ino | rs485/RS485_UnoR3_Slave.ino | #include <SimpleModbusSlave.h>
#include <Wire.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
#define LED 8
//////////////// registers of your slave ///////////////////
enum
{
reg0_VAL,
reg1_VAL,
HOLDING_REGS_SIZE
};
unsigned int holdi... | #include <SimpleModbusSlave.h>
#include <Wire.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
#define LED 8
//////////////// registers of your slave ///////////////////
enum
{
reg0_VAL,
reg1_VAL,
HOLDING_REGS_SIZE
};
unsigned int holdi... | Update RS485_UnoR3_Slave.ino | Update RS485_UnoR3_Slave.ino | Arduino | mit | pumanzor/modbus,pumanzor/modbus,pumanzor/modbus |
a0f3f228ad1eb293e264279d0711b3de6a0b6adc | code/oakpowerboard/oakpowerboard.ino | code/oakpowerboard/oakpowerboard.ino | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 3... | #include <Wire.h>
#include <EEPROM.h>
//https://github.com/squix78/esp8266-oled-ssd1306
#include "SSD1306.h"
#include "SSD1306Ui.h"
//Resources included with the sketch
#include "roboto_10.h"
#include "roboto_12.h"
#include "roboto_thin_20.h"
#include "images.h"
#include "eepromanything.h"
#define PULSES_PER_KWH 37... | Add Particle Cloud variable to read KWh meter remotely | Add Particle Cloud variable to read KWh meter remotely
| Arduino | cc0-1.0 | DJFliX/OakPowerBoard,DJFliX/OakPowerBoard |
edee37d21d8b1c8918ec7e715d2ba94e9d33362c | src/light.ino | src/light.ino | /**
* Ai-Thinker RGBW Light Firmware - Light Module
*
* The Light module contains all the code to process incoming commands and set
* the light attributes (RGBW, brightness, etc.) accordingly.
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please vi... | /**
* Ai-Thinker RGBW Light Firmware - Light Module
*
* The Light module contains all the code to process incoming commands and set
* the light attributes (RGBW, brightness, etc.) accordingly.
*
* This file is part of the Ai-Thinker RGBW Light Firmware.
* For the full copyright and license information, please vi... | Implement MQTT availability topic for HomeAssistant | Implement MQTT availability topic for HomeAssistant
| Arduino | mit | stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight |
3751c5c00d43a920db54281f693e0fab0341d2c2 | CoreIR.ino | CoreIR.ino | /*
*
* I-lap "transponder" compatible IR transmitter for RC timing system
*
* Type in a 7-digit ID and an alternate ID into the define fields before compiling.
* Note that using non-random ID numbers will increase your chances of encountering
* another unit using the same ID.
*
* !!!!IDs with repeated numbers may not... | /*
*
* I-lap "transponder" compatible IR transmitter for RC timing system
*
* Type in a 7-digit ID and an alternate ID into the define fields before compiling.
* Note that using non-random ID numbers will increase your chances of encountering
* another unit using the same ID.
*
* !!!!IDs with repeated numbers may not... | Clean up ugly hacks for easyracelaptimer option | Clean up ugly hacks for easyracelaptimer option
| Arduino | mit | slacker87/CoreIR,slacker87/CoreIR |
34e76ede0429485eb044c88737e59b3fa11c9c12 | cmdMULTIsens/src/sketch.ino | cmdMULTIsens/src/sketch.ino | /*
cmdMULTI sketch
*/
#include <avr/pgmspace.h>
#include "ChipTemp.h"
#include <VBAT.h>
#include <TMP36.h>
#include <DHT.h>
#include <OneWire.h>
//#include <DS18B20.h>
// An LED is connected to pin 3
#define ActivityLED 3
// measurement pin of DHT22 is connected to digital pin 4
#define Dht22Pin 4
#define DhtTy... | /*
cmdMULTI sketch
*/
#include <avr/pgmspace.h>
#include "ChipTemp.h"
#include <VBAT.h>
#include <TMP36.h>
#include <DHT.h>
#include <OneWire.h>
//#include <DS18B20.h>
// An LED is connected to pin 3
#define ActivityLED 3
// measurement pin of DHT22 is connected to digital pin 4
#define Dht22Pin 4
#define DhtTy... | Remove T0 | Remove T0
| Arduino | mit | Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino |
7bc7e761bfd10e2a8b886e30eb87b8c1200ce025 | shira-spider/shira-spider.ino | shira-spider/shira-spider.ino |
#include "LED.h"
#include "SPIDER.h"
#include "Sleep.h"
#include "SoftwareSerial.h"
// https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299#Sample_Code
#include "DFRobotDFPlayerMini.h"
#include "NewPing.h"
#define VOLUME 30
#define NR_LEDS 5
#define TRIGGER_PIN 6
#define ECHO_PIN 7
#define MAX_DISTANCE 400
LED leds[... |
#include "LED.h"
#include "SPIDER.h"
#include "Sleep.h"
#include "SoftwareSerial.h"
// https://wiki.dfrobot.com/DFPlayer_Mini_SKU_DFR0299#Sample_Code
#include "DFRobotDFPlayerMini.h"
#include "NewPing.h"
#define VOLUME 30
#define NR_LEDS 5
#define TRIGGER_PIN 6
#define ECHO_PIN 7
#define MAX_DISTANCE 400
LED leds[... | move to 5feet | move to 5feet
| Arduino | artistic-2.0 | craighagan/HalloweenCostumes,craighagan/HalloweenCostumes,craighagan/HalloweenCostumes |
96bb18ad60fd19c6ba40f1ced872e003caf620c4 | arduino_sketches/PGA309/testPin_I2C/testPin_I2C.ino | arduino_sketches/PGA309/testPin_I2C/testPin_I2C.ino | #include <Wire.h>
#include <Arduino.h>
#include "PGA309.h"
#include "ADS1110.h"
#include "EEPROM24C02.h"
#include "Util.h"
#define PGA309ADDR 0x40
#define ADS1110ADDR 0x49
#define EEPROM24C02ADDR 0x50
#define REG1 0x03C6
#define REG2 0xE77B
#define REG3 0x0500
#define REG4 0xE700
#define REG6 0x0600
#define ADSREG B10... | #include <Wire.h>
#include <Arduino.h>
#include "PGA309.h"
#include "ADS1110.h"
#include "EEPROM24C02.h"
#include "Util.h"
#define PGA309ADDR 0x40
#define ADS1110ADDR 0x49
#define EEPROM24C02ADDR 0x50
#define REG1 0x03C6
#define REG2 0xE77B
#define REG3 0x0500
#define REG4 0xE700
#define REG6 0x0600
#define ADSREG B10... | Add test logic for tempADC with one index point | Add test logic for tempADC with one index point
| Arduino | mit | lucasgrzegorczyk/pga309-blutooth-android-tensometer,lucasgrzegorczyk/pga309-blutooth-android-tensometer,lucasgrzegorczyk/pga309-blutooth-android-tensometer |
fac842f4f5206cfc1d80d63bd7a38cddd8e7078c | payload/payload.ino | payload/payload.ino | #include <Wire.h>
// begin SD card libraries
#include <BlockDriver.h>
#include <FreeStack.h>
#include <MinimumSerial.h>
#include <SdFat.h>
#include <SdFatConfig.h>
#include <SysCall.h>
// end SD card libraries
#include "Bmp180.h" // RCR header
File file; // file object
//SdFatSdio sd_card; // MicroSD card
namespace... | #include <Wire.h>
// begin SD card libraries
#include <BlockDriver.h>
#include <FreeStack.h>
#include <MinimumSerial.h>
#include <SdFat.h>
#include <SdFatConfig.h>
#include <SysCall.h>
// end SD card libraries
#include "Bmp180.h" // RCR header
namespace rcr {
namespace level1payload {
Bmp180 bmp;
File file; // file... | Implement custom BMP data structure in program | Implement custom BMP data structure in program
| Arduino | mit | nolanholden/geovis,nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis |
88e9d21119a8bcea6051678f212692392012d2af | examples/DIJN/test/test.ino | examples/DIJN/test/test.ino | /// @dir test
/// Simple node-alive check, sends out one test packet per second.
// 2013-02-02 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
byte counter;
void setup () {
// this is node 1 in net group 100 on the 868 MHz band
rf12_initialize(1, RF12_868MHZ, 100);
}
void lo... | /// @dir test
/// Simple node-alive check, sends out one test packet per second.
// 2013-02-02 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <JeeLib.h>
const byte LED = 9;
byte counter;
// turn the opn-bpard LED on or off
static void led (bool on) {
pinMode(LED, OUTPUT);
digitalWrite(LE... | add LED blinking | add LED blinking
| Arduino | unlicense | jcw/jeelib,jcw/jeelib |
ee8f96a9aec62f623fe609dcc20ddc75fc128a6e | arduino-fona/digital-in/digital-in.ino | arduino-fona/digital-in/digital-in.ino | /***************************************************
Adafruit MQTT Library FONA Example
Designed specifically to work with the Adafruit FONA
----> http://www.adafruit.com/products/1946
----> http://www.adafruit.com/products/1963
----> http://www.adafruit.com/products/2468
----> http://www.adafruit.com/produ... | /***************************************************
Adafruit MQTT Library FONA Example
Designed specifically to work with the Adafruit FONA
----> http://www.adafruit.com/products/1946
----> http://www.adafruit.com/products/1963
----> http://www.adafruit.com/products/2468
----> http://www.adafruit.com/produ... | tweak fona button pin to match tutorial | tweak fona button pin to match tutorial | Arduino | mit | adafruit/adafruit-io-basics,adafruit/adafruit-io-basics |
0da7ede1ff25f611fa9386ab17970f632282378b | software/firmware/LogoBotIRSeeker/LogoBotIRSeeker.ino | software/firmware/LogoBotIRSeeker/LogoBotIRSeeker.ino | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <Bot.h>
#include <Servo.h>
enum Activity
{
Idle,
Bored,
Seek,
Turn,
Advance,
Retreat
};
#define SCAN_SPEED 25 // speed eyes turn, lower is faster. (delay in ms between moves)
#define DIST_CLOSE 140 // distance in mm for an object to war... | #include "Configuration.h"
#include <DifferentialStepper.h>
#include <Bot.h>
#include <Servo.h>
enum Activity
{
Idle,
Bored,
Seek,
Turn,
Advance,
Retreat
};
#define SCAN_SPEED 25 // speed eyes turn, lower is faster. (delay in ms between moves)
#define DIST_CLOSE 140 // distance in mm for an object to war... | Update bumper reactions to hopefully stop it bumping into the same thing over and over | Update bumper reactions to hopefully stop it bumping into the same thing over and over
| Arduino | mit | snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot |
1a7401256730575b67ac8561cb533ca2d6f638ff | rs485/RS485_UnoR3_Slave.ino | rs485/RS485_UnoR3_Slave.ino | #include <SimpleModbusSlave.h>
#include <Wire.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
int sensorValue = 0;
int outputValue = 0;
#define LED 8
//////////////// registers of your slave ///////////////////
enum
{
ADC_VAL,
PWM_VAL, ... | #include <SimpleModbusSlave.h>
#include <Wire.h>
#include "rgb_lcd.h"
rgb_lcd lcd;
const int colorR = 255;
const int colorG = 0;
const int colorB = 0;
#define LED 8
//////////////// registers of your slave ///////////////////
enum
{
ADC_VAL,
PWM_VAL,
HOLDING_REGS_SIZE
};
unsigned int holding... | Update RS485_UnoR3_Slave.ino | Update RS485_UnoR3_Slave.ino | Arduino | mit | pumanzor/modbus,pumanzor/modbus,pumanzor/modbus |
8f6c25589984119ef5cc16742c03c720427c5626 | sketch_test/sketch_test.ino | sketch_test/sketch_test.ino | #include <SoftwareSerial.h>
#include <WIZ610.h>
#define PULL_UPS_OFF bitSet(MCUCR,PUD)
#define txWifi 3
#define rxWifi 2
SoftwareSerial wifiPort(rxWifi, txWifi);
WIZ610 modem(&wifiPort);
void setup() {
modem.pwrOn();
delay(10000);
Serial.begin(9600);
Serial.println("Init");
Seria... | #include <SoftwareSerial.h>
#include <WIZ610.h>
#define PULL_UPS_OFF bitSet(MCUCR,PUD)
#define txWifi 3
#define rxWifi 2
#define LIB_DOMAIN "192.168.0.2"
#define LIB_DOMAIN_PORT "8080"
SoftwareSerial wifiPort(rxWifi, txWifi);
WIZ610 modem(&wifiPort);
char buff[BUF_LENGTH];
void ... | add test for client connection | add test for client connection
| Arduino | apache-2.0 | debhash/libwiz610 |
fc0ada65127315daabc89defa35b77f7ce975afa | libraries/HCSR04/examples/CosaHCSR04/CosaHCSR04.ino | libraries/HCSR04/examples/CosaHCSR04/CosaHCSR04.ino | /**
* @file CosaHCSR04.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-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 ... | /**
* @file CosaHCSR04.ino
* @version 1.0
*
* @section License
* Copyright (C) 2012-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 ... | Clean up. | Clean up.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa |
c82cf8b61b8eec8d9d97051f5dd47c5f17d5753f | sketch.ino | sketch.ino | #include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
void setup() //' a{
{
Serial.begin(115200); // JCB
GD.begin();
GD.cmd_memset(0, 0, 480UL * 272UL); // clear the bitmap
GD.Clear(); // draw the bitmap
GD.BitmapLayout(L8, 480, 272);
GD.BitmapSize(NEAREST, BORDER, BORDER, 480, ... | #include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
void setup() //' a{
{
Serial.begin(115200); // JCB
GD.begin();
GD.cmd_memset(0, 0, 480UL * 272UL); // clear the bitmap
GD.Clear(); // draw the bitmap
GD.ColorRGB(0x101020);
GD.cmd_text(240, 136, 31, OPT_CENTER, "sketch demo"... | Add on-screen message | Add on-screen message
| Arduino | bsd-3-clause | jamesbowman/gd2-lib,jamesbowman/gd2-lib,jamesbowman/gd2-lib |
132246a7ce375883ff43f823643e8fcfa070091b | 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... | Call write() not rawWrite() | Call write() not rawWrite()
rawWrite() was renamed write() in 29776161178517a81da1b52ea0cc85d2193030f0
| Arduino | lgpl-2.1 | stevemarple/SoftWire |
974185abd19449c20299eae0784cf02ccd7d9e5b | aishling/aishling.ino | aishling/aishling.ino | // AIS receiver for Sparkfun Pro Micro + M4463D Si4463 module
// Peter Knight
//
#include "radio.h"
#include "ais.h"
#include "fifo.h"
#include "nmea.h"
//////////////////////////////////////////////////////////////////////////////
// Setup
/////////////////////////////////////////////////////////////////////////////... | // AIS receiver for Sparkfun Pro Micro + M4463D Si4463 module
// Peter Knight
//
#include "radio.h"
#include "ais.h"
#include "fifo.h"
#include "nmea.h"
//////////////////////////////////////////////////////////////////////////////
// Setup
/////////////////////////////////////////////////////////////////////////////... | Remove non-NMEA debug output | Remove non-NMEA debug output
| Arduino | mit | going-digital/AIShling |
31d88bf0e0a7ca104545f1ddcbb36f3af2c875be | src/src.ino | src/src.ino | #include <SPI.h>
#include "nokia_5110.h"
#include "time.h"
#include "types.h"
#include "haversine.h"
#include "waypoint_store.h"
#include "gps.h"
#define WAYPOINT_DISTANCE_THRESHOLD 50 /* meters */
#define BUSY_LED 17
void print_tracking_display(struct tracking_data_t *data)
{
lcd_pos(0, 0);
lcd_print_float(... | #include <SPI.h>
#include <avr/eeprom.h>
#include "Adafruit_BLE_UART.h"
#include "nokia_5110.h"
#include "time.h"
#include "types.h"
#include "haversine.h"
#include "waypoint_store.h"
#include "gps.h"
#define REQ 9
#define RDY 7
#define RST 10
#define WAYPOINT_DISTANCE_THRESHOLD 50 /* meters */
#define BUSY_LED 17
... | Integrate bluetooth into project | Integrate bluetooth into project
| Arduino | mit | sebluy/gps-watch,sebluy/gps-tracker-arduino,sebluy/gps-watch,sebluy/gps-tracker-arduino |
997f697f10877da76a50520a09957b0f16b48704 | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/kinematics/kinematics.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/kinematics/kinematics.ino | #include <OMManager.h>
#include <OMMath.h>
#include <OMKinematics.h>
#include <Eigen.h>
#define X_AXIS MATH::makeVector3(1.0, 0.0, 0.0)
#define Y_AXIS MATH::makeVector3(0.0, 1.0, 0.0)
#define Z_AXIS MATH::makeVector3(0.0, 0.0, 1.0)
#define WORLD 0
#define COMP1 1
#define COMP2 2
#define COMP3 3
#define COMP4 4
#def... | #include <OMManager.h>
#include <OMMath.h>
#include <OMKinematics.h>
#include <OMDebug.h>
#include <Eigen.h>
#define X_AXIS MATH::makeVector3(1.0, 0.0, 0.0)
#define Y_AXIS MATH::makeVector3(0.0, 1.0, 0.0)
#define Z_AXIS MATH::makeVector3(0.0, 0.0, 1.0)
#define WORLD 0
#define COMP1 1
#define COMP2 2
#define COMP3 3
... | add jacobian | add jacobian
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
63e92ae0d58c9ed6300da54f5a13106ac207bd6b | EmotionalClothing.ino | EmotionalClothing.ino | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(A0, A1, 9, 8, 7, 6);
const int button = A3;
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the informatio... | #include <WaveHC.h>
#include <WaveUtil.h>
#include <Wire.h>
#include "Adafruit_TCS34725.h"
#include <LiquidCrystal.h>
#include "ColorUtil.h"
LiquidCrystal lcd(A0, A1, 9, 8, 7, 6);
const int button = A3;
SdReader card; // This object holds the information for the card
FatVolume vol; // This holds the informatio... | Implement color detection | Implement color detection
| Arduino | mit | IgorGee/Emotional-Clothing |
d8a65a8aed17227609ffe5d518a77afd4fbe5b1c | MqttLEDs/MqttLEDs.ino | MqttLEDs/MqttLEDs.ino | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | // Copyright 2016-2017 the project authors as listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by the
// license that can be found in the LICENSE file.
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <Adafruit_NeoPixel.h>
// device specifics
#include... | add support for fire command | src: add support for fire command
| Arduino | mit | mhdawson/arduino-esp8266,mhdawson/arduino-esp8266 |
83ed4ae9f7389afc1689d5f68f90faa7856d529a | TroyTk296.ino | TroyTk296.ino | #include <SerialCommand.h>
#include "troymotor.h"
#include "troymotormanager.h"
SerialCommand sCmd;
TroyMotorManager motorManager(3);
TroyMotor motor(13);
void setup(){
Serial.begin(9600);
sCmd.addCommand("h",help);
sCmd.addCommand("run",runMotor);
sCmd.setDefaultHandler(unrecognized);
motorManager.add... | #include <SerialCommand.h>
#include "troymotor.h"
#include "troymotormanager.h"
SerialCommand sCmd;
TroyMotorManager motorManager(3);
TroyMotor motor(13);
void setup(){
Serial.begin(9600);
sCmd.addCommand("h",help);
sCmd.addCommand("run",runMotor);
sCmd.setDefaultHandler(unrecognized);
motorManager.add... | add SerialCommand | add SerialCommand
| Arduino | mit | crazylion/TroyTk296 |
6b584b730b3ed63825fde7c41ced5830759b1b5b | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino | OpenCTD_Feather_Adalogger/OpenCTD_master_m0/OpenCTD_master_m0.ino |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... |
//Date and time functions using a DS3231 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
//serial peripheral interface and library for SD card reader
#include <SPI.h> //serial peripheral interface for SD card reader
#include <SD.h> //library for SD card reader
//communication protocols for t... | Update OpenCTD_master_m0.ino | Update OpenCTD_master_m0.ino
| Arduino | mit | OceanographyforEveryone/OpenCTD |
e3ae095585c4ca4ffc94651409e3075ee7cbf233 | examples/More/LightBlueBeanRGB/LightBlueBeanRGB.ino | examples/More/LightBlueBeanRGB/LightBlueBeanRGB.ino |
// cause this is not defined for some reason...
void yield() {}
#include <BlynkSimpleSerial.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
void setup()
{
Bean.enableWakeOnConnect(true);
Blynk.begin(auth);
}
void loop()
{
if (Bean.get... |
// cause this is not defined for some reason...
void yield() {}
#include <BlynkSimpleSerial.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
void setup()
{
Bean.enableWakeOnConnect(true);
Blynk.begin(auth);
}
void loop()
{
if (Bean.get... | Update LightBlue Bean example | Update LightBlue Bean example
| Arduino | mit | sstocker46/blynk-library,csicar/blynk-library,blynkkk/blynk-library,sstocker46/blynk-library,johan--/blynk-library,blynkkk/blynk-library,al1271/blynk-library,CedricFinance/blynk-library,al1271/blynk-library,blynkkk/blynk-library,CedricFinance/blynk-library,CedricFinance/blynk-library,ivankravets/blynk-library,okhiroyuk... |
e208e840845a2cf9c3903e68a3cbb17857a5952a | blinker/blinker.ino | blinker/blinker.ino | #define RELAY_PIN 53
#define RELAY_ON LOW
#define RELAY_OFF HIGH
float updateFactor = 1;
boolean active = 0;
boolean blinking = 0;
unsigned long lastChanged = 0;
void setup() {
Serial.begin(9600);
pinMode(RELAY_PIN, OUTPUT);
cycleRelay(2000);
}
void loop() {
if (Serial.available() > 0) {
setUpdateFacto... | #define SERIAL_BAUD 9600
#define RELAY_PIN 53
#define RELAY_ON LOW
#define RELAY_OFF HIGH
#define TIME_SEQ 5000
#define TIME_ON 1000
#define TIME_OFF 2000
#define TIME_DOT 1000
#define TIME_DASH 2000
#define TIME_WAIT 300
#define SEQUENCE_START "--.."
#define SEQUENCE_PARSE ".."
#define SEQUENCE_SOS "...---.... | Add morse sequence parser | Add morse sequence parser
| Arduino | mit | taheris/sota-client-responder |
7712217e7201c1b3b9c8c4ea9035ee118862286d | BLDC.arduino/BLDC.pwm.ino | BLDC.arduino/BLDC.pwm.ino | #include <ArduinoJson.h>
const static char MOTER_PWM_FL = 9;
const static char MOTER_TRN_FL = 7;
const static char MOTER_SPD_FL = 8;
const static char MOTER_PWM_FR = 3;
const static char MOTER_TRN_FR = 5;
const static char MOTER_SPD_FR = 4;
const static char MOTER_PWM_BL = 10;
const static char MOTER_TRN_BL = 2;
c... | #include <ArduinoJson.h>
const static char MOTER_PWM_FL = 9;
const static char MOTER_TRN_FL = 7;
const static char MOTER_SPD_FL = 8;
const static char MOTER_PWM_FR = 3;
const static char MOTER_TRN_FR = 5;
const static char MOTER_SPD_FR = 4;
const static char MOTER_PWM_BL = 10;
const static char MOTER_... | Update BLDC.pwm.ino | Update BLDC.pwm.ino | Arduino | mit | RobotTeam2/dbc,RobotTeam2/dbc,RobotTeam2/dbc,RobotTeam2/dbc,RobotTeam2/dbc |
6ae7f1dc67cb83a35ede9ff9cd7cc38cfb7efe98 | Trigger.ino | Trigger.ino |
//
// Generate a 9Hz square signal to trigger camera and lightning
//
// Arduino setup
void setup()
{
// Output signal
pinMode( 13, OUTPUT );
}
// Main loop
void loop()
{
// High state (11ms)
digitalWrite( 13, HIGH );
delay( 11 );
// Low state (100ms)
digitalWrite( 13, LOW );
delay( 100 );
}
|
//
// Generate a 9Hz signal to trigger camera and lightning
//
// Setup
int button = 7;
int trigger = 13;
int high_duration = 11;
int low_duration = 100;
boolean running = false;
int button_state;
int last_button_state = LOW;
// Arduino setup
void setup()
{
// Input signal
pinMode( button, INPUT );
// Output s... | Add start-stop button. | Add start-stop button.
| Arduino | mit | microy/VisionToolkit,microy/VisionToolkit,microy/PyStereoVisionToolkit,microy/PyStereoVisionToolkit,microy/StereoVision,microy/StereoVision |
b59c1edcf14ec52bfa5cdeec0a85fb364a5d1ec0 | HomieDht.ino | HomieDht.ino | #include <Homie.h>
#include "Sensor.hpp"
static Sensor sensor;
static HomieSetting<long> publishIntervalSetting("publishInterval", "publish interval in seconds");
static void setupHandler() {
sensor.setup();
}
static void loopHandler() {
static unsigned long lastPublish = 0;
if (millis() - lastPublish >= (publ... | #include <Homie.h>
#include "Sensor.hpp"
static Sensor sensor;
static HomieSetting<long> publishIntervalSetting("publishInterval", "publish interval in seconds");
static void setupHandler() {
sensor.setup();
}
static void loopHandler() {
static unsigned long lastPublish = 0;
if (millis() - lastPublish >= (publ... | prepare verison number for release of v0.1 | prepare verison number for release of v0.1 | Arduino | mit | nuccleon/homie-dht |
a6745a3db5c357a4b078e9bbd9fcfe8fd3d395e2 | Arduino/COA_Arduino.ino | Arduino/COA_Arduino.ino | /*********************************************************************
**********************************************************************
____ ___ _
/ ___/ _ \ / \
| | | | | |/ _ \
| |__| |_| / ___ \
\____\___/_/ \_\
Conor's Obscurification Algorithm
Con... | /*********************************************************************
**********************************************************************
____ ___ _
/ ___/ _ \ / \
| | | | | |/ _ \
| |__| |_| / ___ \
\____\___/_/ \_\
Conor's Obfuscation Algorithm
Conor... | Update COA_Arduino.ino | Update COA_Arduino.ino | Arduino | mit | conorwalsh/COA |
f4e4ef74d1d6486da6b61da3964e79cd48d6be4c | Thermostat/Thermostat.ino | Thermostat/Thermostat.ino | #include <Arduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include "AsyncTemperatureSensor.h"
#include "LedDisplay.h"
const byte deviceLedPin = 13;
const byte heatPin = 4;
const byte heatOnPin = 3;
const byte registerClockPin = 11;
const byte whichSegmentDataPin = 9;
const byte segmentShiftRegisterClo... | #include <Arduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include "AsyncTemperatureSensor.h"
#include "LedDisplay.h"
const byte deviceLedPin = 13;
const byte heatPin = 4;
const byte heatOnPin = 3;
const byte registerClockPin = 11;
const byte whichSegmentDataPin = 9;
const byte segmentShiftRegisterClo... | fix temperature, should be targetting 150 | fix temperature, should be targetting 150
| Arduino | mit | AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering,AaronLieberman/ArduinoTinkering |
19ada3f64a65a7e246ae30323385dc9b67d110bc | examples/DumpInfo/DumpInfo.ino | examples/DumpInfo/DumpInfo.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 DumpInfo.ino | Update DumpInfo.ino
Added pin layouts for ATMEGA32U4-based Arduinos in comment; code unchanged | Arduino | unlicense | r44947/rfid,juantejedavz/rfid,miguelbalboa/rfid,Rotzbua/rfid,mangine/mraa_MFRC522,LaloHao/rfid,lpr0lpd/rfid,Rotzbua/rfid,webdevbrian/rfid,hramrach/rfid,yaalsn/rfid,prikevs/rfid,northDacoder/rfid,1upon0/rfid,CapeSepias/rfid,irhastofa/rfid,tamchau2809/rfid,mirko314/rfid,sophiekovalevsky/rfid,smallkid/rfid |
276b78a607829c0a6a7dc3022fb5d489d05cd9cc | sketch_drive_rod.ino | sketch_drive_rod.ino | #include <SoftwareSerial.h>
#include <comm.h>
#include <Arduino.h>
const int x_step = 2;
const int x_dir = 5;
const int disable = 8;
//const int steps_per_rotation = 200 * 4;
const int steps_per_rotation = 40;
int hold_high = 300;
int hold_low = 700;
int t;
void setup() {
pinMode(x_step, OUTPUT);
pinMode(x_dir,... | #include <SoftwareSerial.h>
#include <Arduino.h>
const int X_STEP_PIN = 2;
const int X_DIR_PIN = 5;
const int DISABLE_PIN = 8;
/*
With all 3 jumpers in the driver is configured to run at 1/16 microstepping
*/
const int STEPS_PER_ROTATION = 200 * 16;
int step_time = 500;
int is_active;
void setup() {
pinMode(X_S... | Use 2-9 to set the speed for one full rotation | Use 2-9 to set the speed for one full rotation
| Arduino | apache-2.0 | gcb77/RoboFoosArduino |
7f40f8958c99c0e1a3f21145a9444ee255a919af | arduino-neopixel.ino | arduino-neopixel.ino | #include <Adafruit_NeoPixel.h>
#define TOTAL_PIXELS 99
// common settings :::::::::
#define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限
#define DELAY_TIME 10
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add t... | #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 10
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Paramete... | add comment | add comment
| Arduino | mit | karappo/ptw-wheel |
54c280c0394d99f79a693b17d1f153b15c1d042c | examples/ScheduleFromInterrupt/ScheduleFromInterrupt.ino | examples/ScheduleFromInterrupt/ScheduleFromInterrupt.ino | #include <DeepSleepScheduler.h>
#define INTERRUPT_PIN 2
#define LED_PIN 13
void ledOn() {
digitalWrite(LED_PIN, HIGH);
scheduler.scheduleDelayed(ledOff, 2000);
}
void ledOff() {
digitalWrite(LED_PIN, LOW);
}
void isrInterruptPin() {
scheduler.schedule(ledOn);
}
void setup() {
pinMode(INTERRUPT_PIN, INPUT... | #include <DeepSleepScheduler.h>
#ifdef ESP32
#define INTERRUPT_PIN 4
#define LED_PIN 2
#else
#define INTERRUPT_PIN 2
#define LED_PIN 13
#endif
void ledOn() {
digitalWrite(LED_PIN, HIGH);
scheduler.scheduleDelayed(ledOff, 2000);
}
void ledOff() {
digitalWrite(LED_PIN, LOW);
}
void isrInterruptPin() {
schedul... | adjust examples to esp32 | adjust examples to esp32
| Arduino | apache-2.0 | PRosenb/DeepSleepScheduler,PRosenb/DeepSleepScheduler |
645fb098856f656a6aa119fe084e6cacb3e3d02f | moros/moros.ino | moros/moros.ino | /*
* TODO:
* time setting - P1
* case - P1
* display tenths of a second - P2
* have graphical representation of flag P3
*
*/
#include <SPI.h>
#include <SD.h>
//#include <TFT.h>
#include <FTOLED.h>
#include "moros_oled.h"
#include "printf.h"
#define NONE -1
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 2... | /*
* TODO:
* time setting - P1
* case - P1
* display tenths of a second - P2
*
*/
#include <SPI.h>
#include <SD.h>
//#include <TFT.h>
#include <FTOLED.h>
#include "moros_oled.h"
#include "printf.h"
#define NONE -1
//#define INITIAL_TIME_MS 300000
#define INITIAL_TIME_MS 25000
class Button {
public:
int interru... | Update todo list | Update todo list
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
d41cf839f78ce27190bf55b5e4fb6a8e05e27abb | Arduino/v0.2.0_no_conditioning/v0.2.0_no_conditioning.ino | Arduino/v0.2.0_no_conditioning/v0.2.0_no_conditioning.ino | /*
* Z1FFER
* OpenRandom.org
*
* 2015 Rob Seward
*
* Captures random data from Z1FFER v0.2.0 and conditions it using AES-CBC-MAC
*
* Requires Rhys Weatherley's crypto library: https://github.com/rweather/arduinolibs
*/
void setup()
{
Serial.begin(230400);
//Set B pins to input
DDRB = B00000... | /*
* Z1FFER
* OpenRandom.org
*
* 2015 Rob Seward
*
* Sends raw random data to the host as fast as possible.
* Baud rate is 230400
*
*/
void setup()
{
Serial.begin(230400);
//Set B pins to input
DDRB = B00000000;
delay(1000);
}
void loop() {
static byte currentByte = 0x00;
byte pin... | Update comments | Update comments
| Arduino | mit | robseward/Ziffer |
3d65d414a91584118cdaf9634f4ac571ebea2b96 | 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... | Remove unused handleByte function | Remove unused handleByte function
| Arduino | mit | andrewadare/inverted-pendulum |
6a0ad1026829fab316cc89736dc50805397051ec | examples/max30205demo/max30205demo.ino | examples/max30205demo/max30205demo.ino | /**************************************************************************************
This is example for ClosedCube MAX30205 Human Body Temperature Sensor Breakout
Initial Date: 11-Jan-2017
Hardware connections for Arduino Uno:
VDD to 3.3V DC
SCL to A5
SDA to A4
GND to common ground
Written by AA for ClosedC... | /**************************************************************************************
This is example for ClosedCube MAX30205 Human Body Temperature Sensor Breakout
Initial Date: 11-Jan-2017
Hardware connections for Arduino Uno:
VDD to 3.3V DC
SCL to A5
SDA to A4
GND to common ground
Written by AA for ClosedC... | Update max30205demo.ino | Update max30205demo.ino | Arduino | mit | closedcube/ClosedCube_MAX30205_Arduino |
bc66379cf506d9d1d29f896e194ed246bbf7160e | autobaud_bitlash.ino | autobaud_bitlash.ino | // auto serial baudrate discover
//
// target : Arduino Mega (ATMega2560)
// note : - use timer1 for 0.5 uS accuracy time measure
// (arduino core micros() is just 4us accuracy).
// - signal to detect must be wire on pin 19 (Rx of Serial1).
// - use bitlash for console manager (see https... | // auto serial baudrate discover
//
// target : Arduino Mega (ATMega2560)
// note : - use timer1 for 0.5 uS accuracy time measure
// (arduino core micros() is just 4us accuracy).
// - signal to detect must be wire on pin 19 (Rx of Serial1).
// - use bitlash for console manager (see https... | fix time format. fix bug in lifo mode if buffer empty. | fix time format. fix bug in lifo mode if buffer empty.
| Arduino | mit | sourceperl/arduino.serial-spy,sourceperl/arduino.serial-spy |
6a8ba6365fb6753b2bbfc401676ef6d217ecd660 | src/sketch.ino | src/sketch.ino | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | /*
* Motor control for stepper half turns
*/
// motor pins
#define stepPin 6
#define dirPin 7
#define sensorPin 9
// speeds
#define pulseWidth 5
#define accelSteps 70
#define halfTurnSteps 200 // steps for a half turn
#define minPulse 500
#define maxPulse 2500
#define ... | Increase serial message length | Increase serial message length
Signed-off-by: Mark Knoop <f1b5a91d4d6ad523f2610114591c007e75d15084@markknoop.com>
| Arduino | agpl-3.0 | markk/loeffler-h,markk/loeffler-h |
b912c9dc6428a3d0338c4cfa582045c193606709 | Attic_Controller/Attic_Controller.ino | Attic_Controller/Attic_Controller.ino | //----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
... | //----------------------------------------------------------------------------------------------------------------
// Attic_Controller.ino
//
// Controls a LED clock using an ESP8266, several 7-segment displays, and a bargraph display
// Uses NTP for internet time updating, and supports a Real-Time clock for outages.
... | add serial reading functionality | add serial reading functionality | Arduino | mpl-2.0 | 1n5aN1aC/HouseESP |
40e4581b13136ba848be3203e2fb5627889a917a | Joystick/Joystick.ino | Joystick/Joystick.ino | #include <SPI.h>
#include "RF24.h"
RF24 radio(7, 8);
const int PACKETSIZE = 6;
byte packet[PACKETSIZE];
int joySelPin = 9;
int joyXPin = A0;
int joyYPin = A1;
int radioChannel = 40;
byte address[6] = {"12345"};
void setup() {
pinMode(joySelPin, INPUT_PULLUP);
radio.begin();
radio.setChannel(radioChannel);
ra... | #include <SPI.h>
#include "RF24.h"
RF24 radio(7, 8);
const int PACKETSIZE = 6;
byte packet[PACKETSIZE];
int joySelPin = 9;
int joyXPin = A0;
int joyYPin = A1;
int radioChannel = 40;
byte address[6] = {"12345"};
void setup() {
pinMode(joySelPin, INPUT_PULLUP);
radio.begin();
radio.setChannel(radioChannel);
ra... | Debug to Joystick | Debug to Joystick
| Arduino | bsd-3-clause | GuardedAirplane/class_RC_Car |
78c5fee5a7ba825f65457e449197ea97d5e0aff5 | IAQ/IAQ.ino | IAQ/IAQ.ino | /*
MiCS-VZ-86 to read PPM
Sample every 5 seconds
This example code is in the public domain.
modified 21 Jan 2015
by Chris Wang
*/
#include <Wire.h>
#define ADDR_6713 0x15 // default I2C slave address
int ppm = 0;
#define PWM_PIN 3
volatile unsigned long pwm_value = 0;
volatile unsigned long pwm_value1 = ... | /*
MiCS-VZ-86 to read PPM
Sample every 5 seconds
This example code is in the public domain.
modified 21 Jan 2015
by Chris Wang
*/
#include <Wire.h>
#define ADDR_6713 0x15 // default I2C slave address
int ppm = 0;
#define PWM_PIN 3
volatile unsigned long pwm_value = 0;
volatile unsigned long pwm_value1 = ... | add description | add description
| Arduino | apache-2.0 | johnymoo/Arduino,johnymoo/Arduino,johnymoo/Arduino |
57d4a9e422fef17d19822102ccb13db35418bac3 | Arduino/firmware/firmware.ino | Arduino/firmware/firmware.ino | /*
* Firmware for Autonomia low-level Arduino controller.
*
* The low-level controller intercepts from the receiver the values for throttle and servo and sends them to the host.
* From the host receives from the PWM settings for throttle and servo.
*
* Copyright (C) 2016 Visible Energy, Inc.
*
* Licensed unde... | /*
* Firmware for Autonomia low-level Arduino controller.
*
* The low-level controller intercepts from the receiver the values for throttle and servo and sends them to the host.
* From the host receives from the PWM settings for throttle and servo.
*
* Copyright (C) 2016 Visible Energy, Inc.
*
* Licensed unde... | add debug flag | add debug flag
| Arduino | apache-2.0 | cometa/Autonomia |
4dd09b17a7117845516f3bd62d365a474db940cb | Examples/SPIDaisyChain/SPIDaisyChain.ino | Examples/SPIDaisyChain/SPIDaisyChain.ino | #include "SPI.h"
#include "SPIDaisyChain.h"
const uint8_t PIN_CS = 10;
const uint8_t NUM_DEVICE = 3;
SPIDaisyChain spi(PIN_CS, NUM_DEVICE); // CS pin, chained number
byte send_data[NUM_DEVICE] = {1, 2, 3};
byte recv_data[NUM_DEVICE] = {0, 0, 0};
void setup()
{
}
void loop()
{
// send data[0] to far device, data... | #include "SPI.h"
#include "SPIDaisyChain.h"
const uint8_t PIN_CS = 10;
const uint8_t NUM_DEVICE = 3;
SPIDaisyChain spi(PIN_CS, NUM_DEVICE); // CS pin, chained number
byte send_data[NUM_DEVICE] = {1, 2, 3};
byte* recv_data;
void setup()
{
}
void loop()
{
// send data[0] to far device, data[1] to near device
... | fix build error | fix build error
| Arduino | mit | hideakitai/SPIDaisyChain |
6a5c327bbec741fe42d431c8d21c807012064fee | Valokepakko.ino | Valokepakko.ino | #include <avr/pgmspace.h>
#include "image.h"
#include "math.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
const int LED_PIN = 6;
// We use the Memsic 2125 Dual-axis Accelerometer.
// Accelerometer pins:
const int ACCEL_X_PIN = 2;
const int ACCEL_Y_PIN = 3;
const int LEDS = 60;
/... | #include <avr/pgmspace.h>
#include "image.h"
#include "math.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
/****************************************************/
/* Here you choose which kind of interface is used. */
/* */
/* TIMER Ti... | Refactor to support different interfaces in same source | Refactor to support different interfaces in same source
| Arduino | mit | myrjola/Valokepakko,myrjola/Valokepakko,myrjola/Valokepakko |
3e0badeb0d2b7d2c8089285f9d41b23fd1de81d4 | printer.ino | printer.ino | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | #include <SPI.h>
#include <Ethernet.h>
#include <SD.h>
#include <EEPROM.h>
#include <SoftwareSerial.h>
#include <Bounce.h>
// -- Settings for YOU to change if you want
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // physical mac address
// The printerType controls the format of the data sent from the server... | Save 14 bytes by avoiding a for loop. | Save 14 bytes by avoiding a for loop.
The code is slightly less clear, but every byte counts.
| Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
a1a587cb74e6c6562800453b1116d1ef41e0ec83 | arduinoApp/gardenSketch/gardenSketch.ino | arduinoApp/gardenSketch/gardenSketch.ino | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
#include <Sensirion.h>
// soil related setup
#define dataPin 3
#define clockPin 4
Sensirion soilSensor = Sensirion(dataPin, clockPin);
float soilTemperature;
float soilMoisture;
float dewpoint;
// air temperature related setup
#define DHTPIN 2 ... | /*
Arduino based self regulating kitchen garden
*/
#include <DHT.h>
#include <Sensirion.h>
// soil related setup
#define dataPin 3
#define clockPin 4
Sensirion soilSensor = Sensirion(dataPin, clockPin);
float soilTemperature;
float soilMoisture;
float dewpoint;
// air temperature related setup
#define DHTPIN 2 ... | Move sensor reading to seperate function | Move sensor reading to seperate function
| Arduino | apache-2.0 | eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden,eikooc/KitchenGarden |
a083874382132e2ebeab6a078102bcda9c695f1a | btnLed/src/sketch.ino | btnLed/src/sketch.ino | /*
btnLed sketch
Push a button to turn on a LED.
Push the button again to turn the LED off.
*******
Do not connect more than 5 volts directly to an Arduino pin!!
*******
*/
#define pushbuttonPIN 2
#define onoffLED 3
boolean flag = LOW;
void setup()
{
pinMode(onoffLED, OUTPUT); // An LED to signa... | /*
btnLed sketch
Push a button to turn on a LED.
Push the button again to turn the LED off.
*******
Do not connect more than 5 volts directly to an Arduino pin!!
*******
*/
#define pushbuttonPIN 2
#define onoffPIN 3
volatile int flag = LOW;
void setup()
{
pinMode(onoffLED, OUTPUT); // An LED to ... | switch to IRQ controlled LED | switch to IRQ controlled LED
| Arduino | mit | Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino,Mausy5043/arduino |
ab0a53da5e4e5ad9f60b11dda569038a6d0ed19f | cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino | cirkit_unit03_driver/arduino/steer_ctrl/steer_ctrl.ino | /**
The original code:
Copyright (c) 2015, Yusuke Doi
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditio... | /**
The original code:
Copyright (c) 2015, Yusuke Doi
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditio... | Remove wrong comment | Remove wrong comment
| Arduino | bsd-3-clause | CIR-KIT-Unit03/cirkit_unit03_robot,CIR-KIT-Unit03/cirkit_unit03_robot |
6c82b0111d397a9690c14ee571c1473d73cad6cd | research/DCF-RTC/DCF-RTC.ino | research/DCF-RTC/DCF-RTC.ino | /*
* SyncProvider.ino
* example code illustrating time synced from a DCF77 receiver
* Thijs Elenbaas, 2012
* This example code is in the public domain.
This example shows how to fetch a DCF77 time and synchronize
the internal clock. In order for this example to give clear output,
make sure that you disable log... | /*
* SyncProvider.ino
* example code illustrating time synced from a DCF77 receiver
* Thijs Elenbaas, 2012
* This example code is in the public domain.
This example shows how to fetch a DCF77 time and synchronize
the internal clock. In order for this example to give clear output,
make sure that you disable log... | read & display time from ds1307 | read & display time from ds1307
| Arduino | mit | rudelm/tictock |
7149b51ce2b6151b8b3d8fe0ce1fcfa266fc6f2e | examples/all5V0Sensors/all5V0Sensors.ino | examples/all5V0Sensors/all5V0Sensors.ino | /*
* All 5.0 V sensors example
*
* This sketch shows you how to use all 5.0 V ROHM sensors simultaneously.
*
* Before powering up your Arduino, make sure to select 5V on jumper J15 on the shield!
*
* NOTE: When using BD7411G Hall sensor with Arduino UNO, be sure to disconnect the sensor from the shield before... | /*
* All 5.0 V sensors example
*
* This sketch shows you how to use all 5.0 V ROHM sensors simultaneously.
*
* Before powering up your Arduino, make sure to select 5V on jumper J15 on the shield!
*
* NOTE: When using BD7411G Hall sensor with Arduino UNO, be sure to disconnect the sensor from the shield... | Update all5V0Sensors.ino | Update all5V0Sensors.ino | Arduino | mit | jgromes/RohmMultiSensor |
53c467ab68e8fcc1af716ee32d1185af9baa59ad | 2_example/example08_sw/example08_sw.ino | 2_example/example08_sw/example08_sw.ino | /*******************************************************************************
Example 8: リードスイッチ・ドアスイッチ・呼鈴
Copyright (c) 2016 Wataru KUNINO
*******************************************************************************/
#include <ESP8266WiFi.h> //... | /*******************************************************************************
Example 8: リードスイッチ・ドアスイッチ・呼鈴
Copyright (c) 2016 Wataru KUNINO
*******************************************************************************/
#include <ESP8266WiFi.h> //... | Update example08_sw.ino | Update example08_sw.ino | Arduino | mit | bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp,bokunimowakaru/esp |
ad79520905764965d931741358830fd3d1a19bc9 | Seeed_QTouch/examples/isTouch/isTouch.ino | Seeed_QTouch/examples/isTouch/isTouch.ino | // demo of Qtouch - isTouch
// this demo will use isTouch function
// this function can the state of certain key
// such as you can get state of KEY0 with this function:
// isTouch(0), if return 1 meas KEY0 got touched while
// return 0 no touch.
// besides, this demo also print the touch time
#include <Wire.h>
#inclu... | // demo of Qtouch - isTouch
// this demo will use isTouch function
// this function can the state of certain key
// such as you can get state of KEY0 with this function:
// isTouch(0), if return 1 meas KEY0 got touched while
// return 0 no touch.
// besides, this demo also print the touch time
#include <Wire.h>
#inclu... | Update isTouch.ino | Update isTouch.ino
added Wire.begin(); | Arduino | mit | Seeed-Studio/Xadow_Edison_Demos,Seeed-Studio/Xadow_Edison_Demos,kingsongchen/Xadow_Edison_Demos,kingsongchen/Xadow_Edison_Demos |
244410ad36221521ccf54aa4bb95b6fd38a4c2b4 | PulseSensorAmped_Arduino_1.5.0/Timer_Interrupt_Notes.ino | PulseSensorAmped_Arduino_1.5.0/Timer_Interrupt_Notes.ino | /*
These notes put together by Joel Murphy for Pulse Sensor Amped, 2015
The code that this section is attached to uses a timer interrupt
to sample the Pulse Sensor with consistent and regular timing.
The code is setup to read Pulse Sensor signal at 500Hz (every 2mS).
The reasoning for this can be found here:
... | /*
These notes put together by Joel Murphy for Pulse Sensor Amped, 2015
The code that this section is attached to uses a timer interrupt
to sample the Pulse Sensor with consistent and regular timing.
The code is setup to read Pulse Sensor signal at 500Hz (every 2mS).
The reasoning for this can be found here:
... | Update Timer_Interrupt_Notes.ino | Update Timer_Interrupt_Notes.ino
added notes to Gemma and Trinket examples | Arduino | mit | WorldFamousElectronics/PulseSensor_Amped_Arduino |
7b116bdfe58f3f448ddca181f0fd7961a7ca3871 | Base/Base.ino | Base/Base.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. T... | /** 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. T... | Update Base FW | Update Base FW
| Arduino | agpl-3.0 | KeepCUBE/KeepCUBE-atmega |
e584cdfd490777395e7de2ea69a0c9890ff47fc2 | basement_control/src/sketch.ino | basement_control/src/sketch.ino | #include <stdio.h>
#include <softwareserial.h>
const int ping_sensor_pin = 7;
const int serial_speed = 9600;
const int poll_interval = 10000;
SoftwareSerial impSerial(8, 9); // RX on 8, TX on 9 for imp
float current_temperature = 22.2222; // in C
void setup()
{
Serial.begin(9600);
// set the data rate for the So... | #include <stdio.h>
#include <softwareserial.h>
#include <math.h>
const int ping_sensor_pin = 7;
const int thermistor_pin = 5;
const int serial_speed = 9600;
const int poll_interval = 10000;
const float vcc = 4.14; // only used for display purposes, if used
// set to the measured Vcc.
const floa... | add thermistor logic | add thermistor logic
this is temporary. The thermistor calibration is somewhat of a pain.
will replace with TI temp sensor.
| Arduino | mit | wmccracken/arduino_work,wmccracken/arduino_work,wmccracken/arduino_work |
eee859d0ae5d40dd44942a5d46aa49cb60e8678a | dragino/mqtt_dragino_2xrele_lcd_20x4_serial_i2c_ver2.ino | dragino/mqtt_dragino_2xrele_lcd_20x4_serial_i2c_ver2.ino | #include <Process.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include "MQTTclient.h"
unsigned long time;
#define I2C_ADDR 0x27
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
#define BACKLIGHT_PIN 3
int rele1 = 4;
... | #include <Process.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include "MQTTclient.h"
unsigned long time;
#define I2C_ADDR 0x27
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
#define BACKLIGHT_PIN 3
int rele1 = 4;
... | Update mqtt_dragino_2xrele_lcd_20x4_serial_i2c_ver2.ino | Update mqtt_dragino_2xrele_lcd_20x4_serial_i2c_ver2.ino | Arduino | mit | pumanzor/iot-redlibre,pumanzor/iot-redlibre |
6b48bf0b8a7eeb86a4ab6dcdfc9f42834b16c527 | zg01/zg01.ino | zg01/zg01.ino | #include <stdint.h>
#include "zg01_fsm.h"
#define PIN_CLOCK 2
#define PIN_DATA 3
#define PIN_LED 13
static uint8_t buffer[5];
void setup(void)
{
// initialize ZG01 pins
pinMode(PIN_CLOCK, INPUT);
pinMode(PIN_DATA, INPUT);
// initialize LED
pinMode(PIN_LED, OUTPUT);
// initialize s... | #include <stdint.h>
#include "zg01_fsm.h"
#define PIN_CLOCK 2
#define PIN_DATA 3
#define PIN_LED 13
static uint8_t buffer[5];
void setup(void)
{
// initialize ZG01 pins
pinMode(PIN_CLOCK, INPUT);
pinMode(PIN_DATA, INPUT);
// initialize LED
pinMode(PIN_LED, OUTPUT);
// initialize s... | Fix order of Serial.println arguments for HEX printing | Fix order of Serial.println arguments for HEX printing
| Arduino | mit | revspace/co2sensor,revspace/co2sensor,vvzvlad/co2sensor_esp8266,vvzvlad/co2sensor_esp8266 |
e08b0f3eb7da1d17e1d06fe568ef43c7d472b69e | ARTF_Sensors/examples/MoistureSensorGSM/MoistureSensorGSM.ino | ARTF_Sensors/examples/MoistureSensorGSM/MoistureSensorGSM.ino | /*
Moisture Sensor with GSM, SDCard, and RTC
Sketch used by ARTF Sensors platform.
Notes:
- This is an early implementation. Parts of code need to be cleaned up
to remove duplication. But should work for now.
Created 8 7 2014
Modified 8 7 2014
*/
#include <LowPower.h>
#include <math.h>
#include <AR... | /*
Moisture Sensor with GSM, SDCard, and RTC
Sketch used by ARTF Sensors platform.
Notes:
- This is an early implementation. Parts of code need to be cleaned up
to remove duplication. But should work for now.
- Use 930 MOISTURE_MAX_READING for 3.3v Arduino. About 610 for 5v Arduino
- Had to remove RTC... | Adjust moisture max reading and remove RTC time reading for initial sample reading | Adjust moisture max reading and remove RTC time reading for initial sample reading
| Arduino | unlicense | UAA-EQLNES/ARTF-Field-Sensors |
b49e606e70cdbb8c62533f3a1b69dad62cfa6f92 | photo_temp_sensor/PhotoTempSensor.ino | photo_temp_sensor/PhotoTempSensor.ino | #include "MCP9808.h"
#include "MeasurementService.h"
#include "RgbLed.h"
#include "RgbLedColor.h"
#include <math.h>
MeasurementService client;
MCP9808 mcp = MCP9808();
RgbLed led = RgbLed();
String myDeviceId;
bool is_registered = false;
bool is_server_available = false;
bool is_mcp_initialized = false;
int error_sta... | #include "MCP9808.h"
#include "MeasurementService.h"
#include "RgbLed.h"
#include "RgbLedColor.h"
#include <math.h>
MeasurementService client;
MCP9808 mcp = MCP9808();
RgbLed led = RgbLed();
String myDeviceId;
bool is_registered = false;
bool is_server_available = false;
bool is_mcp_initialized = false;
int error_sta... | Set LED off by default, and fixed the temp compare in the loop | Set LED off by default, and fixed the temp compare in the loop
| Arduino | apache-2.0 | alanquillin/myhvac_sensors |
c52b7a2a9b9197951ab01c825ebdee72349a3314 | ComboKeypad/Keypad.ino | ComboKeypad/Keypad.ino | //USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many... | //
//
//
//USER VARIABLES, Variables that YOU change for YOUR preferences
const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons
const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number
const int numOfCombos = sizeof(combination) / sizeof(combination[0]); /... | Update Keypad.ino | Update Keypad.ino | Arduino | mit | TeodorLys/Arduino_Projects |
6a70f24b383921920f7c19d7ed46e30f897ab20e | pump_Master_test/pump_Master_test.ino | pump_Master_test/pump_Master_test.ino | #include <Wire.h>
//#define FSR_PIN 0
#define NUM_MODULES 2
#define DATA_SIZE 4
#define ADDR1 0xAA
#define ADDR2 0xBB
#define ADDR3 0xCC
#define P_TIMEOUT 1000
#define P_START 0
#define P_STOP 1
//default masses
// #define BLEED_MASS 5
// #define TOTAL_TIME 100
// #define MILK... | #include <Wire.h>
#define FSR_PIN 0
#define NUM_MODULES 2
#define DATA_SIZE 4
#define ADDR1 0xAA
#define ADDR2 0xBB
#define ADDR3 0xCC
#define P_TIMEOUT 1000
#define P_START 0
#define P_STOP 1
//default masses/times
// #define BLEED_MASS 5
// #define TOTAL_TIME 100
// #define ... | test motors with FSR | test motors with FSR
| Arduino | mit | starsword829/MTM |
545ffdeb87c44bb54fb4678eabb932edd73ca72e | hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | hardware/esp8266com/esp8266/libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | /*
* This sketch trys to Connect to the best AP based on a given list
*
*/
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti WiFiMulti = ESP8266WiFiMulti();
void setup() {
Serial.begin(115200);
delay(10);
WiFiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1");
WiFiMul... | /*
* This sketch trys to Connect to the best AP based on a given list
*
*/
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;
void setup() {
Serial.begin(115200);
delay(10);
wifiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1");
wifiMulti.addAP("ssid_from_A... | Fix case in WiFiMulti example | Fix case in WiFiMulti example
| Arduino | lgpl-2.1 | Alfredynho/AgroSis,spapadim/Arduino,noahchense/Arduino-1,SmartArduino/Arduino-1,Alfredynho/AgroSis,wdoganowski/Arduino,gonium/Arduino,zenmanenergy/Arduino,danielchalef/Arduino,EmuxEvans/Arduino,smily77/Arduino,fungxu/Arduino,Cloudino/Arduino,Protoneer/Arduino,Cloudino/Arduino,paulo-raca/ESP8266-Arduino,Protoneer/Arduin... |
8fb5a8f77023732bb8bbfffb0a06b4814f29ed90 | arduino/walt/walt.ino | arduino/walt/walt.ino | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Fix a printf("%lu") issue | Fix a printf("%lu") issue
Was %lud which resulted in a 'd' after the number
| Arduino | apache-2.0 | google/walt,google/walt,google/walt,google/walt |
62f7bc02587f541a664e055a070889397a06f7c2 | D1Mini-DHT22-Thingspeak.ino | D1Mini-DHT22-Thingspeak.ino | /* Drafted by Jordan Mellish (jordan.mellish@townsville.qld.gov.au)
* MIT License
* Description: Basic code for sending DHT22(Temperature and Humidity) data to ThingSpeak with a WeMos D1 Pro or D1 Mini
*
*/
/* Import Libraries */
#include "ThingSpeak.h"
#include <ESP8266WiFi.h>
#include <DHT.h>
/* Definitio... | /* Drafted by Jordan Mellish (jordan.mellish@townsville.qld.gov.au)
* MIT License
* Description: Basic code for sending DHT11(Temperature and Humidity) data to ThingSpeak with a WeMos D1 Pro or D1 Mini
* Including ESP Deep Sleep for 15 minutes.
*/
/* Import Libraries */
#include "ThingSpeak.h"
#include <ESP82... | Update code for using deep sleep, dht11 | Update code for using deep sleep, dht11 | Arduino | mit | RowesBaySN/D1Mini-DHT22-Thingspeak |
fc4a5f643cfb0aae0d156a2e460b52400ea418ff | arduino/temperature/src/jarvis-dht.ino | arduino/temperature/src/jarvis-dht.ino | /*
* Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | /*
* Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Check presence of the wifi shield | Check presence of the wifi shield
Signed-off-by: Nicolas Lamirault <57a11b2dec5b8363280015e1663433805cc2169e@gmail.com>
| Arduino | apache-2.0 | zeiot/jarvis,zeiot/jarvis,zeiot/jarvis,zeiot/jarvis |
9a943023c84f010dcecc24d8ab2df4f34c3c9789 | KomaRoof.ino | KomaRoof.ino | /*
* Copyright (c) 2016 Jari Saukkonen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publ... | /*
* Copyright (c) 2016 Jari Saukkonen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publ... | Fix updating the encoder | Fix updating the encoder
| Arduino | mit | vehnae/komaroof,vehnae/komaroof |
9573a128dba8366ec2ea7d926b11f59db122de3e | arduino/rfglow_tcl591xx/rfglow_tcl591xx.ino | arduino/rfglow_tcl591xx/rfglow_tcl591xx.ino | #include <avr/pgmspace.h>
#include <HardwareSerial.h>
#include <OneButton.h>
#include "cc1101.h"
#include "calibration.h"
#include "panstamp.h"
//#define TLC59116_LOWLEVEL 1
//#define TLC59116_DEV 1
#include "TLC59116.h"
// Logging Setup
#define DEBUG
String log_prefix = String("RFG: ");
#ifdef DEBUG
#define ... | #include <avr/pgmspace.h>
#include <HardwareSerial.h>
#include <OneButton.h>
#include <cc1101.h>
#include <panstamp.h>
//#define TLC59116_LOWLEVEL 1
//#define TLC59116_DEV 1
#include <TLC59116.h>
// Logging Setup
#define DEBUG
String log_prefix = String("RFG: ");
#ifdef DEBUG
#define DEBUG_PRINTLN(x) Serial.pri... | Update code to OneButton, and switch to use library-controlled arduino-TCL59116. | Update code to OneButton, and switch to use library-controlled arduino-TCL59116.
| Arduino | apache-2.0 | jmkao/rfglow,jmkao/rfglow,jmkao/rfglow |
ae06304059e8a18d15d46abb614f210a52c012de | examples/GPRS_ReadSMS/GPRS_ReadSMS.ino | examples/GPRS_ReadSMS/GPRS_ReadSMS.ino | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// номер на который будем отправлять сообщение
#define PHONE_NUMBER "+79263995140"
// текст сообщения, которое буде... | // библиотека для работы с GPRS устройством
#include <GPRS_Shield_Arduino.h>
// библиотека для эмуляции Serial-порта
// она нужна для работы библиотеки GPRS_Shield_Arduino
#include <SoftwareSerial.h>
// длина сообщения
#define MESSAGE_LENGTH 160
// номер сообщения в памяти сим-карты
int messageIndex = 0;
// тек... | fix readsms | fix readsms
| Arduino | mit | amperka/gprs-shield,amperka/gprs-shield |
67a6d118ea439033613b0ddff7c27f9e6b5a7923 | examples/RTCx_example/RTCx_example.ino | examples/RTCx_example/RTCx_example.ino | /*
*/
#include <Wire.h>
#include <RTCx.h>
void printTm(Stream &str, struct RTCx::tm *tm)
{
Serial.print(tm->tm_year + 1900);
Serial.print('-');
Serial.print(tm->tm_mon + 1);
Serial.print('-');
Serial.print(tm->tm_mday);
Serial.print('T');
Serial.print(tm->tm_hour);
Serial.print(':');
Serial.print(... | /*
* Demonstrate the RTCx library.
*
* This sketch demonstrates the basic functionality of the RTCx
* library. It can also be used to adjust and check the frequency
* calibration settings on MCP7941x devices.
*
* On start-up the autoprobe feature is used to search the I2C bus to
* find the first available real-... | Allow SQW output frequency to be selected. Support MCP7941x calibration. | Allow SQW output frequency to be selected. Support MCP7941x calibration.
| Arduino | lgpl-2.1 | stevemarple/RTCx,stevemarple/RTCx |
d9799c9eedc12c795b95c4f40f54daaeb474f1b4 | due/Oscilloscope/Graphs/Graphs.ino | due/Oscilloscope/Graphs/Graphs.ino | #include "GraphChristmasTree.h"
#include "CodeInTheDark.h"
#include "GraphText.h"
#include "Anna.h"
#include "GraphStar.h"
#include "GraphSquares.h"
#include "OsciCanvasInt.h"
#include "GraphRadar.h"
#include "GraphFlower.h"
#include "GraphSinus.h"
#include "GraphBase.h"
#include "GraphText.h"
#include "CodeInTheDark.h... | #include "GraphChristmasTree.h"
#include "CodeInTheDark.h"
#include "GraphText.h"
#include "GraphStar.h"
#include "GraphSquares.h"
#include "OsciCanvasInt.h"
#include "GraphRadar.h"
#include "GraphFlower.h"
#include "GraphSinus.h"
#include "GraphBase.h"
#include "GraphText.h"
#include "CodeInTheDark.h"
#include "GraphC... | Initialize random seed | Initialize random seed
| Arduino | mit | cazacov/Arduino,cazacov/Arduino |
3bd301813a27d16d9a75b665c5ebbaaab7dee5ff | examples/drawCircle/drawCircle.ino | examples/drawCircle/drawCircle.ino | /* Demo of draw circle's APP
drawCircle(int poX, int poY, int r,INT16U color);
fillCircle(int poX, int poY, int r,INT16U color);
*/
#include <stdint.h>
#include <TFTv2.h>
#include <SPI.h>
void setup()
{
TFT_BL_ON; //turn on the background light
Tft.TFTin... | /* Demo of draw circle's APP
drawCircle(int poX, int poY, int r,INT16U color);
fillCircle(int poX, int poY, int r,INT16U color);
*/
#include <stdint.h>
#include <TFTv2.h>
#include <SPI.h>
void setup()
{
TFT_BL_ON; //turn on the background light
Tft.TFTin... | Update drawCircle.ino | Update drawCircle.ino
Removed a space for homogenous comment style. | Arduino | mit | zgramana/TFT_Touch_Shield_V2,Seeed-Studio/TFT_Touch_Shield_V2,zgramana/TFT_Touch_Shield_V2,Seeed-Studio/TFT_Touch_Shield_V2 |
59e36b59279c23e08a3b22890cc83c6df5c4b3ae | Arduino/spectrum_i2c/spectrum_i2c.ino | Arduino/spectrum_i2c/spectrum_i2c.ino | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[9];
#define SIZE 1024
#define SLICE 32
byte huge[SIZE];
long energy[SIZE/SLICE];
int p = 0;
long t;
long start;
float bpm = 120;
boolean offBeat = true;
boolean sentBeat = false;
void setup() {
start = t = milli... | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[9];
#define SIZE 1024
#define SLICE 32
byte huge[SIZE];
long energy[SIZE/SLICE];
int p = 0;
long t;
long start;
long last_beat;
long beat_length;
float bpm = 120;
boolean offBeat = true;
boolean sentBeat = false;
v... | Add beat detection | Add beat detection
| Arduino | unlicense | jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights |
b6559b41323e6f2796539b1749352758dd83dd32 | Arduino/spectrum_i2c/spectrum_i2c.ino | Arduino/spectrum_i2c/spectrum_i2c.ino | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[7];
void setup() {
Wire.begin(0x29);
Wire.onRequest(sendSpectrum);
pinMode(spectrumReset, OUTPUT);
pinMode(spectrumStrobe, OUTPUT);
//Init spectrum analyzer
digitalWrite(spectrumStrobe,L... | #include "Wire.h"
int spectrumReset=5;
int spectrumStrobe=4;
int spectrumAnalog=0;
byte spectrum[7];
void setup() {
Wire.begin(0x29);
Wire.onRequest(sendSpectrum);
pinMode(spectrumReset, OUTPUT);
pinMode(spectrumStrobe, OUTPUT);
//Init spectrum analyzer
digitalWrite(spectrumStrobe,L... | Add significant dampening to the arduino signal processor | Add significant dampening to the arduino signal processor
| Arduino | unlicense | jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights,jonducrou/DJPollyLights |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.