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 |
|---|---|---|---|---|---|---|---|---|---|
3e2e8bdc935618737ba3db14e96b81d2d5fc4feb | ScriptingAccessory/firmware/play_movie/play_movie.ino | ScriptingAccessory/firmware/play_movie/play_movie.ino | /* Copyright 2012 Google Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is dist... | /* Copyright 2012 Google Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is dist... | remove unnecessary comment from play_movie.ino | remove unnecessary comment from play_movie.ino
| Arduino | apache-2.0 | kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory,kopanitsa/ScriptingAccessory |
ca72b3ba3d67b01f4b574d6076d7cd1d445e49c1 | e-kettcar.ino | e-kettcar.ino | #include <Arduino.h>
#include <Bounce2.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include "Motor.h"
#include "GasPedal.h"
#include "ExponentialSmoothing.h"
#include "settings.h"
uint8_t newDirection = DIRECTION_NONE;
float batteryVoltage = 0.0;
Bounce switchForward = Bounce();
Bounce switchBackward = Bounc... | #include <Arduino.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include "Motor.h"
#include "Battery.h"
#include "GasPedal.h"
#include "Gear.h"
#include "ExponentialSmoothing.h"
#include "settings.h"
Motor motor = Motor(PIN_ENABLE_R, PIN_PWM_R, PIN_ENABLE_L, PIN_PWM_L);
Gear gear = Gear(PIN_SWITCH_FORWARD, PIN_S... | Use Gear, Battery and ExponentialSmoothing default constructor | Use Gear, Battery and ExponentialSmoothing default constructor
| Arduino | mit | schinken/E-KettCar,schinken/E-KettCar |
3dbba4588234b2b9dfd8dacf72411c26c1d4ba28 | L11/Sketch_S2_L11_Distance/Sketch_S2_L11_Distance.ino | L11/Sketch_S2_L11_Distance/Sketch_S2_L11_Distance.ino | /*
HC-SR04 Ping distance sensor]
VCC to arduino 5v GND to arduino GND
Echo to Arduino pin 13 Trig to Arduino pin 12
Red POS to Arduino pin 11
Green POS to Arduino pin 10
Original code improvements to the Ping sketch sourced from Trollmaker.com
Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/... | /*
HC-SR04 Ping distance sensor]
VCC to arduino 5v GND to arduino GND
Echo to Arduino pin 12 Trig to Arduino pin 13
Red POS to Arduino pin 11
Green POS to Arduino pin 10
Original code improvements to the Ping sketch sourced from Trollmaker.com
Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/... | Update Sketch_S2_L11_Distance.ino | Update Sketch_S2_L11_Distance.ino
Fixed error in comments. | Arduino | mit | futureshocked/arduino_sbs,iNNPL/arduino_sbs,merbok/arduino_sbs,billdwp/arduino_sbs,billdwp/arduino_sbs,iNNPL/arduino_sbs,futureshocked/arduino_sbs,merbok/arduino_sbs,futureshocked/arduino_sbs |
6d3202b5af8449e1087d16f09d354bc6b82e0a53 | ESP8266/ESP8266.ino | ESP8266/ESP8266.ino | /******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | /******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | Update ESP8266.ino | Update ESP8266.ino | Arduino | mit | munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights |
9c2040f06a61f5b7c38d3aed40d86191cbd28a52 | src/homie-sonoff-touch.ino | src/homie-sonoff-touch.ino | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "1.0.0"
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";
const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ... | #include <ClickButton.h>
#include <Homie.h>
#define FW_NAME "homie-sonoff-touch"
#define FW_VERSION "1.0.0"
/* Magic sequence for Autodetectable Binary Upload */
const char *__FLAGGED_FW_NAME = "\xbf\x84\xe4\x13\x54" FW_NAME "\x93\x44\x6b\xa7\x75";
const char *__FLAGGED_FW_VERSION = "\x6a\x3f\x3e\x0e\xe1" FW_VERSION ... | Increase factory reset to 30 seconds | Increase factory reset to 30 seconds
| Arduino | mit | kylegordon/homie-sonoff-touch |
9ae9ff15af71509bd184b0151ec90be7f078d400 | examples/skynetim_mqtt_wifi/skynetim_mqtt_wifi.ino | examples/skynetim_mqtt_wifi/skynetim_mqtt_wifi.ino | /*
* SSSSS kk tt
* SS kk kk yy yy nn nnn eee tt
* SSSSS kkkkk yy yy nnn nn ee e tttt
* SS kk kk yyyyyy nn nn eeeee tt
* SSSSS kk kk yy nn nn eeeee tttt
* ... | /*
* SSSSS kk tt
* SS kk kk yy yy nn nnn eee tt
* SSSSS kkkkk yy yy nnn nn ee e tttt
* SS kk kk yyyyyy nn nn eeeee tt
* SSSSS kk kk yy nn nn eeeee tttt
* ... | remove uuid | remove uuid
| Arduino | lgpl-2.1 | octoblu/microblu_mqtt |
56259153c7352ba57f58b7f317db430fc08101ed | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | Update UbidotsSaveMultiValues.ino | Update UbidotsSaveMultiValues.ino | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
64079ddbb1c452c2732c86b1f1d71a32563f3f11 | ha_mqtt_light/ha_mqtt_light.ino | ha_mqtt_light/ha_mqtt_light.ino | /*
MQTT Light for Home-Assistant - NodeMCU (ESP8266)
https://home-assistant.io/components/light.mqtt/
Libraries :
- ESP8266 core for Arduino : https://github.com/esp8266/Arduino
- PubSubClient : https://github.com/knolleary/pubsubclient
Sources :
- File > Examples > ES8266WiFi > WiFiClient
... | /*
MQTT Light for Home-Assistant - NodeMCU (ESP8266)
https://home-assistant.io/components/light.mqtt/
Libraries :
- ESP8266 core for Arduino : https://github.com/esp8266/Arduino
- PubSubClient : https://github.com/knolleary/pubsubclient
Sources :
- File > Examples > ES8266WiFi > WiFiClient
... | Update ha_mqtt_light.ino | Update ha_mqtt_light.ino | Arduino | mit | mertenats/Open-Home-Automation,mertenats/Open-Home-Automation |
768ea682906cef61f2bf6869aa5d2499824a373f | laundry-dude-xbee-bridge/laundry-dude-xbee-bridge.ino | laundry-dude-xbee-bridge/laundry-dude-xbee-bridge.ino | #include <Process.h>
#include <SoftwareSerial.h>
#include <Console.h>
#define SERVER_URI "http://192.168.1.5:5000/laundrydude/api/data"
const byte numChars = 32;
char receivedChars[numChars]; // an array to store the received data
bool newData = false;
SoftwareSerial xbeeSerial(8, 9); // RX, TX
Process curl;
void ... | #include <Process.h>
#include <SoftwareSerial.h>
#include <Console.h>
#define SERVER_URI "http://192.168.1.5:5000/laundrydude/api/data"
const byte numChars = 32;
char receivedChars[numChars]; // an array to store the received data
bool newData = false;
SoftwareSerial xbeeSerial(8, 9); // RX, TX
Process curl;
void ... | Switch to console based debug on Yun. | [WifiDude] Switch to console based debug on Yun.
Signed-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>
| Arduino | mit | j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes |
7bbedae1ded38e56e3a81dbdc53978c797f1b18d | _03-hx711-scale/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino | _03-hx711-scale/_03-hx711-scale-esp-12/_03-hx711-scale-esp-12.ino | // flash 4M, CPU 80Mhz
/*
D5(SCL) - pro mini / i2c
D4(SDA) - pro mini / i2c
D13(MOSI) - LED
D14(SCK) - INT from pro mini
*/
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <PubSubClient.h>
#include <Average.h>
#include <pgmspace.h>
#include <Wire.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
... | // flash 4M, CPU 80Mhz
/*
D5(SCL) - pro mini / i2c
D4(SDA) - pro mini / i2c
D13(MOSI) - LED
D14(SCK) - INT from pro mini
*/
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <PubSubClient.h>
#include <Average.h>
#include <pgmspace.h>
#include <Wire.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
... | CHANGE PIN EDGE | CHANGE PIN EDGE
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
c1d2dd2a5eaf460ca4a3c242819c797c760ea197 | code/arduino/motors/motors.ino | code/arduino/motors/motors.ino | #include <Wire.h>
#include "motor.h"
#include "regulation.h"
/*
* This code has been created for an Arduino Mega.
* The left and right are defined from the back of
* the robot.
*/
// I2C address
const byte SLAVE_ADDRESS = 0x05;
// I2C variables
byte command = 0;
int data = -1;
bool command_received = false;
// ... | #include <Wire.h>
#include "motor.h"
#include "regulation.h"
/*
* This code has been created for an Arduino Mega.
* The left and right are defined from the back of
* the robot.
*/
// I2C address
const byte SLAVE_ADDRESS = 0x05;
// I2C variables
byte command = 0;
int data = -1;
bool command_received = false;
// ... | fix left right mismatch | fix left right mismatch
| Arduino | mit | Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main |
89da37a8e14a5312d654fa54baec80b8eb8bc865 | dee-oh-tee.ino | dee-oh-tee.ino | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int SERVO_DELAY = 15; // millis
Servo p... | #include <Servo.h>
const int buttonPin = 10;
const int laserPin = 13;
const int MIN_SERVO_DEGREES = 0;
const int MAX_SERVO_DEGREES = 180;
const int MIN_NORM_DEGREES = -90;
const int MAX_NORM_DEGREES = 90;
const int USABLE_DEGREES = MAX_SERVO_DEGREES - MIN_SERVO_DEGREES;
const int CLOCKWISE = 0;
const int COUNTERCLOC... | Add direction parameter to drawCircle and drawEllipse | Add direction parameter to drawCircle and drawEllipse
| Arduino | apache-2.0 | acj/dee-oh-tee |
67188771c8047061fe3b35264dc6f843edd62c0e | arduino-light-dimmer-ble/arduino-light-dimmer-ble.ino | arduino-light-dimmer-ble/arduino-light-dimmer-ble.ino | #include <EEPROM.h>
#include <stdint.h>
#define LED1 12
#define LED2 11
#define PIN_ZCROSS 3
#define SSR1_PIN A0
#define SSR2_PIN A1
#define SSR3_PIN A2
#define SSR4_PIN A3
#define SSR_OFF LOW
#define SSR_ON HIGH
#define BEACON_NAME "living_room" /* 12 chars max */
#define BEACON_MAJOR "0xBEEF"
#define BEACON_MINOR... | #include <EEPROM.h>
#include <stdint.h>
#define BEACON_NAME "living_room" /* 12 chars max */
#define BEACON_MAJOR "0xBEEF"
#define BEACON_MINOR "0x0001"
#define LED1 12
#define LED2 11
#define PIN_ZCROSS 3
#define SSR1_PIN A0
#define SSR2_PIN A1
#define SSR3_PIN A2
#define SSR4_PIN A3
#define INITIAL_SMOOTHING_US 20... | Make Arduino source code more civilized | Make Arduino source code more civilized
| Arduino | bsd-3-clause | primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble,primiano/light-dimmer-ble |
880343e7f1442fc3cac0d2b0b0d4704c91882a0b | examples/CAN_read/CAN_read.ino | examples/CAN_read/CAN_read.ino | #include <SPI.h>
#include <mcp_can.h>
struct can_frame canMsg;
MCP_CAN mcp2515(10, MCP_CAN::MODE_NORMAL);
void setup() {
Serial.begin(115200);
mcp2515.begin(CAN_125KBPS);
Serial.println("------- CAN Read ----------");
Serial.println("ID DLC DATA");
}
void loop() {
if (mcp2515.readMessage(&canMsg) ==... | #include <SPI.h>
#include <mcp_can.h>
struct can_frame canMsg;
MCP_CAN mcp2515(10, MCP_CAN::MODE_NORMAL);
void setup() {
Serial.begin(115200);
mcp2515.begin(CAN_125KBPS);
Serial.println("------- CAN Read ----------");
Serial.println("ID DLC DATA");
}
void loop() {
if (mcp2515.readMessage(&canMsg) ==... | fix example | fix example
| Arduino | mit | Seeed-Studio/CAN_BUS_Shield,wdross/CAN_BUS_Shield,wdross/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield,adlerweb/CAN_BUS_Shield,adlerweb/CAN_BUS_Shield |
da322244c5f480ae9789e93323b97223fcf1048d | examples/Inverse2/Inverse2.ino | examples/Inverse2/Inverse2.ino | #include "LedMatrix.h"
// pin 12 is connected to the DataIn
// pin 11 is connected to the CLK
// pin 10 is connected to LOAD
LedMatrix matrix(12,11,10);
const uint16_t delaytime = 300;
void setup()
{
// Set the brightness. (0..15)
matrix.setIntensity(0);
}
void loop()
{
// Switch all LEDs on the dis... | #include "LedMatrix.h"
// pin 12 is connected to the DataIn
// pin 11 is connected to the CLK
// pin 10 is connected to LOAD
LedMatrix matrix(12,11,10);
void setup()
{
// Set the brightness. (0..15)
matrix.setIntensity(0);
}
void loop()
{
// Switch all LEDs on the display to off.
matrix.clear();
... | update example 'Inverse2.ino' | update example 'Inverse2.ino'
| Arduino | mit | valmat/LedMatrix |
af4f9c855fbfc7315e636dc593be8ac9748074fb | firmware/wibean-firmwarev2.ino | firmware/wibean-firmwarev2.ino | // This #include statement was automatically added by the Spark IDE.
#include "SortedLookupTable.h"
// this is used for access to hardware timers
//#include "SparkIntervalTimer/SparkIntervalTimer.h"
// for now, we have to put everything in one directory for the spark-cli
// compile command to work
#include "SparkInte... | // This #include statement was automatically added by the Spark IDE.
#include "SortedLookupTable.h"
// this is used for access to hardware timers
//#include "SparkIntervalTimer/SparkIntervalTimer.h"
// for now, we have to put everything in one directory for the spark-cli
// compile command to work
#include "SparkInte... | disable Serial | disable Serial
disable Serial port if SERIAL_DEBUG is not enabled
| Arduino | apache-2.0 | WiBean/microcode-v2,WiBean/microcode-v2 |
aafead40e011e9835fb83d01c546567f6bebe61e | arduino/ws2812_controller_esp32/ws2812_controller_esp32.ino | arduino/ws2812_controller_esp32/ws2812_controller_esp32.ino | /*
*This example works for ESP32 and uses the NeoPixelBus library instead of the one bundle
*
*/
#include <Arduino.h>
#include <WiFi.h>
#include <Hash.h>
#include <WiFiUdp.h>
#include <NeoPixelBus.h>
// Set to the number of LEDs in your LED strip
#define NUM_LEDS 128
// Maximum number of packets to hold in the buffer.... | /*
*This example works for ESP32 and uses the NeoPixelBus library instead of the one bundle
*
*/
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiUdp.h>
#include <NeoPixelBus.h>
// Set to the number of LEDs in your LED strip
#define NUM_LEDS 128
// Maximum number of packets to hold in the buffer. Don't change this... | remove errored includes that aren't needed for ESP32 | remove errored includes that aren't needed for ESP32
| Arduino | mit | scottlawsonbc/audio-reactive-led-strip,scottlawsonbc/audio-reactive-led-strip,joeybab3/audio-reactive-led-strip,joeybab3/audio-reactive-led-strip |
49003e298cf1b9daef7d65d9a9a31500c6227420 | examples/sevenseg/sevenseg.ino | examples/sevenseg/sevenseg.ino | /***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED 7-Segment backpacks
----> http://www.adafruit.com/products/881
----> http://www.adafruit.com/products/880
----> http://www.adafruit.com/products/879
----> h... | /***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED 7-Segment backpacks
----> http://www.adafruit.com/products/881
----> http://www.adafruit.com/products/880
----> http://www.adafruit.com/products/879
----> h... | Update 7 segment example to uncomment floating point usage. | Update 7 segment example to uncomment floating point usage. | Arduino | mit | adafruit/Adafruit-LED-Backpack-Library,jd1056/Adafuit_backpack,SonusMart/Adafruit-LED-Backpack-Library,yangjae/Adafruit-LED-Backpack-Library,adafruit/Adafruit_LED_Backpack |
9d0a69042191843bc4de880e16870f4f3d849a6b | libraries/ESP8266WebServer/examples/WebUpdate/WebUpdate.ino | libraries/ESP8266WebServer/examples/WebUpdate/WebUpdate.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* host = "esp8266-webupdate";
const char* ssid = "........";
const char* password = "........";
ESP8266WebServer server(80);
const char* serverIndex = "<form method='POST' action='/update' enctype='multip... | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
const char* host = "esp8266-webupdate";
const char* ssid = "........";
const char* password = "........";
ESP8266WebServer server(80);
const char* serverIndex = "<form method='POST' action='/update' enctype='multip... | fix WebUpload example | fix WebUpload example
| Arduino | lgpl-2.1 | Cloudino/Cloudino-Arduino-IDE,NullMedia/Arduino,wemos/Arduino,KaloNK/Arduino,gguuss/Arduino,esp8266/Arduino,CanTireInnovations/Arduino,CanTireInnovations/Arduino,gguuss/Arduino,chrisfraser/Arduino,Cloudino/Cloudino-Arduino-IDE,lrmoreno007/Arduino,NextDevBoard/Arduino,hallard/Arduino,lrmoreno007/Arduino,edog1973/Arduino... |
97a5317cbe59b4cf7267d29a4fd4cd3bbf356b46 | volvo_hid.ino | volvo_hid.ino | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | //Lbus = LIN BUS from Car
//Vss = Ground
//Vbb = +12V
// MCP2004 LIN bus frame:
// ZERO_BYTE SYN_BYTE ID_BYTE DATA_BYTES.. CHECKSUM_BYTE
#include "Mouse.h"
#include "Keyboard.h"
// https://github.com/zapta/linbus/tree/master/analyzer/arduino
#include "lin_frame.h"
#define CS_PIN 15
#define RX_LED 17
#define HEARTB... | Simplify heartbeat check | Simplify heartbeat check
| Arduino | mit | laurynas/volvo_hid |
e54bf334d2e8165de75798918b24624b12f2bd81 | module/module.ino | module/module.ino | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMode(speakerPin, OUTPUT);
// Set up serial communic... | #include <SoftwareSerial.h>
#include "RFID.h"
SoftwareSerial RFID(RFID_RX, RFID_TX);
SoftwareSerial WIFI(WIFI_RX, WIFI_TX);
void setup() {
// Set up pins
pinMode(ledPin, OUTPUT);
pinMode(driverX, INPUT);
pinMode(driverY, INPUT);
pinMode(wifi_rst, OUTPUT);
pinMode(speakerPin, OUTPUT);
// Set up serial communic... | Debug functions added | Debug functions added
| Arduino | mit | MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM,MakerLabsVan/ACM |
41729b5096e9c27eb48b916b547dc373e6bccdec | usbvibration/usbvibration.ino | usbvibration/usbvibration.ino | // https://github.com/thomasfredericks/Metro-Arduino-Wiring
#include <Metro.h>
const int MOTORPIN = 2;
Metro blink = Metro(400);
bool isVibrationOn = false;
bool isMotorOn = false;
uint32_t now;
void onMotor(void)
{
digitalWrite(MOTORPIN, HIGH);
isMotorOn = true;
}
void offMotor(void)
{
digitalWrite(MOT... | // https://www.pjrc.com/teensy/td_libs_TimerOne.html
#include <TimerThree.h>
const int MOTORPIN = 5;
void parseMessage(int letter)
{
switch (letter) {
case 'v':
Timer3.pwm(MOTORPIN, 512);
break;
case 'V':
Timer3.pwm(MOTORPIN, 0);
break;
default:
break;
}
}
... | Use TimerThree library to blink motor | Use TimerThree library to blink motor
| Arduino | mit | deton/LyncRingNotify |
26cdcf801c76fb5e5a8e8cc799c3509ec2448abd | examples/Blink/Blink/Blink.ino | examples/Blink/Blink/Blink.ino |
/**
* Copyright 2015-2017 MICRORISC s.r.o.
*
* 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 applicable law o... | /**
* Copyright 2015-2017 MICRORISC s.r.o.
*
* 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 applicable law or... | Refactor comments in example Blink | Refactor comments in example Blink
Signed-off-by: Roman3349 <6b7cbc66756660b4790b3af1ec1507653acaa035@centrum.cz>
| Arduino | apache-2.0 | iqrfsdk/clibdpa-mcu,MacHut-coder/clibdpa-mcu |
31df1aaf4975e5efde7741c0d38e7b2197554b47 | _02-mqtt-sw-temperature/_02-mqtt-sw-temperature.ino | _02-mqtt-sw-temperature/_02-mqtt-sw-temperature.ino | #include <OneWire.h>
#include "DHT.h"
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <DallasTemperature.h>
#include <WiFiUdp.h>
#include <Time.h>
#define _IS_MY_HOME
// wifi
#ifdef _IS_MY_HOME
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_setting.h"
#endif
#define DEBUG_PRINT 0
// pin
#defin... | #include <OneWire.h>
#include "DHT.h"
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <DallasTemperature.h>
#include <WiFiUdp.h>
#include <Time.h>
#define _IS_MY_HOME
// wifi
#ifdef _IS_MY_HOME
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_setting.h"
#endif
#define DEBUG_PRINT 0
// pin
#defin... | add topic of cmd's result | add topic of cmd's result
| Arduino | lgpl-2.1 | chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino |
36c13946a33ca1975731680111093ab99d2cfeb4 | examples/BH1750FVI_Simple/BH1750FVI_Simple.ino | examples/BH1750FVI_Simple/BH1750FVI_Simple.ino | /*
This is a simple example to test the BH1750 Light sensor
Connect the sensor to a NodeMCU ESP8266 as follows:
VCC <-> 3V3 grijs
GND <-> Gnd paars
SDA <-> D2 groen
SCL <-> D1 blauw
ADDR <-> RX geel
*/
#include <Wire.h>
#include <BH1750FVI.h>
// Settings
uint8_t ADDRESSPIN = 13;
BH1750FVI::eD... | /*
This is a simple example to test the BH1750 Light sensor
Connect the sensor to a NodeMCU ESP8266:
VCC <-> 3V3 [grey]
GND <-> Gnd [purple]
SDA <-> D2 [green]
SCL <-> D1 [blue]
ADDR <-> RX [yellow]
*/
#include <Wire.h>
#include <BH1750FVI.h>
// Settings
uint8_t ADDRESSPIN = 13... | Update BH1750FVI_Simple.ino | Update BH1750FVI_Simple.ino | Arduino | mit | PeterEmbedded/BH1750FVI |
4814fc99562ae334e27d2eae9b3b57a4a0b8ccb7 | firmware/lm-wifilamp-test/lm-wifilamp-test.ino | firmware/lm-wifilamp-test/lm-wifilamp-test.ino | #include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "ws2812.h"
#define WIFI_PASS "put password here"
// Enable if you are using touch sensor instead of classic button.
#define TOUCH_BUTTON 1
#define PIXELS_COUNT 15
#define PIXELS_BYTE_COUNT (PIXELS_COUNT * 3)
#d... | #include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "ws2812.h"
#define WIFI_SSID "TheCave"
#define WIFI_PASS "put password here"
// Enable if you are using touch sensor instead of classic button.
#define TOUCH_BUTTON 1
#define PIXELS_COUNT 15
#define PIXELS_BYTE_... | Add SSID define to test sketch | [Firmware] Add SSID define to test sketch
| Arduino | mit | TheCaveCz/letsmake-wifilamp,TheCaveCz/letsmake-wifilamp |
fdb2e3d1c18db2e8d68f0f415c4cfc4d2908c965 | firmware/examples/vemltest/vemltest.ino | firmware/examples/vemltest/vemltest.ino | // This #include statement was automatically added by the Particle IDE.
#include "Adafruit_VEML6070.h"
Adafruit_VEML6070 uv = Adafruit_VEML6070();
void setup() {
Serial.begin(9600);
Serial.println("VEML6070 Test");
uv.begin(VEML6070_1_T); // pass in the integration time constant
}
void loop() {
Serial.print... | // This #include statement was automatically added by the Particle IDE.
#include "Adafruit_VEML6070/Adafruit_VEML6070.h"
Adafruit_VEML6070 uv = Adafruit_VEML6070();
void setup() {
Serial.begin(9600);
Serial.println("VEML6070 Test");
uv.begin(VEML6070_1_T); // pass in the integration time constant
}
void loop(... | fix path | fix path
| Arduino | bsd-3-clause | hl68fx/Adafruit_VEML6070 |
10c7bf96a77c234b771787084f1cca62105b3134 | 01-HelloWorldBlink/Code/01-HelloWorldBlink/HelloWorldBlink.ino | 01-HelloWorldBlink/Code/01-HelloWorldBlink/HelloWorldBlink.ino | /* SparkFun Inventor's Kit for Photon
Experiment 1 - Part 1: Hello World Blink an LED
This sketch was written by SparkFun Electronics
August 31, 2015
https://github.com/sparkfun
This is a simple example sketch that turns on an LED
for one second, off for one second, and repeats forever.
... | /* SparkFun Inventor's Kit for Photon
Experiment 1 - Part 1: Hello World Blink an LED
This sketch was written by SparkFun Electronics
August 31, 2015
https://github.com/sparkfun
This is a simple example sketch that turns on an LED
for one second, off for one second, and repeats forever.
... | Update HelloWorldBlink.ino | Update HelloWorldBlink.ino | Arduino | mit | sparkfun/Inventors_Kit_For_Photon_Experiments,sparkfun/Inventors_Kit_For_Photon_Experiments |
cc9bfc2d60594afad262f747c5698f6e414ef384 | generic-prop-controller/generic-prop-controller.ino | generic-prop-controller/generic-prop-controller.ino | /**
* Copyright 2018 Michael Heijmans
*
* Generic single sensor prop controller
*
* Author:: Michael Heijmans (parabuzzle@gmail.com)
* Copyright:: Copyright (c) 2018 Rotting Orchards
* License:: MIT
*/
// define constants
#define sensorPin 3 // Input pin connected to PIR sensor
#define relayPin 2 ... | /**
* Copyright 2018 Rotting Orchards
*
* Generic single sensor prop controller
*
* Author:: Michael Heijmans (parabuzzle@gmail.com)
* Copyright:: Copyright (c) 2018 Rotting Orchards
* License:: MIT
*/
// define constants
#define sensorPin 3 // Input pin connected to PIR sensor
#define relayPin 2 ... | fix up some bugs | fix up some bugs
| Arduino | mit | parabuzzle/arduino |
a747f36d34950e332ea38069d1f86e1a468710ad | examples/Export_Demo/myPlant_ESP8266/myPlant_ESP8266.ino | examples/Export_Demo/myPlant_ESP8266/myPlant_ESP8266.ino | /**************************************************************
* This is a DEMO sketch which works with Blynk myPlant app and
* showcases how your app made with Blynk can work
*
* You can download free app here:
*
* iOS: http://
* Android: http://
*
* If you would like to add these features to your product,
... | /**************************************************************
* This is a DEMO sketch which works with Blynk myPlant app and
* showcases how your app made with Blynk can work
*
* You can download free app here:
*
* iOS: TODO
* Android: http://play.google.com/store/apps/details?id=cc.blynk.appexport.demo
*... | Add Android link | Add Android link
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library |
acf8f775a59eb3998acdd1541974a4828a86e39a | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Link/c_open_manipulator_link/c_open_manipulator_link.ino | arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Link/c_open_manipulator_link/c_open_manipulator_link.ino | //#include <OpenManipulator.h>
#include "Link.h"
float present_time = 0.0;
float previous_time[3] = {0.0, 0.0, 0.0};
std::vector<float> init_joint_angle;
std::vector<float> target_angle;
std::vector<float> ac_angle_temp;
std::vector<float> ac_angle_min;
std::vector<float> ac_angle_max;
bool error_flug[3];
int8_t i_c... | //#include <OpenManipulator.h>
#include "Link.h"
float present_time = 0.0;
float previous_time[3] = {0.0, 0.0, 0.0};
std::vector<float> init_joint_angle;
std::vector<float> target_angle;
std::vector<float> ac_angle_temp;
std::vector<float> ac_angle_min;
std::vector<float> ac_angle_max;
bool error_flug[3];
int8_t i_c... | fix error omlink example | fix error omlink example
| Arduino | apache-2.0 | ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR |
46d642a4c31b0fca6aa8e5648514f69f9bf17a84 | firmware/lm-matrix/x80_comm.ino | firmware/lm-matrix/x80_comm.ino | #define COMM_BUF_SIZE 70
bool commOverflow;
uint8_t commBuffer[COMM_BUF_SIZE];
uint8_t commBufPos;
void commSetup() {
Serial.begin(115200);
}
void commCheck() {
int d = Serial.read();
if (d == '\n') {
if (commOverflow) {
commOverflow = false;
commBufPos = 0;
Serial.println(F("-command too... | #define COMM_BUF_SIZE 70
bool commOverflow;
uint8_t commBuffer[COMM_BUF_SIZE];
uint8_t commBufPos;
void commSetup() {
Serial.begin(115200);
}
void commCheck() {
int d = Serial.read();
if (d == '\n') {
if (commOverflow) {
commOverflow = false;
commBufPos = 0;
Serial.println(F("-command too... | add cast to textShow func call | add cast to textShow func call
| Arduino | mit | TheCaveCz/letsmake-ledmatrix,TheCaveCz/letsmake-ledmatrix |
0c5a23cdd3875b56949435fd75fb0308233e10f3 | OLED-Wifi-Scanner/OLED-Wifi-Scanner.ino | OLED-Wifi-Scanner/OLED-Wifi-Scanner.ino | // **********************************************************************************
// Scan-I2C-WiFi
// **********************************************************************************
// Written by Charles-Henri Hallard (http://hallard.me)
//
// History : V1.00 2014-04-21 - First release
// : V1.11 2015-09... | // **********************************************************************************
// Scan-I2C-WiFi
// **********************************************************************************
// Written by Charles-Henri Hallard (http://hallard.me)
//
// History : V1.00 2014-04-21 - First release
// : V1.11 2015-09... | Add files via upload | Add files via upload
Update, new functions, bug fixed | Arduino | mit | millenseer/ESP8266 |
ace738456aac42c5741dff986e625316447db735 | moist-plants.ino | moist-plants.ino | // Arduino Hygrometer
// version: 1.0.1
// Author: Mika Hassinen
#include <FastLED.h>
// fastled defines
#define NUM_LEDS 1
#define DATA_PIN 0
#define MAX_LED_VALUE 255
// timer and sensor
#define TIME_INTERVAL 1000 // 1 second interval
#define FLASH_TIME_INTERVAL 400 // 400 ms flash interval
#define ... | // Moist Plants
// version: 2.0
// Author: Mika Hassinen
#define FASTLED_INTERNAL // disable pragma message for fastled
#include <FastLED.h>
#include "config.h"
int sensorMoistureValue;
int sensorLDRValue;
int ledLevel;
int blinkCounter;
int moistureLevelMin;
int ledBrightness;
CRGB smartLed[LED_CO... | support for button to set optimum moisture level | feat: support for button to set optimum moisture level
| Arduino | mit | mikahas/moist-plants |
2fb19b3e24b38c6425d832dbc4fff2f6213a5a00 | plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino | plane/RECEIVER/sketch_aug08b/sketch_aug08b.ino | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Receiver Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
int value = 0; // set values you need to zero
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>... | /*
* Arduino Wireless Communication Tutorial
* Example 2 - Receiver Code
*
* by Dejan Nedelkovski, www.HowToMechatronics.com
*
* Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
*/
struct dataStruct{
int angleV;
int angleV1;
int angleV2;
}myData1;
int value = 0; // set val... | Update sketch_aug08b.ino | Update sketch_aug08b.ino | Arduino | apache-2.0 | mohamedalichelbi/Arduino-Plane |
68fa4e0f62a7dd65bc5abfce6fa882ebaa52e55d | examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino | examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino | //
// Copyright 2015 Google Inc.
//
// 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 applicable law or agreed to ... | //
// Copyright 2015 Google Inc.
//
// 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 applicable law or agreed to ... | fix constructor syntax | examples/push: fix constructor syntax | Arduino | apache-2.0 | gguuss/firebase-arduino,gguuss/firebase-arduino,gguuss/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,aliafshar/firebase-arduino,FirebaseExtended/firebase-arduino,proppy/firebase-arduino,aliafshar/firebase-arduino,ed7coyne/firebase-arduino |
c82c6840e41abcb82ae153f9f5b930928293c42e | libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino | /*
This sketch shows how to use multiple WiFi networks.
In this example, ESP8266 works in AP mode.
It demonstrates:
- Fast connect to previous WiFi network at startup
- Registering multiple networks (at least 1)
- Connect to WiFi with strongest signal (RSSI)
- Fall back to connect to next W... | /*
This sketch shows how to use multiple WiFi networks.
In this example, ESP8266 works in AP mode.
It demonstrates:
- Fast connect to previous WiFi network at startup
- Registering multiple networks (at least 1)
- Connect to WiFi with strongest signal (RSSI)
- Fall back to connect to next W... | Add WiFi persistent to WiFi Multi example | Add WiFi persistent to WiFi Multi example
| Arduino | lgpl-2.1 | sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino |
ebbaf2961c98e6eaee14dfb01103b37ef5502496 | EspOdom/EspOdom.ino | EspOdom/EspOdom.ino | ////////////////////////////////
//
// Wifi ROS Car with ESP8266 and
// ultrasonic range servo
//
// Find last versions at:
// https://github.com/agnunez/espros.git
//
// MIT License 2017 Agustin Nunez
/////////////////////////////////
#include <ESP8266WiFi.h>
#include <ros.h>
#include <std_msgs/String.h>
#include <st... | ////////////////////////////////
//
// Wifi ROS Car with ESP8266 and
// ultrasonic range servo
//
// Find last versions at:
// https://github.com/agnunez/espros.git
//
// MIT License 2017 Agustin Nunez
/////////////////////////////////
#include <ESP8266WiFi.h>
#include <ros.h>
#include <std_msgs/String.h>
#include <st... | Range over Servo TF tree working | Range over Servo TF tree working
| Arduino | mit | agnunez/espros |
01beef0a479c80c8c9065473707a0c673d8e724a | examples/RemoteLEDReceiver/RemoteLEDReceiver.ino | examples/RemoteLEDReceiver/RemoteLEDReceiver.ino | #include <ICSC.h>
ICSC icsc(Serial, 2);
void setup()
{
Serial.begin(115200);
icsc.begin();
icsc.registerCommand('P', &pressed);
icsc.registerCommand('R', &released);
pinMode(13, OUTPUT);
digitalWrite(13, LOW);
}
void loop()
{
icsc.process();
}
void pressed(unsigned char src, char command... | #include <ICSC.h>
ICSC icsc(Serial, 2);
//comment out the line above and uncomment the line below to use this with ChainDuinos
//ICSC icsc(Serial, 2 ,2); // last argument specifies DE pin on ChainDuino
void setup()
{
Serial.begin(115200);
icsc.begin();
icsc.registerCommand('P', &pressed);
icsc.registe... | Update RemoteLEDReceiver.ino | Update RemoteLEDReceiver.ino | Arduino | bsd-3-clause | MajenkoLibraries/ICSC,MajenkoLibraries/ICSC |
63b41bcfab0dbf55a72192fead77c2d067213fc4 | libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino | libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino | /*
HTTP over TLS (HTTPS) example sketch
This example demonstrates how to use
WiFiClientSecure class to access HTTPS API.
We fetch and display the status of
esp8266/Arduino project continuous integration
build.
Limitations:
only RSA certificates
no support of Perfect Forward Sec... | /*
HTTP over TLS (HTTPS) example sketch
This example demonstrates how to use
WiFiClientSecure class to access HTTPS API.
We fetch and display the status of
esp8266/Arduino project continuous integration
build.
Created by Ivan Grokhotkov, 2015.
This example is in public domain.
*/
#inc... | Use root cert, not fingerprint for api.github.com (#7490) | Use root cert, not fingerprint for api.github.com (#7490)
In the HTTPS example we were using a fingerprint which changes almost
daily as the github.com certificates are regenerated. Replace this with
a trust anchor based on the ultimate root CA that github.com uses to
sign their certificates. Assuming they don't ... | Arduino | lgpl-2.1 | sticilface/Arduino,esp8266/Arduino,esp8266/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,esp8266/Arduino,sticilface/Arduino,sticilface/Arduino |
19021040800e3342f4a668c70b4392a45e16fb39 | teensy3/libraries/TeensyRTC/examples/TeensyRTCExample.ino | teensy3/libraries/TeensyRTC/examples/TeensyRTCExample.ino | /*
* TeensyRTCExample
*
* Created on: Nov 13, 2014
* Author: Konstantin Gredeskoul
* Code: https://github.com/kigster
*
* (c) 2014 All rights reserved, MIT License.
*/
#include <Time.h>
#include <TeensyRTC.h>
TeensyRTC rtc;
char stringBuffer[20];
time_t getTeensy3Time() {
return Teensy3Clock.... | /*
* TeensyRTCExample
*
* Created on: Nov 13, 2014
* Author: Konstantin Gredeskoul
* Code: https://github.com/kigster
*
* (c) 2014 All rights reserved, MIT License.
*/
#include <Time.h>
#include <TeensyRTC.h>
TeensyRTC rtc;
char stringBuffer[20];
time_t getTeensy3Time() {
return Teensy3Clock.... | Fix tabs | Fix tabs
| Arduino | mit | kigster/kiguino,kigster/kiguino |
1357feed16fbc4e6a0ea4ceacd1a7e65fcc6cd7f | Examples/Arduino-and-PHP/Arduino/COA_Arduino_with_ethernet.ino | Examples/Arduino-and-PHP/Arduino/COA_Arduino_with_ethernet.ino | /*****************************************************************
******************************************************************
____ ___ _
/ ___/ _ \ / \
| | | | | |/ _ \
| |__| |_| / ___ \
\____\___/_/ \_\
Conor's Obscurification Algorithm
Cono... | /*****************************************************************
******************************************************************
____ ___ _
/ ___/ _ \ / \
| | | | | |/ _ \
| |__| |_| / ___ \
\____\___/_/ \_\
Conor's Obfuscation Algorithm
Conor ... | Update COA_Arduino_with_ethernet.ino | Update COA_Arduino_with_ethernet.ino | Arduino | mit | conorwalsh/COA |
70f744ddb3626be93f00b06e1ab021d7b404eb6e | TinyScreenClockAndDisplay/TinyScreenClockAndDisplay.ino | TinyScreenClockAndDisplay/TinyScreenClockAndDisplay.ino | #define BLACK 0x00
#define BLUE 0xE0
#define RED 0x03
#define GREEN 0x1C
#define DGREEN 0x0C
#define YELLOW 0x1F
#define WHITE 0xFF
#define ALPHA 0xFE
#define BROWN 0x32
#include "SSD1331.h"
#include <SPI.h>
#include <Wire.h... | #define BLACK 0x00
#define BLUE 0xE0
#define RED 0x03
#define GREEN 0x1C
#define DGREEN 0x0C
#define YELLOW 0x1F
#define WHITE 0xFF
#define ALPHA 0xFE
#define BROWN 0x32
#include "SSD1331.h"
#include <SPI.h>
#include <Wire.h... | Update to add DSTRCLib | Update to add DSTRCLib | Arduino | apache-2.0 | SammyDuino/watchOS,SammyDuino/Watch-2.0 |
8dd8d983f22d6dc4a2b1f9e3e7e1b6c09c959ae0 | SegaMasterSystem_GamePad_USB/SegaMasterSystem_GamePad_USB.ino | SegaMasterSystem_GamePad_USB/SegaMasterSystem_GamePad_USB.ino | /* Sega Master System (SMS) Control Pad to USB
* Auth: John Milner / jfrmilner
*
* Date
* July 2016
*
* Hardware
* ATmega32u4 based Arduino (Arduino Leonardo/Micro)
* Sega Master System Control Pad - http://segaretro.org/Control_Pad_(Master_System)
*
* Software
* Arduino IDE 1.6.8
* Arduino Joystick Libr... | /* Sega Master System (SMS) Control Pad to USB
* Auth: John Milner / jfrmilner
* Blog Post URL: https://jfrmilner.wordpress.com/2016/07/17/arduino-project-sega-master-system-sms-control-pad-to-windowslinux-retropie-usb/
*
* Date
* July 2016
*
* Hardware
* ATmega32u4 based Arduino (Arduino Leonardo/Micro)
* S... | Add Blog Post URL | Add Blog Post URL
| Arduino | unlicense | jfrmilner/Arduino-USBRetroGamingControllers |
e5fca334fa40dbee023f8e8cd12e0c74e7ad4ef9 | OneWire/sketch_onewire_DS18x20.ino | OneWire/sketch_onewire_DS18x20.ino | /* One Wire - Example to Use
We made the experiments with a Seeed Studio SEN08011P Temp Sensor
the chip inside this sensor is the widely adopted DS18B20 product
by Maxim/Dallas!
Keep in Mind : The ds.search(addr) works like an iterator, if a
device is found the address is put in the byte addr... | /* One Wire - Example to Use
We made the experiments with a Seeed Studio SEN08011P Temp Sensor
the chip inside this sensor is the widely adopted DS18B20 product
by Maxim/Dallas!
Keep in Mind : The ds.search(addr) works like an iterator, if a
device is found the address is put in the byte addr... | Update sketch_onewire_DS18x20.ino | Update sketch_onewire_DS18x20.ino | Arduino | mit | CICCIOSGAMINO/arduino_TRE,CICCIOSGAMINO/arduino_TRE,CICCIOSGAMINO/arduino_TRE |
e22340d6b5fdb268a77e4ed6de30cd8765cfc180 | 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>
const byte AIO_WIND_DIRECTION = A0;
const by... | /*
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>
const byte AIO_WIND_DIRECTION = A0;
const by... | Fix wind direction table for 10K resistor and 3.3v. | Fix wind direction table for 10K resistor and 3.3v.
| Arduino | bsd-2-clause | tetious/FluffyWeather,tetious/FluffyWeather,tetious/FluffyWeather |
5239c4f0c777f2930be81f3f057442ccaa27e7c3 | sketchbook/printer/printer.ino | sketchbook/printer/printer.ino | #include <Motor.h>
int posX = 0;
int posY = 0;
int posZ = 0;
boolean configured = false;
Motor motorX(2, 3, 4, 5);
Motor motorY(6, 7, 8, 9);
Motor motorZ(10, 11, 12, 13);
void setup() {
Serial.begin(9600);
while(!Serial);
}
void cmdMotor(int & pos, Motor & motor) {
int steps = Serial.parseInt();
po... | #include <Motor.h>
int posX = 0;
int posY = 0;
int posZ = 0;
boolean configured = false;
Motor motorX(2, 3, 4, 5);
Motor motorY(6, 7, 8, 9);
Motor motorZ(10, 11, 12, 13);
void setup() {
Serial.begin(9600);
while(!Serial);
}
void setPos(int & pos, Motor & motor) {
if (!configured) {
errConf();
... | set {x,y,z} | set {x,y,z} | Arduino | mit | lennart96/printer,lennart96/printer,lennart96/printer |
8734c1248ffed959f804dd9ceb2436534d9cf467 | client/RGB_control/RGB_control.ino | client/RGB_control/RGB_control.ino | /*
* Created by Leandro Späth ©2016
* Sources:
* - https://github.com/esp8266/Arduino
* - https://github.com/knolleary/pubsubclient
* TODO 10bit / 8 bit gamma table (for more accurate PWM)
* asdf
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA... | /*
* Created by Leandro Späth ©2016
* Sources:
* - https://github.com/esp8266/Arduino
* - https://github.com/knolleary/pubsubclient
* TODO 10bit / 8 bit gamma table (for more accurate PWM)
* asdf
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA... | handle always OTA | handle always OTA
| Arduino | mit | opendata-heilbronn/RGB-LED-control,opendata-heilbronn/RGB-LED-control,opendata-heilbronn/RGB-LED-control,opendata-heilbronn/RGB-LED-control |
4c00a6ad5d5b9111d1cd16d616f579a7a8a1be96 | 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/SW01/
This example request a humidity meausrement to be
made by the SW01 and display the data over the Seri... | /*************************************************************
This is an examples for the SW01
Digital Temperature, Pressure and Humidity Sensor
You can buy one on our store!
-----> https://xinabox.cc/products/SW01
This example request a humidity meausrement to be
made by the SW01 and display the data over ... | Update SW01_Humidity_Measurement.ino | Update SW01_Humidity_Measurement.ino | Arduino | mit | xinabox/xSW01 |
d22cb1c48b6b5e8396f8ffc7c32aa06f7c0efb1b | code/arduino/motors/motors.ino | code/arduino/motors/motors.ino | #include <Wire.h>
#include "motor.h"
#include "regulation.h"
/*
* This code has been created for an Arduino Mega.
* The left and right are defined from the back of
* the robot.
*/
// I2C address
const byte SLAVE_ADDRESS = 0x05;
// I2C variables
byte command = 0;
int data = -1;
bool command_received = false;
// ... | #include <Wire.h>
#include "motor.h"
#include "regulation.h"
/*
* This code has been created for an Arduino Mega.
* The left and right are defined from the back of
* the robot.
*/
// I2C address
const byte SLAVE_ADDRESS = 0x05;
// I2C variables
byte command = 0;
int data = -1;
bool command_received = false;
// ... | correct pin for encoder | correct pin for encoder
| Arduino | mit | Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main |
625a50bafa7db5908c0eb230879d06d1b011e7eb | examples/IRsendDemo/IRsendDemo.ino | examples/IRsendDemo/IRsendDemo.ino | /* IRremoteESP8266: IRsendDemo - demonstrates sending IR codes with IRsend.
*
* Version 1.0 April, 2017
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009,
* Copyright 2009 Ken Shirriff, http://arcfn.com
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
*
* TL;DR: The IR LED needs to be ... | /* IRremoteESP8266: IRsendDemo - demonstrates sending IR codes with IRsend.
*
* Version 1.0 April, 2017
* Based on Ken Shirriff's IrsendDemo Version 0.1 July, 2009,
* Copyright 2009 Ken Shirriff, http://arcfn.com
*
* An IR LED circuit *MUST* be connected to ESP8266 pin 4 (D2).
*
* TL;DR: The IR LED needs to be ... | Add an example of sendRaw() to IRsendDemo.ino (#270) | Add an example of sendRaw() to IRsendDemo.ino (#270)
People seem to ask how to do this fairly regularly (#269).
Adding an example of it. | Arduino | lgpl-2.1 | markszabo/IRremoteESP8266,markszabo/IRremoteESP8266,markszabo/IRremoteESP8266,markszabo/IRremoteESP8266 |
ad73772b92b3ba13b96def208986865d9e5482a2 | examples/clock_sevenseg_ds1307/clock_sevenseg_ds1307.ino | examples/clock_sevenseg_ds1307/clock_sevenseg_ds1307.ino | // Clock example using a seven segment display & DS1307 real-time clock.
//
// Must have the Adafruit RTClib library installed too! See:
// https://github.com/adafruit/RTClib
//
// Designed specifically to work with the Adafruit LED 7-Segment backpacks
// and DS1307 real-time clock breakout:
// ----> http://www.adaf... | // Clock example using a seven segment display & DS1307 real-time clock.
//
// Must have the Adafruit RTClib library installed too! See:
// https://github.com/adafruit/RTClib
//
// Designed specifically to work with the Adafruit LED 7-Segment backpacks
// and DS1307 real-time clock breakout:
// ----> http://www.adaf... | update example | update example
| Arduino | mit | adafruit/Adafruit-LED-Backpack-Library,adafruit/Adafruit_LED_Backpack |
454a45f18f9337058ae932cf6f3d889339d44559 | examples/servo_point_controler/servo_point_controler.ino | examples/servo_point_controler/servo_point_controler.ino | /*
This example implements a servo controler.
It drives 16 servos. Can be more in arduino Mega, but it just an example.
Each servo has the parameter start,end.
Start and end are integers in degrees from 0 to 180. and the velocity from 1 to 255:
Each event can control the 16 servos, therefore each event has 6 variables.... | /*
This example implements a servo controler.
It drives 16 servos. Can be more in arduino Mega, but it just an example.
Each servo has the parameter start,end.
Start and end are integers in degrees from 0 to 180. and the velocity from 1 to 255:
Each event can control the 16 servos, therefore each event has 6 variables.... | Add more servos | Add more servos
| Arduino | apache-2.0 | amaurial/mergCanBus,amaurial/mergCanBus,amaurial/mergCanBus,amaurial/mergCanBus |
7a83c6872d6d81374916c0d56796687cdbfc58dd | AM2321Example.ino | AM2321Example.ino | /****************************************************************
This is the Spark Core example of using the library of the
AM2321 Humidity and Temperature sensor
This sensor uses custom I2C communication and supports 2 wires
and one wire configuration.
This example assumed a 2 wires configuration.
... | /****************************************************************
This is the Spark Core example of using the library of the
AM2321 Humidity and Temperature sensor
This sensor uses custom I2C communication and supports 2 wires
and one wire configuration.
This example assumed a 2 wires configuration.
... | Update AM2321Example.ino | Update AM2321Example.ino
Changed the wait time to 2s after each read from the device. | Arduino | mit | edwios/AM2321_old,edwios/AM2321_old |
57072c796fe625493981ae724c2fd7506559c2f4 | Receiver_test/Receiver_test.ino | Receiver_test/Receiver_test.ino |
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define PIN 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800... |
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
//#include "printf.h"
#define PIN 6
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800... | Remove unused functions | Remove unused functions
| Arduino | mit | RichardBronosky/lantern-sequencer,RichardBronosky/lantern-sequencer |
b562c4af35339f0cc3a2ebac38dc7d660ecddcbb | PulseSensorAmped_Arduino_1dot4/Timer_Interrupt_Notes.ino | PulseSensorAmped_Arduino_1dot4/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 | Arduino | mit | WorldFamousElectronics/PulseSensor_Amped_Arduino |
f0e3ec56a39cc9947390bd696d0019ce84e8065e | build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino | build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino | /*
Adding Strings together
Examples of how to add strings together
You can also add several different data types to string, as shown here:
created 27 July 2010
modified 2 Apr 2012
by Tom Igoe
http://www.arduino.cc/en/Tutorial/StringAdditionOperator
This example code is in the public domain.
*/
// declare... | /*
Adding Strings together
Examples of how to add strings together
You can also add several different data types to string, as shown here:
created 27 July 2010
modified 2 Apr 2012
by Tom Igoe
http://www.arduino.cc/en/Tutorial/StringAdditionOperator
This example code is in the public domain.
*/
// declare... | Fix tutorial typos | Fix tutorial typos | Arduino | lgpl-2.1 | stickbreaker/Arduino,stickbreaker/Arduino,Chris--A/Arduino,majenkotech/Arduino,me-no-dev/Arduino-1,stickbreaker/Arduino,me-no-dev/Arduino-1,tbowmo/Arduino,Chris--A/Arduino,bsmr-arduino/Arduino,me-no-dev/Arduino-1,PaoloP74/Arduino,PaoloP74/Arduino,Chris--A/Arduino,tbowmo/Arduino,majenkotech/Arduino,bsmr-arduino/Arduino,... |
f160ac9216a3118d713e7f84ad8f81aa1a0c3249 | rs485/RS485_UnoR3_Master.ino | rs485/RS485_UnoR3_Master.ino | #include <SimpleModbusMaster.h>
#define baud 9600
#define timeout 1000
#define polling 200
#define retry_count 10
#define TxEnablePin 2
#define LED 9
#define TOTAL_NO_OF_REGISTERS 1
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // leave this last entry
};
int sensorValue = 0; // value read from the po... | #include <SimpleModbusMaster.h>
#define baud 9600
#define timeout 1000
#define polling 200
#define retry_count 10
#define TxEnablePin 2
#define LED 9
#define TOTAL_NO_OF_REGISTERS 1
enum
{
PACKET1,
PACKET2,
TOTAL_NO_OF_PACKETS // leave this last entry
};
int sensorValue = 0; // value read from the po... | Update RS485_UnoR3_Master.ino | Update RS485_UnoR3_Master.ino | Arduino | mit | pumanzor/modbus,pumanzor/modbus,pumanzor/modbus |
32ab6247f69f44c15b03a4e18cd0fd587ae44ead | arduino_atu.ino | arduino_atu.ino | // Copyright 2013 David Turnbull AE9RB
//
// 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 applicable law or agre... | // Copyright 2013 David Turnbull AE9RB
//
// 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 applicable law or agre... | Remove unnecessary line. | Remove unnecessary line.
| Arduino | apache-2.0 | AE9RB/peaberry,AE9RB/peaberry |
ffc3e048eb89fb40be5cab2da79f9c580a1f7f39 | firmware/examples/ADXL362_SimpleRead/ADXL362_SimpleRead.ino | firmware/examples/ADXL362_SimpleRead/ADXL362_SimpleRead.ino | /*
ADXL362_SimpleRead.ino - Simple XYZ axis reading example
for Analog Devices ADXL362 - Micropower 3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet
License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
p... | /*
ADXL362_SimpleRead.ino - Simple XYZ axis reading example
for Analog Devices ADXL362 - Micropower 3-axis accelerometer
go to http://www.analog.com/ADXL362 for datasheet
License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this code however you'd like. If you find it useful
p... | Update ADXL362_SimpleRead.ino | Update ADXL362_SimpleRead.ino | Arduino | cc0-1.0 | gregoryfenton/adxl362 |
1c658e2aa70b68ada5f912469a4bd9f3b100fba6 | examples/01-Basic/TrebleBoost_wComp/TrebleBoost_wComp.ino | examples/01-Basic/TrebleBoost_wComp/TrebleBoost_wComp.ino | /*
* TrebleBoost_wComp
*
* Created: Chip Audette, OpenAudio, Apr 2017
* Purpose: Process audio by applying a high-pass filter followed by gain followed
* by a dynamic range compressor.
*
* Uses Tympan Audio Adapter.
* Blue potentiometer adjusts the digital gain applied to the filtered audio signal.... | /*
* TrebleBoost_wComp
*
* Created: Chip Audette, OpenAudio, Apr 2017
* Purpose: Process audio by applying a high-pass filter followed by gain followed
* by a dynamic range compressor.
*
* Uses Tympan Audio Adapter.
* Blue potentiometer adjusts the digital gain applied to the filtered audio signal.... | Update TrebleBoost_wComp.ino | Update TrebleBoost_wComp.ino
Changing input from on board mic to mic jack | Arduino | mit | Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library |
f0e564f714a65b14927dd8a4267ef34f9a631514 | examples/MifareClassicValueBlock/MifareClassicValueBlock.ino | examples/MifareClassicValueBlock/MifareClassicValueBlock.ino | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | /*
* MFRC522 - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* The library file MFRC522.h has a wealth of useful info. Please read it.
* The functions are documented in MFRC522.cpp.
*
* Based on code Dr.Leong ( WWW.B2CQSHOP.COM )
* Created by Miguel Balboa (circuitito.com)... | Update MifareClassicValueBlock.ino | Update MifareClassicValueBlock.ino
Pinout in comments does not match Arduino Mega pinout | Arduino | unlicense | smallkid/rfid,sophiekovalevsky/rfid,northDacoder/rfid,miguelbalboa/rfid,r44947/rfid,mirko314/rfid,webdevbrian/rfid,mangine/mraa_MFRC522,juantejedavz/rfid,hramrach/rfid,lpr0lpd/rfid,tamchau2809/rfid,1upon0/rfid,prikevs/rfid,yaalsn/rfid,Rotzbua/rfid,Rotzbua/rfid,CapeSepias/rfid,irhastofa/rfid,LaloHao/rfid |
a50f790e9ac255beb6da2be3ab169b42c4fc62be | examples/Basics/Hello/Hello.ino | examples/Basics/Hello/Hello.ino | #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// Initialize the M5Stack object
m5.begin();
// LCD display
m5.Lcd.printf("hello world");
}
// the loop routine runs over and over again forever
void loop() {
if(digitalRead(39) == 0) {
M5.powerOFF();
}
}
| #include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
void setup(){
// Initialize the M5Stack object
m5.begin();
// LCD display
m5.Lcd.printf("hello world");
}
// the loop routine runs over and over again forever
void loop() {
}
| add the software power off example | add the software power off example
| Arduino | mit | m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack |
335a73733387d5a2121917a3901b4be8fd0cf505 | examples/Navigator/Navigator.ino | examples/Navigator/Navigator.ino | /*
* Pano Controller for Arduino project
*
* Copyright (C)2015,2016 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <SPI.h>
#include <BasicStepperDriver.h... | /*
* Pano Controller for Arduino project
*
* Copyright (C)2015,2016 Laurentiu Badea
*
* This file may be redistributed under the terms of the MIT license.
* A copy of this license has been included with this distribution in the file LICENSE.
*/
#include <Arduino.h>
#include <SPI.h>
#include <BasicStepperDriver.h... | Increase settings update frequency to once every 4 seconds | Increase settings update frequency to once every 4 seconds | Arduino | mit | laurb9/pano-controller,laurb9/pano-controller,laurb9/gigapanplus,laurb9/gigapanplus |
e4f8c0e08aa68f70a9e273c2d9c7081f4a7b802d | Seth.ino | Seth.ino | #include <SoftwareSerial.h>
#include <TinyGPS++.h>
#define ID 1
#define APN "internet"
SoftwareSerial gpsSerial(11, 12); // RX, TX
SoftwareSerial gsmSerial(9, 10); // RX, TX
TinyGPSPlus gps;
char latSign, lngSign;
uint16_t latDeg, lngDeg;
uint32_t latFrac, lngFrac;
uint32_t date, time, speed, course, altitude, ... | #include <SoftwareSerial.h>
#include <TinyGPS++.h>
#define ID 1
#define APN "internet"
#define ARDUINO_RESET_PIN 7
#define SIM800_RESET_PIN 8
SoftwareSerial gpsSerial(11, 12); // RX, TX
SoftwareSerial gsmSerial(9, 10); // RX, TX
TinyGPSPlus gps;
char latSign, lngSign;
uint16_t latDeg, lngDeg;
uint32_t latFrac, lngFr... | Add SMS functionality | Add SMS functionality
| Arduino | mit | sbekti/seth-beacon |
1e1c7c73f953c4b98d21190cb7edc13405e30cef | simu_buttonreader_teensy_base/simu_buttonreader_teensy_base.ino | simu_buttonreader_teensy_base/simu_buttonreader_teensy_base.ino | /* Base (connected with USB to a PC)
for wireless bluetooth button/shifter system using
two Teensy 3.2 microcontrollers and 2 HC-05 bluetooth modules.
Pinout for this base unit:
0 serial rx
1 serial tx
2 bluetooth status
11 connection status led
13 power led
*/
// some status variables
boolean teen... | /* Base (connected with USB to a PC)
for wireless bluetooth button/shifter system using
two Teensy 3.2 microcontrollers and 2 HC-05 bluetooth modules.
Pinout for this base unit:
0 serial rx
1 serial tx
2 bluetooth status
22 battery warning led
23 power /connection status led
*/
// used pin definiti... | Add files via upload | Add files via upload
Harmonized LED functionality to be the same as the wheel pins. Connection led stays on when there is a connection, and blinks if no connection. Battery blinks when battery on wheel is low.
Made both pins PWM controllable; this resulted in change to the pinout. | Arduino | apache-2.0 | mtakala/simracing_wireless_buttons |
cbe2b44ef5e7abd7b7b0ad78b07fd67eea25bab4 | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | examples/UbidotsSaveMultiValues/UbidotsSaveMultiValues.ino | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | #include <Ubidots_Arduino_GPRS.h>
#include <SoftwareSerial.h>
//Serial Relay - Arduino will patch a
//serial link between the computer and the GPRS Shield
//at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART
#define APN "Your_apn_of_your_SIM_here"
#define USE... | Update UbidotsSaveMultiValues.ino | Update UbidotsSaveMultiValues.ino | Arduino | mit | ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs |
9f2abb3445d81fd1ede672cfac0f9d2ab7ce77c3 | Controller/Tiny85-Standalone-22H/Tiny85-Standalone-22H.ino | Controller/Tiny85-Standalone-22H/Tiny85-Standalone-22H.ino | /*
* ATtiny85v 8Mhz @ 3.3v
* +---U---+
* Reset | 1 8 | Vcc
* NC // (PB3) | 2 7 | MOTOR_START (PB2)
* POT (PB4/A2) | 3 6 | MOTOR_PWM (PB1)
* GND | 4 5 | LED_SPEED (PB0)
* +-------+
*/
const byte MOTOR_PWM = 1;
const byte MOTOR_... | /*
* ATtiny85v 8Mhz @ 3.3v
* +---U---+
* Reset | 1 8 | Vcc
* NC // (PB3) | 2 7 | MOTOR_START (PB2)
* POT (PB4/A2) | 3 6 | MOTOR_PWM (PB1)
* GND | 4 5 | LED_SPEED (PB0)
* +-------+
*/
const byte MOTOR_PWM = 1;
const byte MOTOR_... | change to phase-correct pwm to reduce whining | change to phase-correct pwm to reduce whining
| Arduino | mit | gharris012/StirPlate,gharris012/StirPlate |
f17b2b96c047ed72cc28093ccdd2e46f44a2b523 | aquacontrol32.ino | aquacontrol32.ino | #include "SPI.h"
#include <SD.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "MHDS18B20.h"
#include <WiFi.h>
#include <ESPmDNS.h>
#include "time.h"
#include <Preferences.h>
#include "SSD1306.h" //https://github.com/squix78/esp8266-oled-ssd1306
#include <ESP32WebServer.h> //http:/... | #include "SPI.h"
#include <SD.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "MHDS18B20.h"
#include <WiFi.h>
#include <ESPmDNS.h>
//#include "time.h"
#include <Preferences.h>
#include "SSD1306.h" //https://github.com/squix78/esp8266-oled-ssd1306
#include <ESP32WebServer.h> //http... | Set the hostname. | Set the hostname.
time.h is not needed?
| Arduino | mit | CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32 |
68e1582351c2d8bcd1e16afde1c16c182a20a5ae | examples/Ethernet/CosaShellWebServer/CosaShellWebServer.ino | examples/Ethernet/CosaShellWebServer/CosaShellWebServer.ino | /**
* @file CosaShellWebServer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | /**
* @file CosaShellWebServer.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | Allow URL notation with plus; e.g. digitalread+all | Allow URL notation with plus; e.g. digitalread+all
| Arduino | lgpl-2.1 | jeditekunum/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,dansut/Cosa,dansut/Cosa,dansut/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,rrobinet/Cosa,jeditekunum/Cosa,kc9jud/Cosa,kc9jud/Cosa,kc9jud/Cosa,jeditekunum/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,dansut/Cosa,rrobinet/Cosa,mikaelpatel/Cosa |
48de45dbdffd9e86739257579e2c411b79ae8f26 | Prototype/RadioLinkRF24/RadioLinkRF24.ino | Prototype/RadioLinkRF24/RadioLinkRF24.ino | /**
TODO: central node, with USB-UART bridge to processing host
(Relay role can be in leaf sketches.)
- Quickest start is probably hardcoding the structs per sketch type.
And challenging node for config (announce) but using only sketch Id.
Ie. keeping run-time map of node address to sketch id.
That or don't bo... | /**
TODO: central node, with USB-UART bridge to processing host
(Relay role can be in leaf sketches.)
- Quickest start is probably hardcoding the structs per sketch type.
And challenging node for config (announce) but using only sketch Id.
Ie. keeping run-time map of node address to sketch id.
That or don't bo... | Work on linknode registry in eeprom | Work on linknode registry in eeprom
| Arduino | mit | dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs,dotmpe/Arduino-docs |
d50b313f238fa7bf22a6ef34ea9cff9d694e6528 | examples/chat_room/chat_room.ino | examples/chat_room/chat_room.ino | /**
The pozyx chat demo
please check out https://www.pozyx.io/Documentation/Tutorials/getting_started
This demo requires at least two pozyx shields and an equal number of Arduino's.
It demonstrates the wireless messaging capabilities of the pozyx device.
This demo creates a chat room. Text written in t... | /**
The pozyx chat demo
please check out https://www.pozyx.io/Documentation/Tutorials/getting_started
This demo requires at least two pozyx shields and an equal number of Arduino's.
It demonstrates the wireless messaging capabilities of the pozyx device.
This demo creates a chat room. Text written in t... | Update chat_room.ino | Update chat_room.ino | Arduino | mit | pozyxLabs/Pozyx-Arduino-library,pozyxLabs/Pozyx-Arduino-library |
a3fcfeca10c28164d2e4be75c9cb6a5090c4c3d9 | src/gauge/gauge.ino | src/gauge/gauge.ino | int gaugePin = 9;
int baud = 28800;
int gaugeVal = 0;
int newGaugeVal = 0;
int distance;
int state = 1; // Start at the tens
void setup() {
Serial.begin(baud);
pinMode(gaugePin, OUTPUT);
}
void loop() {
if (gaugeVal != newGaugeVal) {
distance = abs(gaugeVal - newGaugeVal);
gaugeVal = newGaugeVal;
a... | int gaugePin = 9;
int baud = 28800;
int gaugeVal = 0;
int newGaugeVal = 0;
int distance;
// The state variable determines what digit the next value of Serial.read() is.
// 0: one's digit
// 1: ten's digit
// The starting state is the ten's digit, as the state machine reads digits in
// most-significant to least-si... | add comments to sketch | add comments to sketch
| Arduino | bsd-3-clause | clofresh/gaugeduino |
c23a22203bdbd614304f3a3df13cedbd0ff3a0b1 | 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 te... | //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 te... | Update OpenCTD_master_m0.ino | Update OpenCTD_master_m0.ino | Arduino | mit | OceanographyforEveryone/OpenCTD |
a087602e55d7708c2908123f50505ce48b74bb7d | 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[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
// The printerType controls the format of th... | #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[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0x67 }; // physical mac address
// The printerType controls the format of th... | Update the Printer Arduino sketch. | Update the Printer Arduino sketch.
We should always set the mode of the 3 LED pins to OUTPUT, irrespective
of whether we've enabled debugging or not.
I did consider splitting the initDiagnosticLEDs function into two: one
containing the logic for initialising the LED pins and the other to turn
then on for a second. I ... | Arduino | mit | exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer |
184e447d0c52e9a1af222e760b7bab64041397e9 | src/TempGauge/TempGauge.ino | src/TempGauge/TempGauge.ino | #include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <Wire.h>
#include <RTClib.h>
#include <OneWire.h>
#include "WiFiSettings.h"
// CC3000 configuration
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5 // VBAT and CS can be any two pins
#... | #include <Adafruit_CC3000.h>
#include <ccspi.h>
#include <SPI.h>
#include <Wire.h>
#include <RTClib.h>
#include <OneWire.h>
#include "WiFiSettings.h"
// CC3000 configuration
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin!
#define ADAFRUIT_CC3000_VBAT 5 // VBAT and CS can be any two pins
#... | Make client compatible with new brew monitor server | Make client compatible with new brew monitor server
Trying things out with Grails because I'm a millennial software developer
and that means I'm fickle about my technology choices.
| Arduino | mit | AlarmingCow/brew-monitor-arduino-client |
a4b3ce2769cfb256d468b090b904c3761c153c35 | moros/moros.ino | moros/moros.ino | /*
* TODO:
* reset button (chronos style?) - P1
* time setting - P1
* case - P1
* wiring diagram - P2 S3
* pause - P2
* have graphical representation of flag P3
* OLEDs
*
*/
#include <SPI.h>
#include <SD.h>
//#include <TFT.h>
#include <FTOLED.h>
#include "moros_oled.h"
#include "printf.h"
#define NONE -1
//#define... | /*
* TODO:
* time setting - P1
* case - P1
* wiring diagram - P2 S3
* pause - P2
* have graphical representation of flag P3
* OLEDs
*
*/
#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 INITI... | Fix reset button's use of the internal AVR pull-up resistor | Fix reset button's use of the internal AVR pull-up resistor
| Arduino | mit | adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros |
86274f8d9af2dd28b975d236191ea9c3b12cddeb | 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("*\tReady");
for (int i=0; i<200; i++)
brother.needle(0, false);
}
boolean changed = true;
void onChange(void* c) {
changed = true;
}... | Make ready message format compatible. | Make ready message format compatible.
| Arduino | apache-2.0 | msiegenthaler/brotherKH930_arduino |
6050e32beee37d6bad1cf8d9fa6f07c07231b651 | arduino/ws2812_controller_esp8266/ws2812_controller_esp8266.ino | arduino/ws2812_controller_esp8266/ws2812_controller_esp8266.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Hash.h>
#include <WiFiUdp.h>
#include <NeoPixelBus.h>
// Set to the number of LEDs in your LED strip
#define NUM_LEDS 60
// Maximum number of packets to hold in the buffer. Don't change this.
#define BUFFER_LEN 1024
// Toggles FPS output (1 = print FPS over seria... | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <NeoPixelBus.h>
// Set to the number of LEDs in your LED strip
#define NUM_LEDS 60
// Maximum number of packets to hold in the buffer. Don't change this.
#define BUFFER_LEN 1024
// Toggles FPS output (1 = print FPS over serial, 0 = disable out... | Remove unused library import | Remove unused library import | Arduino | mit | scottlawsonbc/audio-reactive-led-strip,joeybab3/audio-reactive-led-strip,joeybab3/audio-reactive-led-strip,scottlawsonbc/audio-reactive-led-strip |
4a3d2471ea1265b84927e11abcd0aa41eb7e4bdf | files/template_home_wifi_feinstaub/template_home_wifi_feinstaub.ino | files/template_home_wifi_feinstaub/template_home_wifi_feinstaub.ino | /*
senseBox Home - Citizen Sensingplatform
WiFi Version: 1.3
Date: 2017-05-31
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Institute for Geoinformatics, University of Muenster
Note: Sketch for senseBox:home WiFi with dust particle upgrade
Email: support@sensebox.de
Code is in t... | /*
senseBox Home - Citizen Sensingplatform
WiFi Version: 1.3
Date: 2017-05-31
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Institute for Geoinformatics, University of Muenster
Note: Sketch for senseBox:home WiFi with dust particle upgrade
Email: support@sensebox.de
Code is in t... | swap pm10 and pm2.5 (#88) | swap pm10 and pm2.5 (#88) | Arduino | mit | sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API,sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API |
7596447d0987a780ed15d2cccb6a2abda1d63122 | examples/Boards_BLE/RedBearLab_BLE_Nano/RedBearLab_BLE_Nano.ino | examples/Boards_BLE/RedBearLab_BLE_Nano/RedBearLab_BLE_Nano.ino | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | /**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tuto... | Fix indent | Fix indent
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library |
fe20e1150ebb6f1c7bf58919f22275e508c60b2d | Event_Printer/Event_Printer.ino | Event_Printer/Event_Printer.ino |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
/* Compile time Flags */
#define DEBUG 0
#define PRINT_TO_SERIAL_CONSOLE 1
/* Helper Macros */
#define HI_NIBBLE(b) (((b) >> 4) & 0x0F)
#define LO_NIBBLE(b) ((b) & 0x0F)
/* Debug Macros */
#ifdef ... |
#include <SPI.h>
#include <mcp_can.h>
#include "BMW_R1200_GS_K25_CAN_Bus_Defines.h"
#include "BMW_R1200_GS_K25_State.h"
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
/* Compile time Flags */
#define DEBUG 0
#define PRINT_TO_SERIAL_CONSOLE 0
#define PR... | Add support for writing to a TFT display | Add support for writing to a TFT display
| Arduino | mit | 4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer,4G-Gregg/BMW-GS-CAN-Sniffer |
14966fc191f143e9f098a475f2340e63f0e7d48d | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | software/firmware/LogoBotWifiScribbler/LogoBotWifiScribbler.ino | #include <AccelStepper.h>
#include <Servo.h>
// Pin definitions
// Left motor driver
#define motorLPin1 2 // IN1 on the ULN2003 driver 1
#define motorLPin2 3 // IN2 on the ULN2003 driver 1
#define motorLPin3 4 // IN3 on the ULN2003 driver 1
#define motorLPin4 5 // IN4 on the ULN2003 driver 1
// R... | #include <AccelStepper.h>
#include <Servo.h>
// Pin definitions
// Left motor driver
#define motorLPin1 2 // IN1 on the ULN2003 driver 1
#define motorLPin2 3 // IN2 on the ULN2003 driver 1
#define motorLPin3 4 // IN3 on the ULN2003 driver 1
#define motorLPin4 5 // IN4 on the ULN2003 driver 1
// R... | Update LogoBotWifiScribbler.ino | Update LogoBotWifiScribbler.ino
Reworked to include command queue, added "TO" command and internal tracking of position/angle in cartesian co-ord frame | Arduino | mit | snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot,snhack/LogoBot |
13b92e9b31d1042c5edaf88e7382074c897745eb | src/arduino_lights_controller/arduino_lights_controller.ino | src/arduino_lights_controller/arduino_lights_controller.ino | int incomingByte = 0; // for incoming serial data
int relay1 = 4;
int relay2 = 5;
boolean state1 = false;
boolean state2 = false;
void setup() {
Serial.begin(9600);
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
if (incomingBy... | int incomingByte = 0; // for incoming serial data
int relay1 = 4;
int relay2 = 5;
boolean state1 = false;
boolean state2 = false;
void setup() {
Serial.begin(9600);
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
incomingByte = Serial.read();
if (incomi... | Fix variable name bug in Arduino code | Fix variable name bug in Arduino code
| Arduino | mit | VoidingWarranties/Myo-Home |
f7d3426c73f52e066ae307888f0efc6bd11a3671 | 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 2.
// - use bitlash for console manager (see https://github.com/bil... | // 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... | use UART Serial1 now | use UART Serial1 now
| Arduino | mit | sourceperl/arduino.serial-spy,sourceperl/arduino.serial-spy |
43b772081498a1dcdbae563561f1539c9502515c | CarpetLedLogic/CarpetLedLogic.ino | CarpetLedLogic/CarpetLedLogic.ino | /* CarpetLedLogic.ino
*
* This is the main entry point for the carpet's LED system.
*
* Author: Anders Linn
* Date: July 2017
*/
#include "MagicCarpet.h"
// light shows
#include "DemoShow.h"
// The Flying Magic Carpet (TM)
MagicCarpet * carpet;
LightShow * currLightShow;
void setup() {
// setup the ... | /* CarpetLedLogic.ino
*
* This is the main entry point for the carpet's LED system.
*
* Author: Anders Linn
* Date: July 2017
*/
#include "MagicCarpet.h"
// light shows
#include "DemoShow.h"
// The Flying Magic Carpet (TM)
MagicCarpet * carpet;
LightShow * currLightShow;
void setup() {
// setup the ... | Add test code in main loop | Add test code in main loop
I'm kind of in the middle of using this stuff, but it works and i want
to get everything pushed up to remote master so I'm going ahead and
commiting it for now. I'll pull it out when I write the main control
loop stuff (after the sound).
| Arduino | mit | voodoodemon/TheFlyingMagicCarpet,voodoodemon/TheFlyingMagicCarpet |
850b3baaae4564d8fc8b7baf1156cf045de1c1ed | files/template_home_wifi_feinstaub/template_home_wifi_feinstaub.ino | files/template_home_wifi_feinstaub/template_home_wifi_feinstaub.ino | /*
senseBox Home - Citizen Sensingplatform
WiFi Version: 1.3
Date: 2017-05-31
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Institute for Geoinformatics, University of Muenster
Note: Sketch for senseBox:home WiFi with dust particle upgrade
Email: support@sensebox.de
Code is in t... | /*
senseBox Home - Citizen Sensingplatform
WiFi Version: 1.3
Date: 2017-05-31
Homepage: https://www.sensebox.de https://www.opensensemap.org
Author: Institute for Geoinformatics, University of Muenster
Note: Sketch for senseBox:home WiFi with dust particle upgrade
Email: support@sensebox.de
Code is in t... | swap pm10 and pm2.5 (#88) | swap pm10 and pm2.5 (#88) | Arduino | mit | mpfeil/OpenSenseMap-API,sensebox/OpenSenseMap-API,sensebox/OpenSenseMap-API,mpfeil/OpenSenseMap-API |
2728c40088c18658ccff5d824d17d278d2767805 | examples/IoT/MQTT/CosaMQTTtemperature/CosaMQTTtemperature.ino | examples/IoT/MQTT/CosaMQTTtemperature/CosaMQTTtemperature.ino | /**
* @file CosaMQTTtemperature.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | /**
* @file CosaMQTTtemperature.ino
* @version 1.0
*
* @section License
* Copyright (C) 2014, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | Update for Arduino 1.0.6 toolchain; does not support C++11 for-loop. | Update for Arduino 1.0.6 toolchain; does not support C++11 for-loop.
| Arduino | lgpl-2.1 | mikaelpatel/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,dansut/Cosa,rrobinet/Cosa,rrobinet/Cosa,rrobinet/Cosa,dansut/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,kc9jud/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,jeditekunum/Cosa,kc9jud/Cosa,dansut/Cosa |
36728931ff10d676ebf05d1359c9e7055ac59ba5 | monitoring-temp-arduino-code/monitoring/monitoring.ino | monitoring-temp-arduino-code/monitoring/monitoring.ino |
/**************************************************************/
/* define pin setup, what sensor/fan is connected to what pin */
/**************************************************************/
int LM35_1_PIN = A0;
int LM35_2_PIN = A1;
int FAN_PWM_PIN = 9;
// only needed when measuring temperature time series valu... |
/**************************************************************/
/* define pin setup, what sensor/fan is connected to what pin */
/**************************************************************/
int LM35_1_PIN = A0;
int LM35_2_PIN = A1;
int FAN_PWM_PIN = 9;
// only needed when measuring temperature time series valu... | implement threshold for activating fan | implement threshold for activating fan
| Arduino | mit | nitram509/temperature-based-fan-control-for-time-capsule |
6ff2791963e2540f25709030761a8af6ce42a797 | examples/PSK31-Transmit/PSK31-Transmit.ino | examples/PSK31-Transmit/PSK31-Transmit.ino | #include <HamShield.h>
#include "varicode.h"
DDS dds;
void setup() {
Serial.begin(9600);
pinMode(11, OUTPUT);
pinMode(2, OUTPUT);
// put your setup code here, to run once:
dds.setReferenceClock(8000);
dds.start();
dds.setFrequency(1000);
dds.on();
}
volatile bool sent = true;
volatile uint16_t bitsTo... | #include <HamShield.h>
#include "varicode.h"
DDS dds;
void setup() {
Serial.begin(9600);
pinMode(11, OUTPUT);
pinMode(2, OUTPUT);
// put your setup code here, to run once:
dds.setReferenceClock(8000);
dds.start();
dds.setFrequency(1000);
dds.on();
}
volatile bool sent = true;
volatile uint16_t bitsTo... | Change to the waveform shaping trying to reduce IMD. | Change to the waveform shaping trying to reduce IMD.
| Arduino | agpl-3.0 | EnhancedRadioDevices/HamShield,EnhancedRadioDevices/HamShield |
b858351dc9f8a348cd3c93788e331086e425fb68 | CocktailUSBGamepadEmulator/CocktailUSBGamepadEmulator.ino | CocktailUSBGamepadEmulator/CocktailUSBGamepadEmulator.ino | //
// *** Sketch to emulate a USB gamepad with the cocktail cabinet
// joysticks for use with the UCLA Game Lab switcher.
//
// *** Currently setup assuming a digital (not-analog) joystick
//
// *** This sketch file is for use with Arduino Leonardo and
// Arduino Micro only.
//
// *** Requires this Arduino libr... | //
// *** Sketch to emulate a USB gamepad with the cocktail cabinet
// joysticks for use with the UCLA Game Lab switcher.
//
// *** Currently setup assuming a digital (not-analog) joystick
//
// relies on these:
//https://www.partsnotincluded.com/tutorials/how-to-emulate-an-xbox-controller-with-arduino-xinput/
//ht... | Switch to Xinput based emulation More of pain to upload, but seems to work better | Switch to Xinput based emulation
More of pain to upload, but seems to work better
| Arduino | bsd-2-clause | uclagamelab/CocktailCabinet |
2cfed1e7aa104fac40b8661c064abfe6a534890a | MASTER_crusher/MASTER_crusher.ino | MASTER_crusher/MASTER_crusher.ino | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <NewServo.h>
#define treshold 1800
ZumoReflectanceSensorArray reflectanceSensors;
ZumoMotors motors;
double lastDistance = 100;
bool flipServo = false;
unsigned int reflectanceValues[6];
int se... | #include <QTRSensors.h>
#include <ZumoReflectanceSensorArray.h>
#include <Pushbutton.h>
#include <ZumoMotors.h>
#include <NewServo.h>
ZumoReflectanceSensorArray reflectanceSensors(QTR_NO_EMITTER_PIN);
ZumoMotors motors;
double lastDistance = 100;
bool flipServo = false;
unsigned int reflectanceValues[6];
int servoP... | add buggy code | add buggy code
| Arduino | mit | tutturen/max_speed_backflip_robot |
3e64a07771358b6873c16f5763bd33b4d618646c | src/main/main.ino | src/main/main.ino | //allows us to set actions to perform on separate timed intervals
//http://playground.arduino.cc/Code/TimedAction
#include <TimedAction.h>
const int trafficLightCount = 3;
// Pin 2 - green, pin 3 - amber, pin 4 - red.
int trafficNSLights[] = { 2, 3, 4 };
// Pin 5 - green, pin 6 - amber, pin 7 - red.
int trafficEWLig... | //allows us to set actions to perform on separate timed intervals
//http://playground.arduino.cc/Code/TimedAction
#include <TimedAction.h>
const int trafficLightCount = 3;
// Pin 2 - green, pin 3 - amber, pin 4 - red.
int trafficNSLights[] = { 2, 3, 4 };
// Pin 5 - green, pin 6 - amber, pin 7 - red.
int trafficEWLig... | Make the traffic intelligent. | Make the traffic intelligent.
| Arduino | mit | shebin-thazheleth/intelligent-traffic-intersection |
c1d1179fafeb8bb9e660db27a06e0b5c5fa15f12 | colorduino/colorduino_serial.ino | colorduino/colorduino_serial.ino | /*
IMPORTANT: use with Arduino IDE 1.5.5!
1.5.6 - 1.5.8 don't work currently
*/
// Include required libraries
#include <Adafruit_GFX.h>
#include <Colorduino_GFX.h>
// OPCODES
const uint8_t MSK = 0x00;
const uint8_t COL = 0x01;
const uint8_t PXL = 0x02;
const uint8_t VLI = 0x03;
const uint8_t HLI = 0x04;
const uin... | /*
IMPORTANT: use with Arduino IDE 1.5.5!
1.5.6 - 1.5.8 don't work currently
*/
// Include required libraries
#include <Adafruit_GFX.h>
#include <Colorduino_GFX.h>
// OPCODES
const uint8_t MSK = 0x00;
const uint8_t COL = 0x01;
const uint8_t PXL = 0x02;
const uint8_t VLI = 0x03;
const uint8_t HLI = 0x04;
const uin... | remove unnecessary logs on the serial connection to prevent slowdowns | remove unnecessary logs on the serial connection to prevent slowdowns
| Arduino | mit | remcoder/rgb-matrix,remcoder/rgb-matrix,remcoder/rgb-matrix |
21280e5fe140990a6d337af52be3db4622a205dd | arduino-raw-tx/arduino-raw-tx.ino | arduino-raw-tx/arduino-raw-tx.ino | #include <Wire.h> // enable to communicate with I2C / TWI devices
#include <L3G4200D.h>
void setup() {
Serial.begin(9600);
Wire.begin();
}
void loop() {
Serial.println("Hello");
delay(1000);
}
| #include <Wire.h> // enable to communicate with I2C / TWI devices
#include <L3G4200D.h> // gyroscope library
#include <ADXL345.h> // accelerometer library
#include <HMC5883L.h> // digital compass library
#include <BMP085.h> // barometric pressure & temperature sensor library
ADXL345 accel;
Vector raw, norm;
void s... | send raw data in readable data | send raw data in readable data
| Arduino | mit | KuoE0/GY80-RAWDATA |
a65e1f56f2f6c4ab8467cc0af7cf7569f4735bde | arduino/led_matrix/led_matrix.ino | arduino/led_matrix/led_matrix.ino |
#include <FastLED.h>
#define NUM_LEDS 16
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, i;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.begin(115200);
FastLED.show();
}
void loop() {
for... |
#include <FastLED.h>
#define NUM_LEDS 16
#define PIN 6
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
int r, g, b, i;
void setup() {
FastLED.addLeds<WS2812B, PIN>(leds, NUM_LEDS);//.setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
Serial.begin(115200);
FastLED.show();
}
void loop() {
for... | send sensible pixel data | send sensible pixel data
| Arduino | mit | Spooner/pixel-table,Spooner/pixel-table,Spooner/pixel-table |
7069d2324caff49e3367f5af2d75ce58cd7340b6 | examples/FirebaseTranscriber_ESP8266/FirebaseTranscriber_ESP8266.ino | examples/FirebaseTranscriber_ESP8266/FirebaseTranscriber_ESP8266.ino | //
// Copyright 2016 Google Inc.
//
// 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 applicable law or agreed to ... | //
// Copyright 2016 Google Inc.
//
// 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 applicable law or agreed to ... | Make init match standard init for example | Make init match standard init for example
| Arduino | apache-2.0 | FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino,FirebaseExtended/firebase-arduino |
eded76c4cafb211e7081b8d5272cfae5c6c62d87 | plant-monitor/plant-monitor.ino | plant-monitor/plant-monitor.ino | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// BME280 sensor
Adafruit_BME280 bme;
double temperature = 0;
double pressure = 0;
double altitude = 0;
double humidity = 0;
// mo... | #include "Adafruit_Sensor.h"
#include "Adafruit_BME280.h"
#include "SparkFunPhant.h"
#include "elapsedMillis.h"
#define SEALEVELPRESSURE_HPA (1013.25)
// control led
const int led = D7;
// BME280 sensor
Adafruit_BME280 bme;
double temperature = 0;
double pressure = 0;
double altitude = 0;
double humidity = 0;
// mo... | fix status code, simplified code | fix status code, simplified code
| Arduino | apache-2.0 | mhaack/Particle-Photon-Apps |
621d77b948c936ef37d55be698f2fc86fbae12be | tools/smart_matrix_dmd_teensy_code/smart_matrix_dmd_teensy_code.ino | tools/smart_matrix_dmd_teensy_code/smart_matrix_dmd_teensy_code.ino | /*
SmartMatrix Pinball DMD code for Teensy, based on:
SmartMatrix Features Demo - Louis Beaudoin (Pixelmatix)
This example code is released into the public domain
*/
#include <SmartMatrix3.h>
#include <usb_serial.h>
#define COLOR_DEPTH 24 // known working: 24, 48 - If the sketch uses type... | /*
SmartMatrix Pinball DMD code for Teensy, based on:
SmartMatrix Features Demo - Louis Beaudoin (Pixelmatix)
This example code is released into the public domain
*/
#include <SmartLEDShieldV4.h> // this line must be first if using a V4 shield
#include <SmartMatrix3.h>
#include <usb_serial.h>
#define COLO... | Update smart_matrix_dmd_teensy_code.ino | Update smart_matrix_dmd_teensy_code.ino
Added changes to accept new cookie and V4 of Teensy shield | Arduino | mit | missionpinball/mpf,missionpinball/mpf |
8ce17bbb8b61a11256b95abe3d9a9d4367de0d95 | examples/PulseSensor_Nucleo/PulseSensor_Nucleo.ino | examples/PulseSensor_Nucleo/PulseSensor_Nucleo.ino | /*
Sketch to handle each sample read from a PulseSensor.
Typically used when you don't want to use interrupts
to read PulseSensor voltages.
Here is a link to the tutorial that discusses this code
>> Comming Soon! <<
This example targets the Nucleo 64 F401RE
If you are using a different Nucleo boa... | /*
Sketch to handle each sample read from a PulseSensor.
Typically used when you don't want to use interrupts
to read PulseSensor voltages.
Here is a link to the tutorial that discusses this code
>> Comming Soon! <<
Use this code as a basic example when targeting STM32 boards.
Open your Arduino ... | Update PulseSensor_Nucleo.ino | Update PulseSensor_Nucleo.ino | Arduino | mit | bneedhamia/PulseSensorBPM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.