Skip to content

Instantly share code, notes, and snippets.

@rgonzalez
rgonzalez / ino
Created January 9, 2017 11:59
Programing ears arduino
#include <Servo.h> // Incluir la librería Servo
#include <Keypad.h>
Servo servoA1; // Crear un objeto tipo Servo llamado servo1
Servo servoA2;
Servo servoB1; // Crear un objeto tipo Servo llamado servo1
Servo servoB2;
char last_key=NO_KEY;
const byte ROWS = 4; // Four rows
@rgonzalez
rgonzalez / gist:8d7aff6d56b4d09ce5d26508f2be391a
Created August 16, 2016 19:40
Zero helmet cosplay code (max7219 matrix)
#include "LedControl.h" // need the library
#include <Keypad.h>
int maxLeds = 6;
LedControl lc = LedControl(12, 11, 10, maxLeds); //
// pin 13 is connected to the MAX7219 pin 1
// pin 12 is connected to the CLK pin 13
// pin 11 is connected to LOAD pin 12
// 1 as we are only using 1 MAX7219