This file contains hidden or 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 <MD_Parola.h> | |
| #include <MD_MAX72xx.h> | |
| #include <SPI.h> | |
| #define HARDWARE_TYPE MD_MAX72XX::FC16_HW | |
| #define MAX_DEVICES 4 | |
| #define CLK_PIN 13 | |
| #define DATA_PIN 11 | |
| #define CS_PIN 10 | |
| #define scrollSpeed 70 // scroll speed |
This file contains hidden or 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 <LiquidCrystal_I2C.h> | |
| LiquidCrystal_I2C lcd(0x27, 20, 2); | |
| #include <Keypad.h> | |
| #include <Servo.h> | |
| Servo myservo; | |
| #define Password_Lenght 7 // Give enough room for six chars + NULL char |
This file contains hidden or 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
| const int tiltPin = 2; | |
| const int redLed = 11; | |
| const int greenLed = 10; | |
| const int blueLed = 9; | |
| int tiltState; | |
| int count = 0; | |
| void setup() { | |
| pinMode(redLed, OUTPUT); |
This file contains hidden or 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> // Include the Servo library | |
| #define SERVO 3 | |
| #define TRIGPIN 12 | |
| #define ECHOPIN 11 | |
| #define PIEZO 8 | |
| Servo myServo; // Create a servo object | |
| int val = 0; | |
| long duration; | |
| long distance; |
This file contains hidden or 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> | |
| Servo Servo_X; | |
| Servo Servo_Y; | |
| Servo Servo_Grip; | |
| #define Joy_X A0 | |
| #define Joy_Y A1 | |
| #define BUTTON 2 |
This file contains hidden or 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 <LiquidCrystal_I2C.h> | |
| LiquidCrystal_I2C lcd(0x27, 20, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display | |
| #define PIEZO 8 | |
| #define WIRE 9 | |
| #define FINISH 10 | |
| #define NOTE_C5 523 | |
| #define NOTE_D5 587 | |
| #define NOTE_E5 659 |
This file contains hidden or 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
| #define TRIGPIN1 2 | |
| #define ECHOPIN1 3 | |
| #define TRIGPIN2 5 | |
| #define ECHOPIN2 6 | |
| #define PIEZO 8 | |
| // defines variables | |
| long Duration1; | |
| int Distance1; | |
| long Duration2; |
This file contains hidden or 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
| #define BUTTON 2 // the number of the pushbutton pin | |
| #define RELAY 3 // the number of the relay pin | |
| // variables will change: | |
| int buttonState = 0; // variable for reading the pushbutton status | |
| void setup() { | |
| // initialize the LED pin as an output: | |
| pinMode(RELAY, OUTPUT); | |
| // initialize the pushbutton pin as an input: |
This file contains hidden or 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
| /* | |
| -------------------------------------------------------------------------------------------------------------------- | |
| Example sketch/program showing how to read data from a PICC to serial. | |
| -------------------------------------------------------------------------------------------------------------------- | |
| Typical pin layout used: | |
| ----------------------------------------------------------------------------------------- | |
| MFRC522 Arduino Arduino Arduino Arduino Arduino | |
| Reader/PCD Uno/101 Mega Nano v3 Leonardo/Micro Pro Micro | |
| Signal Pin Pin Pin Pin Pin Pin | |
| ----------------------------------------------------------------------------------------- |
This file contains hidden or 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
| /************************************************************* | |
| Control multiple servo using a Blynk App! | |
| App project setup: | |
| *************************************************************/ | |
| /* Comment this out to disable prints and save space */ | |
| #define BLYNK_PRINT Serial | |
| #include <ESP8266_Lib.h> |