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
80419a14f098c88db9b5f6ff74f7ccfc0e1ecb60
BinaryKeyboard.ino
BinaryKeyboard.ino
/* Chris Johnston Apr 13 2017 Binary Keyboard for Arduino Pro Micro */ // libraries #include <Keyboard.h> #include <Wire.h> #include <SPI.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> // pixel art for 1/0 mode w/ animations #include "PixelArt.h" // flag for reading/entering right to left or left to righ...
/* Chris Johnston Apr 13 2017 Binary Keyboard for Arduino Pro Micro */ // libraries #include <Keyboard.h> #include <Wire.h> #include <SPI.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> // pixel art for 1/0 mode w/ animations #include "PixelArt.h" // flag for reading/entering right to left or left to righ...
add ability to output control characters ASCII < 0x20
add ability to output control characters ASCII < 0x20
Arduino
mit
Chris-Johnston/BinaryKeyboard
7b38303a5caa40ad883a0205d446d44708147c83
Device/HC-SR04.ino
Device/HC-SR04.ino
//Reference Value to Get The Status of Parking #define parked 150 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 //Flags boolean d1 = 0; boolean d2 = 0; boolean d3 = 0; /* //Deducting the Low Pulse fromm the ...
//Reference Value to Get The Status of Parking #define parked 200 #define fault 4000 //Pin Setting for the 3 Ultrasonic Sensors #define trigPin 13 #define echoPin 12 #define trigPin2 4 #define echoPin2 5 #define trigPin3 8 #define echoPin3 9 //Flags boolean d1 = 0; boolean d2 = 0; boolean d3 = 0; /* //Deducting the L...
Update HC-SR04.ino
Update HC-SR04.ino
Arduino
mit
shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking,shyampurk/pubnub-rpi-smart-parking
13946ece8bd0fd5853ada9a5efb62a474b6f782e
code/feather_code.ino
code/feather_code.ino
/******************************************************************************* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman Permission is hereby granted, free of charge, to anyone obtaining a copy of this document and accompanying files, to do whatever they want with them without any restric...
/******************************************************************************* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman Permission is hereby granted, free of charge, to anyone obtaining a copy of this document and accompanying files, to do whatever they want with them without any restric...
Add files via upload
Add files via upload code with corrected battery value
Arduino
mit
officialtiger/summerschool2017
52f7fda8edef397048c0a66db5a26ca8b0631aff
ESP8266/ESP8266.ino
ESP8266/ESP8266.ino
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Juergen Skrotzky alias Jorgen (JorgenVikingGod@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
remove Serial.flush()
remove Serial.flush()
Arduino
mit
munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights,munichmakerlab/refrigerator-lights
c9c785f6b1ef0f4aa35d0f880abf96043c4b6b79
ksp-gegi/ksp-gegi.ino
ksp-gegi/ksp-gegi.ino
#include <Arduino.h> // diody LED: niebieskie (bez rezystora) do GND, białe (z rezystorem) do pinu // potencjometr: niebieski z czarną kreską do GND, biały do +5V, niebieski do pinu A0 // przełączniki: niebieski do GND, biały do pinu, wszystkie zamontowane tak, aby niebieski był w środku, biały na dole, a niepodłączo...
#include <Arduino.h> // dł kabelków 15-20cm // diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu // potencjometr: niebieski z czarną kreską do GND, biały do +5V, niebieski do pinu A0 // przełączniki2: niebieski do GND, biały do pinu, wszystkie zamontowane tak, aby n...
clarify description
clarify description
Arduino
mit
ytmytm/ksp-gegi
c99fd9ae82acbfccba59c58a73341667f82a9f5d
MqttIRReceiver/MqttIRReceiver.ino
MqttIRReceiver/MqttIRReceiver.ino
// Copyright 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 "limits.h" #include <string> #include "WirelessConfig.h" #define RX_IR_P...
// Copyright 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 "limits.h" #include <string> #include "WirelessConfig.h" #define RX_IR_P...
remove redundant configuration entry
src: remove redundant configuration entry
Arduino
mit
mhdawson/arduino-esp8266,mhdawson/arduino-esp8266
73c845e56c1253e70a1de27eff0bc811041810b9
src/src.ino
src/src.ino
#include <SPI.h> #include <avr/eeprom.h> /* bluetooth dependencies */ #include <EEPROM.h> #include <lib_aci.h> #include "bluetooth.h" #include "lcd.h" #include "types.h" #include "haversine.h" #include "waypoint_reader.h" #include "waypoint_writer.h" #include "gps.h" #define WAYPOINT_DISTANCE_THRESHOLD 100 /* Distan...
#include <SPI.h> #include <avr/eeprom.h> /* bluetooth dependencies */ #include <EEPROM.h> #include <lib_aci.h> #include "bluetooth.h" #include "lcd.h" #include "types.h" #include "haversine.h" #include "waypoint_reader.h" #include "waypoint_writer.h" #include "gps.h" #define WAYPOINT_DISTANCE_THRESHOLD 100 /* Distan...
Add note
Add note
Arduino
mit
sebluy/gps-tracker-arduino,sebluy/gps-tracker-arduino,sebluy/gps-watch,sebluy/gps-watch
7ab3e3e6bb9750f817fab72945fdea38c9e67855
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 <PubSubClient.h> #include <ESP8266httpUpdate.h> #include <ESP8266HTTPClient.h> #include <ArduinoJson.h> #include <FS.h> #include <ESPMetRED.h> const char* MQTT_PUBLISH_TOPIC = "ESPM...
Update Relay.ino
Update Relay.ino
Arduino
mit
HobbytronicsPK/ESPMetRED
b3dd0f23212ce2bb5558348b7dc1eab56df754e9
arduino/ST_Door_Lock/ST_Door_Lock.ino
arduino/ST_Door_Lock/ST_Door_Lock.ino
//****************************************************************************************** // File: ST_Door_Lock.ino // Authors: Josh Villbrandt // // Change History: // // Date Who What // ---- --- ---- // 2015-03-13 Josh Villbrandt Inital script] // //**********...
//****************************************************************************************** // File: ST_Door_Lock.ino // Authors: Josh Villbrandt // // Change History: // // Date Who What // ---- --- ---- // 2015-03-13 Josh Villbrandt Inital script] // //**********...
Clean up so that everything works without SmartThings activated
Clean up so that everything works without SmartThings activated
Arduino
mit
joshvillbrandt/SmartThings-Lock
7da08d8fd8b6b0c40dc9b10cf6288ad8d77bf3fe
examples/firmware_check/firmware_check.ino
examples/firmware_check/firmware_check.ino
/* * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. The functions are * documented in MFRC522.cpp. P...
/* * ---------------------------------------------------------------------------- * This is a MFRC522 library example; see https://github.com/miguelbalboa/rfid * for further details and other examples. * * NOTE: The library file MFRC522.h has a lot of useful info. The functions are * documented in MFRC522.cpp. P...
add firmware version to ShowReaderDetails
add firmware version to ShowReaderDetails
Arduino
unlicense
yaalsn/rfid,Rotzbua/rfid,Rotzbua/rfid,hramrach/rfid,miguelbalboa/rfid,smallkid/rfid,mirko314/rfid,northDacoder/rfid,CapeSepias/rfid,sophiekovalevsky/rfid,LaloHao/rfid
15fb1eea8170d52c93e3a1c349caa3991287aa6e
inverted-pendulum.ino
inverted-pendulum.ino
// Inverted pendulum - for Teensy 3.2 #include "Encoder.h" #include "PIDControl.h" #include "SimpleShell.h" #define LEFT HIGH #define RIGHT LOW #define TRACK_ENCODER_PIN_A 0 #define TRACK_ENCODER_PIN_B 1 #define PENDULUM_ENCODER_PIN_A 2 #define PENDULUM_ENCODER_PIN_B 3 #define LEFT_BUMP_PIN 4 #define RIGHT_BUMP_PIN 5...
// Inverted pendulum - for Teensy 3.2 #include "Encoder.h" #include "PIDControl.h" #include "SimpleShell.h" #define LEFT HIGH #define RIGHT LOW #define TRACK_ENCODER_PIN_A 0 #define TRACK_ENCODER_PIN_B 1 #define PENDULUM_ENCODER_PIN_A 2 #define PENDULUM_ENCODER_PIN_B 3 #define LEFT_BUMP_PIN 4 #define RIGHT_BUMP_PIN 5...
Implement set functions
Implement set functions
Arduino
mit
andrewadare/inverted-pendulum
39bc09f190ab1028f6d9e48a0249ef8a68abc030
ksp-gegi/ksp-gegi.ino
ksp-gegi/ksp-gegi.ino
#include <Arduino.h> #include <Wire.h> // https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads #include <LiquidCrystal_I2C.h> // Using version 1.2.1 // dł kabelków 15-20cm // diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu // potencjometr: niebieski z cza...
#include <Arduino.h> #include <Wire.h> // https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads #include <LiquidCrystal_I2C.h> // Using version 1.2.1 // dł kabelków 15-20cm // diody LED: niebieskie (bez rezystora, krótka nóżka) do GND, białe (z rezystorem, długa nóżka) do pinu // potencjometr: niebieski z cza...
correct implementation, clear until end of the line
correct implementation, clear until end of the line
Arduino
mit
ytmytm/ksp-gegi
4bb0044ac6a797db3dfe320f769a63b11313611b
arduino/ledbutton/ledbutton.ino
arduino/ledbutton/ledbutton.ino
#include <Adafruit_NeoPixel.h> #define WS2811_PIN 6 #define WS2811_LED_COUNT 8 const long DEBOUNCE_DELAY = 50; const long TRIGGER_PULSE = 50; #define BUTTON_STATE_COUNT 1 long buttonDebounceTime[BUTTON_STATE_COUNT]; boolean buttonState[BUTTON_STATE_COUNT]; long triggerReset = 0; boolean ledState = 0; boolean ledO...
#include <Adafruit_NeoPixel.h> #define WS2811_PIN 6 #define WS2811_LED_COUNT 8 const long DEBOUNCE_DELAY = 50; const long TRIGGER_PULSE = 50; #define BUTTON_STATE_COUNT 1 long buttonDebounceTime[BUTTON_STATE_COUNT]; boolean buttonState[BUTTON_STATE_COUNT]; long triggerReset = 0; boolean ledState = 0; boolean ledO...
Refresh the LEDs every 2 second (within the Arduino firmware)
Refresh the LEDs every 2 second (within the Arduino firmware)
Arduino
mit
jamesbulpin/meshblu-connector-ledbutton
20ca6208fe30e37519bf553f2d905814c59cf6c3
moros/moros.ino
moros/moros.ino
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SI...
/* * TODO: * case * flag - P0 BLOCKER S0 * -- have graphical representation of flag * wiring diagram - P2 S3 * reset button (chronos style?) - P1 * time setting - P1 * OLEDs * */ #include <SPI.h> #include <TFT.h> #include "printf.h" #define NONE -1 #define DISPLAY_FONT_SIZE 7 #define CHAR_HEIGHT_PX DISPLAY_FONT_SI...
Rename function
Rename function
Arduino
mit
adamf/Moros,adamf/Moros,adamf/Moros,adamf/Moros
06e21538ad89c6e00a8a1c544db9de2eead49a9f
src/monitor-firmware.ino
src/monitor-firmware.ino
// Firmware for monitor board #include "debounced_switch.h" #include "edge_trigger.h" #include "mx7219.h" #include "pins.h" #include "serialstatemachine.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; // Status bits byte status_bits; enum StatusBitMask { SB_RWBAR...
// Firmware for monitor board #include "debounced_switch.h" #include "edge_trigger.h" #include "mx7219.h" #include "pins.h" #include "serialstatemachine.h" // 16-bit address bus value unsigned int address_bus; // 8-bit data bus value byte data_bus; // Status bits byte status_bits; enum StatusBitMask { SB_RWBAR...
document single step command
document single step command
Arduino
mit
rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri,rjw57/buri
57c4e86828f6bcfb00e7330267ef87e50ce67bae
netzfrequenz.ino
netzfrequenz.ino
/** * Bestimmung der Netzfrequenz * Copyright 2015 by Ralf Th. Pietsch <ratopi@abwesend.de> * LICENSE: MIT */ #define PROBE_COUNT 50 #define MICROS 1000000. // #define KORREKTUR 1.001341341 #define KORREKTUR 1. #define DEBUG 0 int min; int max; int val; int i, j; float freq; long start; long end; void se...
/** * Bestimmung der Netzfrequenz * Copyright 2015-2022 by Ralf Th. Pietsch <ratopi@abwesend.de> * LICENSE: MIT */ // Activate for more log output // #define DEBUG #define PROBE_COUNT 50 #define MICROS 1000000. // #define KORREKTUR 1.001341341 #define KORREKTUR 1. int min; int max; int val; int i, j; flo...
Debug message via preprocessor macros
Debug message via preprocessor macros
Arduino
mit
ratopi/netzfrequenz
cd310b32c4ae19ad99e4324bd5542c2c301c21e7
examples/Time/CosaAlarm/CosaAlarm.ino
examples/Time/CosaAlarm/CosaAlarm.ino
/** * @file CosaAlarm.ino * @version 1.0 * * @section License * Copyright (C) 2014-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 t...
/** * @file CosaAlarm.ino * @version 1.0 * * @section License * Copyright (C) 2014-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 t...
Use RTC scheduler for Alarms as default.
Use RTC scheduler for Alarms as default.
Arduino
lgpl-2.1
jeditekunum/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,dansut/Cosa,dansut/Cosa,jeditekunum/Cosa,mikaelpatel/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,dansut/Cosa
ad880d561a11eec8fbf0c435dd0224fbfa1cbf18
AWebServer/AWebServer.ino
AWebServer/AWebServer.ino
/* Copyright (c) 2013 Tilo Szepan, Immo Wache <tilo.szepan@web.de> 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, mod...
/* Copyright (c) 2013 Tilo Szepan, Immo Wache <https://github.com/tilos/AWebServer.git> 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 rig...
Update AWebServer.ino
Update AWebServer.ino
Arduino
mit
tilos/AWebServer,tilos/AWebServer
9d3d76b8de685cc48ac824a68746707155740bee
examples/esp8266/esp8266/esp8266.ino
examples/esp8266/esp8266/esp8266.ino
#include <ESP8266WiFi.h> const char* ssid = "your_wifi_network_name"; const char* password = "your_wifi_network_password"; const int ledPin = 2; WiFiServer server(1337); void printWiFiStatus(); void setup(void) { Serial.begin(115200); WiFi.begin(ssid, password); // Configure GPIO2 as OUTPUT. pinMode(ledPin,...
#include <ESP8266WiFi.h> const char* ssid = "your_wifi_network_name"; const char* password = "your_wifi_network_password"; const int ledPin = 2; WiFiServer server(1337); void printWiFiStatus(); void setup(void) { Serial.begin(115200); WiFi.begin(ssid, password); // Configure GPIO2 as OUTPUT. pinMode(ledPin,...
Remove some blank lines
Remove some blank lines
Arduino
apache-2.0
divineprog/evothings-examples,nbezembinder1/evothings-examples,divineprog/evothings-examples,InMyOrbit/evothings-examples,mikaelkindborg/evothings-examples,evothings/evothings-examples,evothings/evothings-examples,InMyOrbit/evothings-examples,gokr/evothings-examples,mikaelkindborg/evothings-examples,gokr/evothings-exam...
a1287ce22d3e7fcfd0216c46b59008c5d76767a4
AWSCPumpTiming/AWSCPumpTiming.ino
AWSCPumpTiming/AWSCPumpTiming.ino
unsigned long t=0; unsigned long tpump=0; unsigned long tair=0; int airstatus=0; int pumpstatus=0; //pins const int Pump = 8; const int Air = 7; //Edit these times below to change factors unsigned long PumpInterval= 60000 *360;//How often in min unsigned long AirInterval= 60000 *15;//How often in min unsigned long Pu...
unsigned long t=0; unsigned long tpump=0; unsigned long tair=0; int airstatus=0; int pumpstatus=0; //pins const int Pump = 8; const int Air = 7; //Edit these times below to change factors unsigned long PumpInterval= 60000 *240;//How often in min unsigned long AirInterval= 60000 *15;//How often in min unsigned long Pu...
Update AWSCPumpTiming.ino
Update AWSCPumpTiming.ino
Arduino
mit
dotsonlab/awsc,dotsonlab/awsc
799f1e3ff64318d85a43fd3451c79cec0f07ca70
testing/arduino/omniwheel4_EncoderD.ino
testing/arduino/omniwheel4_EncoderD.ino
#include "Arduino.h" uint8_t motorPin1_1 = 4; uint8_t motorPin1_2 = 5; uint8_t motorPin1_speed = 3; uint8_t motorPin1_A = A7; uint8_t motorPin2_1 = 7; uint8_t motorPin2_2 = 8; uint8_t motorPin2_speed = 6; uint8_t motorPin2_A = A6; uint8_t motorPin3_1 = 10; uint8_t motorPin3_2 = 11; uint8_t motorPin3_speed = 9; uint8...
#include "Arduino.h" uint8_t motorPin1_1 = 4; uint8_t motorPin1_2 = 5; uint8_t motorPin1_speed = 3; uint8_t motorPin1_A = A7; uint8_t motorPin2_1 = 7; uint8_t motorPin2_2 = 8; uint8_t motorPin2_speed = 6; uint8_t motorPin2_A = A6; uint8_t motorPin3_1 = 10; uint8_t motorPin3_2 = 11; uint8_t motorPin3_speed = 9; uint8...
extend mapping
extend mapping
Arduino
apache-2.0
MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI,MaxMorgenstern/EmeraldAI
ac550e1f434d25bc3473edcb32d5677f70017f37
microcontrollers/arduino-esp8266/oled-scan/oled-scan.ino
microcontrollers/arduino-esp8266/oled-scan/oled-scan.ino
/* * Show the Wi-Fi band activity. * * Copyright (C) 2017 Serge Vakulenko, <vak@besm6.org> * * 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 l...
/* * Show the Wi-Fi band activity. * * Copyright (C) 2017 Serge Vakulenko, <vak@besm6.org> * * 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 l...
Update comments.
Update comments.
Arduino
apache-2.0
sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-o...
28237331f706456f7b4647d9e90bb5deaf92338c
crypt-gears/gear_arduino/gear_arduino.ino
crypt-gears/gear_arduino/gear_arduino.ino
// hard-coded pin numbers for input/output // TODO(benkraft): I am assuming for the sake of argument that these start at // the top and go clockwise; fix once we know the correct positions. int gear_connections[3][12] = {{ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, {14, 15, 16, 17, ...
// PIN NUMBERS int output_lights[7] = {38, 39, 40, 41, 42, 43, 44}; // TODO(benkraft): Do we still need these? int gear_lodged[3] = {45, 46, 47}; int pot = A0; int photoresistors[3] = {A1, A2, A3}; // TODO(bhomberg): calculate these numbers for real once mechanism is built; this is approx int pot_locs[8] = {100, 20...
Rewrite for photoresistors
Rewrite for photoresistors Also did some reorganization. I haven't actually filled in the logic to decide which gears are where at the end of calibration yet.
Arduino
mit
bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne,bhomberg/heterodyne
036f3eee5fe398f23a0b1c68acb0734f4724437f
examples/QuickStart/QuickStart.ino
examples/QuickStart/QuickStart.ino
#include <TheThingsNetwork.h> // Set your AppEUI and AppKey const byte appEui[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const byte appKey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define debugSerial Serial #define loraSerial Serial1 #def...
#include <TheThingsNetwork.h> // Set your AppEUI and AppKey const byte appEui[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const byte appKey[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #define debugSerial Serial #define loraSerial Serial1 #def...
use byte instead of unsigned char
use byte instead of unsigned char
Arduino
mit
TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib,TheThingsNetwork/arduino-device-lib
7f421b51990029cc9d2cdf9e69a9c41fe448ef34
contrib/gd3load.ino
contrib/gd3load.ino
#include <EEPROM.h> #include <SPI.h> #include <GD2.h> #define SD_PIN 9 #include "transports/wiring.h" #include "gd3load_assets.h" GDTransport GDTR; uint8_t gpio, gpio_dir; void set_SDA(byte n) { GDTR.__wr16(REG_GPIO_DIR, gpio_dir | (0x03 - n)); // Drive SCL, SDA low } void set_SCL(byte n) { GDTR.__w...
#include <EEPROM.h> #include <SPI.h> #include <GD2.h> #define SD_PIN 9 #include "transports/wiring.h" #include "gd3load_assets.h" GDTransport GDTR; uint8_t gpio, gpio_dir; void set_SDA(byte n) { GDTR.__wr16(REG_GPIO_DIR, gpio_dir | (0x03 - n)); // Drive SCL, SDA low } void set_SCL(byte n) { GDTR.__w...
Remove debug spew
Remove debug spew
Arduino
bsd-3-clause
jamesbowman/gd2-lib,jamesbowman/gd2-lib,jamesbowman/gd2-lib
eff2887786e35dc91a4166c1f50d75fc0ffaf487
connect4.ino
connect4.ino
// Connect 4 // P Beard // Jan 2015 char board[43]; // Array containing start position of each "win line" byte lineStart[] = { 0, 7, 14, 21, 28, 35, 0, 1, 2, 3, 4, 5, 6, 14, 7, 0, 1, 2, 3, 3, 4, 5, 6, 13, 20}; // Array containing number of groups of 4 positions on each "win line" byte lineReps[] = {...
// Connect 4 // P Beard // Jan 2015 char board[43]; // Array containing start position of each "win line" byte lineStart[] = { 0, 7, 14, 21, 28, 35, 0, 1, 2, 3, 4, 5, 6, 14, 7, 0, 1, 2, 3, 3, 4, 5, 6, 13, 20}; // Array containing number of groups of 4 positions on each "win line" byte lineReps[] = {...
Update connect4.ino
Update connect4.ino (Very) minor speed improvements
Arduino
mit
barnsleyio/connect4
015c950dd54cc584ee20320bb44ba861f3045780
Launchpad_Data_Processor/Launchpad_Data_Processor.ino
Launchpad_Data_Processor/Launchpad_Data_Processor.ino
/* 25th SEPTEMBER 2014 ======================================================================================== ========================= Engineering Design 3A - FSAE TEAM 52 ========================= =====================================================...
/* 25th SEPTEMBER 2014 ======================================================================================== ========================= Engineering Design 3A - FSAE TEAM 52 ========================= =====================================================...
Update Launchpad_Data_Processor.ino
Update Launchpad_Data_Processor.ino Added SD write routine on Matt's behalf, but it is now within another boolean condition so that we can still test without the SD connected. Also cut a bunch of code that was commented out and updated the start/stop/reset string indicators. Starts in idle mode by default, so if us...
Arduino
mit
T52/T52_FSAE_Telemetry,T52/T52_FSAE_Telemetry
4183f3f8e8b882791567896d983c4dba85c9fa98
Arduino/Sensors/Capacitance/capSenseTest/capSenseTest.ino
Arduino/Sensors/Capacitance/capSenseTest/capSenseTest.ino
#include <CapacitiveSensor.h> // 50k - 50M resistor between pins 2 & 3, pin 3 is sensor (receive) pin CapacitiveSensor sensor = CapacitiveSensor(2,3); void setup() { // turn off autocalibrate on channel 1 - just as an example sensor.set_CS_AutocaL_Millis(0xFFFFFFFF); Serial.begin(9600); } void loop() { long ...
#include <CapacitiveSensor.h> // 50k - 50M resistor between pins 2 & 3, pin 3 is sensor (receive) pin CapacitiveSensor sensor = CapacitiveSensor(2,3); void setup() { // turn off autocalibrate on channel 1 - just as an example sensor.set_CS_AutocaL_Millis(0xFFFFFFFF); Serial.begin(9600); } void loop() { long ...
Update capSenseTest.ino
Update capSenseTest.ino
Arduino
mit
carloscastellanos/teaching,carloscastellanos/teaching,carloscastellanos/teaching
92737e2ab05be6ef95b4faf20566db35672e9248
examples/StallGuard/StallGuard.ino
examples/StallGuard/StallGuard.ino
/** * Author Teemu Mäntykallio * * Plot TMC2130 motor load using the stallGuard value. * You can finetune the reading by changing the STALL_VALUE. * This will let you control at which load the value will read 0 * and the stall flag will be triggered. This will also set pin DIAG1 high. * A higher STALL_VALUE wil...
/** * Author Teemu Mäntykallio * * Plot TMC2130 motor load using the stallGuard value. * You can finetune the reading by changing the STALL_VALUE. * This will let you control at which load the value will read 0 * and the stall flag will be triggered. This will also set pin DIAG1 high. * A higher STALL_VALUE wil...
Use coolStep and report CS actual
Use coolStep and report CS actual
Arduino
agpl-3.0
teemuatlut/TMC2130Stepper
e8d5329665e793aecf1ccc1fc87905dcf95676a1
examples/Widgets/SDcard/SDcard.ino
examples/Widgets/SDcard/SDcard.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...
Use V pin notation
Use V pin notation
Arduino
mit
ivankravets/blynk-library,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
9e0a570ab1e04941dc05056aefb9e429b1732bc4
ins-node/src/wifi_module/wifi_module.ino
ins-node/src/wifi_module/wifi_module.ino
#include <stdint.h> #include <vector> #include <utility> #include <ESP8266WiFi.h> #include "wifi_credentials.h" ESP8266WiFiClass wifi; EspClass espPower; const uint8_t DEVICE_ID = 1; // The identification for the specific node const char SERVER_IP[] = "192.168.0.136"; const int8_t CONNECTION_RETRIES = 3; // The maximu...
#include <stdint.h> #include <vector> #include <utility> #include <ESP8266WiFi.h> #include "wifi_credentials.h" ESP8266WiFiClass wifi; EspClass espPower; const uint8_t DEVICE_ID = 1; // The identification for the specific node const char SERVER_IP[] = "192.168.0.136"; const int8_t CONNECTION_RETRIES = 3; // The maximu...
Remove unused function
Remove unused function
Arduino
apache-2.0
platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system,platisd/indoor-navigation-system
8272561e294234fab37db46b45d61e111546a3eb
chessclock/chessclock.ino
chessclock/chessclock.ino
/* Thanks to Rudi Imbrechts (http://arduinows.blogspot.nl/) for the initial example. Aansturen FDS132 LED matrix bord m.b.v. SPI. */ #include <SPI.h> // Om snelheid te winnen maken we gebruik van SPI. #include "fds132text.h" // Pinnen voor het aansturen van het FDS132 bord. int row; ...
/* Thanks to Rudi Imbrechts (http://arduinows.blogspot.nl/) for the initial example. Aansturen FDS132 LED matrix bord m.b.v. SPI. */ #include <SPI.h> // Om snelheid te winnen maken we gebruik van SPI. #include "fds132text.h" // Pinnen voor het aansturen van het FDS132 bord. int row; ...
Change timing for nicer view
Change timing for nicer view
Arduino
mit
BartDeWaal/FDS132-textdriver
9a5303306963d706c0f41f4f751045b6bb27e2c3
temperature-relay.ino
temperature-relay.ino
#include "OneWire.h" #include "WebServer.h" #include "HttpClient.h" #include "elapsedMillis.h" #include <list> #include <string> #include "Sensors.h" #include "ApiKeys.h" using namespace std; #define SCAN_INTERVAL 60000 #define TEMP_INTERVAL 10000 #define BLINK_INTERVAL 5000 #define POWER_INTERVAL 120000 #define WEAT...
#include "OneWire.h" #include "WebServer.h" #include "HttpClient.h" #include "elapsedMillis.h" #include <list> #include <string> #include "Sensors.h" #include "ApiKeys.h" using namespace std; #define SCAN_INTERVAL 60000 #define TEMP_INTERVAL 10000 #define BLINK_INTERVAL 5000 #define POWER_INTERVAL 120000 #define WEAT...
Clean up publish Temp methods
Clean up publish Temp methods
Arduino
mit
jeffutter/temperature-relay
67a9380c450e14d18c79198c643d6a39d132f83c
demos/ir_receiver_array_demo/ir_receiver_array_demo.ino
demos/ir_receiver_array_demo/ir_receiver_array_demo.ino
//IR Receiver Array Demo //setup runs once at beginning void setup(){ //initialize serial communication Serial.begin(9600); //initialize IR receiver pins pinMode(2,INPUT); pinMode(3,INPUT); pinMode(4,INPUT); pinMode(5,INPUT); pinMode(6,INPUT); pinMode(7,INPUT); pinMode(8,INPUT); } //loop repeats...
//IR Receiver Array Demo //setup runs once at beginning void setup(){ //initialize serial communication Serial.begin(9600); //initialize IR receiver pins pinMode(2,INPUT); pinMode(3,INPUT); pinMode(4,INPUT); pinMode(5,INPUT); pinMode(6,INPUT); pinMode(7,INPUT); pinMode(8,INPUT); } //loop repeats...
Update ir_receiver_array_demo.ino
Update ir_receiver_array_demo.ino
Arduino
mit
TinkerUMD/TinkerUMD
e6065de0828913b4aa416163cb65729c996b92cc
sketches/EnerginoEthernet/EnerginoEthernet.ino
sketches/EnerginoEthernet/EnerginoEthernet.ino
/* * Energino * * Energino is a energy consumption meter for DC loads * * This sketch connects an Arduino equipped with the Energino * shield and with an Ethernet shield with a web service * implementing the COSM (formely Pachube) REST API. It also * implements a serial interface. * * Circuit: * Analog in...
/* * Energino * * Energino is a energy consumption meter for DC loads * * This sketch connects an Arduino equipped with the Energino * shield and with an Ethernet shield with a web service * implementing the COSM (formely Pachube) REST API. It also * implements a serial interface. * * Circuit: * Analog in...
bring the energino ethernet code in sync with the yun
bring the energino ethernet code in sync with the yun
Arduino
bsd-3-clause
rriggio/energino,rriggio/energino,rriggio/energino,rriggio/energino
5125aaa25e6000c993cfdda699da263d5217636a
DriverBoards/ArduinoMega64/firmware/DriverMEGA/DriverMEGA.ino
DriverBoards/ArduinoMega64/firmware/DriverMEGA/DriverMEGA.ino
/* To compile this file correctly you will need to: *** add the following inline functions in the public interface (after "public:") of Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h inline bool _dataAvailable() {return _rx_buffer_head != _rx_buffer_tail; } inline byte _peekData() ...
/* To compile this file correctly you will need to: *** add the following inline functions in the public interface (after "public:") of Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h inline bool _dataAvailable() {return _rx_buffer_head != _rx_buffer_tail; } inline byte _peekData() ...
Update DriverMEGA.ino
Update DriverMEGA.ino
Arduino
mit
asiermarzo/Ultraino,asiermarzo/Ultraino
6c22ccdeaad0484a7128c0847472ca2bbf2fe93f
create/files/Ethernet.ino
create/files/Ethernet.ino
#include <SPI.h> #include <Ethernet.h> #include "aWOT.h" byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; EthernetServer server(80); WebApp app; void setup() { while (!Ethernet.begin(mac)) { delay(500); Serial.print("."); } Serial.println(Ethernet.localIP()); app.use(staticFiles()); server.beg...
#include <SPI.h> #include <Ethernet.h> #include "aWOT.h" byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; EthernetServer server(80); WebApp app; void setup() { Serial.begin(115200); while (!Ethernet.begin(mac)) { delay(500); Serial.print("."); } Serial.println(Ethernet.localIP()); app.use(stat...
Clean up Ethernet template
Clean up Ethernet template
Arduino
mit
lasselukkari/awot-scripts,lasselukkari/awot-scripts,lasselukkari/awot-scripts,lasselukkari/awot-scripts
37397a790497a3890383c5abf9d2a03f13ba05e7
Nokia_5110/Nokia_5110.ino
Nokia_5110/Nokia_5110.ino
#define RST 2 #define CE 3 #define DC 4 #define DIN 5 #define CLK 6 void lcdCommand(byte command){ digitalWrite(DC, LOW); // DC pin is low for commands digitalWrite(CE, LOW); shiftOut(DIN, CLK, MSBFIRST, command); // transmit serial data digitalWrite(CE, HIGH); } /** * @param contrast could be 1 to 1...
#define RST 2 #define CE 3 #define DC 4 #define DIN 5 #define CLK 6 void lcdCommand(byte command){ digitalWrite(DC, LOW); // DC pin is low for commands digitalWrite(CE, LOW); shiftOut(DIN, CLK, MSBFIRST, command); // transmit serial data digitalWrite(CE, HIGH); } /** * @param contrast could be 1 to 1...
rename contrast function to setContrast
rename contrast function to setContrast
Arduino
mit
baghayi/Nokia_5110,baghayi/Nokia_5110
f4dfbcabc145466ac3399ecc7eb43c65c2c9bcc1
2018-Firefighter/2018-Firefighter.ino
2018-Firefighter/2018-Firefighter.ino
#include <Servo.h> #include <Ultrasonic.h> #include "FreqCount.h" #define LEFT_SERVO_PIN 4 #define RIGHT_SERVO_PIN 5 #define IR_PIN 6 #define EXTINGUISHER_PIN 7 #define MIC_PIN 43 #define FLAME_LED 9 #define MIC_LED 11 #define BABY_LED 17 #define CAMERA 15 #define CAMERA_LED 16 #define FRONT_US_ECHO 2 #define F...
#include <Servo.h> #include <Ultrasonic.h> #include "FreqCount.h" #define LEFT_SERVO_PIN 4 #define RIGHT_SERVO_PIN 5 #define IR_PIN 6 #define EXTINGUISHER_PIN 7 #define MIC_PIN 43 #define FLAME_LED 9 #define MIC_LED 11 #define BABY_LED 17 #define CAMERA 15 #define CAMERA_LED 16 #define FRONT_US_ECHO 2 #define F...
Fix mazeNav compliation errors
Fix mazeNav compliation errors
Arduino
mit
GW-Robotics/2018-Firefighter
0ae6ebaee7e5c8d7e89ab90460c528b2b49b19bd
ComboKeypad/Keypad.ino
ComboKeypad/Keypad.ino
// //USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is const bool useFiveVoltpin = false; //Change this if you want to use the ///////////////////////////////////////...
// //USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is const bool useFiveVoltpin = false; //Change this if you want to use the ///////////////////////////////////////...
Put back the code...
Put back the code...
Arduino
mit
TeodorLys/Arduino_Projects
4c7fdd07ac3e099953478677393aea216bb3169d
ComboKeypad/Keypad.ino
ComboKeypad/Keypad.ino
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many...
//USER VARIABLES, Variables that YOU change for YOUR preferences const int buttons[] {7, 6, 5, 4}; //The PIN of all of the buttons const int combination[] = {3, 1, 2, 4}; //what the combination is, to add just add a "," and a number const int numOfCombos = sizeof(combination) / sizeof(combination[0]); //How many...
Update Keypad.ino
Update Keypad.ino
Arduino
mit
TeodorLys/Arduino_Projects
8ec0a15c469fb23c91eadd30bd7769071d3ecd89
Cool_Light_WriteTag/Cool_Light_WriteTag.ino
Cool_Light_WriteTag/Cool_Light_WriteTag.ino
#if 0 #include <SPI.h> #include <PN532_SPI.h> #include <PN532.h> #include <NfcAdapter.h> PN532_SPI pn532spi(SPI, 10); NfcAdapter nfc = NfcAdapter(pn532spi); #else #include <Wire.h> #include <PN532_I2C.h> #include <PN532.h> #include <NfcAdapter.h> //change the number after colon like "0" or "1" or "2". #define WRITE_...
#if 0 #include <SPI.h> #include <PN532_SPI.h> #include <PN532.h> #include <NfcAdapter.h> PN532_SPI pn532spi(SPI, 10); NfcAdapter nfc = NfcAdapter(pn532spi); #else #include <Wire.h> #include <PN532_I2C.h> #include <PN532.h> #include <NfcAdapter.h> //change the number after colon like "1" or "2" or "3". #define WRITE_...
Update Cool_Light_WriteTag.ino
Update Cool_Light_WriteTag.ino
Arduino
mit
kingsongchen/Xadow_Edison_Demos,Seeed-Studio/Xadow_Edison_Demos,Seeed-Studio/Xadow_Edison_Demos,kingsongchen/Xadow_Edison_Demos
ef7ea45f657d52991ae62728e997f9a04f73ecf9
Esp32Application/Esp32Application.ino
Esp32Application/Esp32Application.ino
/** * @file * * MIT License * * @copyright (c) 2018 Daniel Schenk <danielschenk@users.noreply.github.com> * * 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, inc...
/** * @file * * MIT License * * @copyright (c) 2018 Daniel Schenk <danielschenk@users.noreply.github.com> * * 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, inc...
Use a init task so OS resources can be directly used
Use a init task so OS resources can be directly used Also start the scheduler which was not done yet.
Arduino
mit
danielschenk/mlc2,danielschenk/mlc2,danielschenk/mlc2
d741c4445509358da9210a2ff182844957eb014b
code/code.ino
code/code.ino
#define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200 #include <SD.h> #include <Wire.h> #include "PID.h" void Task100Hz(void); extern void initI2CMPU(void); extern void getMPUValues(void); extern void printMPUValues(void); extern void measureIMU...
#define BAUD_RATE 9600 //general baud rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, and 115200 #define SD_CARD_PIN 53 #include <SD.h> #include <Wire.h> #include "PID.h" void Task100Hz(void); extern void initI2CMPU(void); extern void getMPUValues(void); extern void printMPUValues(void);...
Update code.ino
Update code.ino
Arduino
unlicense
IITK-SUMMER-QUAD-2015-TEAM/QuadIITK,IITK-SUMMER-QUAD-2015-TEAM/QuadIITK
14b13233cc8cdac82e0c0e0c1955d640bc5901d9
arduino/rflink/rflink.ino
arduino/rflink/rflink.ino
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 // number of time division slots #define NUM_SLOTS 9 static void print(char *fmt, ......
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 // number of time division slots #define NUM_SLOTS 9 static void print(char *fmt, ......
Add !s indication for a sent packet
Add !s indication for a sent packet
Arduino
mit
bertrik/rflink,bertrik/rflink
1c7e476fc0daa03a1fd79453b2260b5e6ba911bb
PulseSensorAmped_Arduino_1dot4/Timer_Interrupt_Notes.ino
PulseSensorAmped_Arduino_1dot4/Timer_Interrupt_Notes.ino
/* These notes put together by Joel Murphy for Pulse Sensor Amped, 2015 The code that this section is attached to uses a timer interrupt to sample the Pulse Sensor with consistent and regular timing. The code is setup to read Pulse Sensor signal at 500Hz (every 2mS). The reasoning for this can be found here:...
/* These notes put together by Joel Murphy for Pulse Sensor Amped, 2015 The code that this section is attached to uses a timer interrupt to sample the Pulse Sensor with consistent and regular timing. The code is setup to read Pulse Sensor signal at 500Hz (every 2mS). The reasoning for this can be found here:...
Update Interrupt notes
Update Interrupt notes Added an example of how to use Pulse Sensor with a 'software timer interrupt' for folks using microcontrollers that the other examples don't currently support.
Arduino
mit
WorldFamousElectronics/PulseSensor_Amped_Arduino
06d2eca557e405aa27ddaeda9a0fd259a3b55ab3
HackcenterLicht.ino
HackcenterLicht.ino
#include <Wire.h> #include <PCA9685.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ArduinoJson.h> #include <ESP8266WebServer.h> #include "settings.h" #include "static.h" // Used to store the public values, because mapping the values // introduce inaccuracy / inconsistent responses uint8_t lightValues...
#include <Wire.h> #include <PCA9685.h> #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ArduinoJson.h> #include <ESP8266WebServer.h> #include "settings.h" #include "static.h" // Used to store the public values, because mapping the values // introduce inaccuracy / inconsistent responses uint8_t lightValues...
Add mapping to fix hardware errors
Add mapping to fix hardware errors
Arduino
mit
b4ckspace/esp8266-hackcenter-licht,b4ckspace/esp8266-hackcenter-licht,b4ckspace/esp8266-hackcenter-licht
fff91500a5a58c8ef56bffaf3ee221333b8c2937
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/path/path.ino
arduino/opencr_arduino/opencr/libraries/OpenManipulator/example/Arduino/Test/path/path.ino
#include <OMDynamixel.h> #include <OMPath.h> #include <vector> #define DXL_SIZE 3 #define BAUD_RATE 57600 #define DEG2RAD (M_PI / 180.0) #define RAD2DEG (180.0 / M_PI) #define CONTROL_PERIOD 0.008f #define MOVE_TIME 3.0f OM_PATH::JointTrajectory joint_trajectory(DXL_SIZE); std::vector<Trajectory> start_trajectory; ...
#include <OMDynamixel.h> #include <OMPath.h> #include <vector> #define DXL_SIZE 3 #define BAUD_RATE 57600 #define DEG2RAD (M_PI / 180.0) #define RAD2DEG (180.0 / M_PI) #define CONTROL_TIME 0.008f #define MOVE_TIME 3.0f OM_PATH::JointTrajectory joint_trajectory(DXL_SIZE); std::vector<Trajectory> start_trajectory; st...
change time var
change time var
Arduino
apache-2.0
ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR,ROBOTIS-GIT/OpenCR
d85830213f93a98baaf31fde67e17fb7516b3a04
Example/Example.ino
Example/Example.ino
#include <SPI.h> #include <WiFi101.h> #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_Client.h" /************************* Wifi Setup *********************************/ char ssid[] = "yourNetwork"; // your network SSID (name) char pass[] = "secretPassword"; // your network password int status = WL_I...
#include <SPI.h> #include <WiFi101.h> #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_Client.h" /************************* Wifi Setup *********************************/ char ssid[] = "yourNetwork"; // your network SSID (name) char pass[] = "secretPassword"; // your network password int status = WL_I...
Update Example.ino
Update Example.ino
Arduino
mit
SXHXC/Weather-Station-Arduino-MKR1000-Adafruit-IO
e15a7c8edec2fc3fd229a0943ae3e8a18abda2b5
WirelessTrigger.ino
WirelessTrigger.ino
#define ROLE_GROUND 0 #define ROLE_SKY 1 // SET THE TARGET ROLE HERE ------------------------------- #define ROLE ROLE_GROUND // Standard libraries #include <Arduino.h> #include <printf.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> #if ROLE ==...
#define ROLE_GROUND 0 #define ROLE_SKY 1 // SET THE TARGET ROLE HERE ------------------------------- #define ROLE ROLE_SKY // Standard libraries #include <Arduino.h> #include <printf.h> // Radio comms #include <RF24_config.h> #include <nRF24L01.h> #include <RF24.h> #include <printf.h> #if ROLE == RO...
Add altitude sensor
Add altitude sensor
Arduino
mit
WasabiFan/aerial-release-system,WasabiFan/aerial-release-system
f3920d96b1dc15770785edafd100c559d3b33510
examples/arduino/OscEther/OscEther.ino
examples/arduino/OscEther/OscEther.ino
#include <ArduinoOSC.h> // Ethernet stuff const IPAddress ip (192, 168, 1, 201); uint8_t mac[] = {0xAB, 0xCD, 0xEF, 0x01, 0x23, 0x45}; // for ArduinoOSC const char* host = "192.168.2.20"; const int recv_port = 54321; const int bind_port = 54345; const int send_port = 55555; const int publish_port = 54445; // send / r...
#include <ArduinoOSC.h> // Ethernet stuff uint8_t mac[] = {0xAB, 0xCD, 0xEF, 0x01, 0x23, 0x45}; const IPAddress ip (192, 168, 1, 201); const IPAddress dns (192, 168, 1, 1); const IPAddress gateway (192, 168, 1, 1); const IPAddress subnet (255, 255, 255, 0); // for ArduinoOSC const char* host = "192.168.1.200"; const ...
change ip for simplicity
change ip for simplicity
Arduino
mit
hideakitai/ArduinoOSC,hideakitai/ArduinoOSC
84b09eef2c6ab7e4479244153e8e9705eb86a559
V1_0.ino
V1_0.ino
#include <avr/io.h> #include <avr/interrupt.h> #include <util/crc16.h> #include <SPI.h> #include <RFM22.h> #include <TinyGPS.h> #define ASCII 7 // ASCII 7 or 8 #define STOPBITS 2 // Either 1 or 2 #define TXDELAY 0 // Delay between sentence TX's #define RTTY_BAUD 50 ...
#include <avr/io.h> #include <avr/interrupt.h> #include <util/crc16.h> #include <SPI.h> #include <RFM22.h> #include <TinyGPS.h> #define ASCII 7 // ASCII 7 or 8 #define STOPBITS 2 // Either 1 or 2 #define TXDELAY 0 // Delay between sentence TX's #define RTTY_BAUD 50 ...
Update callsign to "KOMO-1" (a tribute to trash bags)
Update callsign to "KOMO-1" (a tribute to trash bags)
Arduino
bsd-2-clause
bertrik/picoballoon
8db63e933eaffc429df10cb81311432ceed74213
ArduboyLife/ArduboyLife.ino
ArduboyLife/ArduboyLife.ino
// ------------------------------------- // Conway's Game Of Life for the Arduboy // ------------------------------------- /* Copyright (c) 2015-2019 Scott Allen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
// ------------------------------------- // Conway's Game Of Life for the Arduboy // ------------------------------------- /* Copyright (c) 2015-2019 Scott Allen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
Fix issue with generating a random number
Fix issue with generating a random number
Arduino
mit
MLXXXp/ArduboyLife
2395bee77eee47af7984850ce5368f4b7a087da7
examples/Multiple/ParallelOutputDemo/ParallelOutputDemo.ino
examples/Multiple/ParallelOutputDemo/ParallelOutputDemo.ino
#include<FastLED.h> #define NUM_LEDS_PER_STRIP 64 #define NUM_STRIPS 8 CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP]; // Pin layouts on the teensy 3: // WS2811_PORTD: 2,14,7,8,6,20,21,5 // WS2811_PORTC: 15,22,23,9,10,13,11,12 // // Pin layouts on the due // WS2811_PORTA: 69,68,61,60,59,100,58,31 (note: pin 100 only ava...
#include<FastLED.h> #define NUM_LEDS_PER_STRIP 64 // Note: this can be 12 if you're using a teensy 3 and don't mind soldering the pads on the back #define NUM_STRIPS 8 CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP]; // Pin layouts on the teensy 3/3.1: // WS2811_PORTD: 2,14,7,8,6,20,21,5 // WS2811_PORTC: 15,22,23,9,10,13...
Add note about 12-way output for Teensy3 PORTC
Add note about 12-way output for Teensy3 PORTC
Arduino
mit
PaulStoffregen/FastLED,FastLED/FastLED,wilhelmryan/FastLED,kcouck/FastLED,PaulStoffregen/FastLED,neographophobic/FastLED,eshkrab/FastLED-esp32,FastLED/FastLED,tullo-x86/FastLED,remspoor/FastLED,remspoor/FastLED,NicoHood/FastLED,wilhelmryan/FastLED,tullo-x86/FastLED,neographophobic/FastLED,FastLED/FastLED,felixLam/FastL...
a729ee70f95e61e7532a6f1336ba570a151a9d5f
examples/Basics/PowerOFF/PowerOFF.ino
examples/Basics/PowerOFF/PowerOFF.ino
#include <M5Stack.h> // the setup routine runs once when M5Stack starts up void setup(){ // initialize the M5Stack object M5.begin(); // Lcd display M5.Lcd.println("This is software power off demo"); M5.Lcd.println("Press the button A to power off."); // Set the wakeup button M5.setWakeupButton(BUTT...
#include <M5Stack.h> // the setup routine runs once when M5Stack starts up void setup(){ // initialize the M5Stack object M5.begin(); // Lcd display M5.Lcd.println("This is software power off demo"); M5.Lcd.println("Press the button A to power off."); // Set the wakeup button M5.Power.setWakeupButto...
Update poser off example for new api.
Update poser off example for new api.
Arduino
mit
m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack
cb79350b83f3d80356445b8d72b8a0af4f8d461e
_06-power_meter/_06-power_meter.ino
_06-power_meter/_06-power_meter.ino
#include <PubSubClient.h> #include <ESP8266WiFi.h> // https://github.com/openenergymonitor/EmonLib #include "EmonLib.h" // Include Emon Library #include <Average.h> #define _IS_MY_HOME // WIFI #ifdef _IS_MY_HOME #include "/usr/local/src/ap_settingii.h" //#include "/usr/local/src/ap_setting.h" #else #include "ap_settin...
#include <PubSubClient.h> #include <ESP8266WiFi.h> // https://github.com/openenergymonitor/EmonLib #include "EmonLib.h" // Include Emon Library #include <Average.h> #define _IS_MY_HOME // WIFI #ifdef _IS_MY_HOME #include "/usr/local/src/ap_settingii.h" //#include "/usr/local/src/ap_setting.h" #else #include "ap_settin...
reconnect from 5000 to 1000(1sec)
reconnect from 5000 to 1000(1sec)
Arduino
lgpl-2.1
chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino,chaeplin/esp8266_and_arduino
928e6587586a0d16a55570b6131a54f0399f4499
ha_mqtt_rgb_light/ha_mqtt_rgb_light.ino
ha_mqtt_rgb_light/ha_mqtt_rgb_light.ino
/* MQTT RGB Light for Home-Assistant - NodeMCU (ESP8266) https://home-assistant.io/components/light.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient Sources : - File > Examples > ES8266WiFi > WiFiClient...
/* MQTT RGB Light for Home-Assistant - NodeMCU (ESP8266) https://home-assistant.io/components/light.mqtt/ Libraries : - ESP8266 core for Arduino : https://github.com/esp8266/Arduino - PubSubClient : https://github.com/knolleary/pubsubclient Sources : - File > Examples > ES8266WiFi > WiFiClient...
Update ha_mqtt_rgb_light.ino
Update ha_mqtt_rgb_light.ino
Arduino
mit
mertenats/Open-Home-Automation,mertenats/Open-Home-Automation
4fda900b84b94417a9833a2069656f50d97f5dac
examples/HMClientTest.ino
examples/HMClientTest.ino
#include <HMClient.h>
#include <ESP8266WiFi.h> #include <HMClient.h> const char* ssid     = "Your SSID"; const char* passcode = "Your PASSCODE"; HMClient HM_Default; HMClient HMU_UserDefined("Server1"); void setup() {   // put your setup code here, to run once:  Serial.begin(115200);  Serial.flush();  Serial.println("Booting");    WiFi....
Update HMClientTest.ino
Update HMClientTest.ino
Arduino
mit
IceMan66/HMClient
ac0df17f2c3cef8897e84ee2a06a311dbba2e492
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 Janitorial formatting.
Arduino
bsd-2-clause
drhaney/pt100rtd
479362a27c93dba6f2c3fef78890196dc4ba1147
firmware/examples/spark-plotly.ino
firmware/examples/spark-plotly.ino
#include "spark-plotly.h" #define DATA_POINTS 4 char* data_point_tokens[NUM_TOKENS] = {"token1", "token2", "token3","token4"}; plotly graph = plotly("username", "secret", streaming_tokens, "streamname", DATA_POINTS); void setup() { graph.init(); graph.fileopt = "extend"; graph.openStream(); } void loop() ...
#include "spark-plotly.h" #define DATA_POINTS 4 char* data_point_tokens[NUM_TOKENS] = {"token1", "token2", "token3","token4"}; plotly graph = plotly("username", "secret", data_points_tokens, "streamname", DATA_POINTS); void setup() { graph.init(); graph.fileopt = "extend"; graph.openStream(); } void loop(...
Update spark-plotly.ino
Update spark-plotly.ino
Arduino
mit
bigmacd/spark-plotly,jdecked/spark-plotly
53bb387f7fabdbc17b41e11d9b90579691afa932
simu_buttonreader_teensy_wheel/simu_buttonreader_teensy_wheel.ino
simu_buttonreader_teensy_wheel/simu_buttonreader_teensy_wheel.ino
/* * Code to put on the Wheel (connected with Bluetooth to a another system) for wireless bluetooth button/shifter system using two Teensy 3.2 microcontrollers and 2 HC-05 bluetooth modules. Authors: Mika Takala & Juha Koljonen 2016 PINOUT ------------------------------------------------------------...
/* * Code to put on the Wheel (connected with Bluetooth to a another system) for wireless bluetooth button/shifter system using two Teensy 3.2 microcontrollers and 2 HC-05 bluetooth modules. Authors: Mika Takala & Juha Koljonen 2016 PINOUT ------------------------------------------------------------...
Add files via upload
Add files via upload Fixed some bugs.
Arduino
apache-2.0
mtakala/simracing_wireless_buttons
8543a20efa1a5318e575c70d8fdac772af8b65a6
Guzheng/Guzheng.ino
Guzheng/Guzheng.ino
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ /* Uncomment the define if you are using a wind instrument, such * as a trumpet or flute. It will disable several things that * are specific to string and percussion instruments. DO NOT * uncomment it if you are usi...
/* Code for laser guzheng * Copyright (C) 2016 Jason Lu * * Licensed under the MIT License */ /* Uncomment the define if you are using a wind instrument, such * as a trumpet or flute. It will disable several things that * are specific to string and percussion instruments. DO NOT * uncomment it if you are usi...
Fix new flag code
Fix new flag code Fixed some bugs, such as one-off bugs and logic errors
Arduino
mit
PoisonNinja/LaserHarp,PoisonNinja/LaserHarp,PoisonNinja/LaserHarp
9c64eae1f9eacc32e8d32a46a113e0e33d9e5625
estop/code/SPI_rf24L01_TX/SPI_rf24L01_TX.ino
estop/code/SPI_rf24L01_TX/SPI_rf24L01_TX.ino
/********************************************************************* ** Device: nRF24L01+ ** ** File: EF_nRF24L01_TX.c ** ** ** ** ...
/********************************************************************* ** Device: nRF24L01+ ** ** File: EF_nRF24L01_TX.c ** ** ** ** ...
Remove toggle mode in estop
Remove toggle mode in estop
Arduino
apache-2.0
baranusluel/igvc-electrical,baranusluel/igvc-electrical,baranusluel/igvc-electrical
bf6e6d4410abfb3a48ef140fe8c1b6489ffb8a6b
examples/AIC_Shield/AudioPassThru_Quad/AudioPassThru_Quad.ino
examples/AIC_Shield/AudioPassThru_Quad/AudioPassThru_Quad.ino
/* * AudioPassThru_Quad * * Created: Chip Audette, OpenAudio, May 2019 * Purpose: Demonstrate basic audio pass-thru using the Tympan Audio Board * with the AIC Shield * * Uses Teensy Audio default sample rate of 44100 Hz with Block Size of 128 * * License: MIT License, Use At Your Own Risk * */ //here a...
/* * AudioPassThru_Quad * * Created: Chip Audette, OpenAudio, May 2019 * Purpose: Demonstrate basic audio pass-thru using the Tympan Audio Board * with the AIC Shield * * Uses Teensy Audio default sample rate of 44100 Hz with Block Size of 128 * * License: MIT License, Use At Your Own Risk * */ //here a...
remove unneeded pin declarations
AudioPassThru_Quad: remove unneeded pin declarations
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
9d5dd009620c01225d9902387d84a4b7c313ba07
examples/GPRS_OutgoingCall_Software/GPRS_OutgoingCall_Software.ino
examples/GPRS_OutgoingCall_Software/GPRS_OutgoingCall_Software.ino
// библиотека для работы с GPRS устройством #include <GPRS_Shield_Arduino.h> // библиотека для эмуляции Serial порта // она нужна для работы библиотеки GPRS_Shield_Arduino #include <SoftwareSerial.h> // номер на который будем звонить #define PHONE_NUMBER "+79263995140" // создаём объект класса GPRS // и передаё...
// библиотека для работы с GPRS устройством #include <GPRS_Shield_Arduino.h> // библиотека для эмуляции Serial порта // она нужна для работы библиотеки GPRS_Shield_Arduino #include <SoftwareSerial.h> // номер на который будем звонить #define PHONE_NUMBER "+79263995140" // создаём объект класса GPRS // и передаё...
Update GPRS_OutgoingCall_Software.ino
Update GPRS_OutgoingCall_Software.ino
Arduino
mit
amperka/gprs-shield,amperka/gprs-shield
8e1a0d32317afdc3b3f0b86279e0c1c19a356e75
ArduinoCar/ArduinoCar.ino
ArduinoCar/ArduinoCar.ino
#include <PID_v1.h> const int EA=9; const int EB=10; const int pinLa=7; const int pinLb=8; const int pinRa=12; const int pinRb=13; const int trigpin=4; const int echopin=5; double SetpointL=10, SetpointR=10; double Kp=0.6, Ki=5, Kd=0; double outputL, outputR; double inputL, inputR, speedvalueL, speedvalueR; bool Dire...
#include <PID_v1.h> const int EA=9; const int EB=10; const int pinLa=7; const int pinLb=8; const int pinRa=12; const int pinRb=13; const int trigpin=4; const int echopin=5; double SetpointL=20, SetpointR=20; double Kp=0.6, Ki=5, Kd=0; double outputL, outputR; double inputL, inputR, speedvalueL, speedvalueR; bool Dire...
fix sth
fix sth
Arduino
mit
lxgouc/Qt-tcp-opencv,lxgouc/Qt-tcp-opencv
bea8f06fb082e28239ddf891f7987b20aa845a1f
jenny5-firmware/jenny5-firmware.ino
jenny5-firmware/jenny5-firmware.ino
#include <avr/pgmspace.h> #include "ultrasonic_sensors_controller.h" #include "potentiometers_controller.h" #include "motors_control.h" #include "button_controller.h" #include "jenny5_types.h" #include "infrared_sensors_controller.h" byte potentiometers_pins[4] = {0, 1, 2, 3}; t_limit_pair potentiometer_limits[4] = {...
#include <avr/pgmspace.h> #include "ultrasonic_sensors_controller.h" #include "potentiometers_controller.h" #include "motors_control.h" #include "button_controller.h" #include "jenny5_types.h" #include "infrared_sensors_controller.h" byte potentiometers_pins[4] = {0, 1, 2, 3}; t_limit_pair potentiometer_limits[4] = {...
return only T# in setup(); parse current_buffer from the end; V command for version
return only T# in setup(); parse current_buffer from the end; V command for version - returning a complex string like "Jenny 5 firmware version" was wrong because it contains letter m which can also mean a motor move event. - we now parse the current_buffer from the end. This will help to process strings faster becau...
Arduino
mit
ubbots/jenny5-firmware,jenny5-robot/jenny5-firmware,ubbots/jenny5-firmware,jenny5-robot/jenny5-firmware
5f25f76a708df29e52ead582aeb9b67c8d360426
arduino/rflink/rflink.ino
arduino/rflink/rflink.ino
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 static uint8_t id_read(void) { return EEPROM.read(EE_ADDR_ID); } static void id_wri...
#include <stdbool.h> #include <stdint.h> #include <string.h> #include "radio.h" #include "cmdproc.h" #include "editline.h" #include "hal.h" #include "SPI.h" #include "EEPROM.h" // EEPROM address of node id #define EE_ADDR_ID 0 static uint8_t id_read(void) { return EEPROM.read(EE_ADDR_ID); } static void id_wri...
Use strtoul instead of atoi to parse a long integer
Use strtoul instead of atoi to parse a long integer
Arduino
mit
bertrik/rflink,bertrik/rflink
09355980fd847528cfc848fd6741f0fe26b687c4
IHM595/exemples/HelloWorld/HelloWorld.ino
IHM595/exemples/HelloWorld/HelloWorld.ino
/* * Marcelo H Moraes * marceloh220@hotmail.com * * Hello World! * All the fancy is only for demonstration */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; IHM595 board(2,3,4); void setup() { board.begin(); board.background(HIGH); board.set(2,0); String a = "Hello World!"; board.print(a); } void...
/* * Marcelo H Moraes * marceloh220@hotmail.com * * Hello World! * All the fancy is only for demonstration */ #include <IHM595.h> uint8_t s,m,h; uint64_t mil; IHM595 board(2,3,4); void setup() { board.background(HIGH); board.set(2,0); String a = "Hello World!"; board.print(a); } void loop() { boa...
Update HelloWorld.ino
Update HelloWorld.ino
Arduino
mit
marceloh220/Arduino,marceloh220/Arduino
37e30aaf2a2edf14d94fc3cb40aebf17d93dcb59
Nokia_5110/Nokia_5110.ino
Nokia_5110/Nokia_5110.ino
#define RST 2 #define CE 3 #define DC 4 #define DIN 5 #define CLK 6 void startTransmission(){ digitalWrite(CE, LOW); } void endTransmission(){ digitalWrite(CE, HIGH); } void transmitInformation(byte information){ startTransmission(); shiftOut(DIN, CLK, MSBFIRST, information); endTransmission(); }...
#define RST 2 #define CE 3 #define DC 4 #define DIN 5 #define CLK 6 void startTransmission(){ digitalWrite(CE, LOW); } void endTransmission(){ digitalWrite(CE, HIGH); } void transmitInformation(byte information){ startTransmission(); shiftOut(DIN, CLK, MSBFIRST, information); endTransmission(); }...
make a function for easily specifying temperature coefficient
make a function for easily specifying temperature coefficient
Arduino
mit
baghayi/Nokia_5110,baghayi/Nokia_5110
30ed133d11aea4a958d7c5118fa5d4873022ea90
Programmer/Programmer.ino
Programmer/Programmer.ino
/* Programmer.ino Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino. Data to write to flash is fed from standard SDCC produced Intel Hex format file using the accompanying programmer.pl perl script. Start the Arduino script first and then run the perl script. When upload...
/* Programmer.ino Programmer for flashing Nordic nRF24LE1 SOC RF chips using SPI interface from an Arduino. Data to write to flash is fed from standard SDCC produced Intel Hex format file using the accompanying programmer.pl perl script. Start the Arduino script first and then run the perl script. When upload...
Switch 38400 baud for the serial
Switch 38400 baud for the serial
Arduino
mit
baruch/nRF24LE1_Programmer
0678d9d377782d7fd841180cb80e4d67fbc8b0db
Arduino/Thingamabot/Thingamabot.ino
Arduino/Thingamabot/Thingamabot.ino
// Arduino code for Thingamashop wheelchair robot. // // Accepts commands over serial or Bluetooth LE. // Commands are two lower case letters, space, an integer value, // then CR, LF. // // A fail-safe mode will shut down the robot if no commands // are processed within a fail-safe interval. Once fail-safe mode // is e...
// Arduino code for Thingamashop wheelchair robot. // // Accepts commands over serial or Bluetooth LE. // Commands are two lower case letters, space, an integer value, // then CR, LF. // // A fail-safe mode will shut down the robot if no commands // are processed within a fail-safe interval. Once fail-safe mode // is e...
Add code to receive Bluetooth commands via RedBearLabs Bluetooth LE shield.
Add code to receive Bluetooth commands via RedBearLabs Bluetooth LE shield.
Arduino
mit
petergolde/wheelchair-robot,petergolde/wheelchair-robot,petergolde/wheelchair-robot,petergolde/wheelchair-robot
0ef22f0b4284986742a5aac467ebb12854eed96d
arduino/edison2fiware.ino
arduino/edison2fiware.ino
//################# LIBRARIES ################ #include <SPI.h> #include <WiFi.h> //################# WIFI DETAILS ################# char ssid[] = "OWDTEST"; // your network SSID (name) char pass[] = "tidowd22"; // your network password (use for WPA, or use as key for WEP) int keyIndex = ...
//################# LIBRARIES ################ #include <SPI.h> #include <WiFi.h> //################# WIFI DETAILS ################# char ssid[] = ""; // your network SSID (name) char pass[] = ""; // your network password (use for WPA, or use as key for WEP) int keyIndex = 0; /...
Update edison2fiware.ino
Update edison2fiware.ino
Arduino
agpl-3.0
telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison,telefonicaid/fiware-edison
c5f7e08a5ca84443a9203184159adbb039958180
src/_ota.ino
src/_ota.ino
/** * Ai-Thinker RGBW Light Firmware - OTA Module * * The OTA (Over The Air) module holds all the code to manage over the air * firmware updates. * * This file is part of the Ai-Thinker RGBW Light Firmware. * For the full copyright and license information, please view the LICENSE * file that was distributed wit...
/** * Ai-Thinker RGBW Light Firmware - OTA Module * * The OTA (Over The Air) module holds all the code to manage over the air * firmware updates. * * This file is part of the Ai-Thinker RGBW Light Firmware. * For the full copyright and license information, please view the LICENSE * file that was distributed wit...
Disable WebSocket clients upon OTA start.
Disable WebSocket clients upon OTA start.
Arduino
mit
stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight,stelgenhof/AiLight
251820c4305b5ecb0e31dd70311c79cd54ec26a1
AM2320/example/AM2320lib_test.ino
AM2320/example/AM2320lib_test.ino
#include <Wire.h> #include <AM2320.h> AM2320 th; void setup() { Serial.begin(9600); } void loop() { Serial.println("---------------"); Serial.print("humidity: "); Serial.print(th.getHumidity()); Serial.print("%"); Serial.print("|| temperature: "); Serial.print(th.getTemperature()); Serial.println("*...
#include <Wire.h> #include <AM2320.h> AM2320 th; void setup() { Serial.begin(9600); } void loop() { switch(th.Read()) { case 2: Serial.println("CRC failed"); break; case 1: Serial.println("Sensor offline"); break; case 0: Serial.print("humidity: "); Serial.print(th....
Update AM2320lib_test.ino
Update AM2320lib_test.ino
Arduino
mit
thakshak/AM2320
530bc8e41ce2215f84765a2326625137eee8a3d1
mk_0/mk_0.ino
mk_0/mk_0.ino
#include <stdint.h> #include "doom.h" #define MAINLOOP_PERIOD_TICKS 6249 #define MISSION_TIMEOUT 3200 statevars_t statevars; uint32_t iterations; volatile uint8_t system_timer_overflow = 0; ISR(TIMER1_OVF_vect) { system_timer_overflow = 1; } void setup() { if (init_all_subsystems()) { Serial.pr...
#include <stdint.h> #include "doom.h" #define MAINLOOP_PERIOD_TICKS 6249 #define MISSION_TIMEOUT 200 statevars_t statevars; uint32_t iterations; volatile uint8_t system_timer_overflow = 0; ISR(TIMER1_OVF_vect) { system_timer_overflow = 1; } void setup() { if (init_all_subsystems()) { Serial.pri...
Reduce mission timeout to 5 seconds
Reduce mission timeout to 5 seconds
Arduino
mit
mr-augustine/doctor_doom,mr-augustine/doctor_doom
f61a709b8d02e473795bc65dc784ed27615e6efc
microcoap.ino
microcoap.ino
/* * WARNING - UDP_TX_PACKET_MAX_SIZE is hardcoded by Arduino to 24 bytes * This limits the size of possible outbound UDP packets */ #include <avr/wdt.h> #include <SPI.h> #include <Ethernet.h> #include <stdint.h> #include <EthernetUdp.h> //#define UDP_TX_PACKET_MAX_SIZE 256 #include <utility/util.h> #include "coap....
/* * WARNING - UDP_TX_PACKET_MAX_SIZE is hardcoded by Arduino to 24 bytes * This limits the size of possible outbound UDP packets */ #include <avr/wdt.h> #include <SPI.h> #include <Ethernet.h> #include <stdint.h> #include <EthernetUdp.h> //#define UDP_TX_PACKET_MAX_SIZE 256 #include <utility/util.h> #include "coap....
Connect to smart-connected.us
Connect to smart-connected.us
Arduino
mit
mbialon/microcoap,smart-connected/microcoap
150c703f023264ea1835d7c3d993ffeea7fd2846
mech/mech.ino
mech/mech.ino
// Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor // Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold" // Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot" // Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear). // Measured 2964 steps 360 degrees rev...
// Motor 1 = Ch1 = set 1 = Stepper 1 = "L" Motor // Motor 2 = Ch2 = set 2 = Stepper 2 = "C1" Motor "Cold" // Motor 3 = Ch3 = set 3 = Stepper 3 = "C2 Motor "Hot" // Motor C: 200 steps 360 degrees revolution (no gear). In quater-step mode 800 steps 360 degrees revolution (no gear). // Measured 2964 steps 360 degrees rev...
Update mech.ino
Update mech.ino
Arduino
mit
dkaukov/ratu,dkaukov/ratu
23ca13d75bba813ba851d6d6a3532a91f6132505
examples-ltc/6.LTCVolume1/Test1/Test1.ino
examples-ltc/6.LTCVolume1/Test1/Test1.ino
// Love to Code // Volume 1 syntax demo // The simplest possible blink example is shown here using the LTC API. loop() { on(0); pause(1000); off(0); pause(1000); }
// Love to Code // Volume 1 syntax demo // The simplest possible blink example is shown here using the LTC API. setup() { outputMode(0); } loop() { on(0); pause(1000); off(0); pause(1000); }
add setup() to the basic-est example
add setup() to the basic-est example
Arduino
mit
chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer,chibitronics/ltc-webview-layer
bfa73b394fcddb956d706d72f963b4be6c5397ad
arduino/Master/Master.ino
arduino/Master/Master.ino
#include <RF24Network.h> #include <RF24.h> #include <RF24Mesh.h> #include <Ethernet.h> #include <SPI.h> #include <EEPROM.h> #include <ArduinoJson.h> #include <stdlib.h> RF24 radio(7, 8); RF24Network network(radio); RF24Mesh mesh(radio, network); const float MIN_P = 1.5; const byte CURRENTCOUNT = 2; boolean DEBUG = t...
#include <RF24Network.h> #include <RF24.h> #include <RF24Mesh.h> #include <Ethernet.h> #include <SPI.h> #include <EEPROM.h> #include <ArduinoJson.h> #include <stdlib.h> RF24 radio(49, 53); RF24Network network(radio); RF24Mesh mesh(radio, network); const float MIN_P = 1.5; const byte CURRENTCOUNT = 2; boolean DEBUG =...
Change mater RF Pins
Change mater RF Pins
Arduino
mit
ndkimhao/EnergyMesh,ndkimhao/EnergyMesh
75c16a730142a0ce84d27395ef55dd2d17290f16
OpenStage/openStage_moveToTarget.ino
OpenStage/openStage_moveToTarget.ino
//------------------------------------------------------------------------------------------------ // * moveToTarget // This function is responsible for moving the stage to an absolute location. It takes two // inputs: an array of floats defining how much to move the stage in each axis and the step size. // The leng...
//------------------------------------------------------------------------------------------------ // * moveToTarget // This function is responsible for moving the stage to an absolute location. It takes two // inputs: an array of floats defining how much to move the stage in each axis and the step size. // The leng...
Convert runSteppersToPos() to work with a variable number of axes. It's vitally important that this function works correctly.
Convert runSteppersToPos() to work with a variable number of axes. It's vitally important that this function works correctly.
Arduino
agpl-3.0
raacampbell13/openstage,raacampbell13/openstage
e444947d4b99577db84d4072df7990f293adb7ef
firmware/examples/01_Particle/01_Particle.ino
firmware/examples/01_Particle/01_Particle.ino
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
/************************************************************** * Blynk is a platform with iOS and Android apps to control * Arduino, Raspberry Pi and the likes over the Internet. * You can easily build graphic interfaces for all your * projects by simply dragging and dropping widgets. * * Downloads, docs, tuto...
Update 01_Particle.ino
Update 01_Particle.ino
Arduino
mit
JFLegros/RedBear_Duo,JFLegros/RedBear_Duo
5a642c485eface5ff32c3374b9f2f65596c49786
examples/ColorPalette/ColorPalette.ino
examples/ColorPalette/ColorPalette.ino
#include <FastLED.h> #define LED_PIN 5 #define NUM_LEDS 50 #define BRIGHTNESS 64 #define LED_TYPE WS2811 #define COLOR_ORDER GRB CRGB leds[NUM_LEDS]; #define UPDATES_PER_SECOND 100 // This example shows several ways to set up and use 'palettes' of colors // with FastLED. // // These compact palettes provi...
#include <FastLED.h> #define LED_PIN 5 #define NUM_LEDS 50 #define BRIGHTNESS 64 #define LED_TYPE WS2811 #define COLOR_ORDER GRB CRGB leds[NUM_LEDS]; #define UPDATES_PER_SECOND 100 // This example shows several ways to set up and use 'palettes' of colors // with FastLED. // // These compact palettes provi...
Fix typo in example
Fix typo in example
Arduino
mit
FastLED/FastLED,PaulStoffregen/FastLED,PaulStoffregen/FastLED,PaulStoffregen/FastLED,FastLED/FastLED,FastLED/FastLED,FastLED/FastLED
0fabcdbe8600fedd5f617595b3baa275ed861596
examples/Sandbox/CosaTone/CosaTone.ino
examples/Sandbox/CosaTone/CosaTone.ino
/** * @file CosaTone.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
/** * @file CosaTone.ino * @version 1.0 * * @section License * Copyright (C) 2014, Mikael Patel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
Add simple pause in tone play.
Add simple pause in tone play.
Arduino
lgpl-2.1
jeditekunum/Cosa,dansut/Cosa,rrobinet/Cosa,jeditekunum/Cosa,jeditekunum/Cosa,kc9jud/Cosa,rrobinet/Cosa,dansut/Cosa,kc9jud/Cosa,dansut/Cosa,rrobinet/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,jeditekunum/Cosa,dansut/Cosa,mikaelpatel/Cosa,mikaelpatel/Cosa,kc9jud/Cosa
6874f538d8ac9fa2350b079e713fcbd9d83ab770
FastLED/Beacon.ino
FastLED/Beacon.ino
#include "captouch.h" #include "FastLED.h" #define RING_PIN 3 #define RING_LEDS 64 CRGB ringLeds[RING_LEDS]; #define STRIP_PIN 3 #define STRIP_LEDS 64 CRGB stripLeds[STRIP_LEDS]; CRGB red = CHSV( 0, 0, 0); CRGB green = CHSV( 85, 0, 0); CRGB blue = CHSV( 150, 0, 0); CRGB beaconColor = CHSV( 0, 0, 0); CR...
#include "captouch.h" #include "FastLED.h" #define RING_PIN 3 #define RING_LEDS 64 CRGB ringLeds[RING_LEDS]; #define STRIP_PIN 3 #define STRIP_LEDS 64 CRGB stripLeds[STRIP_LEDS]; CRGB red = CHSV( 0, 0, 0); CRGB green = CHSV( 85, 0, 0); CRGB blue = CHSV( 150, 0, 0); CRGB beaconColor = CHSV( 0, 0, 0); CR...
Update Beacon.ino
Update Beacon.ino
Arduino
apache-2.0
Blaze420McYoloSwag/LiteHaus
f291105c6087977a51e6fc78bcaebef6f0c04f4d
FretBoard/FretBoard.ino
FretBoard/FretBoard.ino
/* FretBoard Retrieve continuous integration server status from the net and visualise status with a ws2811-based programmable LED array. For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/FretBoard */ #include <SPI.h> #include <Ethernet.h> #include <TextFinder.h...
/* FretBoard Retrieve continuous integration server status from the net and visualise status with a ws2811-based programmable LED array. For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/FretBoard */ #include <SPI.h> #include <Ethernet.h> #include <TextFinder.h...
add support for Unknown activity status
[FretBoard] add support for Unknown activity status
Arduino
mit
tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects,tardate/LittleArduinoProjects
739fae0baf2125e08aa8cbc4785cf45a11dbb37f
wifitask.ino
wifitask.ino
void wifiTask( void * pvParameters ) { /* trying last accesspoint */ //WiFi.onEvent( WiFiEvent ); WiFi.mode( WIFI_STA ); WiFi.setSleep( false ); if ( wifi_network != "" ) WiFi.begin( wifi_network, wifi_password ); else WiFi.begin(); ESP_LOGI( TAG, "Connecting WiFi" ); if ( xTftTaskHandle ) { tft.s...
void wifiTask( void * pvParameters ) { /* trying last accesspoint */ WiFi.mode( WIFI_STA ); WiFi.setSleep( false ); if ( wifi_network != "" ) WiFi.begin( wifi_network, wifi_password ); else WiFi.begin(); if ( xTftTaskHandle ) { tft.setTextColor( TFT_TEXT_COLOR , TFT_BACK_COLOR ); tft.println( "Con...
Set a reconnect handler for when WiFi looses connection.
Set a reconnect handler for when WiFi looses connection. Better logic in smartConfig code. Delete wifiTask when done.
Arduino
mit
CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32
ed2d4238a8332a1297d30e03059a929cb80e08f3
examples/OWI/CosaDS18B20alarm/CosaDS18B20alarm.ino
examples/OWI/CosaDS18B20alarm/CosaDS18B20alarm.ino
/** * @file CosaDS18B20alarm.ino * @version 1.0 * * @section License * Copyright (C) 2012-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...
/** * @file CosaDS18B20alarm.ino * @version 1.0 * * @section License * Copyright (C) 2012-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...
Adjust alarm thresholds to give a more realistic example sketch.
Adjust alarm thresholds to give a more realistic example sketch.
Arduino
lgpl-2.1
dansut/Cosa,SinishaDjukic/Meshwork,dansut/Cosa,mikaelpatel/Cosa,kc9jud/Cosa,jeditekunum/Cosa,SinishaDjukic/Meshwork,jeditekunum/Cosa,mikaelpatel/Cosa,SinishaDjukic/Meshwork,jeditekunum/Cosa,dansut/Cosa,kc9jud/Cosa,kc9jud/Cosa,mikaelpatel/Cosa,rrobinet/Cosa,jeditekunum/Cosa,dansut/Cosa,rrobinet/Cosa,SinishaDjukic/Meshwo...
666d32d5a741515a22af79bf15c4c09c376c6a1a
examples/04-FrequencyDomain/LowpassFilter_FD/LowpassFilter_FD.ino
examples/04-FrequencyDomain/LowpassFilter_FD/LowpassFilter_FD.ino
// FrequencyDomainDemo1 // // Demonstrate audio procesing in the frequency domain. // // Created: Chip Audette Sept-Oct 2016 // // Approach: // * Take samples in the time domain // * Take FFT to convert to frequency domain // * Manipulate the frequency bins as desired (LP filter? BP filter? Formant shift?) ...
// LowpassFilter_FD // // Demonstrate audio procesing in the frequency domain through the use of a very simple // lowpass filter. // // Created: Chip Audette, Initial 2017 // // Approach: // * Take samples in the time domain // * Take FFT to convert to frequency domain // * Manipulate the frequency bins as des...
improve comments update to myTympan
LowpassFilter_FD: improve comments update to myTympan
Arduino
mit
Tympan/Tympan_Library,Tympan/Tympan_Library,Tympan/Tympan_Library
8f785918eca5f79959190fe16b48c0c82854245e
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 A5 #define pinLed 10 // Slo...
Save state
Save state
Arduino
mit
abraha2d/PushStart
07345b4bbf3544d2603f0035496e679053b03d21
roto2.ino
roto2.ino
// Copyright (c) 2015 Peter Teichman #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "drawbar_osc.h" #include "vibrato.h" #include "voice_allocator.h" // GUItool: begin automatically generated code DrawbarOsc osc1; DrawbarOsc osc2; D...
// Copyright (c) 2015 Peter Teichman #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "drawbar_osc.h" #include "vibrato.h" #include "voice_allocator.h" // GUItool: begin automatically generated code DrawbarOsc osc1; DrawbarOsc osc2; D...
Make drawbar constants explicit longs for readability
Make drawbar constants explicit longs for readability
Arduino
mit
pteichman/roto2
44cd7e505e59644a3fca7303b316293372580f9f
libraries/CurieBle/examples/BatteryMonitor/BatteryMonitor.ino
libraries/CurieBle/examples/BatteryMonitor/BatteryMonitor.ino
/* Copyright (c) 2015 Intel Corporation. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later v...
/* Copyright (c) 2015 Intel Corporation. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later v...
Update note on local name
Update note on local name
Arduino
lgpl-2.1
linrjing/corelibs-arduino101,yashaswini-hanji/corelibs-arduino101,bigdinotech/corelibs-arduino101,sgbihu/corelibs-arduino101,SidLeung/corelibs-arduino101,sandeepmistry/corelibs-arduino101,facchinm/corelibs-arduino101,sgbihu/corelibs-arduino101,facchinm/corelibs-arduino101,SidLeung/corelibs-arduino101,01org/corelibs-ard...
a61fa2976225b67424ab53e6ebcc5eee1134241e
tpsu1.ino
tpsu1.ino
#include <SPI.h> #include <EEPROM.h> #include <DAC_MCP49xx.h> #define DAC_P 9 #define OE_P 8 #define DAC_N 7 #define OE_N 6 #define ITE 5 #define AC_1 10 #define AC_2 12 #define AC_3 4 #define AC_4 3 #define Vsense_P 0 #define Vsense_N 1 #define Asense_P 2 #define Asense_N 3 int setVP = 0; int setAP = 0; int setVN ...
#include <SPI.h> #include <EEPROM.h> #include <DAC_MCP49xx.h> #define DAC_P 9 #define OE_P 8 #define DAC_N 7 #define OE_N 6 #define ITE 5 #define AC_1 10 #define AC_2 12 #define AC_3 4 #define AC_4 3 #define Vsense_P 0 #define Vsense_N 1 #define Asense_P 2 #define Asense_N 3 int setVP = 0; int setAP = 0; int setVN ...
Add some voltage feedback loop
Add some voltage feedback loop
Arduino
mit
calston/piwerlab,calston/piwerlab
753c9b9a996cb4326e64f7d5c6b1e232fee21cf6
Arduino/LightPlayer/LightPlayer.ino
Arduino/LightPlayer/LightPlayer.ino
#include <SPI.h> #include <SdFat.h> #include <FAB_LED.h> #define DEBUG // ports used: // digital 4 - SD card chip select // digital 6 - strip of 200 APA106 LEDs // digital 11 - SPI (SD card DI) // digital 12 - SPI (SD card DO) // digital 13 - SPI (SD card CLK) // analog 0 - RF remote button D // analog 1 - RF remote ...
#include <SPI.h> #include <SdFat.h> #include <FAB_LED.h> #define DEBUG // ports used: // digital 4 - SD card chip select // digital 6 - strip of 200 APA106 LEDs // digital 11 - SPI (SD card DI) // digital 12 - SPI (SD card DO) // digital 13 - SPI (SD card CLK) // analog 0 - RF remote button D // analog 1 - RF remote ...
Support changing frame rate on the fly
Support changing frame rate on the fly Currently, we can vary between 150ms per frame (3x slower than normal, 6.67 FPS) and 25ms per frame (2x faster than normal, 40 FPS). Though, the work being done in adjustFrameColors() takes so long that our fastest speed is more like 27 FPS than the 40 it would be on a faster pr...
Arduino
mit
MaddAddaM/LightRender,godlygeek/LightRender
55797297bee794dfc7fa85c766550b5fc15a92e1
wifitask.ino
wifitask.ino
void wifiTask( void * pvParameters ) { /* trying last accesspoint */ WiFi.mode( WIFI_STA ); WiFi.begin(); //WiFi.onEvent( WiFiEvent ); ESP_LOGI( TAG, "Connecting WiFi" ); if ( xTftTaskHandle ) { tft.setTextColor( TFT_TEXT_COLOR , TFT_BACK_COLOR ); tft.println( "Connecting WiFi"); } WiFi.waitF...
void wifiTask( void * pvParameters ) { /* trying last accesspoint */ WiFi.mode( WIFI_STA ); WiFi.setSleep( false ); WiFi.begin(); //WiFi.onEvent( WiFiEvent ); ESP_LOGI( TAG, "Connecting WiFi" ); if ( xTftTaskHandle ) { tft.setTextColor( TFT_TEXT_COLOR , TFT_BACK_COLOR ); tft.println( "Connecting...
Speed up WiFi considerably.
Speed up WiFi considerably. See https://github.com/me-no-dev/ESPAsyncWebServer/issues/622
Arduino
mit
CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32,CelliesProjects/aquacontrol32
a46e56090b7552232f0663958857a000c17b5de7
examples/Ports/lcd_demo/lcd_demo.ino
examples/Ports/lcd_demo/lcd_demo.ino
// Demo sketch for an LCD connected to I2C port via MCP23008 I/O expander // 2009-10-31 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php #include <JeeLib.h> PortI2C myI2C (1); LiquidCrystalI2C lcd (myI2C); void setup() { // set up the LCD's number of rows and columns: lcd.begin(16, 2); // Print ...
// Demo sketch for an LCD connected to I2C port via MCP23008 I/O expander // 2009-10-31 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php #include <PortsLCD.h> PortI2C myI2C (1); LiquidCrystalI2C lcd (myI2C); void setup() { // set up the LCD's number of rows and columns: lcd.begin(16, 2); // Prin...
fix incorrect include
fix incorrect include
Arduino
unlicense
jcw/jeelib,jcw/jeelib
4cae7f22eedd5ff07d0ac6f67a4cd24ffb260d0a
examples/Face/ENCODER/ENCODER.ino
examples/Face/ENCODER/ENCODER.ino
#include <M5Stack.h> #define Faces_Encoder_I2C_ADDR 0X5E int encoder_increment;//positive: clockwise nagtive: anti-clockwise int encoder_value=0; uint8_t direction;//0: clockwise 1: anti-clockwise uint8_t last_button, cur_button; void GetValue(void){ int temp_encoder_increment; Wire.requestFrom(Faces_En...
#include <M5Stack.h> #define Faces_Encoder_I2C_ADDR 0X5E int encoder_increment;//positive: clockwise nagtive: anti-clockwise int encoder_value=0; uint8_t direction;//0: clockwise 1: anti-clockwise uint8_t last_button, cur_button; void GetValue(void){ int temp_encoder_increment; Wire.requestFrom(Faces_En...
Update ENCODER.ino
Update ENCODER.ino
Arduino
mit
m5stack/M5Stack,m5stack/M5Stack,m5stack/M5Stack
dd742f7689acc6856f26c946a332a7ee1ff75b7b
arduino_pico/arduino_pico.ino
arduino_pico/arduino_pico.ino
#include "OneWire.h" #include "DallasTemperature.h" #include "TimerOne.h" #include "SPI.h" #include "Ethernet.h" #include "WebServer.h" #include "typedefs.h" #include "mapping.h" /* * Thermometer */ #define TEMPERATURE_PRECISION 12 // Setup a oneWire instance to communicate with any OneWire devices (not just Max...
#include "OneWire.h" #include "DallasTemperature.h" #include "TimerOne.h" #include "SPI.h" #include "Ethernet.h" #include "WebServer.h" #include "typedefs.h" #include "mapping.h" /* * Thermometer */ #define TEMPERATURE_PRECISION 12 // Setup a oneWire instance to communicate with any OneWire devices (not just Max...
fix initialisation
fix initialisation
Arduino
apache-2.0
flagos/arduino-pico,flagos/arduino-pico
84fe36139c5320eb0cd1d3d0e3b1f3a50e8d7f19
examples/UbidotsGetValue/UbidotsGetValue.ino
examples/UbidotsGetValue/UbidotsGetValue.ino
// This example retrieves last value of a variable from the Ubidots API // using TCP protocol. /**************************************** * Include Libraries ****************************************/ #include <Ubidots.h> /**************************************** * Define Constants *********************************...
// This example retrieves last value of a variable from the Ubidots API // using TCP protocol. /**************************************** * Include Libraries ****************************************/ #include <Ubidots.h> /**************************************** * Define Constants *********************************...
Debug to True
Debug to True
Arduino
mit
ubidots/ubidots-arduino-gprs,ubidots/ubidots-arduino-gprs
865cbeb5cdb60a74da58768913fb10cb452938c8
Pingduino/Pingduino.ino
Pingduino/Pingduino.ino
#include "Game.h" #include "Display.h" #include "WaveUtil.h" #include "WaveHC.h" #define P1PIN 0 // Interrupts #define P2PIN 1 #define BUTTONLIGHTPIN 4 #define LONGPRESS_TIME 1000 #define INACTIVEMILLIS 1200000 // 20 minutes // Game Logics volatile int p1Score = 0; volatile int p2Score = 0; vol...
#include "Game.h" #include "Display.h" #include "WaveUtil.h" #include "WaveHC.h" #define P1PIN 0 // Interrupts #define P2PIN 1 #define BUTTONLIGHTPIN 4 #define LONGPRESS_TIME 1000 #define INACTIVEMILLIS 1200000 // 20 minutes // Game Logics volatile int p1Score = 0; volatile int p2Score = 0; vol...
Remove unused cruft
Remove unused cruft
Arduino
mit
rubyist/pingduino,rubyist/pingduino