Skip to content

Instantly share code, notes, and snippets.

Fer Uría fauria

Block or report user

Report or block fauria

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fauria / dual-spdt-switch-example.ino
Created Mar 23, 2016
Sample code for the Grove Protoshield Dual SPDT Switch
View dual-spdt-switch-example.ino
// Plugged to socket D4
int leftSwitch = 4;
int rightSwitch = 5;
void setup() {
void loop() {
String switchStatus = (String)digitalRead(leftSwitch)+(String)digitalRead(rightSwitch);
View AVR Makefile
# From:
# generic AVR makefile
# (c) July 2011 - Manuel Odendahl -
# include this into your main Makefile, after having defined TARGET and TARGET_OBJS
all: $(TARGET).hex
View gist:3dd003f6570ae241afe8
root@raspberrypi:/home/pi/sources/nodejs-examples# npm install spi
> spi@0.2.0 install /home/pi/sources/nodejs-examples/node_modules/spi
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/sources/nodejs-examples/node_modules/spi/.node-gyp"
make: Entering directory '/home/pi/sources/nodejs-examples/node_modules/spi/build'
CXX(target) Release/
In file included from ../src/
You can’t perform that action at this time.