This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |