commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
4de1cab9ec8252991c8ebee9e09f697dd6f28d68 | examples/ListDevices/ListDevices.ino | examples/ListDevices/ListDevices.ino | #include <SoftWire.h>
#include <AsyncDelay.h>
SoftWire sw(SDA, SCL);
void setup(void)
{
Serial.begin(9600);
sw.setTimeout_ms(40);
sw.begin();
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
// Set how long we are willing to wait for a device to respond
sw.setTimeout_ms(200);
const uin... | Add example to list all addresses where a device is present. | Add example to list all addresses where a device is present.
| Arduino | lgpl-2.1 | stevemarple/SoftWire | |
99563bd2559b3a0fd4a4eaea7ae041c5c29c056b | payload/my-payload.ino | payload/my-payload.ino | #include <Wire.h>
#include "Adafruit_BMP085.h"
/*
* BMP180 setup instructions:
* ----------------------------------------
* Connect BMP180 V-in to 3.3V (NOT 5.0V)
* Connect BMP180 GND to Ground
* Connect BMP180 SCL to Analog 5
* Connect BMP180 SDA to Analog 4
* --------------------------------------... | Add new starting payload program | Add new starting payload program
| Arduino | mit | nolanholden/geovis,nolanholden/geovis,nolanholden/payload-level1-rocket,nolanholden/geovis | |
e68141d20470286c8e56426a8ee51fbb9fb83c16 | vor-arduino/YunClient/YunClient.ino | vor-arduino/YunClient/YunClient.ino | /*
Yún HTTP Client
This example for the Arduino Yún shows how create a basic
HTTP client that connects to the internet and downloads
content. In this case, you'll connect to the Arduino
website and download a version of the logo as ASCII text.
created by Tom igoe
May 2013
This example code is in the public ... | Add HTTP POST for Arduino Yun. | Add HTTP POST for Arduino Yun.
| Arduino | mit | futurice/vor,futurice/vor,futurice/vor,futurice/vor,futurice/vor,futurice/vor | |
b39e3f48018197350d450033d540fad6412c1f52 | src/iButton_reader.ino | src/iButton_reader.ino | #include <OneWire.h>
#include <EEPROM.h>
// This is the pin with the 1-Wire bus on it
OneWire ds(PIN_D0);
// unique serial number read from the key
byte addr[8];
// poll delay (I think 750ms is a magic number for iButton)
int del = 1000;
// Teensy 2.0 has an LED on port 11
int ledpin = 11;
// number of values stor... | Add the Arduino sketch for reading and remembering key numbers. Doesn't build with ino atm. | Add the Arduino sketch for reading and remembering key numbers. Doesn't build with ino atm.
| Arduino | mit | katrielalex/iButton_1990a,katrielalex/iButton_1990a | |
73ab3577a8a90392481a553dad289059bd74bf4a | examples/PIRtest/PIRtest.ino | examples/PIRtest/PIRtest.ino |
/****************************************************************************
PIRsensor : test program for PIR sensor module
Author: Enrico Formenti
Permissions: MIT licence
Remarks:
- OUT pin is connected to digital pin 2 of Arduino, change this if needed
- DELAY times depend on the type of m... | Test program for PIR module | Test program for PIR module | Arduino | bsd-3-clause | maczinga/ASOM,ilFuria/ASOM,ilFuria/ASOM,maczinga/ASOM | |
4003f73f7f3c7f882d34ed27b24a80c325cfbf25 | arduino/serial_server/serial_server.ino | arduino/serial_server/serial_server.ino | /***************************************************
Simple serial server
****************************************************/
//serial
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete
void setup(){
//delay(100); //wait for bus ... | Add arduino code to work with the serial_test | Add arduino code to work with the serial_test
| Arduino | apache-2.0 | Pitchless/arceye,Pitchless/arceye | |
32877c5c7c19194343cdb955127a29928005ee41 | arduino/uno/002_blinky_with_timer1_ovf/002_blinky_with_timer1_ovf.ino | arduino/uno/002_blinky_with_timer1_ovf/002_blinky_with_timer1_ovf.ino | /**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ArduinoUno/001
* Blinky with timer1 OVF.
*/
#define LED_PIN (13)
#define TIMER_TCNT (57723) // 65536 - 16MHz/1024/2
void setup() {
pinMode(LED_PIN, OUTPUT); // set LED pin as output
TCCR1A = 0;
TCCR1B = _BV(CS12)|_BV(CS10); //... | Add next Arduino example - blinky with Timer1 OVF. | Add next Arduino example - blinky with Timer1 OVF.
| Arduino | bsd-3-clause | lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog | |
cfdb1ea52de1889cd6aeb4a10498e46c7a16ddc6 | night_sensor/night_feature_arduino_testbed.ino | night_sensor/night_feature_arduino_testbed.ino | """
@author: Sze 'Ron' Chau
@source: https://github.com/wodiesan/senior_design_spring
@Desc: Adafruit Analog Light Sensor, modified by Ron Chau.
1. Connect sensor output to Analog Pin 0
2. Connect 5v to VCC and GND to GND
3. Connect 3.3v to the AREF pin
"""
int led1 = 2; // LED connected t... | Add basic GA1A12S202 light sensor Arduino testbed. | Add basic GA1A12S202 light sensor Arduino testbed.
| Arduino | mit | wodiesan/senior_design_spring | |
264556b335e9df7a367a57be814a649b3362c744 | examples/More/PrintAllVirtual/PrintAllVirtual.ino | examples/More/PrintAllVirtual/PrintAllVirtual.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... | Print all virtual data example | Print all virtual data example
| Arduino | mit | ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
bb640b987aa5898e00f16f5c86752ee70a1f8c83 | Tests/webClient/webClient.ino | Tests/webClient/webClient.ino | // Demo using DHCP and DNS to perform a web client request.
// 2011-06-08 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <EtherCard.h>
// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
byte Ethernet::buffer[600];
static uint... | Add tests for web client | Add tests for web client
| Arduino | mit | totothekiller/weather-station,totothekiller/weather-station | |
10407c036751bad172a50bc5df6a2ea9945b73c9 | Examples/findBaudTest/findBaudTest.ino | Examples/findBaudTest/findBaudTest.ino | /*
* findBaudTest - Test all supported baud settings
*
* The progress and results are printed to Serial, so open the 'Serial
* Montitor'.
*
* The progress and results will be easier to read if you disable the
* debugging (comment out or delete the "#define DEBUG_HC05" line in
* HC05.h.
*/
#include <Arduino.h>
... | Add example of setbaud and findbaud | Add example of setbaud and findbaud
On branch parityAndStopBits
new file: Examples/findBaudTest/findBaudTest.ino
| Arduino | mit | jdunmire/HC05 | |
d40ecb0c0de30b1b7b5160ca8d0d7dd3aec5ed65 | arduino/BLEDigitalPot/BLEDigitalPot.ino | arduino/BLEDigitalPot/BLEDigitalPot.ino | /*
Digital Potentiometer control over BLE
MCP4110 digital Pots SPI interface
*/
// inslude the SPI library:
#include <SPI.h>
#include <SoftwareSerial.h>
SoftwareSerial bleSerial(2, 3); // RX, TX
// set pot select pin
const int potSS = 10;
//const int potWriteCmd = B00100011;
const int potWriteCmd = B0001001... | Add simple program that sets the first recived byte by BLE and write in the pot | Add simple program that sets the first recived byte by BLE and write in the pot
| Arduino | apache-2.0 | kikermo/PotsOverBLE | |
8895e7344467860c17b634cbe62e71cec4dae6b2 | examples/GSM-Serial/GSM-Serial.ino | examples/GSM-Serial/GSM-Serial.ino | #include <SoftwareSerial.h>
SoftwareSerial SSerial(10, 11);
void setup(void) {
Serial.begin(9600);
SSerial.begin(9600);
}
void loop(void) {
if (Serial.available() > 0) {
SSerial.write(Serial.read());
}
if (SSerial.available() > 0) {
Serial.write(SSerial.read());
}
}
| Add GSM Serial for testing AT Command | Add GSM Serial for testing AT Command
| Arduino | mit | Atnic/GSM-library | |
b67382758740b149603d25df774c1699e8859ebb | examples/Time/CosaSince/CosaSince.ino | examples/Time/CosaSince/CosaSince.ino | /**
* @file CosaSince.ino
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... | Add sketch to verify Watchdog/RTC::since() behavior. | Add sketch to verify Watchdog/RTC::since() behavior.
| Arduino | lgpl-2.1 | dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa | |
5bf376b143af61a9ada7fa510535659383ecbcb7 | posttodatasparkfun/posttodatasparkfun.ino | posttodatasparkfun/posttodatasparkfun.ino | #include "DHT.h"
#define DHTPIN 2 // what pin we're connected to
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
// Connect pin 1 (on the left) of the sensor to +5V
// NOTE: If using a board with... | Add example of Iot device that posts to data.sparkfun.com | Add example of Iot device that posts to data.sparkfun.com
| Arduino | mit | JanKlopper/IoTv1 | |
0de90038405c886e3bb49b9b223c3067e346cf23 | Functionality/SetupTemplate/SetupTemplate/SetupTemplate.ino | Functionality/SetupTemplate/SetupTemplate/SetupTemplate.ino | //Skript for testing the input-values of the arduino by displaying values in the serial monitor
int delayTime = 4000;
int buttonState = 0;
int piezo = A0;
int photo = A1;
int poti = A2;
int switchBtn = 11;
int buttonBtn = 12;
int extFlash = 8;
int camTrigger = 9;
int camFocus = 10;
int pi... | Test input values by displaying in the serial monitor | Test input values by displaying in the serial monitor
| Arduino | mit | jeroendoggen/Arduino-Interactive | |
458548a18a6793397dbe44e714908987e7c12890 | examples/TeensyDMXSend/TeensyDMXSend.ino | examples/TeensyDMXSend/TeensyDMXSend.ino | #include <TeensyDmx.h>
#define DMX_REDE 2
byte DMXVal[] = {50};
// This isn't required for DMX sending, but the code currently requires it.
struct RDMINIT rdmData {
"TeensyDMX v0.1",
"Teensyduino",
1, // Device ID
"DMX Node",
1, // The DMX footprint
0, // The DMX startAddress - only used for RDM
0, ... | Add a DMX send example | Add a DMX send example
| Arduino | mit | chrisstaite/TeensyDmx,chrisstaite/TeensyDmx,chrisstaite/TeensyDmx | |
c020d269faca9397c96a60c15ff555f8675e17bf | arduino/interrupt_test/interrupt_test.ino | arduino/interrupt_test/interrupt_test.ino | /****************************************************************************************************************************\
*
* Arduino interrupt tests, as simple and understandable as possible.
* © Aapo Rista 2017, MIT license
* Tested with Wemos ESP8266 D1 Mini PRO
* https://www.wemos.cc/product/d1-mini-pro.h... | Add simple interrupt test script | Add simple interrupt test script
| Arduino | mit | aapris/CernWall,aapris/CernWall | |
ec9a34623ee52a752b5cd67c2c83af1aaaf44960 | AL_ILI9341/examples/DrawTextWithScale/DrawTextWithScale.ino | AL_ILI9341/examples/DrawTextWithScale/DrawTextWithScale.ino | #include "AL_ILI9341.h"
#include "AL_Font.h"
// Wiring
#define TFT_PORT PORTF
#define TFT_PIN PINF
#define TFT_DDR DDRF
#define TFT_RST A12
#define TFT_CS A11
#define TFT_RS A10
#define TFT_WR A9
#define TFT_RD A8
AL_ILI9341 tft(
&TFT_PORT, &TFT_PIN, &TFT_DDR,
TFT_RST, TFT_CS, TFT_RS, TFT_WR, T... | Add draw text with scale example. | Add draw text with scale example.
| Arduino | mit | anders-liu/arduino-libs,anders-liu/arduino-libs | |
51e3e5cfd4065f8b6e64c072124e4aa4156d7e5c | experiments/NewPing4Sensors/NewPing4Sensors.ino | experiments/NewPing4Sensors/NewPing4Sensors.ino |
#include <NewPing.h>
#define SONAR_NUM 4 // Number or sensors.
#define MAX_DISTANCE 200 // Maximum distance (in cm) to ping.
#define PING_INTERVAL 33 // Milliseconds between sensor pings (29ms is about the min to avoid cross-sensor echo).
unsigned long pingTimer[SONAR_NUM]; // Holds the times when the next ping shou... | Add test sketch for SR-04 ultasound sensors | Add test sketch for SR-04 ultasound sensors
| Arduino | mit | jonnor/synchrony | |
dcee5d7193185b37a38b9ae981f744a3034f8171 | Arduino/LightTestPattern/LightTestPattern.ino | Arduino/LightTestPattern/LightTestPattern.ino | // Program for testing a single strip of lights.
// Cycles through each possible combination of pure colors:
// #000000 #FF0000 #00FF00 #FFFF00 #0000FF #FF00FF #00FFFF #FFFFFF
// For each color, lights up lights one at a time with a slight delay between
// individual lights, then leaves the whole strip lit up for 2 sec... | Add Arduino sketch for testing individual strips | Add Arduino sketch for testing individual strips
This program cycles through all patterns of fully lit R, G, and B lights
in a known pattern at a known rate, so we can test each strip as it is
made.
| Arduino | mit | godlygeek/LightRender,MaddAddaM/LightRender | |
b9e83b8733d2058a911d076ba7a98d9e4882c9eb | arduino/VoteVisualizer.ino | arduino/VoteVisualizer.ino | // VoteVisualization
//
// Author: sven.mentl@gmail.com
// Released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library
#include <Adafruit_NeoPixel.h>
#include <avr/power.h>
// Digital I/O Pin connected to Data In of the NeoPixel Ring
#define PIN 13
// Number of NeoPixels
#define... | Add working code for the arduino uno | Add working code for the arduino uno
| Arduino | mit | mentlsve/ta-conf-codejam,mentlsve/ta-conf-codejam | |
d47561e524cfc3f454e99fc1294e6a609cdd5660 | arduino/rover-movement/rover-movement.ino | arduino/rover-movement/rover-movement.ino | /*
* Author: Manuel Parra Z.
* Date: 14/11/2015
* License: MIT License
* Materials:
* - Arduino Uno R3
* - DFRobot DF-MD V1.3
* - DFRobot Pirate 4WD
* Description:
* This sketch will use as a movement test, first the rover will go foward
* on the track, then it will go reverse, then will turn ... | Add the arduino sketch to test the rover movement. | Add the arduino sketch to test the rover movement.
| Arduino | mit | mparra-mpz/Pathfinder,mparra-mpz/Pathfinder | |
6808c111ef9cbb2f86cbbac42905935670b8240f | examples/TMC2130_AccelStepper/TMC2130_AccelStepper.ino | examples/TMC2130_AccelStepper/TMC2130_AccelStepper.ino | /**
* Author Teemu Mäntykallio
* Initializes the library and turns the motor in alternating directions.
*/
#define EN_PIN 38 // Nano v3: 16 Mega: 38 //enable (CFG6)
#define DIR_PIN 55 // 19 55 //direction
#define STEP_PIN 54 // 18 54 //step
#define CS_PIN 4... | Add example for pairing with AccelStepper library | Add example for pairing with AccelStepper library
| Arduino | agpl-3.0 | teemuatlut/TMC2130Stepper | |
2da8253e2ffe1448183e1e01bd3d9aa3c6db7b74 | examples/Boards_BLE/RedBearLab_BLE_Mini/RedBearLab_BLE_Mini.ino | examples/Boards_BLE/RedBearLab_BLE_Mini/RedBearLab_BLE_Mini.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... | Add RedBearLab BLE Mini module | Add RedBearLab BLE Mini module
| Arduino | mit | ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
2655521317c622bb7f429ffefbf60e254d69faff | examples/Boards_WiFi/Arduino_MKR1010/Arduino_MKR1010.ino | examples/Boards_WiFi/Arduino_MKR1010/Arduino_MKR1010.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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... | Add WiFiNINA, Arduino MKR WiFi 1010 support | Add WiFiNINA, Arduino MKR WiFi 1010 support
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library | |
84736d29ca795c611fac40a1f4a03bc330debca0 | examples/mqtt_qos/mqtt_qos.ino | examples/mqtt_qos/mqtt_qos.ino | /*
MQTT with QoS example
- connects to an MQTT server
- publishes "hello world" to the topic "outTopic" with a variety of QoS values
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
const char *ssid = "xxxxxxxx"; // cannot be longer than 32 characters!
const char *pass = "yyyyyyyy"; //
// Update these ... | Add an example showing how to set the QoS value of a message to publish | Add an example showing how to set the QoS value of a message to publish
| Arduino | mit | hemantsangwan/Arduino-PubSubClient,liquiddandruff/pubsubclient,doebi/pubsubclient,liquiddandruff/pubsubclient,hemantsangwan/Arduino-PubSubClient,Imroy/pubsubclient,vshymanskyy/pubsubclient,liquiddandruff/pubsubclient,Protoneer/pubsubclient,koltegirish/pubsubclient,Imroy/pubsubclient,koltegirish/pubsubclient,vshymanskyy... | |
5da3776db3aabdfa6a88247e99633040ac111fee | Arduino/ADXL335_LEDs/ADXL335_LEDs.ino | Arduino/ADXL335_LEDs/ADXL335_LEDs.ino | // Arduino example that streams accelerometer data from an ADXL335
// (or other three-axis analog accelerometer) to the ESP system and
// lights different LEDs depending on the predictions made by the
// ESP system. Use with the user_accelerometer_gestures.cpp ESP example.
// the accelerometer pins
int zpin = A3;
int ... | Add Arduino example that receives ESP predictions over serial. | Add Arduino example that receives ESP predictions over serial.
Fixes #192.
| Arduino | bsd-3-clause | damellis/ESP,damellis/ESP | |
043882b7ca18a7b87e45782433563eda7e00bf8a | examples/IRInvertModulate/IRInvertModulate.ino | examples/IRInvertModulate/IRInvertModulate.ino | /*
* IRremote: IRInvertModulate - demonstrates the ability enable/disable
* IR signal modulation and inversion.
* An IR LED must be connected to Arduino PWM pin 3.
* To view the results, attach an Oscilloscope or Signal Analyser across the
* legs of the IR LED.
* Version 0.1 November, 2013
* Copyright 2013 Aaron... | Add demo on new functionality | Add demo on new functionality
This demo shows how the new functionality added here can be used - it
allows the user to interactively toggle IR signal modulation and
inversion using the serial connection.
| Arduino | lgpl-2.1 | aaronsnoswell/Arduino-IRremote,aaronsnoswell/Arduino-IRremote | |
a97cdb9d689761247baa374e80544e6171b6cca6 | Device_LinkItOne/Example/Sensor-GroveMoisture/Sensor-GroveMoisture.ino | Device_LinkItOne/Example/Sensor-GroveMoisture/Sensor-GroveMoisture.ino | int sensorPin = A1; // select the input pin for the potentiometer
float sensorValue[0];
float get_sensor_data_moisture(){
// read the value from the sensor:
return analogRead(sensorPin);
}
void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(115200);
}
void loop() {
sensorValue[0]=... | Bring up verification of GroveMoisture | Bring up verification of GroveMoisture | Arduino | mit | LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS,LinkItONEDevGroup/LASS | |
b14ac4752490cfa84faf269c26b576ae57956be4 | examples/mqtt_will/mqtt_will.ino | examples/mqtt_will/mqtt_will.ino | /*
MQTT "will" message example
- connects to an MQTT server with a will message
- publishes a message
- waits a little bit
- disconnects the socket *without* sending a disconnect packet
You should see the will message published when we disconnect
*/
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
cons... | Add example sketch for testing out "will" messages | Add example sketch for testing out "will" messages
| Arduino | mit | Imroy/pubsubclient,Imroy/pubsubclient,Imroy/pubsubclient | |
df8aa21c55f8872fc7697db822c34f46c24e2e14 | DOCS/line_follow_head_test/line_follow_head_test.ino | DOCS/line_follow_head_test/line_follow_head_test.ino | #define FAR_LEFT A0
#define LEFT A1
#define CENTER_LEFT A2
#define CENTER_RIGHT A3
#define RIGHT A4
#define FAR_RIGHT A5
#define WB_THRESHOLD 400
#define IR_DELAY 140
void setup()
{
Serial.begin(9600);
pinMode(FAR_LEFT, INPUT);
pinMode(LEFT, INPUT);
pinMode(CENTER_LEFT, INPUT);
pinMode(CENTER_RIGHT, INPUT... | Test code for the line follow | Test code for the line follow
| Arduino | mit | Vido/sumobot,Vido/sumobot | |
b4e7ee95e42252ffa95ae64f98409df26fc67f4e | software/main/Blink.ino | software/main/Blink.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http:/... | Add blink file too for ease of access | Add blink file too for ease of access | Arduino | mit | ieee-uiuc/arduino-workshop,ieee-uiuc/arduino-workshop | |
8db0a34be842d063a0a774d0b83018d7a21e041f | arduino_stepper/arduino_stepper.ino | arduino_stepper/arduino_stepper.ino |
/*
Stepper Motor Control
*/
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
int stepCount = 0; // number of ste... | Add arduino stepper motor control | Add arduino stepper motor control
| Arduino | mit | the-raspberry-pi-guy/lidar | |
e84a408adc56e2155082e16ade32020551c281ea | gliderCutdown/gliderCutdown.ino | gliderCutdown/gliderCutdown.ino | #include <Servo.h>
Servo myservo;
int pos = 0;
void setup() {
myservo.attach(9);
myservo.write(45); // Start out in a good position
delay(5000); // Wait as long as you like. (milliseconds)
}
void loop() {
myservo.write(130) // End in a release position
while(true); // Do nothing, forever.
}
| Add super simple arduino servo-based cutdown program. | Add super simple arduino servo-based cutdown program.
| Arduino | mit | LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017 | |
f2b3c325d2161e6b5f60fca44e675b05a445caa5 | SimpleTest/SimpleTest.ino | SimpleTest/SimpleTest.ino | void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
Keyboard.begin();
//setup buttons
pinMode(2, INPUT_PULLUP); //Button 1
pinMode(3, INPUT_PULLUP); //Button 2
pinMode(4, INPUT_PULLUP); //Button 3
pinMode(5, INPUT_PULLUP); //Button 4
//setup mainboard connect... | Add simple Arduino test program | Add simple Arduino test program
| Arduino | bsd-2-clause | HorstBaerbel/MAMEduino,HorstBaerbel/MAMEduino,HorstBaerbel/MAMEduino | |
cb9c287214a56a46afc161faec49b90a1c1bff30 | examples/Tools/CosaAutoCalibration/CosaAutoCalibration.ino | examples/Tools/CosaAutoCalibration/CosaAutoCalibration.ino | /**
* @file CosaAutoCalibration.ino
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... | Add a tool for auto calibration of watchdog based clock. | Add a tool for auto calibration of watchdog based clock.
| Arduino | lgpl-2.1 | jeditekunum/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa | |
acb0f06ce9e4bc95b05e68726a70de5eca4043df | Kirbi/testing/lidar_serial/lidar_serial.ino | Kirbi/testing/lidar_serial/lidar_serial.ino | // set this to the hardware serial port you wish to use
#define HWSERIAL Serial1
byte byteArray [9];
// Byte0 Byte 1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8
// 0x89 0x89 Dist_L Dist_H Strength_L Strength_H Temp_L Temp_H Checksum
// byte2 is distance, overflows into byte3
byte configOutput [5] = {0x5A,... | Add TFmini plus (lidar) test code | Add TFmini plus (lidar) test code
| Arduino | mit | simplyellow/auto-sumo | |
225563b994ed25df458cd817349bd2d1aa4f50ec | tinkering/motor/button_op_enable/button_op_enable.ino | tinkering/motor/button_op_enable/button_op_enable.ino | #include <Stepper.h>
#define P1 P4_5
#define P2 P1_1
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution, 12,13,5,9);
short forward;
short backward;
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
// Enable pin... | Test for motor using enable pins and buttons operation. | Test for motor using enable pins and buttons operation.
| Arduino | mit | fkmclane/derailleurs,fkmclane/derailleurs,fkmclane/derailleurs | |
a827db4891ed8d89920e9474a2c33b4cfd3d8666 | examples/sendFD/sendFD.ino | examples/sendFD/sendFD.ino | // demo: CAN-BUS Shield, send data
// loovee@seeed.cc
#include <SPI.h>
#include "mcp2518fd_can.h"
/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERIAL SerialUSB
#else
#define SERIAL Serial
#endif
#define CAN_2518FD
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is... | Add canbus FD send example | Add canbus FD send example
| Arduino | mit | Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield | |
1e85aea9084d828bf5524e146a938e0d052ae126 | test/ecdsa_test/ecdsa_test.ino | test/ecdsa_test/ecdsa_test.ino | #include <uECC.h>
#include <j0g.h>
#include <js0n.h>
#include <lwm.h>
#include <bitlash.h>
#include <GS.h>
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#include <Shell.h>
#include <uECC.h>
extern "C" {
static int RNG(uint8_t *p_dest, unsigned p_size)
{
while(p_size) {
long v = random();
unsi... | Add ECDSA test for Arduino | Add ECDSA test for Arduino | Arduino | bsd-2-clause | cgommel/micro-ecc,phoenix-frozen/micro-ecc,adfernandes/micro-ecc,cgommel/micro-ecc,adfernandes/micro-ecc,cgommel/micro-ecc,kmackay/micro-ecc,carlescufi/micro-ecc,periloso/micro-ecc,kmackay/micro-ecc,adfernandes/micro-ecc,concise/micro-ecc,kmackay/micro-ecc,phoenix-frozen/micro-ecc,concise/micro-ecc,carlescufi/micro-ecc... | |
d7f55225e87aabd3ce9018b1f82cd2ad58a96f42 | 4/readbutton.ino | 4/readbutton.ino | int BUTTON_PIN = 2;
void setup() {
pinMode(BUTTON_PIN, INPUT);
Serial.begin(9600);
}
void loop() {
//Serial.println("Hello computer!");
//Serial.print("This line will mash together with the next.");
int buttonPressed = digitalRead(BUTTON_PIN);
if(buttonPressed == 1) {
Serial.println("I pressed the ... | Add sketch for reading button press | Add sketch for reading button press | Arduino | bsd-2-clause | peplin/electronics-and-programming-class | |
2b4d414b24f4321ff3cf27542c38b42afe7be2c9 | libraries/LCD/CosaLCDverify/CosaLCDverify.ino | libraries/LCD/CosaLCDverify/CosaLCDverify.ino | /**
* @file CosaLCDverify.ino
* @version 1.0
*
* @section License
* Copyright (C) 2015, Mikael Patel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... | Add sketch that includes all LCD interface implementations and adapters. | Add sketch that includes all LCD interface implementations and adapters.
| Arduino | lgpl-2.1 | jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,dansut/Cosa | |
ccdf20ed7ac901142983cd004e82e5a8f4821d6a | examples/evothings.bluetooth_discovery/firmware/Token_fw_BEANHW.ino | examples/evothings.bluetooth_discovery/firmware/Token_fw_BEANHW.ino | // Token's firmware working copy
// Code based on RFDUINO hardware, uses C char arrays
#include <ArduinoJson.h>
//Test JSON strings
char OFF[]= "{\"device\":\"LED\",\"event\":\"off\"}";
char GREEN[] = "{\"device\":\"LED\",\"event\":\"on\",\"color\":\"green\"}";
char RED[] = "{\"device\":\"LED\",\"event\":\"on\",\"... | Add firmware for LightBlueBean Token | Add firmware for LightBlueBean Token
| Arduino | unlicense | Matth26/anyboardjs,tomfa/anyboardjs,tomfa/anyboardjs | |
030b5c240977d05e5a83c9880277673af75d119a | Blink_ESP8266/Blink_ESP8266.ino | Blink_ESP8266/Blink_ESP8266.ino | /*
* Blink for esp8266
*/
#define ESP8266_LED 2
void setup() {
// put your setup code here, to run once:
pinMode(ESP8266_LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ESP8266_LED, HIGH);
delay(1000);
digitalWrite(ESP8266_LED, LOW);
delay(1000);
}
| Add new sketch for ESP8266 | Add new sketch for ESP8266
| Arduino | cc0-1.0 | darrell24015/Uno,darrell24015/Uno | |
6a3ef20f1f6e501e592f1163de973bddc629febd | examples/A01_ContrastHelper/A01_ContrastHelper.ino | examples/A01_ContrastHelper/A01_ContrastHelper.ino | /** Contrast Helper
*
* Loops through a range of contrast values and prints each one.
*
* To set the contrast in your sketch, simply put lcd.setContrast(xx);
* after your lcd.begin().
*
* Experimentally determined, contrast values around 65-70 tend to
* work reasonably well on most displays. The b... | Add example to help find suitable contrast value. | Add example to help find suitable contrast value.
| Arduino | bsd-3-clause | sleemanj/PCD8544_Simple | |
3c0d6e4258c8ea5efb801627352e994240f550c6 | Trigger.ino | Trigger.ino |
//
// Generate a 9Hz square signal to trigger camera and lightning
//
// Arduino setup
void setup()
{
// Output signal
pinMode( 13, OUTPUT );
}
// Main loop
void loop()
{
// High state (11ms)
digitalWrite( 13, HIGH );
delay( 11 );
// Low state (100ms)
digitalWrite( 13, LOW );
delay( 100 );
}
| Add Arduino program to generate camera and light trigger. | Add Arduino program to generate camera and light trigger.
| Arduino | mit | microy/PyStereoVisionToolkit,microy/PyStereoVisionToolkit,microy/StereoVision,microy/VisionToolkit,microy/StereoVision,microy/VisionToolkit | |
7324c5a8dbbbad438fc8a6f16a40bb1c7c1285e4 | Arduino/motor_test/motor_test.ino | Arduino/motor_test/motor_test.ino | #include "DualVNH5019MotorShield.h"
DualVNH5019MotorShield md;
void stopIfFault()
{
if (md.getM1Fault())
{
Serial.println("M1 fault");
while(1);
}
if (md.getM2Fault())
{
Serial.println("M2 fault");
while(1);
}
}
void setup()
{
Serial.begin(19200);
Serial.println("Dual VNH5019 Motor... | Add test sketch which simply runs each motor separately, without input from Android | Add test sketch which simply runs each motor separately, without input from Android
| Arduino | mit | zvikabh/RCCarController,zvikabh/RCCarController | |
65517b824630070a8ef5351a3f07c643de659be9 | Sensors/GpsDataToSerial/GpsDataToSerial.ino | Sensors/GpsDataToSerial/GpsDataToSerial.ino | #include <SoftwareSerial.h>
SoftwareSerial SoftSerial(2, 3);
char buffer[265];
int count=0;
void setup()
{
SoftSerial.begin(9600);
Serial.begin(9600);
}
void loop()
{
if (SoftSerial.available())
{
while(SoftSerial.available())
{
buffer[count++]=SoftSerial.read();
if(count == 265)break;
... | Read GPS data from sensor and write it to the serial port | Read GPS data from sensor and write it to the serial port
| Arduino | apache-2.0 | GillisWerrebrouck/SportModule,GillisWerrebrouck/SportModule | |
d85dc2215906d48c2c1a21a304d0f7c64e977037 | jarbas.ino | jarbas.ino | #include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#define RELAY D1
const int HTTPS_PORT = 443;
const char* WIFI = "WIFI";
const char* PASSWORD = "PASSWORD";
const char* HOST = "hooks.slack.com";
const char* URL = "URL";
String PAYLOAD = String("{\"text\": \"@here Café quentinho na cafeteira!\", \"link_... | Add source code for Jarbas | Add source code for Jarbas
| Arduino | mit | fablabjoinville/jarbas | |
40376ba1f0a6dede272df093181fd1d5697267f6 | examples/ReadA0/ReadA0.ino | examples/ReadA0/ReadA0.ino | /*
* Simple demonstration of AsyncDelay to read the A0 analogue input
* every 50 ms.
*/
#include <AsyncDelay.h>
AsyncDelay samplingInterval;
void setup(void)
{
Serial.begin(115200);
samplingInterval.start(50, AsyncDelay::MILLIS);
}
void loop(void)
{
if (samplingInterval.isExpired()) {
uint16_t count ... | Add example to read A0 | Add example to read A0
| Arduino | lgpl-2.1 | stevemarple/AsyncDelay | |
6901dd15021ad107437aabf4441e49fd7adfa769 | Arduino/libraries/UA_Sensors/examples/BasicUltrasonic/BasicUltrasonic.ino | Arduino/libraries/UA_Sensors/examples/BasicUltrasonic/BasicUltrasonic.ino | /*
Test Ultrasonic sensor readings
Created 2 7 2014
Modified 2 7 2014
*/
// Ultrasonic sensor settings
const byte ULTRASONIC_PIN = A6;
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println(analogRead(ULTRASONIC_PIN));
delay(1000);
} | Add simple sketch to test Ultrasonic sensor | Add simple sketch to test Ultrasonic sensor
| Arduino | unlicense | UAA-EQLNES/EQLNES-Sensors | |
f44574108258d381336d02a6c52fd8bd3a7d3366 | examples/Boards_BLE/Simblee_BLE/Simblee_BLE.ino | examples/Boards_BLE/Simblee_BLE/Simblee_BLE.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... | Add Simblee BLE example | Add Simblee BLE example
[ci skip]
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
339a5cb2c9f41c451aa738678d23596ebe36cdea | examples/SerialCustom/SerialCustom.ino | examples/SerialCustom/SerialCustom.ino | #include "VdlkinoSerial.h"
VdlkinoSerial vdlkino(14, 6, &Serial);
uint16_t get_analog_byte(void *block) {
VdlkinoBlock *vblock = (VdlkinoBlock*) block;
return map(analogRead(vblock->pin), 0, 1023, 0, 255);
}
void setup() {
Serial.begin(9600);
vdlkino.operations[8] = &get_analog_byte;
}
void loop() {
vdlki... | Add example of a custom function in serial | Add example of a custom function in serial
| Arduino | mit | eduardoklosowski/vdlkino,eduardoklosowski/vdlkino | |
27ec02189502418189737c8467935b6093d34165 | examples/simple/simpleneopixelring.ino | examples/simple/simpleneopixelring.ino | /*
NeoPixel Ring simple sketch (c) 2013 Shae Erisson
released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library
*/
#include <Adafruit_NeoPixel.h>
#ifdef __AVR_ATtiny85__ // Trinket, Gemma, etc.
#include <avr/power.h>
#endif
// Which pin on the FLORA is connected to the NeoPixel ring?
#define... | Add a simple example sketch with many explanatory comments | Add a simple example sketch with many explanatory comments
| Arduino | lgpl-2.1 | gregersn/Adafruit_NeoPixel,gregersn/Adafruit_NeoPixel | |
cb034d2a626982f3c2f2e41294a71c96d9ed1398 | AddAdmin_Payload/AddAdmin_Payload.ino | AddAdmin_Payload/AddAdmin_Payload.ino | #include <HID.h>
#include <Keyboard.h>
// Init function
void setup()
{
// Start Keyboard and Mouse
Keyboard.begin();
// Start Payload
// press Windows+X
Keyboard.press(KEY_LEFT_GUI);
delay(1000);
Keyboard.press('x');
Keyboard.releaseAll();
delay(500);
// launch Command Prompt (Admin)
typeKey('a... | Add comment to improve code readability | Add comment to improve code readability
| Arduino | mit | christofersimbar/ArduinoDuckyScript | |
e6cf01d5e12a6c4a7c563aa2a31e5feb54f879b0 | ARTF_Sensors/examples/LowPowerUltrasonicWithSD/LowPowerUltrasonicWithSD.ino | ARTF_Sensors/examples/LowPowerUltrasonicWithSD/LowPowerUltrasonicWithSD.ino | /*
Test Ultrasonic sensor readings on sensor platform
This sketch is designed to test the accuracy of the Ultrasonic
sensor with the battery pack and circuit of the sensor platform.
This sketch takes 5 readings and averages them to
help verify similar calculations used in BridgeSensorGSM
sketch. The resul... | Add sketch that test ultrasonic readings on sensor platform | Add sketch that test ultrasonic readings on sensor platform
| Arduino | unlicense | UAA-EQLNES/ARTF-Field-Sensors | |
dd16ce7011543f55f699d0776c3d2068e961d5df | Arduino/robot_motor_body/robot_motor_body.ino | Arduino/robot_motor_body/robot_motor_body.ino | /*
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2
It won't work with v1.x motor shields! Only for the v2's with built in PWM
control
For use with the Adafruit Motor Shield v2
----> http://www.adafruit.com/products/1438
*/
#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "ut... | Add initial robot motor body code | Add initial robot motor body code
| Arduino | mit | johnflux/FluxRobot,johnflux/FluxRobot,johnflux/FluxRobot,johnflux/FluxRobot | |
93d9896f961d9cf2b4fe39ae93a75bba14a21a92 | arduino/encoders_and_leds_test/encoders_and_leds_test.ino | arduino/encoders_and_leds_test/encoders_and_leds_test.ino | // Total number of input channels supported by the hardware
const uint8_t numChannels = 5;
const uint8_t ledPins[] = {2, 4, 7, 8, 12};
const uint8_t encoderPins[] = {5, 6, 9, 10, 11};
unsigned long currentEncoderValues[] = {0, 0, 0, 0, 0};
unsigned long previousEncoderValues[] = {0, 0, 0, 0, 0};
const unsigned long enc... | Add Arduino sketch to test encoders and leds | Add Arduino sketch to test encoders and leds
| Arduino | mit | sh0w/recoded,sh0w/recoded,sh0w/recoded,sh0w/recoded | |
d04b0c047011cdf3f6a02140d1c412b89265caff | tinkering/sensorboard/ADXL362_SimpleRead/ADXL362_SimpleRead.ino | tinkering/sensorboard/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... | Test for accelerometer on sensorboard. | Test for accelerometer on sensorboard.
| Arduino | mit | fkmclane/derailleurs,fkmclane/derailleurs,fkmclane/derailleurs | |
82fe8883c42a5df36a1b79b4ba918049b14a4e30 | projects/C7C.Atamo.Dusty.Mote_0_0_2/resources/Testing/TU_SH_DpUart_external_op.ino | projects/C7C.Atamo.Dusty.Mote_0_0_2/resources/Testing/TU_SH_DpUart_external_op.ino | #include <SoftwareSerial.h>
// software serial #2: RX = digital pin 8, TX = digital pin 9
// on the Mega, use other pins instead, since 8 and 9 don't work on the Mega
SoftwareSerial portTwo(8, 9);
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
// Open serial communications and wait for port to open:
Serial.be... | Add project resources for Mote | Add project resources for Mote
Project resources ships external build files required (primarily
for testing)
| Arduino | mit | CloudSevenConsulting/DustyDuinoPro,CloudSevenConsulting/DustyDuinoPro | |
41105eb3e799b2cc65f084c8625ab7ca43fe975a | HBridgePWM/Sabertooth/Sabertooth.ino | HBridgePWM/Sabertooth/Sabertooth.ino | // Software Serial Sample
// Copyright (c) 2012 Dimension Engineering LLC
// See license.txt for license details.
#include <SoftwareSerial.h>
#include <SabertoothSimplified.h>
SoftwareSerial SWSerial(NOT_A_PIN, 11); // RX on no pin (unused), TX on pin 11 (to S1).
SabertoothSimplified ST(SWSerial); // Use SWSerial as ... | Add a file to control sabertooth board | Add a file to control sabertooth board
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite | |
6c56abd028f6b66d9a8f1333292a01ed96dd4bd7 | examples/temp_sensor/temp_sensor.ino | examples/temp_sensor/temp_sensor.ino | // TimerOne library: https://code.google.com/p/arduino-timerone/
#include <TimerOne.h>
#include <SPI.h>
#include <BLEPeripheral.h>
// define pins (varies per shield/board)
#define BLE_REQ 10
#define BLE_RDY 2
#define BLE_RST 9
BLEPeripheral blePeripheral = BLEPeripheral(BLE_REQ, BLE_RDY, BLE_RST);
BLEService ... | Add temp sensor example sketch | Add temp sensor example sketch
| Arduino | mit | sandeepmistry/arduino-BLEPeripheral,femtoduino/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,sandeepmistry/arduino-BLEPeripheral,pi19404/arduino-BLEPeripheral,possan/arduino-BLEPeripheral,femtoduino/arduino-BLEPeripheral,possan/arduino-BLEPeripheral,pi19404/arduino-BLEPeripheral | |
08bccef6e71d1815f63c743dec8c72d02ddb842c | sketches/tests/sched_blinksda/sched_blinksda.ino | sketches/tests/sched_blinksda/sched_blinksda.ino | /**
* Use the schedule class to have two different LEDs on one JeeNode
* port flash at different rates. One LED is on DIO and the other
* AIO.
*
* This is a straight-forward modification of the sched_blinks.ino
* sketch.
*
* Based largely on jcw's "schedule" and "blink_ports" sketches
*
* Changes:
* - remo... | Test script for flashing LEDs on same port using AIO and DIO | Test script for flashing LEDs on same port using AIO and DIO
| Arduino | mit | wmadill/grant-lighting,wmadill/grant-lighting | |
4893315b91d9167143a83e7e5bd464ac7c0846d6 | examples/HIH61xx_SoftWire_simple_demo/HIH61xx_SoftWire_simple_demo.ino | examples/HIH61xx_SoftWire_simple_demo/HIH61xx_SoftWire_simple_demo.ino | // This example demonstrates how to use the HIH61xx class with the SoftWire library. SoftWire is a software I2C
// implementation which enables any two unused pins to be used as a I2C bus. A blocking read is made to the
// HIH61xx device. See HIH61xx_SoftWire_demo for a more sophisticated example which allows other tas... | Add example demonstrating the simple `read()` command and SoftWire | Add example demonstrating the simple `read()` command and SoftWire
| Arduino | lgpl-2.1 | stevemarple/HIH61xx | |
fa23210d8cc415f507c6f1c78b958dcc854081d5 | arduino/tests/tests/tests.ino | arduino/tests/tests/tests.ino |
/*
* User testing for the arduino
* Two kinds of messages can be send to the arduino:
* - 0-255
* - S,1,#
* c rrrgggbbb
* - L,1,C#########\n
*/
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
}
// Ser... | Test for checking the processing code | Test for checking the processing code
| Arduino | mit | PeterVerzijl/TableOfContinents,TonyTonijn/TableOfContinents,TonyTonijn/TableOfContinents,PeterVerzijl/TableOfContinents | |
d0c074e481e43fbc6bfbf1b80843a34f6bd3fce9 | CurieIMU/CurieIMU.ino | CurieIMU/CurieIMU.ino | #include "CurieIMU.h"
void setup() {
Serial.begin(9600);
// Initialize internal IMU
CurieIMU.begin();
// Set accelerometer range to 2G
CurieIMU.setAccelerometerRange(2);
}
void loop() {
float ax, ay, az;
CurieIMU.readAccelerometerScaled(ax, ay, az);
Serial.print("Value ax:");
Serial.print(ax);
... | Implement IMU unit on Curie | Implement IMU unit on Curie
| Arduino | mit | niccolli/WebBluetoothAPIwithCURIE | |
95a56ce4185f2863b98403ee4e6875de1c27e374 | examples/Widgets/LED/LED_Color/LED_Color.ino | examples/Widgets/LED/LED_Color/LED_Color.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... | Add LED widget setColor example | Add LED widget setColor example
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library | |
a75dbb9357a831bf6046bbe55fd779cfcca697f1 | examples/mbino-example-spi-25lc040/mbino-example-spi-25lc040.ino | examples/mbino-example-spi-25lc040/mbino-example-spi-25lc040.ino | #include "mbed.h"
// use fully qualified class name to resolve ambiguities with
// Arduino's own global "SPI" object
mbed::SPI spi(SPI_MOSI, SPI_MISO, SPI_SCK);
DigitalOut cs(D10);
RawSerial pc(USBTX, USBRX);
static const uint8_t READ = 0x03; // read data from memory array
static const uint8_t WRITE = 0x02; // writ... | Add SPI EEPROM 25LC040 example. | Add SPI EEPROM 25LC040 example.
| Arduino | apache-2.0 | tkem/mbino,tkem/mbino,tkem/mbino | |
e22998424748a7125b73e152ab7ad301f0ed248b | examples/OneShotExample/OneShotExample.ino | examples/OneShotExample/OneShotExample.ino | #include <AsyncDelay.h>
AsyncDelay oneShot;
bool messagePrinted = false;
void setup(void)
{
Serial.begin(9600);
Serial.println("Starting one-shot timer");
oneShot.start(5000, AsyncDelay::MILLIS);
}
void loop(void)
{
if (!messagePrinted && oneShot.isExpired()) {
Serial.print("The timer was started ");
... | Add example showing one-shot usage | Add example showing one-shot usage
| Arduino | lgpl-2.1 | stevemarple/AsyncDelay | |
9c47fcfc3969b53d20166d1df0c6615bbe4abee7 | arduino/LidarServo/LidarServo.ino | arduino/LidarServo/LidarServo.ino | #include <I2C.h>
#include <Servo.h>
#define LIDARLite_ADDRESS 0x62 // Default I2C Address of LIDAR-Lite.
#define RegisterMeasure 0x00 // Register to write to initiate ranging.
#define MeasureValue 0x04 // Value to initiate ranging.
#define RegisterHighLowB 0x8f ... | Add arduino Lidar and servo sweeping code | Add arduino Lidar and servo sweeping code
| Arduino | mit | Erik-J-D/SYDE361-AutomotiveIOT-PhoneApp-Sensors,Erik-J-D/SYDE361-AutomotiveIOT-PhoneApp-Sensors,Erik-J-D/SYDE361-AutomotiveIOT-PhoneApp-Sensors,Erik-J-D/SYDE361-AutomotiveIOT-PhoneApp-Sensors,Erik-J-D/SYDE361-AutomotiveIOT-PhoneApp-Sensors | |
21e972aa2a1971db29fca916189718d65921e80d | BlinkAttiny85/BlinkAttiny85.ino | BlinkAttiny85/BlinkAttiny85.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 3;
int led2 = 4;
// the setup routine runs once when you press reset:
void setup() { ... | Add blink test for Attiny85 | Add blink test for Attiny85
test OK with new core arduino-tiny
| Arduino | mit | totothekiller/weather-station,totothekiller/weather-station | |
587706b8496205d89585c1e5bd547f824d363386 | arduino/2x2x2-cube.ino | arduino/2x2x2-cube.ino | #define REP(x,n) for(int x=0;x<n;x++)
#define ALL REP(i,2) REP(j,2) REP(k,2)
const int DELAY = 10;
int cube[2][2][2];
int cols[2][2] = {{8, 9}, {10, 11}};
int rows[2] = {6, 7};
void clear() {
ALL cube[i][j][k] = 0;
}
void setup() {
REP(i,2) pinMode(rows[i], OUTPUT);
REP(i,2) REP(j,2) pinMode(cols[i][j], OUTPU... | Add simple demo stuff for 2x2x2 cube | Add simple demo stuff for 2x2x2 cube
| Arduino | mit | neojski/random,neojski/random,neojski/random,neojski/random,neojski/random,neojski/random,neojski/random,neojski/random | |
d942f251f7e7b92f11bb4f699e819384a4b178fa | serial/teensy32-throughput/teensy32-throughput.ino | serial/teensy32-throughput/teensy32-throughput.ino | //#define USE_BINARY
const int sampleRate = 8000;
const long serialRate = 2000000;
const int NWORDS = 20;
const int WSIZE = sizeof(uint16_t);
const int NBYTES = NWORDS * WSIZE;
volatile bool pushData = false;
typedef union { uint16_t words[NWORDS]; uint8_t bytes[NBYTES]; } MODEL;
... | Add simple teensy throughput program | Add simple teensy throughput program
| Arduino | mit | isaias-b/arduino-examples,isaias-b/arduino-examples,isaias-b/arduino-examples | |
86f90a45c5de27a9f4838a20de9e94fc731e8406 | arduino/uno/003_blinky_with_timer1_compa/003_blinky_with_timer1_compa.ino | arduino/uno/003_blinky_with_timer1_compa/003_blinky_with_timer1_compa.ino | /**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ArduinoUno/003
* Blinky with Timer1 COMPA.
*/
#define LED_PIN (13)
void setup() {
pinMode(LED_PIN, OUTPUT); // set LED pin as output
TCCR1A = 0; // clear register
TCCR1B = _BV(WGM12); // set Timer1 to CTC mode
TCCR1B |= _BV(C... | Add next Arduino example - blinky with Timer1 COMPA. | Add next Arduino example - blinky with Timer1 COMPA.
| Arduino | bsd-3-clause | lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog | |
6f9b8eb1b970ff4223cd143733a12d5f4294f062 | arduino/uno/001_blinky_with_delay_function/001_blinky_with_delay_function.ino | arduino/uno/001_blinky_with_delay_function/001_blinky_with_delay_function.ino | /**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ArduinoUno/001
* Blinky with delay function.
*/
#define LED_PIN (13)
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, !digitalRead(LED_PIN)); // Toggle LED pin
delay(500); // wait 0.5s
}
| Add first Arduino example - blinky with delay function. | Add first Arduino example - blinky with delay function.
| Arduino | bsd-3-clause | lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog,lpodkalicki/blog | |
774b7cd6ac943d58d843d3f99bf757de5cd7eeaf | temp_and_light_lcd/temp_and_light_lcd.ino | temp_and_light_lcd/temp_and_light_lcd.ino | /*
* Read temperature and light and display on the LCD
*
* For: Arduino Uno R3
*
* Parts:
* 1x LCD (16x2 characters)
* 1x 10 kΩ variable resistor
* 1x 10 KΩ resistor
* 1x 220 Ω resitor
* 1x Photocell
* 1x TMP36 temperature sensor
*/
#include <LiquidCrystal.h>
int temperaturePin = 0;
int lightPin = 1;
Liqu... | Add code to read temperature and light to display on a LCD | Add code to read temperature and light to display on a LCD
| Arduino | unlicense | pads/arduino-learning | |
2b8d74e66aa716e945a0e7e000ed67697aed2980 | ARTF_Sensors/examples/LowPowerMoistureWithSD/LowPowerMoistureWithSD.ino | ARTF_Sensors/examples/LowPowerMoistureWithSD/LowPowerMoistureWithSD.ino | /*
Test Moisture sensor readings on sensor platform
This sketch is designed to test the accuracy of the Moisture
sensor with the battery pack and circuit of the sensor platform.
This sketch takes 5 readings and averages them to
help verify similar calculations used in MoistureSensorGSM
sketch. The results... | Add test sketch for moisture sensor and sd card on kit | Add test sketch for moisture sensor and sd card on kit
| Arduino | unlicense | UAA-EQLNES/ARTF-Field-Sensors | |
712e28a1166ffac7ffea7f677a4364abbbe79a58 | pseudoRandom_Demo/pseudoRandom_Demo.ino | pseudoRandom_Demo/pseudoRandom_Demo.ino | /*
* pseudoRandom Demonstration sketch
* Author: Darrell Little
* Date: 04/29/2017
* This code is in the public domain
*/
// Array to hold the pin numbers with LED connected
int ledPin[] = {11,10,9,6};
// Variable to set the delay time to blink
int waitTime = 1000;
// Variable to hold the random LED pin to blink
i... | Add pseudoRandom Demo for Science Museum project | Add pseudoRandom Demo for Science Museum project
| Arduino | cc0-1.0 | darrell24015/Uno,darrell24015/Uno | |
a9e787693034e5b3a647ba2a24bab9d8ca5d24b9 | Calibration/sdWrite/sdWrite.ino | Calibration/sdWrite/sdWrite.ino | #include <SD.h>
#include <SPI.h>
void setup() {
//this is needed for the duemilanove and uno without ethernet shield
const int sdCardPin = 10;
int loopCount = 0;
//for testing. delete before launches.
Serial.begin(9600);
delay(1000);
pinMode(10,OUTPUT);
if (!SD.begin(sdCardPin)) {
Serial.pri... | Add original code for writing to SD card. | Add original code for writing to SD card.
| Arduino | mit | karikawa/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015,UCLARocketProject/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,karikawa/2014-2015,UCLARocketProject/2014-2015,karikawa/2014-2015 | |
ee46a2cfa4c51515ba226b0a8bd1a1a2236b0f56 | Arduino/HX711_LoadCell/HX711_LoadCell.ino | Arduino/HX711_LoadCell/HX711_LoadCell.ino | /*
Inspired from code HX711 demo from Nathan Seidle, SparkFun Electronics
This example code uses bogde's excellent library: https://github.com/bogde/HX711
bogde's library is released under a GNU GENERAL PUBLIC LICENSE
The HX711 does one thing well: read load cells. T
Arduino pin (Nano)
2 -> HX711 CLK
3 ... | Add script to read HX711 and load cell | Add script to read HX711 and load cell
| Arduino | mit | baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite | |
e4f65dfd39c105169d200e2d5dd0af76593e9411 | shipStation/stepper_demo/stepper_demo.ino | shipStation/stepper_demo/stepper_demo.ino | #include <AccelStepper.h>
#include <MultiStepper.h>
#include <math.h>
/* Written for ST6600 stepper driver
* PUL+ 5v
* PUL- Arduino pin 9/11
* DIR+ 5v
* DIR- Arduino pin 8/10
* DC+ 24v power supply
* DC- Gnd on power supply & Gnd on Arduino
*/
// Each step is 0.12 degrees, or 0.002094395 radians
... | Add early version of ship station demonstration software for OSU Expo | Add early version of ship station demonstration software for OSU Expo
| Arduino | mit | LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017,LBCC-SpaceClub/HAB2017 | |
d194f63a3d3346041918773d1e71d5e111da63ba | examples/Boards_Ethernet/Arduino_MKR_ETH/Arduino_MKR_ETH.ino | examples/Boards_Ethernet/Arduino_MKR_ETH/Arduino_MKR_ETH.ino | /*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
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... | Add support for Arduino MKR ETH shield | Add support for Arduino MKR ETH shield
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library | |
34be16c8da728997f62a6d4ce679e3d5c8f9992a | libraries/esp8266/examples/ConfigFile/ConfigFile.ino | libraries/esp8266/examples/ConfigFile/ConfigFile.ino | // Example: storing JSON configuration file in flash file system
//
// Uses ArduinoJson library by Benoit Blanchon.
// https://github.com/bblanchon/ArduinoJson
//
// Created Aug 10, 2015 by Ivan Grokhotkov.
//
// This example code is in the public domain.
#include <ArduinoJson.h>
#include "FS.h"
bool loadConfig() {
... | Add example for storing JSON config file in SPIFFS | Add example for storing JSON config file in SPIFFS
| Arduino | lgpl-2.1 | Cloudino/Cloudino-Arduino-IDE,me-no-dev/Arduino,jes/Arduino,Cloudino/Arduino,chrisfraser/Arduino,toastedcode/esp8266-Arduino,toastedcode/esp8266-Arduino,Cloudino/Arduino,Juppit/Arduino,Cloudino/Arduino,gguuss/Arduino,chrisfraser/Arduino,CanTireInnovations/Arduino,toastedcode/esp8266-Arduino,sticilface/Arduino,hallard/A... | |
f69ffade852a97c095e1634706865caff13fa9ff | examples/Boards_USB_Serial/Blue_Pill_STM32F103C8/Blue_Pill_STM32F103C8.ino | examples/Boards_USB_Serial/Blue_Pill_STM32F103C8/Blue_Pill_STM32F103C8.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... | Add STM32F103 Blue Pill example | Add STM32F103 Blue Pill example
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
8ada9c9add04c5095a100147372537472b77eb5f | hardware/esp8266com/esp8266/libraries/esp8266/examples/ConfigFile/ConfigFile.ino | hardware/esp8266com/esp8266/libraries/esp8266/examples/ConfigFile/ConfigFile.ino | // Example: storing JSON configuration file in flash file system
//
// Uses ArduinoJson library by Benoit Blanchon.
// https://github.com/bblanchon/ArduinoJson
//
// Created Aug 10, 2015 by Ivan Grokhotkov.
//
// This example code is in the public domain.
#include <ArduinoJson.h>
#include "FS.h"
bool loadConfig() {
... | Add example for storing JSON config file in SPIFFS | Add example for storing JSON config file in SPIFFS
| Arduino | lgpl-2.1 | koltegirish/Arduino,wdoganowski/Arduino,radut/Arduino,mateuszdw/Arduino,ogahara/Arduino,radut/Arduino,koltegirish/Arduino,gonium/Arduino,leftbrainstrain/Arduino-ESP8266,eeijcea/Arduino-1,ssvs111/Arduino,paulo-raca/ESP8266-Arduino,drpjk/Arduino,tannewt/Arduino,aichi/Arduino-2,ssvs111/Arduino,mangelajo/Arduino,mateuszdw/... | |
e1bff356943611f3df9dc6a11a4c3a97a1918cae | GoliathMqttSensor.ino | GoliathMqttSensor.ino | /* Stub to allow build from Arduino IDE */
/* Includes to external libraries */
#include <MemoryFree.h>
#include <Countdown.h>
#include <MQTTClient.h>
#include <SoftwareSerial.h>
| Add 'ino' file to allow build from Arduino IDE | Add 'ino' file to allow build from Arduino IDE
| Arduino | mit | monstrenyatko/ArduinoMqttNode | |
a6933a552ad7992dc61b371211abcb165846e503 | ardupet.ino | ardupet.ino | char incomingByte = 0;
const char lampCount = 4;
const unsigned short doorUnlockTime = 2000; // in miliseconds
bool lampStatus[lampCount];
bool doorStatus;
unsigned short doorUnlockTimer;
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
for (int i = 0; i < lampCount; ++i)
lampStatus[i] = false;
... | Include code sample for Arduino | Include code sample for Arduino
| Arduino | mit | ranisalt/ardupet | |
68562c1f7ea7f13af351ba8b1cdd08a28228bea8 | steppercontrol/steppercontrol.ino | steppercontrol/steppercontrol.ino | int motorPin = 9;
int switchPin = 7;
int motorStep = 0;
int maxStep = 200;
int minimumStepDelay = 2;
String motorState = String("off");
void makeStep() {
digitalWrite(motorPin, HIGH);
digitalWrite(motorPin, LOW);
motorStep += 1;
if (motorStep > maxStep) {
motorStep = 0;
}
}
void resetMotor() {
for (... | Add motor control arduino sketch | Add motor control arduino sketch
| Arduino | mit | kirberich/3dscanner | |
199d247263c93c7019477ebbd4ae445be84f91e5 | examples/Serial/Serial.ino | examples/Serial/Serial.ino | #include "VdlkinoSerial.h"
VdlkinoSerial vdlkino(14, 6, &Serial);
void setup() {
Serial.begin(9600);
}
void loop() {
vdlkino.run();
}
| Add example of using serial | Add example of using serial
| Arduino | mit | eduardoklosowski/vdlkino,eduardoklosowski/vdlkino | |
bb19d8ebeaca67e85b036df5914bcf588bcd9235 | examples/determining_gain/determining_gain.ino | examples/determining_gain/determining_gain.ino | // Gain Setting Example
// Demonstrates the filter response with unity input to
// get the appropriate value for the filter gain setting.
#include <FIR.h>
// Make an instance of the FIR filter. In this example we'll use
// floating point values and a 13 element filter.
FIR<long, 13> fir;
void setup() {
Serial.begi... | Add an example of how to determine the gain setting for a filter. | Add an example of how to determine the gain setting for a filter.
| Arduino | mit | LeemanGeophysicalLLC/FIR_Filter_Arduino_Library | |
8d00a318388a53ea942ead48928d01b2de4dd520 | examples/Boards_WiFi/Adafruit_Feather_M0_WiFi/Adafruit_Feather_M0_WiFi.ino | examples/Boards_WiFi/Adafruit_Feather_M0_WiFi/Adafruit_Feather_M0_WiFi.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... | Add Feather M0 WiFi example | Add Feather M0 WiFi example
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
8c1b7fe88de6e5c300388a29c035501c8eab2fb4 | neopixel_rgb_knob/neopixel_rgb_knob.ino | neopixel_rgb_knob/neopixel_rgb_knob.ino | /*
* neopixel_rgb_knob
*
* This is a test program to adjust the rgb of a strip of
* neopixels useing three potentiometers.
*/
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
// Which pin on the Arduino is connected to the NeoPixels?
// On a Tr... | Add program to adjust pixel color with three potentiometers. | Add program to adjust pixel color with three potentiometers.
| Arduino | mit | rlynch3456/Arduino | |
8b81bd258e7d5d457a57ccd7b007a83bfd5f7cf4 | arduino/tempsens/tempsens.ino | arduino/tempsens/tempsens.ino | #include <OneWire.h>
#include <DallasTemperature.h>
// Change these if appropriate
// The pin that sensors are connected to
#define ONE_WIRE_BUS 2
// What precision to set the sensor to
#define TEMPERATURE_PRECISION 11
OneWire one_wire(ONE_WIRE_BUS);
DallasTemperature sensors(&one_wire);
// We will store an array of... | Add Arduino code for reporting temperature sensor data. | Add Arduino code for reporting temperature sensor data.
| Arduino | mit | turmoni/temp-probe-exporter,turmoni/temp-probe-exporter | |
b34f772518509faa3ad4c518815ec765fcd50289 | examples/Boards_BLE/Serial_HC05_HC06/Serial_HC05_HC06.ino | examples/Boards_BLE/Serial_HC05_HC06/Serial_HC05_HC06.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... | Add Bluetooth 2.0 Serial Port Profile (SPP) example | Add Bluetooth 2.0 Serial Port Profile (SPP) example
| Arduino | mit | blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library | |
91e92761455d509bad933099e46635a2c435bcf1 | Ard-Analog/AnalogIn/AnalogIn.ino | Ard-Analog/AnalogIn/AnalogIn.ino | const int analogInPin = A0;
const int analogOutPin = 3;
int sensorValue = 0;
int outputValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(analogInPin);
outputValue = map(sensorValue, 0, 1023, 0, 255);
analogWrite(analogOutPin, outputValue);
// print the results to the s... | Add Arduino program for working with Analog data | Add Arduino program for working with Analog data
| Arduino | cc0-1.0 | CurtisIreland/electronics,CurtisIreland/electronics,CurtisIreland/electronics,CurtisIreland/electronics,CurtisIreland/electronics,CurtisIreland/electronics | |
d310e299c635043beefdd097bb92a978cbffde80 | examples/receive_interruptFD/receive_interruptFD.ino | examples/receive_interruptFD/receive_interruptFD.ino | // demo: CAN-BUS Shield, receive data with interrupt mode
// when in interrupt mode, the data coming can't be too fast, must >20ms, or else you can use check mode
// loovee, 2014-6-13
#include <SPI.h>
#include "mcp2518fd_can.h"
/*SAMD core*/
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERIAL SerialUSB
#else
... | Add canbus FD receive interrupt example | Add canbus FD receive interrupt example
| Arduino | mit | Seeed-Studio/CAN_BUS_Shield,Seeed-Studio/CAN_BUS_Shield | |
dae399e6ab31d9a5d4b62a05a5bf047e16fe8c2b | Project_7/Project_7.ino | Project_7/Project_7.ino | int notes[] = {262, 294, 330, 349};
void setup() {
Serial.begin(9600);
}
void loop() {
int keyVal = analogRead(A0);
Serial.println(keyVal);
if (keyVal == 1023) {
tone(8, notes[0]);
}
else if (keyVal >= 950 && keyVal <= 1010) {
tone(8, notes[1]);
}
else if (keyVal >= 505 && keyVal <= 515) {
... | Switch keyboard with resistor ladder | Switch keyboard with resistor ladder
| Arduino | mit | martindisch/Arduino | |
b9065c665e649c45b8ed3113c044845ccf27dfe7 | examples/Boards_WiFi/Sparkfun_Blynk_Board/Sparkfun_Blynk_Board.ino | examples/Boards_WiFi/Sparkfun_Blynk_Board/Sparkfun_Blynk_Board.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... | Add separate Blynk Board example. It deserves one! ;) | Add separate Blynk Board example. It deserves one! ;)
| Arduino | mit | blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library | |
86d706332f5fd89de122b9904497fb2cdd581df0 | Sensor/NodeMcu/sensor/sensor.ino | Sensor/NodeMcu/sensor/sensor.ino | #include <ESP8266WiFi.h>
const char* ssid = "FRITZ!Box Fon WLAN 7360";
const char* password = "62884846722859294257";
const char* host = "192.168.178.34";
char* clientId = "photo1";
char* requestBody = "{ \"name\":\"%s\", \"weatherData\": { \"temperature\":\"%f\", \"humidity\":\"%f\" } }";
int delayInMillis = 10... | Add stub implementation for NodeMCU implementation | Add stub implementation for NodeMCU implementation
| Arduino | apache-2.0 | brave-warrior/Sensors-IoT,brave-warrior/Sensors-IoT,brave-warrior/Sensors-IoT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.