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
38de2b798033a925709cde5fb993cc2d685ddd8f
arc/q.class.poly.arc
arc/q.class.poly.arc
.//============================================================================ .// $RCSfile: q.class.poly.arc,v $ .// .// Description: .// This archetype file contains the functions for generating class .// methods associated with polymorphic event delivery. .// .// Notice: .// (C) Copyright 1998-2013 Mentor Graphics ...
.//============================================================================ .// $RCSfile: q.class.poly.arc,v $ .// .// Description: .// This archetype file contains the functions for generating class .// methods associated with polymorphic event delivery. .// .// Notice: .// (C) Copyright 1998-2013 Mentor Graphics ...
Improve warning message for state machines with missing poly event transtitions. #4
Improve warning message for state machines with missing poly event transtitions. #4
Arc
apache-2.0
xtuml/mc,leviathan747/mc,xtuml/mc,john-tornblom/mc,john-tornblom/mc,keithbrown/mc,john-tornblom/mc,john-tornblom/mc,rmulvey/mc,lwriemen/mc,xtuml/mc,keithbrown/mc,lwriemen/mc,keithbrown/mc,cortlandstarrett/mc,leviathan747/mc,xtuml/mc,lwriemen/mc,john-tornblom/mc,cortlandstarrett/mc,keithbrown/mc,john-tornblom/mc,cortlan...
22860d80dd8a8adb89e0be96342271638cfd9ce3
lib/math.arc
lib/math.arc
(def zeros (x) (n-of x 0)) (def ones (x) (n-of x 1)) ;calculus fns (def deriv (f) "provides differential of a function of a single vairable" (fn (x) (let dx (max 1d-9 (abs:* x 1d-9)) (/ (- (f (+ x dx)) (f x)) dx)))) (mac partial-diff (f n arity) "returns deriv function of f (w/...
(def zeros (x) (n-of x 0)) (def ones (x) (n-of x 1)) (def square (x) (* x x)) ;calculus fns (def deriv (f) "provides differential of a function of a single vairable" (fn (x) (let dx (max 1d-9 (abs:* x 1d-9)) (/ (- (f (+ x dx)) (f x)) dx)))) (mac partial-diff (f n arity) "retu...
add square
add square
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
f17c3d2016bd59f37aaa100911f6d7cfe849e943
lib/web.arc
lib/web.arc
; written by Mark Huetsch and Brian J Rubinton ; same license as Arc ; ; Primary interface: ; 1) mkreq - Build request, send request, receive response as (list header body). ; 2) defreq - Create named function wrappers for mkreq. ; - Intended for multi-use http requests. ; - Url query param...
; written by Mark Huetsch and Brian J Rubinton ; same license as Arc ; ; Primary interface: ; 1) mkreq - Build request, send request, receive response as (list header body). ; 2) defreq - Create named function wrappers for mkreq. ; - Intended for multi-use http requests. ; - Url query param...
fix failing web.arc test
fix failing web.arc test
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
bbd9ef589d8d267e38a8264f2dd642ec329692f1
lib/tem.arc
lib/tem.arc
(= templates* (table)) (mac deftem (tem . fields) (withs (name (carif tem) includes (if (acons tem) (cdr tem))) `(= (templates* ',name) (+ (mappend templates* ',(rev includes)) (list ,@(map (fn ((k v)) `(list ',k (fn () ,v))) (pair fields))))))) (mac addtem (name . fie...
(= templates* (table)) (mac deftem (tem . fields) (withs (name (carif tem) includes (if (acons tem) (cdr tem))) `(= (templates* ',name) (+ (mappend templates* ',(rev includes)) (list ,@(map (fn ((k v)) `(list ',k (fn () ,v))) (pair fields))))))) (mac addtem (name . fie...
fix coerce in templates as well
fix coerce in templates as well
Arc
mit
LaxWorks/news,LaxWorks/news,LaxWorks/news,LaxWorks/news
10e997e2598421f130a52d10d7796a76aa960ca2
arch/arc/conf/Makefile.arc
arch/arc/conf/Makefile.arc
# $OpenBSD: Makefile.arc,v 1.2 1996/07/16 07:46:15 pefo Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arch/MACHINE/conf/``machineid'' # after which ...
# $OpenBSD: Makefile.arc,v 1.3 1996/08/24 18:35:25 imp Exp $ # @(#)Makefile.arc 8.2 (Berkeley) 2/16/94 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/arch/MACHINE/conf/``machineid'' # after which y...
Use HOSTCC to build genassym to fix cross compilations
Use HOSTCC to build genassym to fix cross compilations
Arc
isc
orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars
cbf77d6105bded343b0d2e2ebb3f85af1d19fbf9
demos/picture.arc
demos/picture.arc
root() { let bgcolor = Vec3(0, 0.3, 1); picture(Vec2(160, 160)); fill(bgcolor); gradient(Vec3(0, 1, 1), Vec3(0.9, 1, 0.8), Vec2(1, 1)); fillrect(Vec3(1, 1, 0), Vec2(20, 20), Vec2(50, 50)); fillrect(Vec3(1, 0, 0), Vec2(50, 50), Vec2(50, 50)); fillrect(Vec3(0, 1, 1), Vec2(80, 80), Vec2(50, 50)); f(g); } ...
root() { let bgcolor = Vec3(0, 0.3, 1); picture(Vec2(160, 160)); fill(bgcolor); gradient(Vec3(0, 1, 1), Vec3(0.9, 1, 0.8), Vec2(1, 1)); fillrect(Vec3(1, 1, 0), Vec2(20, 20), Vec2(50, 50)); fillrect(Vec3(1, 0, 0), Vec2(50, 50), Vec2(50, 50)); fillrect(Vec3(0, 1, 1), Vec2(80, 80), Vec2(50, 50)); redRec...
Improve picture demo: demonstrate passing function as parameters
Improve picture demo: demonstrate passing function as parameters
Arc
agpl-3.0
Ace17/architect,Ace17/architect
2cd4c792e47d89982633b12cdfd7202d7c41c08a
sensorSlave/sensorSlave.ino
sensorSlave/sensorSlave.ino
#include <Wire.h> #define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) //#define LOG_SERIAL //TODO // // store read frequency in EEPROM // write read frequency via I2C // read frequency via I2C const int sensorPins[][2] = { { A0,4 } ,{ A1,3 } ,{ A2,2 } ,{ A3,1 ...
#include <Wire.h> #define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) //#define LOG_SERIAL //TODO // // store read frequency in EEPROM // write read frequency via I2C // read frequency via I2C const int sensorPins[][2] = { { A0,4 } ,{ A1,3 } ,{ A2,2 } ,{ A3,1 ...
add timedelta between measure and fetch
add timedelta between measure and fetch
Arduino
apache-2.0
yopzolo/ArduinoI2CMoistureSensor
365c1232bfb749049e98f5f513f6d52677980f02
shira-medal/shira-medal.ino
shira-medal/shira-medal.ino
// Low power NeoPixel earrings example. Makes a nice blinky display // with just a few LEDs on at any time...uses MUCH less juice than // rainbow display! #include <Adafruit_NeoPixel.h> #define PIN 0 #define NUM_LEDS 24 #define MAX_MODES 8 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM_LEDS, PIN); uint8_t ...
// Low power NeoPixel earrings example. Makes a nice blinky display // with just a few LEDs on at any time...uses MUCH less juice than // rainbow display! #include <Adafruit_NeoPixel.h> #define PIN 0 #define NUM_LEDS 24 #define MAX_MODES 9 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM_LEDS, PIN); uint8_t ...
add one more mode to the medal
add one more mode to the medal
Arduino
artistic-2.0
craighagan/HalloweenCostumes,craighagan/HalloweenCostumes,craighagan/HalloweenCostumes
2e61775607984f5db66841f9a058c4226f441532
CeilingFanController/CeilingFanController.ino
CeilingFanController/CeilingFanController.ino
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> #include <stdio.h> #include "string.h" // device specifics #include "WirelessConfig.h" #define OFF_PIN D5 #define HIGH_PIN D6 #define MED_PIN D7 #define LOW_PIN D8 int selectpins[] = { D0, D1, D2, D3 }; #define FAN_TOPIC "house/fan" IPAddress ser...
#include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> #include <stdio.h> #include "string.h" // device specifics #include "WirelessConfig.h" #define OFF_PIN D5 #define HIGH_PIN D6 #define MED_PIN D7 #define LOW_PIN D8 int selectpins[] = { D0, D1, D2, D3 }; #define FAN_TOPIC "house/fan" IPAddress ser...
remove extra blank line
src: remove extra blank line
Arduino
mit
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
795e683d3a8eb87b69237698bb4320fa57e43156
octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino
octotemp/code/OctoTemp/OctoTemp/OctoTemp.ino
#include <Math.h> #include <Wire.h> #include <prometheus.h> #define SDAPIN 13 #define SCLPIN 12 #define SERVER_IP "10.1.20.200" #define SERVER_PORT 9091 // TODO(z2amiller): Set up interrupts to call back when the temperature // on one of the pins gets too hot. Needs to be added ...
#include <Math.h> #include <Wire.h> #include <prometheus.h> #define SDAPIN 13 #define SCLPIN 12 #define SERVER_IP "10.1.20.200" #define SERVER_PORT 9091 // TODO(z2amiller): Set up interrupts to call back when the temperature // on one of the pins gets too hot. Needs to be added ...
Use the new MapMetric
Use the new MapMetric
Arduino
apache-2.0
z2amiller/snippets
8eea252be10224a7609a18443355ade5433e8562
sketch_scrollingLED/sketch_scrollingLED.ino
sketch_scrollingLED/sketch_scrollingLED.ino
#include "ScrollingLED.h" #include "Font8x8_P.h" /** Pins of LED Matrix*/ #define CS 10 #define CLK 11 #define DIN 12 #define MAX 32 //max number of bytes (multiple of 8) ScrollingLED animator = ScrollingLED(CS, CLK, DIN); byte bytes[MAX]; int numBytes = 8; int steps = 0; void setup() { Serial.begin(9600); Se...
#include "ScrollingLED.h" #include "Font8x8_P.h" /** Pins of LED Matrix*/ #define CS 10 #define CLK 11 #define DIN 12 #define MAX 32 //max number of bytes (multiple of 8) ScrollingLED animator = ScrollingLED(CS, CLK, DIN); byte bytes[MAX]; int numBytes = 8; int steps = 0; int col = 0; void setup() { Serial.begi...
Reset message when newline or return received
Reset message when newline or return received
Arduino
epl-1.0
ajcarpente42/HudsonDuinoLED,ajcarpente42/HudsonDuinoLED,ajcarpente42/HudsonDuinoLED
36bedfdc1eb0d212f0bfa5fb2334aa62fd14b4df
buttonbar/buttonbar.ino
buttonbar/buttonbar.ino
// pinout #define MUX_A 10 #define MUX_B 11 #define MUX_C 12 #define MUX_COM1 14 #define MUX_COM2 15 #define MUX_COM3 16 #define SWITCH_A_UP 2 #define SWITCH_A_DN 3 #define SWITCH_B_UP 0 #define SWITCH_B_DN 1 // number of buttons #define BUTTON_COUNT 20 // MIDI params #define MIDI_CHANNEL 1 // uncomment to enable seria...
// pinout #define MUX_A 10 #define MUX_B 11 #define MUX_C 12 #define MUX_COM1 14 #define MUX_COM2 15 #define MUX_COM3 16 #define SWITCH_A_UP 2 #define SWITCH_A_DN 3 #define SWITCH_B_UP 0 #define SWITCH_B_DN 1 // number of buttons #define BUTTON_COUNT 20 // MIDI params #define MIDI_CHANNEL 1 #define ROOT_NOTE 48 // unco...
Change base octave.
Change base octave.
Arduino
unlicense
jessecrossen/hautmidi,jessecrossen/hautmidi,jessecrossen/hautmidi,jessecrossen/hautmidi
0aea320ded5d18ece8eea5decdbff4b42a7e419d
_04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino
_04-mqtt-lcd-dust-sensor/_04-mqtt-lcd-dust-sensor-nano/_04-mqtt-lcd-dust-sensor-nano.ino
#include <IRremote.h> #include <Wire.h> /* Standalone Sketch to use with a Arduino UNO and a Sharp Optical Dust Sensor GP2Y1010AU0F */ // ------------------------------------------ int measurePin = A6; //Connect dust sensor to Arduino A6 pin int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ...
#include <IRremote.h> #include <Wire.h> /* Standalone Sketch to use with a Arduino UNO and a Sharp Optical Dust Sensor GP2Y1010AU0F */ // ------------------------------------------ int measurePin = A6; //Connect dust sensor to Arduino A6 pin int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino ...
Update _04-mqtt-lcd-dust-sensor-nano.ino
Update _04-mqtt-lcd-dust-sensor-nano.ino
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
2ed2f2e109bf9a1010089046957001b749ffd49e
src/TowerFloodIR/TowerFloodIR.ino
src/TowerFloodIR/TowerFloodIR.ino
// Compile for Arduino Pro/Pro Mini 5V 16Mhz with ATMega 328. // During compilation, hold down RESET on the mini, and release when "Uploading..." // need to strike RobotIRRemote directory in Arduino IDE libraries folder. Name collision! #include <IRremote.h> // IR connected to pin 3 #include <Streaming.h> #include <M...
// Compile for Arduino Pro/Pro Mini 5V 16Mhz with ATMega 328. // During compilation, hold down RESET on the mini, and release when "Uploading..." // need to strike RobotIRRemote directory in Arduino IDE libraries folder. Name collision! #include <IRremote.h> // IR connected to pin 3 #include <Streaming.h> #include <M...
remove submersibles
remove submersibles
Arduino
mit
akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon,akaylyn/simon
b693274dce9e7e94c35c82e512b88f13a1138f15
sketch_aug09a.ino
sketch_aug09a.ino
#include "tubair.h" const int GREEN_LED = 2 ; const int RED_LED = 4 ; int RETURN_CODE_LOGIN = 0; Api api_manager; DHT dht(DHTPIN, DHTTYPE); MQ2 mq2(PIN_MQ2); MQ7 mq7(PIN_MQ7); MQ3 mq3(PIN_MQ3); void setup() { Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for nati...
#include "tubair.h" const int GREEN_LED = 2 ; const int RED_LED = 4 ; int RETURN_CODE_LOGIN = 0; Api api_manager; DHT dht(DHTPIN, DHTTYPE); MQ2 mq2(PIN_MQ2); MQ7 mq7(PIN_MQ7); MQ3 mq3(PIN_MQ3); void setup() { Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for nati...
add humidity sensor
add humidity sensor
Arduino
mit
quentinkb/tubair,quentinkb/tubair,quentinkb/tubair
8b1266bdea0c87652d76ffedc3a41661a46fce54
examples/MS5837_Example/MS5837_Example.ino
examples/MS5837_Example/MS5837_Example.ino
/* Blue Robotics MS5837 Library Example ----------------------------------------------------- Title: Blue Robotics MS5837 Library Example Description: This example demonstrates the MS5837 Library with a connected sensor. The example reads the sensor and prints the resulting values to the serial terminal. The code i...
/* Blue Robotics MS5837 Library Example ----------------------------------------------------- Title: Blue Robotics MS5837 Library Example Description: This example demonstrates the MS5837 Library with a connected sensor. The example reads the sensor and prints the resulting values to the serial terminal. The code i...
Correct Bar30 pinout
Correct Bar30 pinout
Arduino
mit
bluerobotics/BlueRobotics_MS5837_Library
02bdd5a57a4608f582ac87145f58be3c98405fdf
src/main/main.ino
src/main/main.ino
#include <Wire.h> #include "LSM6.h" #include "MahonyAHRS.h" LSM6 imu; Mahony ahrs; const uint32_t MICROS_PER_SEC = 1000000; const uint32_t SAMPLE_FREQUENCY = 1660; const uint32_t PRINT_FREQUENCY = 5; const float gScale = 0x7FFF / (float)8; const float dpsScale = 0x7FFF / (float)1000; void setup() { Serial.begin(...
#include <Wire.h> #include "LSM6.h" #include "MahonyAHRS.h" LSM6 imu; Mahony ahrs; const uint32_t MICROS_PER_SEC = 1000000; const uint32_t SAMPLE_FREQUENCY = 250; const uint32_t PRINT_FREQUENCY = 5; const float gScale = 0x7FFF / (float)8; const float dpsScale = 0x7FFF / (float)1000; void setup() { Serial.begin(1...
Increase I2C speed, decrease sample rate
Increase I2C speed, decrease sample rate
Arduino
mit
PanicARobot/Slim,PanicARobot/Slim
8f7deb69fc306ab784096cb085abc1a723bdbb7c
examples/SimpleClockLCD/SimpleClockLCD.ino
examples/SimpleClockLCD/SimpleClockLCD.ino
/** * @file SimpleClockLCD.ino * This a simple clock application using the RTC Nanoshield and the LCD Nanoshield. * * Copyright (c) 2013 Circuitar * This software is released under the MIT license. See the attached LICENSE file for details. */ #include <Wire.h> #include <stdio.h> #include "Nanoshield_RTC.h" #in...
/** * @file SimpleClockLCD.ino * This a simple clock application using the RTC Nanoshield and the LCD Nanoshield. * * Copyright (c) 2013 Circuitar * This software is released under the MIT license. See the attached LICENSE file for details. */ #include <Wire.h> #include <stdio.h> #include "Nanoshield_RTC.h" #in...
Update SimpleClockLCD.ino
Update SimpleClockLCD.ino
Arduino
mit
circuitar/Nanoshield_RTC,circuitar/Nanoshield_RTC
70f55edba56f4cc6b1080984ceb6ba8443b55369
arduino.ino
arduino.ino
/*- * Arduindow - Opens and closes the windows in your house * using an Arduino and open weather data. * * Team: * Erica Raviola (iOS) * Flavio Giobergia (APIs) * Roberto Gambotto (Arduino) * Simone Basso (sandwiches) * * Homepage: <https://github.com/bassosimone/arduindow>. * * See LICENSE ...
/*- * Arduindow - Opens and closes the windows in your house * using an Arduino and open weather data. * * Team: * Erica Raviola (iOS) * Flavio Giobergia (APIs) * Roberto Gambotto (Arduino) * Simone Basso (sandwiches) * * Homepage: <https://github.com/bassosimone/arduindow>. * * See LICENSE ...
comment the code to skip quickly to CRLFCRLF
arduino.ino: comment the code to skip quickly to CRLFCRLF
Arduino
mit
bassosimone/arduindow,bassosimone/arduindow,bassosimone/arduindow
9e1f37b6f698924c9835bc8b785ee148e791ab4c
stepper/barStepper/barStepper.ino
stepper/barStepper/barStepper.ino
#include <Stepper.h> const int stepsPerLittleRevolution = 200; //rotates the little gear one revolution const int stepsPerBigRevolution = 400; //rotates the big gear one revolution // initialize the stepper library on pins 8 through 11: Stepper myStepper(stepsPerRevolution, 8,9,10,11); // set global state int sta...
#include <Stepper.h> const int stepsPerLittleRevolution = 200; //rotates the little gear one revolution const int stepsPerBigRevolution = 400; //rotates the big gear one revolution // initialize the stepper library on pins 8 through 11: Stepper myStepper(stepsPerRevolution, 8,9,10,11); // set global state int st...
Change state code finished
Change state code finished Finished the arduino code to change to a given state.
Arduino
mit
vaibhavviswanathan/barRobot
af21802346076f14ca041049fd5a9919bdec8765
esp8266_160220_BYOP.ino
esp8266_160220_BYOP.ino
/* * v0.1 2016 Feb 20 * - */ void setup() { Serial.begin(115200); } void loop() { Serial.println("Hello"); delay(2000); }
/* * This program is used for a message station shown at * https://hackaday.io/project/9526-bring-your-own-pizero-byop */ /* * v0.1 2016 Feb 20 * - add Serial_readCommand(); * - add serial setup */ //------------------------------------------------------------------------- // static declarations static co...
add Serial_readCommand()
add Serial_readCommand()
Arduino
mit
yasokada/esp8266_160220_BYOP
5254cab0ec0a3ece34d91c74139e1a244cca80e7
eeprom.ino
eeprom.ino
const int ssidLength = 32; const int passwordLength = 64; const int hostnameLength = 64; void readWifiDataFromEEPROM() { EEPROM.begin( 512 ); //read the ssid ( bytes 0...31 ) for ( byte thisChar = 0; thisChar < ssidLength; thisChar++ ) { WIFIssid += (char)EEPROM.read( thisChar ); } //read the password...
const int ssidLength = 32; const int passwordLength = 64; const int hostnameLength = 64; void readWifiDataFromEEPROM() { EEPROM.begin( 512 ); //read the ssid ( bytes 0...31 ) for ( byte thisChar = 0; thisChar < ssidLength; thisChar++ ) { WIFIssid += (char)EEPROM.read( thisChar ); } WIFIssid.trim(); ...
Trim WiFi values read from EEPROM.
Trim WiFi values read from EEPROM. Otherwise comparing is not possible. And added a forgotten EEPROM.end().
Arduino
mit
CelliesProjects/aquacontrol2,CelliesProjects/aquacontrol2
05a4f311bde32da701305d6c64b639294f6f8a41
d_BacpacCommands.ino
d_BacpacCommands.ino
#define MEWPRO_VERSION_STRING "2015062601" void cameraCommand() { switch ((recv[1] << 8) + recv[2]) { case GET_CAMERA_INFO: memcpy((char *)buf, "\x25\x00\x01\x04\x0cHD3.11.03.00\x14HERO3+ Black Edition", 0x26); // the dongle will act as a HERO3+ Black // memcpy((char *)buf, "\x20\x00\x01\x04\x0fHD4.01.02.0...
#define MEWPRO_VERSION_STRING "2015091800" void cameraCommand() { switch ((recv[1] << 8) + recv[2]) { case GET_CAMERA_INFO: memcpy((char *)buf, "\x25\x00\x01\x04\x0cHD3.11.03.03\x14HERO3+ Black Edition", 0x26); // the dongle will act as a HERO3+ Black // memcpy((char *)buf, "\x20\x00\x01\x04\x0fHD4.01.02.0...
use with current firmware 3.03
use with current firmware 3.03
Arduino
mit
orangkucing/GenlockDongle
bdcefcd40f902221246440cf5f1fffd523925346
Arduino/Development/serial_test/serial_test.ino
Arduino/Development/serial_test/serial_test.ino
// Pin 13 has an LED connected on most Arduino boards. int ledState = LOW; int led = 13; int comin=0; int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor long previousMillis = 0; long interval = 1000; // the setup routine...
// Pin 13 has an LED connected on most Arduino boards. int ledState = LOW; int led = 13; int comin=0; int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor long previousMillis = 0; long interval = 1000; // the setup routine...
print line
print line
Arduino
mit
kjwitt/CAN-nauts
0538f13c7a02bbed22c48e66defffd83d8490c97
Arduino/photoresistorTest/photoresistorTest.ino
Arduino/photoresistorTest/photoresistorTest.ino
const int BUFFER_SIZE = 4; int m_buffer[BUFFER_SIZE]; int m_bufIndex = 0; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: int val = readValue(); //Serial.print("Voltage"); //Serial.print("\t"); Serial.println(val...
const int BUFFER_SIZE = 8; int m_buffer[BUFFER_SIZE]; int m_bufIndex = 0; unsigned long m_timer = 0; int m_counter = 0; void setup() { // put your setup code here, to run once: Serial.begin(9600); m_timer = millis(); // Timer0 is already used for millis() - we'll just interrupt somewhere // in the middle a...
Use interrupt for timing the sample read
Use interrupt for timing the sample read
Arduino
mit
paasovaara/nes-zapper,paasovaara/nes-zapper
264152d485ef83313361a5b6dc494f1a9d484124
WirelessTrigger.ino
WirelessTrigger.ino
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> // Display #include <LiquidCrystal.h> // Smart switch utils #include "~Switch.h" #define ROLE_...
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> // Display #include <LiquidCrystal.h> // Smart switch utils #include "~Switch.h" #define ROLE_...
Fix altitude transmission logic and disable display
Fix altitude transmission logic and disable display
Arduino
mit
WasabiFan/aerial-release-system,WasabiFan/aerial-release-system
294a5df17d6d99f4604eb0f8a90ffc376e0a75e3
dragino/sketch_reco.ino
dragino/sketch_reco.ino
#include <SPI.h> #include <PubSubClient.h> #include <YunClient.h> #include <string.h> int out2 = 2; int out3 = 3; int out4 = 4; int out6 = 6; char message_buff[100]; ////Please here paste info from "devinfo"//////////////// #define IOTUSERNAME "ioioioioio" #define IOTPASSWORD "pppppppp" #define IOTDEVICE "iiiiiiiii"...
#include <SPI.h> #include <PubSubClient.h> #include <YunClient.h> #include <string.h> int out2 = 2; int out3 = 3; int out4 = 4; int out6 = 6; char message_buff[100]; ////Please here paste info from "devinfo"//////////////// #define IOTUSERNAME "ioioioioio" #define IOTPASSWORD "pppppppp" #define IOTDEVICE "iiiiiiiii"...
Update sketch_reco.ino
Update sketch_reco.ino
Arduino
apache-2.0
redlibre/iot_platform
63bfdf26bb0408573e1408860ff298dc33183756
examples/MatrixClock/MatrixClock.ino
examples/MatrixClock/MatrixClock.ino
/* * This example is pulled from the DS1307RTC library with slight * modifications to demonstrate how to use the alternate I2C pins * accessible on the SmartMatrix Shield. * * Original DS1307RTC Library: * https://www.pjrc.com/teensy/td_libs_DS1307RTC.html * * Requires a DS1307, DS1337 or DS3231 RTC chip connec...
/* * This example is pulled from the DS1307RTC library with slight * modifications to demonstrate how to use the alternate I2C pins * accessible on the SmartMatrix Shield. * * Original DS1307RTC Library: * https://www.pjrc.com/teensy/td_libs_DS1307RTC.html * * Requires a DS1307, DS1337 or DS3231 RTC chip connec...
remove tom thumb font, fix compiler warning, remove test code
remove tom thumb font, fix compiler warning, remove test code
Arduino
mit
mrwastl/SmartMatrix,gregfriedland/SmartMatrix,gregfriedland/SmartMatrix,alexozer/SmartMatrix,alexozer/SmartMatrix,mrwastl/SmartMatrix
555c9ebdf84b461e56d0db76a22c2efa9851e43f
libraries/ESP8266HTTPClient/examples/StreamHttpsClient/StreamHttpsClient.ino
libraries/ESP8266HTTPClient/examples/StreamHttpsClient/StreamHttpsClient.ino
/** StreamHTTPClient.ino Created on: 24.05.2015 */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> ESP8266WiFiMulti WiFiMulti; void setup() { Serial.begin(115200); // Serial.setDebugOutput(true); Serial.println(); Serial.println(); Ser...
/** StreamHTTPClient.ino Created on: 24.05.2015 */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> ESP8266WiFiMulti WiFiMulti; void setup() { Serial.begin(115200); // Serial.setDebugOutput(true); Serial.println(); Serial.println(); Ser...
Update FP for tls.mbed.org (#7479)
Update FP for tls.mbed.org (#7479)
Arduino
lgpl-2.1
esp8266/Arduino,sticilface/Arduino,sticilface/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,sticilface/Arduino,esp8266/Arduino,esp8266/Arduino
c963c419f18abe4a0139adbed81dfcb6841ed664
arduino/neopixel_emote/neopixel_emote.ino
arduino/neopixel_emote/neopixel_emote.ino
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 #define MOTORPIN 8 #define NUMPIXELS 16 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); int rec_pixel = 8; int delayval = 50; char state = "d"; int health = 150; int ...
#include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define PIN 6 #define NUMPIXELS 16 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); int rec_pixel = 8; int delayval = 50; char state = "d"; int health = 150; int range[] = {0,NUMPIXELS}; ...
remove motor commands
remove motor commands
Arduino
mit
jeremywrnr/mewsichip,jeremywrnr/mewsichip,jeremywrnr/mewsichip
f25723c3c10fe7d639178a8bc05649929721b197
marsduino/marsduino.ino
marsduino/marsduino.ino
#include "MemoryFree.h" #include "DaqTelemetry.h" //Defined as a global for memory DaqTelemetry *daqTelemetry; //Motor int enablePin = 13; //enable/disable motor int revPin = 11; //seting fwd/rev int brakePin = 12; //brake pin int speedPin = 9; //speedPin int voltagePin = A0; //ammeter voltage pin int currentPin = A...
#include "MemoryFree.h" #include "DaqTelemetry.h" //Defined as a global for memory DaqTelemetry *daqTelemetry; //Motor int enablePin = 13; //enable/disable motor int revPin = 11; //seting fwd/rev int brakePin = 12; //brake pin int speedPin = 9; //speedPin int voltagePin = A0; //ammeter voltage pin int currentPin = A...
Fix that damn serial buffer issue
Fix that damn serial buffer issue Former-commit-id: 5722755fc93af840743768804733a414ad29fe0a
Arduino
mit
JoeBartelmo/PyDetect,JoeBartelmo/PyDetect,JoeBartelmo/goddard,JoeBartelmo/PyDetect,JoeBartelmo/goddard,JoeBartelmo/goddard,JoeBartelmo/goddard,JoeBartelmo/PyDetect,JoeBartelmo/PyDetect,JoeBartelmo/goddard
c86d30f00c553a8681d99b7848baeb88d655202e
resources/test_sketches/include_libraries.ino
resources/test_sketches/include_libraries.ino
#include <Adafruit_MCP9808.h> #include <Adafruit_NeoPixel.h> #include <CapacitiveSensor.h> #include <EEPROM.h> #include <NewPing.h> #include <PinChangeInt.h> #include <SFE_MicroOLED.h> #include <SoftPWM.h> #include <SoftwareSerial.h> #include <SparkFunISL29125.h> #include <SPI.h> #include <Wire.h> void setup() { ...
#include <EEPROM.h> #include <PinChangeInt.h> #include <SoftwareSerial.h> #include <SPI.h> #include <Wire.h> void setup() { // Nothing! } void loop() { Bean.sleep(1000); }
update include_libraries test sketch
test: update include_libraries test sketch
Arduino
lgpl-2.1
PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware,PunchThrough/PunchThrough-BEAN-Arduino-Firmware
f43875ae66fbaab34b44c072521f536f3af259cf
dragino/ds18b20.ino
dragino/ds18b20.ino
#include <Process.h> #include "MQTTclient.h" #include "DHT.h" #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS_PIN A3 float tempC2 = 0; float tempC3 = 0; unsigned long time; OneWire oneWire(ONE_WIRE_BUS_PIN); DallasTemperature sensors(&oneWire); //DeviceAddress probe01 = {0x28, 0xC7, 0xE...
#include <Process.h> #include "MQTTclient.h" #include "DHT.h" #include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS_PIN A3 float tempC2 = 0; float tempC3 = 0; unsigned long time; OneWire oneWire(ONE_WIRE_BUS_PIN); DallasTemperature sensors(&oneWire); //DeviceAddress probe01 = {0x28, 0xC7, 0xE...
Update ds18b20.ino
Update ds18b20.ino
Arduino
mit
pumanzor/iot-redlibre,pumanzor/iot-redlibre
9d2239ce092bc912b0980968d8cb587e5c505dd5
Sattrack.ino
Sattrack.ino
#include <ESPAsyncWebServer.h> #include <ESPAsyncTCP.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <Sgp4.h> #include <Ticker.h> #include <ArduinoOTA.h> #include <EEPROM.h> #include <NeoPixelBus.h> #include <WebSocketsServer.h> #include <Hash.h> #include "FS...
#include <ESPAsyncWebServer.h> #include <ESPAsyncTCP.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <Sgp4.h> #include <Ticker.h> #include <ArduinoOTA.h> #include <EEPROM.h> #include <NeoPixelBus.h> #include <WebSocketsServer.h> #include <Hash.h> #include "FS...
Add hostname
Add hostname
Arduino
mit
Hopperpop/Sattrack,Hopperpop/Sattrack,Hopperpop/Sattrack,Hopperpop/Sattrack,Hopperpop/Sattrack
43a82c29bede0a8888216e82421baec71a5ba9da
engine-room/engine_arduino/engine_arduino.ino
engine-room/engine_arduino/engine_arduino.ino
#include <PololuLedStrip.h> void setup() { Serial.begin(9600); pinMode(LED_BUILTIN, OUTPUT); } void loop() { // TEMP, delete once real LEDs come in digitalWrite(LED_BUILTIN, HIGH); delay(2000); digitalWrite(LED_BUILTIN, LOW); delay(2000); Serial.println('red'); // m is char* } void red() ...
#include <PololuLedStrip.h> PololuLedStrip<2> leds; rgb_color colors[4]; void setup() { Serial.begin(9600); pinMode(LED_BUILTIN, OUTPUT); } void loop() { // TEMP, delete once real LEDs come in digitalWrite(LED_BUILTIN, HIGH); delay(2000); digitalWrite(LED_BUILTIN, LOW); delay(2000); colors[0] =...
test use case for pololu leds
test use case for pololu leds
Arduino
mit
bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne
aadc3ac56b1bea26939a235d928270eefaa28643
Arduino/AlphaChairArduino/AlphaChairArduino.ino
Arduino/AlphaChairArduino/AlphaChairArduino.ino
#include <SoftwareSerial.h> #include <Thread.h> #include <QueueList.h> QueueList <int> q; int sum ; int firstVal; #define PPR_ON "a" #define PPR_OFF "b" #define FSR_ON "c" #define FSR_OFF "d" #define TMP_ON "e" #define TMP_OFF "f" Thread fsrThread = Thread(); // For measuring Pressure data in other thread int count...
#include <SoftwareSerial.h> #include <Thread.h> #include <QueueList.h> QueueList <int> q; int sum ; int firstVal; #define PPR_ON "a" #define PPR_OFF "b" #define FSR_ON "c" #define FSR_OFF "d" #define TMP_ON "e" #define TMP_OFF "f" Thread fsrThread = Thread(); // For measuring Pressure data in other thread int count...
add Moving Average method
add Moving Average method
Arduino
apache-2.0
quki/AlphaChair
c60b1470135a768dd401bdd72f702a3bdba57916
Arduino/examples/light_sensor_visualization.ino
Arduino/examples/light_sensor_visualization.ino
#include <SPI.h> #include "scratch_n_sketch.h" char ch[8]; scratch_n_sketch sns; uint16_t xpos, ypos, drawHeight; //draw graph : using A0 analog noise void setup() { sns.begin(5); delay(1000); // position of the line on screen xpos = 10; // clear the screen with a pretty color sns.fillScreen(0, 0, 0); sns.ro...
#include <SPI.h> #include "scratch_n_sketch.h" char ch[8]; scratch_n_sketch sns; uint16_t xpos, ypos, drawHeight; //draw graph : using light sensor values void setup() { sns.begin(5); delay(1000); // position of the line on screen xpos = 10; // clear the screen with a pretty color sns.fillScreen(0, 0, 0); sn...
Update light_sensor_visualization.ino
Update light_sensor_visualization.ino
Arduino
mit
warefab/scratch-n-sketch,warefab/scratch-n-sketch,warefab/scratch-n-sketch,warefab/scratch-n-sketch
a8bfcc3213ec38f66ae4ed37560b9fb653ea3f61
ESP-Now/espnow-sensorNode/espnow-sensorNode.ino
ESP-Now/espnow-sensorNode/espnow-sensorNode.ino
/* Testing ESP-Now See https://espressif.com/en/products/software/esp-now/overview ESP-Now enables fast lightwieght connectionless communication between ESP8266's. So for example a remote sensor node could send a reading using ESP-Now in just a few hundred milliseconds and deepSleep the rest of the time and so...
/* Testing ESP-Now See https://espressif.com/en/products/software/esp-now/overview ESP-Now enables fast lightwieght connectionless communication between ESP8266's. So for example a remote sensor node could send a reading using ESP-Now in just a few hundred milliseconds and deepSleep the rest of the time and so...
Add a delay after ESP-Now init which seems to make sends more reliable
Add a delay after ESP-Now init which seems to make sends more reliable
Arduino
cc0-1.0
HarringayMakerSpace/IoT
2522969ba436f65541d7c2b7388fdc59e4c1cefc
examples/LightScale/LightScale.ino
examples/LightScale/LightScale.ino
int RED = A2; int YELLOW = A3; int GREEN = 13; void setup() { Serial.begin(9600); pinMode(A0, INPUT); pinMode(RED,OUTPUT); pinMode(GREEN,OUTPUT); pinMode(YELLOW,OUTPUT); digitalWrite(RED, HIGH); digitalWrite(GREEN, HIGH); digitalWrite(YELLOW, HIGH); } void loop() { int light = analogRead(A0); Se...
int RED = A2; int YELLOW = A3; int GREEN = 13; void setup() { Serial.begin(9600); pinMode(A0, INPUT); pinMode(RED,OUTPUT); pinMode(GREEN,OUTPUT); pinMode(YELLOW,OUTPUT); digitalWrite(RED, HIGH); digitalWrite(GREEN, HIGH); digitalWrite(YELLOW, HIGH); } void loop() { int light = analogRead(A0); Se...
Fix parameter
Fix parameter
Arduino
mit
arduino-edushield/edushield,maly/edushield,maly/edushield,arduino-edushield/edushield
8ab788446a5bafa923f34b85031f2e3b35f31527
examples/FlapsGaugeServo/FlapsGaugeServo.ino
examples/FlapsGaugeServo/FlapsGaugeServo.ino
#include <DcsBios.h> #include <Servo.h> /* Instantiate a ProtocolParser object to parse the DCS-BIOS export stream */ DcsBios::ProtocolParser parser; // display flaps gauge position on a servo attached to pin 5 DcsBios::ServoOutput flapsServo("FLAP_POS", 5); void setup() { Serial.begin(500000); flapsServo.setup(...
#include <DcsBios.h> #include <Servo.h> /* Instantiate a ProtocolParser object to parse the DCS-BIOS export stream */ DcsBios::ProtocolParser parser; // display flaps gauge position on a servo attached to pin 5 DcsBios::ServoOutput flapsServo(52, 5); void setup() { Serial.begin(500000); flapsServo.setup(); // Se...
update FlapsGaugeServo example
update FlapsGaugeServo example
Arduino
mit
dcs-bios/dcs-bios-arduino-library
fccc61ef4fc9dacde90e2bae14697cfa32ebf68e
avr/avr.ino
avr/avr.ino
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> // Helper functions. NB! ARRAY_SIZE doesn't check if it's an array. #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) // Serial protocol fundamentals #define ESCAPE '~' // Escape character. G...
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> // Helper functions. NB! ARRAY_SIZE doesn't check if it's an array. #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) // Serial protocol fundamentals #define ESCAPE '~' // Escape character. G...
Use PWM pin to disable output after PWM cycle length reached
Use PWM pin to disable output after PWM cycle length reached
Arduino
agpl-3.0
HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino
289868ac4a744ce4a36f4e67ab8602238fc8d166
MID/MID.ino
MID/MID.ino
#include <Arduino.h> /* --------------------------------------------------- Arduino MID Author: Angel Zaprianov <me@fire1.eu> Version: 0.1 [pre-alpha] Start Date: 09.06.2016 For the full copyright and license information, please view the LICENSE file that was distributed with this source...
#include <Arduino.h> /* --------------------------------------------------- Arduino MID Author: Angel Zaprianov <me@fire1.eu> Version: 0.1 [pre-alpha] Start Date: 09.06.2016 For the full copyright and license information, please view the LICENSE file that was distributed with this source...
Add changes to menu and display
Add changes to menu and display
Arduino
mit
fire1/ArduinoMid,fire1/ArduinoMid
a17c1f941f9d5adf485718492fbc89d37001fcf1
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
src/piggy_back_loggers/SD_prototype_Firmware/Firmware/Firmware.ino
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
// Firmware for the CIWS Residential Datalogger // Arduino IDE ver. 1.8.7 // Utah Water Research Lab // Updated: 10/25/2018 // Daniel Henshaw and Josh Tracy // Note: F("String") keeps string literals in program memory and out of RAM. Saves RAM space. Very good. Don't remove the F. I know it looks funny. But don't do it...
Update Firmware.ino
Update Firmware.ino
Arduino
bsd-3-clause
UCHIC/WaterMonitor
7bee9694e1abcb4e30f2dd6f0e84193af48cffe2
mqtt_simulatore_eth/mqtt_simulatore_eth.ino
mqtt_simulatore_eth/mqtt_simulatore_eth.ino
/* Basic MQTT example This sketch demonstrates the basic capabilities of the library. It connects to an MQTT server then: - publishes "hello world" to the topic "outTopic" - subscribes to the topic "inTopic", printing out any messages it receives. NB - it assumes the received payloads are strings not binar...
/* Basic MQTT example This sketch demonstrates the basic capabilities of the library. It connects to an MQTT server then: - publishes "hello world" to the topic "outTopic" - subscribes to the topic "inTopic", printing out any messages it receives. NB - it assumes the received payloads are strings not binar...
modifica stringa data
modifica stringa data
Arduino
agpl-3.0
doceo/plant,doceo/plant,doceo/plant,doceo/plant
cc92211f7dc0c28a1a8665c652168194d7f4f63d
keypad/keypad.ino
keypad/keypad.ino
/* FROM http://playground.arduino.cc/Main/KeypadTutorial * * MORE EXAMPLES http://playground.arduino.cc/Code/Keypad#Example * * Keypadtest.pde * * Demonstrate the simplest use of the keypad library. * * The first step is to connect your keypad to the * Arduino using the pin numbers listed below i...
/* FROM http://playground.arduino.cc/Main/KeypadTutorial * * MORE EXAMPLES http://playground.arduino.cc/Code/Keypad#Example * * Keypadtest.pde * * Demonstrate the simplest use of the keypad library. * * The first step is to connect your keypad to the * Arduino using the pin numbers listed below i...
Update keypad with bells
Update keypad with bells
Arduino
mit
tingyez/JunkDJ,tingyez/JunkDJ
49e6d0cd840e161b0cc51344af5bc350567cb5ee
little-switches/arduino/3_setup-rel/3_setup-rel.ino
little-switches/arduino/3_setup-rel/3_setup-rel.ino
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; long t7 = 0; long t8 = 0; long t9 = 0; long t0 = 0; int tempo = 0; void setup() { delay(1000); keyboard.begin(DataPin, IRQpi...
#include <PS2Keyboard.h> const int DataPin = 9; const int IRQpin = 3; #define pot A3 PS2Keyboard keyboard; long t1 = 0; long t2 = 0; long t3 = 0; long t4 = 0; long t5 = 0; long t6 = 0; long t7 = 0; long t8 = 0; long t9 = 0; long t0 = 0; int tempo = 0; void setup() { delay(1000); keyboard.begin(DataPin, IRQpi...
fix code
fix code
Arduino
unlicense
paolocavagnolo/plastik-art_democracy
3d2151955e35efe4fb2c24235c12fd83b8d78833
Ecran/BotMenu/BotMenu.ino
Ecran/BotMenu/BotMenu.ino
/** * \file BotMenu.cpp * \brief Code d'affichage de l'écran * \author Nicolas Sobczak * \date octobre 2016 */ #include "U8glib.h" #include "M2tk.h" #include "utility/m2ghu8g.h" #include "utility/mas.h" // setup u8g object U8GLIB_ST7920_128X64_1X u8g(13, 51, 14); // SPI Com: SCK = en = 13, MOSI = rw ...
/** * \file BotMenu.cpp * \brief Code d'affichage de l'écran * \author Nicolas Sobczak * \date octobre 2016 */ #include "U8glib.h" #include "M2tk.h" #include "utility/m2ghu8g.h" #include "utility/mas.h" // setup u8g object U8GLIB_ST7920_128X64_1X u8g(13, 51, 14); // SPI Com: SCK = en = 13, MOSI = rw ...
update BotMenu
update BotMenu
Arduino
mit
nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance,nsobczak/CoupeDeFrance
41d54ac8688d55750426588db07f6b46a0a39202
AndroidTVGateway/edge-agent/edge-agent.ino
AndroidTVGateway/edge-agent/edge-agent.ino
#include <SoftwareSerial.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <SPI.h> #include <MFRC522.h> #define DHTTYPE DHT11 #define WINDOWPIN 4 #define ACPIN 5 #define DHTPIN 6 #define DOOR_LOCK 7 #define LED_LIGHT 8 DHT dht(DHTPIN,...
#include <SoftwareSerial.h> #include <Adafruit_Sensor.h> #include <DHT.h> #include <DHT_U.h> #include <SPI.h> #include <MFRC522.h> #define DHTTYPE DHT11 #define WINDOWPIN 4 #define ACPIN 5 #define DHTPIN 6 #define DOOR_LOCK 7 #define LED_LIGHT 8 DHT dht(DHTPIN,...
Undo comments added to arduino code
Undo comments added to arduino code
Arduino
apache-2.0
charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples,charithag/iot-server-samples
73ae7279723e15d23ccf9805ae407ea8bdc5ae5f
programma/programma.ino
programma/programma.ino
#include <Servo.h> #include "IOpins.h" #include "Constants.h" #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> /*-----( Declare objects )-----*/ RF24 radio(CE_PIN, CSN_PIN); // Create a Radio void setup() { Serial.begin(9600); pinMode(LmotorA,OUTPUT); // zet de pinnen voor de H brug op output...
#include "IOpins.h" #include "Constants.h" #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> /*-----( Declare objects )-----*/ RF24 radio(CE_PIN, CSN_PIN); // Create a Radio void setup() { Serial.begin(9600); pinMode(LmotorA,OUTPUT); // zet de pinnen voor de H brug op output pinMode(RmotorA,...
Update programma.ino
Update programma.ino huidige
Arduino
mit
VerheyenSteven/Smart-Systems,VerheyenSteven/Smart-Systems,VerheyenSteven/Smart-Systems,VerheyenSteven/Smart-Systems
630599d4e1c79375994ab09f7cc82b6008dc676b
vibrate_alarm_clock.ino
vibrate_alarm_clock.ino
#include <Wire.h> #include <SPI.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <RTClib.h> #include <RTC_DS1307.h> #include "constants.h" #include "tune.h" #define MIN_BATTERY_MILLIVOLT 3300 //You may need to calibrate this #define MAX_BATTERY_MILLIVOLT 4300 //You may need to calibrate this #defin...
#include <Wire.h> #include <SPI.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <RTClib.h> #include <RTC_DS1307.h> #include "constants.h" #include "tune.h" #define MIN_BATTERY_MILLIVOLT 3300 //You may need to calibrate this #define MAX_BATTERY_MILLIVOLT 4300 //You may need to calibrate this #defin...
reorder functions
reorder functions
Arduino
mit
yeokm1/vibrate_alarm_clock,yeokm1/vibrate_alarm_clock
7899319cec617cc2f162d156b6d50c6fb75d5a6b
eeprom8.ino
eeprom8.ino
#include <EEPROM.h> #include <flash_stm32.h> // This is a module that lets you store up to 255 byte-long configuration variables numbered from 0 to 254. // // The storage method is incompatible with the one implemented by the EEPROM-emulation library, as it's optimized // for our single-byte usage case. // // Note: F...
#include <EEPROM.h> #include <flash_stm32.h> // This is a module that lets you store up to 255 byte-long configuration variables numbered from 0 to 254. // // The storage method is incompatible with the one implemented by the EEPROM-emulation library, as it's optimized // for our single-byte usage case. // // Note: F...
remove debug code
remove debug code
Arduino
mit
arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter,arpruss/gamecube-usb-adapter
ea85456f0dced400449524c7326ba6c52a500111
avr/avr.ino
avr/avr.ino
/* Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> static uint8_t buf_a[] = { 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x0A, 0x04, 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x08, 0x04, 0x07, 0x07, 0x0B, 0x05, 0x17, 0x03, 0x0A, 0x05, 0x09, 0x14, 0x18, 0x04, 0x14, 0x04, 0x1A, 0x04, 0x09,...
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> static uint8_t buf_a[] = { 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x0A, 0x04, 0x01, 0x00, 0x08, 0x04, 0x10, 0x00, 0x08, 0x04, 0x07, 0x07, 0x0B, 0x05, 0x17, 0x03, 0x0A, 0x05, 0x09, 0x14, 0...
Make the AVR code mode readable by adding comments and organizing a bit
Make the AVR code mode readable by adding comments and organizing a bit
Arduino
agpl-3.0
HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino
d4a9bf3afd0654634da6a3e180810899f968fa44
Code/ProbeCube_v0.95.ino
Code/ProbeCube_v0.95.ino
//ProbeCube_v0.95 //Copyright (C) 2015 Lafudoci (https://github.com/Lafudoci) //thingspeak設定============================================================ String thingSpeakAddress = "http://api.thingspeak.com/update?"; String writeAPIKey = "api_key_here"; //填入thingspeak API key ***必填 //CC3000無線網路設定================...
//ProbeCube_v0.95 //Copyright (C) 2015 Lafudoci (https://github.com/Lafudoci) //thingspeak設定============================================================ String thingSpeakAddress = "http://api.thingspeak.com/update?"; String writeAPIKey = "api_key_here"; //填入thingspeak API key ***必填 //CC3000無線網路設定================...
Update ProbeCube_v0.95.ino
Update ProbeCube_v0.95.ino
Arduino
mit
Lafudoci/ProbeCube
e60a13809e17114d195bb24fa8810832f3012eff
PushStart.ino
PushStart.ino
/* Push Start Arduino-based Keyless Ignition for 97-01 Toyota Camry (XV20) Designed by Kevin Abraham */ #include <AnalogTouch.h> #define DEBUG 0 #define BUTTON_PRESS_THRESHOLD 500 #define pinACC 2 #define pinIG1 4 #define pinIG2 7 #define pinST2 8 #define pinCap A4 #define pinLed 10 // Slo...
/* Push Start Arduino-based Keyless Ignition for 97-01 Toyota Camry (XV20) Designed by Kevin Abraham */ #include <AnalogTouch.h> #define DEBUG 0 #define BUTTON_PRESS_THRESHOLD 500 #define pinACC 2 #define pinIG1 4 #define pinIG2 7 #define pinST2 8 #define pinCap A4 #define pinLed 10 // Slo...
Tweak LED behavior
Tweak LED behavior
Arduino
mit
abraha2d/PushStart
05a3ceb8e112c632636ebdd9923f24c93529b24b
dashboard/dashboard.ino
dashboard/dashboard.ino
/* Hall-effect sensor based rev counter Goals: - Use hall-effect sensor (UGN3503) - detect input changes using interrupts - count changes per second ( RPS - revolutions per second ) - scale up RPS to RPM ( revolutions per minute ) or RPH ( revolutions per hour ) - do math to derive MPH ( mile...
/* Hall-effect sensor based rev counter Goals: - Use hall-effect sensor (UGN3503) - detect input changes using interrupts - count changes per second ( RPS - revolutions per second ) - scale up RPS to RPM ( revolutions per minute ) or RPH ( revolutions per hour ) - do math to derive MPH ( mile...
Use TM1638 as display
Use TM1638 as display
Arduino
mit
cSquirrel/arduino-moto-dashboard
8fd71fe9f3f499fc121e8fa59603c093f443d323
examples/ConsoleSerialTemp/ConsoleSerialTemp.ino
examples/ConsoleSerialTemp/ConsoleSerialTemp.ino
/* ConsoleSerialTemp example Copyright 2017 Isaac100 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 ...
/* ConsoleSerialTemp example Copyright 2017 Isaac100 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 ...
Update ConsoleSerialTemp.ino
Update ConsoleSerialTemp.ino
Arduino
apache-2.0
Isaac100/TMP36
50798dd1b4c310849025dd8d5439a099746a8ca1
printer.ino
printer.ino
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <SoftwareSerial.h> #include <Thermal.h> #include <Bounce.h> // ------- Settings --------------------------------------------------- const char *printerId = "abcdef123456"; // the unique ID for this printer. byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0...
#include <SPI.h> #include <Ethernet.h> #include <SD.h> #include <SoftwareSerial.h> #include <Thermal.h> #include <Bounce.h> // ------- Settings --------------------------------------------------- const char *printerId = "abcdef123456"; // the unique ID for this printer. byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x86, 0...
Use an Accept header to indiate what kind of data we want.
Use an Accept header to indiate what kind of data we want. This should let the server do two things: 1) Support different printers 2) Support different modes on printers (text vs bitmap; raw byte stream vs bitmap image to be parsed.
Arduino
mit
exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer,exciting-io/printer
076b461d894dc6714e3c3b8f410273120c3a9d62
humidity1/humidity1.ino
humidity1/humidity1.ino
#include <limits.h> // For ULONG_MAX static const int VCCPin = 8; static const int analogPin = 0; static const float Re = 50.3; // kOhm //static const float Vref = 5.0 * 15 / (15 + 51); static const float Vref = 5.0; static const float Vm = 2.5; static float a = 2.76366367; static float b = -32.40924966; static flo...
#include <limits.h> // For ULONG_MAX static const int VCCPin = 8; static const int analogPin = 0; static const float Re = 50.3; // kOhm //static const float Vref = 5.0 * 15 / (15 + 51); static const float Vref = 5.0; static const float Vm = 2.5; static float a = 2.76366367; static float b = -32.40924966; static flo...
speed up arduino serial connection
speed up arduino serial connection
Arduino
mit
imrehg/weatherstation,UltracoldAtomsLab/weatherstation
3f469d54365401439c09ecdc4a3179e50461b66f
Examples/Relay/Relay.ino
Examples/Relay/Relay.ino
/* * This example may switch a Light ON after Sunset and turn it OFF before Sunrise */ #include <ESP8266WiFi.h> #include <PubSubClient.h> #include <ESP8266httpUpdate.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include <FS.h> #include <ESPMetRED.h> const char* MQTT_PUBLISH_TOPIC = "ESPM...
/* * This example may switch a Light ON after Sunset and turn it OFF before Sunrise */ #include <ESP8266WiFi.h> #include <ESP8266httpUpdate.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include <FS.h> #include <ESPMetRED.h> const char* MQTT_PUBLISH_TOPIC = "ESPMetRED/OUT"; const char* MQ...
Update Relay.ino
Update Relay.ino
Arduino
mit
HobbytronicsPK/ESPMetRED
f8f208e2a35876f32e1d6c72c90c366aa2e184c3
XBee_rob_function_2.0/xBee_2.0/xBee_2.0.ino
XBee_rob_function_2.0/xBee_2.0/xBee_2.0.ino
#include <Dynamixel_Serial.h> //#include <readxBee.h> int x, y, z, emg1, emg2; int infoPk[24]; int actualName(){ if(Serial1.available() >= 24){ if (Serial1.read() == 0x7E){ for (int i = 0; i < 24 ; i++){ byte jelly = Serial1.read(); infoPk[i] = jelly; } for(...
#include <Dynamixel_Serial.h> #include <readxBee.h> int x, y, z, emg1, emg2; int infoPk[24]; bool checkPacket(int *pk){//Generates checksum and compares with the one in the package. INT VERSION int sum = 0; for(int i = 3; i < 24; i++){ //Generate sum from index 3-to-22 (until, not incl. the checksum itself)...
test checpacket 1
test checpacket 1
Arduino
unlicense
andreasnj/P3-Crustcrawler_2.0,andreasnj/P3-Crustcrawler_2.0,andreasnj/P3-Crustcrawler_2.0,andreasnj/P3-Crustcrawler_2.0
c903c8a92911c8601615c1c85cf03ca632a7febb
Arduino_files/sketch_raspuino/sketch_raspuino.ino
Arduino_files/sketch_raspuino/sketch_raspuino.ino
#include <Ethernet.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <SPI.h> #include <EEPROMex.h> #include <EEPROMVar.h> //used to save the output state: 1 bit for output pin EEPROMClassEx mem; //number of pins used (equals for input and output) #define numPin byte output_pins[] = {}; //insert ar...
#include <Ethernet2.h> #include <EthernetClient.h> #include <EthernetServer.h> #include <SPI.h> #include <EEPROMex.h> #include <EEPROMVar.h> //used to save the output state: 1 bit for output pin EEPROMClassEx mem; #define numInPin #define numOutPin byte output_pins[] = {}; //insert array output pin es.{2,3,4,5,6,...
Add files via upload
Add files via upload Separati INPUT e OUTPUT. Il numero dei pin di input può essere ora diverso dal numero dei pin di output.
Arduino
apache-2.0
antonyflour/RaspuinoRCS,antonyflour/RaspuinoRCS,antonyflour/RaspuinoRCS
88140cb9094828e7e599943b11cf9ae2e0bfb1c7
examples/rdmControllerTest/rdmControllerTest.ino
examples/rdmControllerTest/rdmControllerTest.ino
/**************************************************************************/ /*! @file rdmTest.ino @author Claude Heintz @license BSD (see LXTeensy3DMX LICENSE) @copyright 2017 by Claude Heintz Test of LXTeensy3DMX RDM functions Changes output level of some DMX Addresses while bu...
/**************************************************************************/ /*! @file rdmTest.ino @author Claude Heintz @license BSD (see LXTeensy3DMX LICENSE) @copyright 2017-2020 by Claude Heintz Test of LXTeensy3DMX RDM functions Changes output level of some DMX Addresses whi...
update example
update example
Arduino
bsd-3-clause
claudeheintz/LXTeensy3DMX_Library,claudeheintz/LXTeensy3DMX_Library,claudeheintz/LXTeensy3DMX_Library
453fb04ccb19e3f59a919a8f3de1b7531f8d1d25
marsduino/marsduino.ino
marsduino/marsduino.ino
/** * Copyright (c) 2016, Jeffrey Maggio and Joseph Bartelmo * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modi...
/** * Copyright (c) 2016, Jeffrey Maggio and Joseph Bartelmo * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modi...
Update marsduino.ino
Update marsduino.ino
Arduino
mit
JoeBartelmo/PyDetect,JoeBartelmo/goddard,JoeBartelmo/goddard,JoeBartelmo/PyDetect,JoeBartelmo/PyDetect,JoeBartelmo/PyDetect,JoeBartelmo/PyDetect,JoeBartelmo/goddard,JoeBartelmo/goddard,JoeBartelmo/goddard
1676ed9e991503d132954e3789f3c807682e285c
examples/pt100_temperature/pt100_temperature.ino
examples/pt100_temperature/pt100_temperature.ino
#include <Wire.h> #include <SPI.h> /*************************************************** This is a library for the Adafruit PT100/P1000 RTD Sensor w/MAX31865 Designed specifically to work with the Adafruit RTD Sensor ----> https://www.adafruit.com/products/3328 This sensor uses SPI to communicate, 4 pins ...
#include <Wire.h> #include <SPI.h> /*************************************************** This is a library for the Adafruit PT100/P1000 RTD Sensor w/MAX31865 Designed specifically to work with the Adafruit RTD Sensor ----> https://www.adafruit.com/products/3328 This sensor uses SPI to communicate, 4 pins ...
Update pt100_temperature.ino
Update pt100_temperature.ino Report temperatures at 3 sig fig resolution.
Arduino
bsd-2-clause
drhaney/pt100rtd
d88e22a2c7e7c7cf08bd0c5809e196f39b5d9e95
arduino/src/sensor_system/sensor_system.ino
arduino/src/sensor_system/sensor_system.ino
/* * * This Arduino sketch detects the activation of pressure pads by the presence * of an item and sends the result using serial communication to the * Processing application. * If the Processing application responds with an affirmative delay signal, * then the result is replaced with the signal for no activatio...
/* * * This Arduino sketch detects the activation of pressure pads by the presence * of an item and sends the result using serial communication to the * Processing application. * If the Processing application responds with an affirmative delay signal, * then the result is replaced with the signal for no activatio...
Reduce communication if() statements between sensor and car
Reduce communication if() statements between sensor and car
Arduino
mit
jleung51/BIRD
69e247e5b5a7e31d8584b94eefdff5cbeb7db9de
AutoMap/ServoArduino.ino
AutoMap/ServoArduino.ino
//Programa : Teste MPU6050 e LCD 20x4 //Alteracoes e adaptacoes : FILIPEFLOP // //Baseado no programa original de JohnChi //Carrega a biblioteca Wire #include<Wire.h> #include <Servo.h> //Endereco I2C do MPU6050 const int MPU=0x68; //Instancia Servo Servo servo; char buf; int angulo = 90; String Bussola; char ...
//Carrega a biblioteca Wire #include<Wire.h> #include <Servo.h> //Endereco I2C do MPU6050 const int MPU=0x68; //Instancia Servo Servo servo; char buf; int angulo = 90; String Bussola; char valorSerial; //Variaveis para armazenar valores dos sensores int AnguloX, AnguloY, AnguloZ; void setup() { Serial.begin...
Update ServoArduino.ino
Update ServoArduino.ino
Arduino
unlicense
MateusJFabricio/ProjVeiculoMapeamentoAutomatico,MateusJFabricio/ProjVeiculoMapeamentoAutomatico
60a42b7cb57bb6da88314dde807281d57e6eef30
arduino-neopixel.ino
arduino-neopixel.ino
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 10 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Paramete...
#include <Adafruit_NeoPixel.h> // Arduino Nano v2.x, v3.x #define TOTAL_PIXELS 99 // common settings ::::::::: #define MAX_VAL 64 // 0 to 255 for brightness 多くのLEDを制御した場合に、色が安定しない問題を解決するために設けた制限 #define DELAY_TIME 5 // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter...
add command 'd'(divide) and 'l'(slit position in divided unit)
add command 'd'(divide) and 'l'(slit position in divided unit)
Arduino
mit
karappo/ptw-wheel
c63b55b4f274bb7c5bb89ee9ff4307817530d02f
arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino
arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino
// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz // Copyright 2015 by Mark Moene #include <TM1637Display.h> #include <assert.h> // ---------------------------------------------------------------------------- // Configuration: // Start date, must be date valid for moon phase algorithm: // from 1-1-1900 ...
// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz // Copyright 2015 by Mark Moene #include <TM1637Display.h> #include <assert.h> // ---------------------------------------------------------------------------- // Configuration: // Start date, must be date valid for moon phase algorithm: // from 1-1-1900 ...
Change pin usage
Change pin usage
Arduino
mit
MarkMoene/MoonPhaseCalendar
455ff43a44610c9c34decce08f28358683923855
examples/button/spark.ino
examples/button/spark.ino
int buttonPin = 5; // pin of button int buttonState = 0; // variable for reading the pushbutton status void setup() { Spark.function("laststate", laststate); } void loop() { pinMode(buttonPin, INPUT_PULLDOWN); buttonState = digitalRead(buttonPin); delay(250); } int laststate(String command) { re...
int buttonPin = 5; // pin of button int buttonState = 0; // variable for reading the pushbutton status void setup() { Spark.function("laststate", laststate); } void loop() { pinMode(buttonPin, INPUT_PULLDOWN); buttonState = digitalRead(buttonPin); delay(250); } int laststate(String command) { re...
Return buttonState
Return buttonState
Arduino
mpl-2.0
KevinGrandon/sparky
b204e46645fee632957daea6aa053b55e522ef0b
examples/Demo/CosaTermostat/CosaTermostat.ino
examples/Demo/CosaTermostat/CosaTermostat.ino
/** * @file CosaTermostat.ino * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of th...
/** * @file CosaTermostat.ino * @version 1.0 * * @section License * Copyright (C) 2013, 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...
Adjust termostat termperature interval to same as tiny variant.
Adjust termostat termperature interval to same as tiny variant.
Arduino
lgpl-2.1
mikaelpatel/Cosa,rrobinet/Cosa,kc9jud/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwork,mikaelpatel/Cosa,mikaelpatel/Cosa,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,SinishaDjukic/Meshwork,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,kc9jud/Cosa,rrobinet/Cosa,dansut/Cosa,mikae...
187b9d2bbe629e0876adaa59c9c52e895cc38aec
arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino
arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino
// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz // Copyright 2015 by Mark Moene #include <TM1637Display.h> #include <assert.h> // ---------------------------------------------------------------------------- // Configuration: // Start date, must be date valid for moon phase algorithm: // from 1-1-1900 ...
// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz // Copyright 2015 by Mark Moene #include <TM1637Display.h> #include <assert.h> // ---------------------------------------------------------------------------- // Configuration: // Start date, must be date valid for moon phase algorithm: // from 1-1-1900 ...
Fix display data pin
Fix display data pin
Arduino
mit
MarkMoene/MoonPhaseCalendar
88b75d278bf530128c2831c9e57fdd67b3e9ae60
avr/avr.ino
avr/avr.ino
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> // Serial protocol fundamentals #define ESCAPE '~' // Escape character. Go to command mode #define LITERAL_ESCAPE '\0' // Escape followed by this is literal escape. #define CMD...
/* -*- mode: c++; c-file-style: "linux" -*- Telepulssi TP-KN10 slave LED screen driver */ #include <SPI.h> #include <TimerOne.h> // Serial protocol fundamentals #define ESCAPE '~' // Escape character. Go to command mode #define LITERAL_ESCAPE '\0' // Escape followed by this is literal escape. #define CMD...
Tackle ghosts by changing the order of columns being drawn
Tackle ghosts by changing the order of columns being drawn
Arduino
agpl-3.0
HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino,HacklabJKL/telepulssi-arduino
6c8b5d4e0aae6688fd8f6a137bc7b9759dc73e0b
sw-machine-control/module-robot-arm/src/main.ino
sw-machine-control/module-robot-arm/src/main.ino
#include <Arduino.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_PWMServoDriver.h> //#define BLUETOOTH #define SERIAL_TX 1 #define SERIAL_RX 0 //Servo Ports #define SERVO_TURN 0 //Turn Servo #define SERVO_LIFT 1 //Lift Servo #define SERVO_GRAB 2 //Grab Servo //PULSES #define TURN_BACK 165 //(BACK)T...
#include <Arduino.h> #include <SPI.h> #include <Wire.h> #include <Adafruit_PWMServoDriver.h> //Servo Ports #define SERVO_TURN 0 //Turn Servo #define SERVO_LIFT 1 //Lift Servo #define SERVO_GRAB 2 //Grab Servo //PULSES #define TURN_BACK 165 //(BACK)Turn Servo #define TURN_MIDDLE 310 //(FRONT) #define TURN_FRON...
use Serial1, change baudrate.
use Serial1, change baudrate.
Arduino
mit
HSRLCLab/sortic150,HSRLCLab/sortic150
6d1626d027e7b5e874b96a6932b9044064642af1
examples/lwdim/lwdim.ino
examples/lwdim/lwdim.ino
#include <LightwaveRF.h> byte myid[] = {0x6F,0xEB,0xBE,0xED,0xB7,0x7B}; void setup() { lw_setup(); Serial.begin(57600); } int level = 0; void loop() { byte msg[10]; byte len = 10; Serial.print("Setting level to "); Serial.println(level); lw_cmd(0x80 + level,6,LW_ON,myid); delay...
#include <LightwaveRF.h> byte myid[] = {0x6F,0xEB,0xBE,0xED,0xB7,0x7B}; void setup() { lw_setup(); Serial.begin(57600); } int level = 0; void loop() { byte msg[10]; byte len = 10; Serial.print("Setting level to "); Serial.println(level); lw_cmd(0x80 + level,6,LW_ON,myid); delay...
Remove dead code from lwdim example
Remove dead code from lwdim example
Arduino
bsd-3-clause
lawrie/LightwaveRF
46ed5e594f743eed1a56a958effdf35e76ec4d0f
examples/Boards_USB_Serial/Blue_Pill_STM32F103C/Blue_Pill_STM32F103C.ino
examples/Boards_USB_Serial/Blue_Pill_STM32F103C/Blue_Pill_STM32F103C.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...
Add comment about USB serial delay
Add comment about USB serial delay
Arduino
mit
ivankravets/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,blynkkk/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,ivankravets/blynk-library,blynkkk/blynk-library
f9ab81c5488d8ca5b2748ef165ce67c37f7720c1
sketches/pmc-xmas-lights/pmc-xmas-lights.ino
sketches/pmc-xmas-lights/pmc-xmas-lights.ino
/* pmc-xmax-lights.ino Based on Machine Control - Digital Output Example The circuit: - Portenta H7 - Machine Control This example code is in the public domain. */ #include <Arduino_MachineControl.h> using namespace machinecontrol; void setup() { Serial.begin(9600); // The loop starts only when the...
/* pmc-xmax-lights.ino Based on Machine Control - Digital Output Example The circuit: - Portenta H7 - Machine Control This example code is in the public domain. */ #include <Arduino_MachineControl.h> using namespace machinecontrol; void setup() { Serial.begin(9600); // The loop starts only when the...
Update pmc-xmas-lights.ino
Update pmc-xmas-lights.ino Fixed change of state.
Arduino
mpl-2.0
gmacario/learning-arduino
c0af5a8fe8355b4253ae2c56d006152b5e9d4282
examples/MultipleSteppers/MultipleSteppers.ino
examples/MultipleSteppers/MultipleSteppers.ino
/*========================================================================== * The sketch shows how to move more than one motor. * * If more than one motor is moved by one controller all motors will arrive at * their targets at the same time. E.g., if the motors are part of a * x/y transport system, the transp...
/*========================================================================== * The sketch shows how to move more than one motor. * * If more than one motor is moved by one controller all motors will arrive at * their targets at the same time. E.g., if the motors are part of a * x/y transport system, the transp...
Update MultipleSteppers.ino
Update MultipleSteppers.ino
Arduino
mit
luni64/TeensyStep,luni64/TeensyStep
82834e242487b695ce11a1d170e76eea6c3a2542
yun/yun.ino
yun/yun.ino
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
void setup() { pinMode(13,OUTPUT); } void loop() { // put your main code here, to run repeatedly: digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); }
test program for the yun
test program for the yun
Arduino
bsd-3-clause
LuCavallin/yfirbord-grovepi
b9aed77c691c1dff2c3f4b03d5d6f24a11025136
SpeakersControl.ino
SpeakersControl.ino
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266mDNS.h> #ifdef ESP8266 extern "C" { #include "user_interface.h" } #endif #include "mySettings.h" /* * Sample mySettings.h file: * * #define WIFI_SSID "ssid" * #define WIFI_PASSWORD "password" * #define LED_PIN_MAIN 14 * #define IP_ADDR (1...
#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266mDNS.h> #ifdef ESP8266 extern "C" { #include "user_interface.h" } #endif #include "mySettings.h" /* * Sample mySettings.h file: * * #define WIFI_SSID "ssid" * #define WIFI_PASSWORD "password" * #define LED_PIN_MAIN 14 * #define IP_ADDR (1...
Clean code
Clean code
Arduino
mit
Zurek87/SpeakersControl,Zurek87/SpeakersControl
5e36042bc26054a125a02f8faa0daa3e1030edb3
script/core/arduino/robot/robot.ino
script/core/arduino/robot/robot.ino
int mAvant = 5; int mArrier = 6; int angle = 9; int data = 0; void setup(){ Serial.begin(9600); pinMode(angle, OUTPUT); analogWrite(angle, 0); pinMode(mAvant, OUTPUT); pinMode(mArrier, OUTPUT); digitalWrite(mAvant, HIGH); digitalWrite(mArrier, LOW); Serial.println("Go !"); } void loop(){ if (Serial....
#include <Servo.h> int mAvant = 5; int mArrier = 6; int servoPin = 9; int feedbackPin = A0; int data = 0; Servo myservo; // Calibration values int minDegrees; int maxDegrees; int minFeedback; int maxFeedback; int tolerance = 2; // max feedback measurement error /* This function establishes the feedback values for ...
Add servomotor
Add servomotor
Arduino
mit
Matthieu-Riou/ProjetRobot
7a8e13ec50ab94e708d1cec2ac41be49c89ebdca
WirelessTrigger.ino
WirelessTrigger.ino
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> // Smart switch utils #include "Switch.h" #define ROLE_SENDER 0 #define ROLE_RECEIVER 1 // SET THE TARGET ROLE HERE...
// Standard libraries #include <Arduino.h> #include <printf.h> // Servo controller #include <Servo.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> // Smart switch utils #include "Switch.h" #define ROLE_SENDER 0 #define ROLE_RECEIVER 1 // SET THE TARGET ROLE HERE...
Add heartbeat with LED
Add heartbeat with LED
Arduino
mit
WasabiFan/aerial-release-system,WasabiFan/aerial-release-system
80201a81f256b672c39a2a4d6462d03528c0b531
Sensor/Photon/sensor.ino
Sensor/Photon/sensor.ino
// This #include statement was automatically added by the Particle IDE. #include "HTU21D.h" #include "application.h" #include "HttpClient.h" unsigned int nextTime = 0; // Next time to contact the server HttpClient http; HTU21D htu = HTU21D(); char* serverUrl = "192.168.43.219"; char* clientId = "photo1"; char* req...
// This #include statement was automatically added by the Particle IDE. #include "HTU21D/HTU21D.h" #include "application.h" #include "HttpClient/HttpClient.h" unsigned int nextTime = 0; // Next time to contact the server HttpClient http; HTU21D htu = HTU21D(); char* serverUrl = "192.168.178.34"; char* clientId = "...
Fix paths to libraries Comment using serial port
Fix paths to libraries Comment using serial port
Arduino
apache-2.0
brave-warrior/Sensors-IoT,brave-warrior/Sensors-IoT,brave-warrior/Sensors-IoT
f79c27498594f9fde680323e85eed3698190c75f
examples/02_functionality/LCDML_021_dynUpdatedContent/LCDML_display_menu.ino
examples/02_functionality/LCDML_021_dynUpdatedContent/LCDML_display_menu.ino
// ===================================================================== // // Output function // // ===================================================================== /* ******************************************************************** */ void lcdml_menu_clear() /* **********************************************...
// ===================================================================== // // Output function // // ===================================================================== /* ******************************************************************** */ void lcdml_menu_clear() /* **********************************************...
Optimize one code lines in the LCDML_021_dynUpdatedContent example (2)
Optimize one code lines in the LCDML_021_dynUpdatedContent example (2)
Arduino
mit
Jomelo/LCDMenuLib2,Jomelo/LCDMenuLib2
06d7df7d6c0e8359bdb6426d4c8427306d8ff173
SerialArduinoBridge.ino
SerialArduinoBridge.ino
/********************************************************************* * ROSArduinoBridge - Adapted for Memorial University's RTbot and ARbot platforms by Andrew Vardy ------------------------------------------------------------------------------------------------ Changes made to the original: ...
/********************************************************************* * SerialArduinoBridge - Adapted from ROSArduinoBridge for various robot platforms at Memorial University ------------------------------------------------------------------------------------------------ Andrew Vardy */ #defin...
Update SerialArduinoBridge.ino
Update SerialArduinoBridge.ino Reduced documentation/license clutter. Description and license info moved to README and LICENSE files.
Arduino
bsd-2-clause
DROIDlab/SerialArduinoBridge,BOTSlab/SerialArduinoBridge,DROIDlab/SerialArduinoBridge,BOTSlab/SerialArduinoBridge
8c865b0c26432492cecd1e1604a77c142ee1e506
src/main.ino
src/main.ino
// LIBRARIES // #include <Servo.h> Servo m1; Servo m2; Servo m3; Servo m4; Servo m5; // SETUP // void setup() { m1.attach(2); m2.attach(3); m3.attach(4); m4.attach(5); m5.attach(6); } // LOOP // void loop() { m1.write(90); int val = m1.read(); Serial.println(val); } // FUNCTIONS // void blink(int...
// LIBRARIES // #include <Servo.h> Servo m1; Servo m2; Servo m3; Servo m4; Servo m5; // SETUP // void setup() { m1.attach(2); m2.attach(3); m3.attach(4); m4.attach(5); m5.attach(6); } // LOOP // void loop() { m1.write(0); delay(500); m1.write(180); delay(500); } // FUNCTIONS // void blink(int h...
test code
test code
Arduino
mit
bionicarm/bionicarm,bionicarm/bionicarm,yochem/roboticarm
e4935538a9fa0cb5b5b25256af26366bb2dab3db
examples/hdc1000.ino
examples/hdc1000.ino
#include "HDC1000.h" HDC1000 hdc1000; void setup() { Serial.begin(9600); hdc1000.begin(); } void loop() { float temp = hdc1000.getTemperature(); Serial.print("Temperature: "); Serial.println(temp); float humi = hdc1000.getHumidity(); Serial.print("Humidity: "); Serial.println(humi); delay(1000); }...
#include "HDC1000.h" HDC1000 hdc1000; void setup() { Serial.begin(9600); // hdc1000.setRdyPin(PIN_NO); // use Rdy Pin hdc1000.begin(); } void loop() { float temp = hdc1000.getTemperature(); if (temp == HDC1000_ERROR_CODE) { hdc1000.begin(); // retry once temp = hdc1000.getTemperature(); } Ser...
Update example
Update example
Arduino
mit
hotchpotch/Arduino-HDC1000
93e2f3c72f1e361d6cb8676cc202f43c85da075b
interrupts/pin_change_interrupt.ino
interrupts/pin_change_interrupt.ino
#include <Arduino.h> #define INTERRUPT_PIN 9 /* Pin Change Interrupt Example James H. Bannock, 2017 Norges teknisk-naturvitenskapelige universitet (NTNU) Notes: - A button is attached to Pin 9 and GND - INPUT_PULLUP is used to pin the voltage of the input to 5V while the Button is open - On the Uno there ...
#include <Arduino.h> #define INTERRUPT_PIN 9 /* Pin Change Interrupt Example James H. Bannock, 2017 Norges teknisk-naturvitenskapelige universitet (NTNU) In this example a message is written to the serial port each time a state change on a button is detected (rising- and falling-edge detection). Notes: - A butto...
Update pin_change_interrupt.ino
Update pin_change_interrupt.ino
Arduino
mit
jdmgroup/robotchemistry
6edbbcfdca188c604fa3da242c4dec6fa51efdfe
eMotion/flap/flap.ino
eMotion/flap/flap.ino
// Basic Commands int ids[32] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32}; void group_control(int nSerial, int ids[], int angle, int num, int sp){ char command[512] = ""; for(int i = 0; i < num; ++i) { char id[16] = ""; sprintf(id, "#%dP%d", ids[i], angle);...
// Basic Commands int ids[32] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32}; void group_control(int nSerial, int ids[], int angle, int num, int sp){ char command[512] = ""; for(int i = 0; i < num; ++i) { char id[16] = ""; sprintf(id, "#%dP%d", ids[i], angle);...
update motion
update motion
Arduino
mit
yuxiang-zhou/eMotion
8db5d96968f85693340f94db7669d9eecd582052
heartbeat_with_pulse.ino
heartbeat_with_pulse.ino
#include <Bounce2.h> #include "FastLED.h" #include <EEPROM.h> /* * Heartbeat simulator * * Shows a different hue and brightness based on accelerometer activity, * with the idea that low movement means colder and less bright colours, * with more movement turning it into warmer and brighter colours. * * Credit ...
#include <Bounce2.h> #include "FastLED.h" #include <EEPROM.h> /* * Heartbeat simulator * * Shows a different hue and brightness based on accelerometer activity, * with the idea that low movement means colder and less bright colours, * with more movement turning it into warmer and brighter colours. * * Credit ...
Make brightness on pulse configurable
Make brightness on pulse configurable
Arduino
bsd-3-clause
chillu/arduino-led-scarf
5b4eaa0b11979f83020eb9dcc7ec8923ddcdde41
examples/WebSocketClientSSL/WebSocketClientSSL.ino
examples/WebSocketClientSSL/WebSocketClientSSL.ino
/* * WebSocketClientSSL.ino * * Created on: 10.12.2015 * * note SSL is only possible with the ESP8266 * */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <WebSocketsClient.h> #include <Hash.h> ESP8266WiFiMulti WiFiMulti; WebSocketsClient webSocket; ...
/* * WebSocketClientSSL.ino * * Created on: 10.12.2015 * * note SSL is only possible with the ESP8266 * */ #include <Arduino.h> #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <WebSocketsClient.h> #include <Hash.h> ESP8266WiFiMulti WiFiMulti; WebSocketsClient webSocket; ...
fix typo: lenght -> length
fix typo: lenght -> length
Arduino
lgpl-2.1
Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,bbx10/arduinoWebSockets,Links2004/arduinoWebSockets,Links2004/arduinoWebSockets,m-mcgowan/arduinoWebSockets,Links2004/arduinoWebSockets,m-mcgowan/arduinoWebSockets,bbx10/arduinoWebSockets,m-mcgowan/arduinoWebSockets,bbx10/arduinoWebSockets,...
88116cddbefc8658cb78392a7beb0de0d5f92122
ARTF_Sensors/examples/BridgeSensorGSM/BridgeSensorGSM.ino
ARTF_Sensors/examples/BridgeSensorGSM/BridgeSensorGSM.ino
/* Bridge Sensor with GSM, SDCard, and RTC Sketch used by ARTF Sensors platform. Created 14 6 2014 Modified 2 7 2014 */ #include <LowPower.h> #include <math.h> #include <ARTF_Sim900.h> #include <ARTF_SDCard.h> #include <ARTF_RTC.h> // ARTF SDCard Dependency #include <SdFat.h> #include <String.h> // ARTF ...
/* Bridge Sensor with GSM, SDCard, and RTC Sketch used by ARTF Sensors platform. Created 14 6 2014 Modified 2 7 2014 */ #include <LowPower.h> #include <math.h> #include <ARTF_Sim900.h> #include <ARTF_SDCard.h> #include <ARTF_RTC.h> // ARTF SDCard Dependency #include <SdFat.h> #include <String.h> // ARTF ...
Add option to take distance instead of depth
Add option to take distance instead of depth
Arduino
unlicense
UAA-EQLNES/ARTF-Field-Sensors
c81e5d35ae4b6ed18c2498157427ac03025e2471
document/arduino/motor_control/motor_control.ino
document/arduino/motor_control/motor_control.ino
/* Copyright 2017 ADLINK Technology Inc. Developer: Chester, Tseng (for pySerial & encoder) HaoChih, LIN (for controller) Email: chester.tseng@adlinktech.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
/* Copyright 2017 ADLINK Technology Inc. Developer: Chester, Tseng (for pySerial & encoder) HaoChih, LIN (for controller) Email: chester.tseng@adlinktech.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy ...
update controller
update controller
Arduino
apache-2.0
Adlink-ROS/adlink_ddsbot,Adlink-ROS/adlink_ddsbot
f2015ce4e8d7e16079ae3e3165b9f05b49d75e8b
PushStart.ino
PushStart.ino
/* Push Start Arduino-based Keyless Ignition for 97-01 Toyota Camry (XV20) Designed by Kevin Abraham */ #include <AnalogTouch.h> #define DEBUG 0 #define BUTTON_PRESS_THRESHOLD 500 #define pinACC 2 #define pinIG1 4 #define pinIG2 7 #define pinST2 8 #define pinCap A4 #define pinLed 10 // Slo...
/* Push Start Arduino-based Keyless Ignition for 97-01 Toyota Camry (XV20) Designed by Kevin Abraham */ #include <AnalogTouch.h> #define DEBUG 0 #define BUTTON_PRESS_THRESHOLD 500 #define pinACC 2 #define pinIG1 4 #define pinIG2 7 #define pinST2 8 #define pinCap A4 #define pinLed 10 // Slo...
Modify welcome message
Modify welcome message
Arduino
mit
abraha2d/PushStart
a9aaebd53cee34dea8161fb1b412ec42209134fc
MqttLEDs/MqttLEDs.ino
MqttLEDs/MqttLEDs.ino
// Copyright 2016-2017 the project authors as listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by the // license that can be found in the LICENSE file. #include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> #include <Adafruit_NeoPixel.h> // device specifics #include...
// Copyright 2016-2017 the project authors as listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by the // license that can be found in the LICENSE file. #include <ESP8266WiFi.h> #include <PubSubClient.h> #include <Wire.h> #include <Adafruit_NeoPixel.h> // device specifics #include...
refactor range and color parsing
src: refactor range and color parsing refactor range and color parsing out to a seprate function
Arduino
mit
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
de2bc1d348819200d1b544c7b63678ee97b3aa31
magbot_test/magbot_test.ino
magbot_test/magbot_test.ino
/** HC-SR04 Ultrasonic Range Finder. Two motors attached to the motor shield. speaker/piezo for sound */ #include <NewPing.h> // From https://code.google.com/p/arduino-new-ping/ #include <NewTone.h> // From https://code.google.com/p/arduino-new-tone/ // Motor attached to channel A: const byte motorA_direction = 1...
/** HC-SR04 Ultrasonic Range Finder. Two motors attached to the motor shield. speaker/piezo for sound */ #include <util/delay.h> #include <NewPing.h> // From https://code.google.com/p/arduino-new-ping/ #include <NewTone.h> // From https://code.google.com/p/arduino-new-tone/ // Motor attached to channel A: const b...
Check battery level
Check battery level
Arduino
mit
theapi/magbot,theapi/magbot
9026c946d012bf397df6751a3becdc08a02fcd56
sketchbook/printer/printer.ino
sketchbook/printer/printer.ino
#include <Servo.h> #include <Motor.h> #include <Switch.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); Servo head; void setup() { Serial.begin(9600); while(!Serial); head.attach(A0); } void setPos...
#include <Servo.h> #include <Motor.h> #include <Switch.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); Servo head; void setup() { Serial.begin(9600); while(!Serial); head.attach(A0); } void setPos...
switch should auto break
switch should auto break
Arduino
mit
lennart96/printer,lennart96/printer,lennart96/printer
b0385f798e96518a3ccbfedb1b43d40ee5af5bed
src/English/NOKO_EEPROM_Disk0/NOKO_EEPROM_Disk0.ino
src/English/NOKO_EEPROM_Disk0/NOKO_EEPROM_Disk0.ino
/* * NOKO Settings EEPROM and Disk0 V1.0 26.01.2016 - Nikolai Radke - English * * This sketch writes the presets into Arduino EEPROM and the owner name in email * into the AT24C32-EEPROM. If there are stories on the SD card an def_stories is * set to 1, additional informations can be written to AT24C32, which is ...
/* * NOKO Settings EEPROM and Disk0 V1.0 26.01.2016 - Nikolai Radke - English * * This sketch writes the presets into Arduino EEPROM and the owner name in email * into the AT24C32-EEPROM. If there are stories on the SD card an def_stories is * set to 1, additional informations can be written to AT24C32, which is ...
Update EEPROM writer
Update EEPROM writer
Arduino
apache-2.0
NikolaiRadke/NOKO
7f0d68d39ae687f518f257f0991b0a101dbb4550
synth_main/src/main.ino
synth_main/src/main.ino
// For some reason these need to be included here or Arduino won't find them. #include <Audio.h> #include <Wire.h> #include <SD.h> #include <SPI.h> #include <SerialFlash.h> #include "synth.h" #include "fscale.h" #include "Arduino.h" float lfo_depth; float lfo_rate; // Our main synth object. Synth synth; void setu...
// For some reason these need to be included here or Arduino won't find them. #include <Audio.h> #include <Wire.h> #include <SD.h> #include <SPI.h> #include <SerialFlash.h> #include "synth.h" #include "fscale.h" #include "Arduino.h" float lfo_depth; float lfo_rate; // Our main synth object. Synth synth; void setu...
Read selector inputs as integers from 0 to 11.
Read selector inputs as integers from 0 to 11.
Arduino
mit
floretan/bontempi,floretan/bontempi,floretan/bontempi
c78e98cf3582dd0d41e7572f8428962c6e57c89e
arduino/GreenhouseSensors/GreenhouseSensors.ino
arduino/GreenhouseSensors/GreenhouseSensors.ino
/** * GreenHouse Sensors * * Written by Keith M. Hughes * */ #include <Wire.h> #include <Adafruit_AM2315.h> #include <Adafruit_MPL3115A2.h> // The inside AM2315 temperature and humidity sensor. Adafruit_AM2315 am2315Inside(&Wire); Adafruit_MPL3115A2 barometric(&Wire); // The outside AM2315 temperature and h...
/** * GreenHouse Sensors * * Written by Keith M. Hughes * * 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 appli...
Add in first round sensor measuring
Add in first round sensor measuring
Arduino
apache-2.0
kmhughes/robotbrains-smartspaces,kmhughes/robotbrains-smartspaces,kmhughes/robotbrains-smartspaces,kmhughes/robotbrains-smartspaces,kmhughes/robotbrains-smartspaces
2ea671b60d7586d269b37c0e99f2f0468f3a3229
arduino/sketch_tc_hitachi/sketch_tc_hitachi.ino
arduino/sketch_tc_hitachi/sketch_tc_hitachi.ino
/* serial data format: header: flag: 1 byte, 0xaa, filter out debug message type: 1 bytes, 1: upstream, 2: downstream body length: 2 bytes, network byte order body: json data from yunba service */ #include <ArduinoJson.h> #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #...
/* serial data format: header: flag: 1 byte, 0xaa, filter out debug message type: 1 bytes, 1: upstream, 2: downstream body length: 2 bytes, network byte order body: json data from yunba service */ #include <ArduinoJson.h> #ifndef cbi #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) #...
Fix and test tc_hitachi OK
Fix and test tc_hitachi OK
Arduino
mit
yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,shdxiang/yunba-smartoffice,yunbademo/yunba-smartoffice,yunbademo/yunba-smartoffice