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
| //https://edisonsciencecorner.blogspot.com/2020/06/blog-post_18.html | |
| //https://edisonsciencecorner.blogspot.com/2020/06/blog-post_18.html | |
| //https://edisonsciencecorner.blogspot.com/2020/06/blog-post_18.html | |
| //code credits makezine.com | |
| byte TP = 0b10101010; // Every other port receives the inverted signal | |
| void setup() { | |
| DDRC = 0b11111111; // Set all analog ports to be outputs | |
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
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| const int trig = A4; | |
| const int echo = A5; | |
| const int leftForward = 2; | |
| const int leftBackward = 3; |
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
| // www.edisonsciencecorner.blogspot.com | |
| //define Pin | |
| #include <Servo.h> | |
| Servo servo; | |
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
| /*www.edisonsciencecorner.blogspot.com*/ | |
| int ledpins[] = {2,3,4,5}; | |
| int groundpins[] = {6,7}; | |
| void setup () | |
| { | |
| for(int i = 0; i < 4; i++) | |
| { | |
| pinMode(ledpins[i],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
| // ----------------------------------------------------------------- // | |
| // -------------www.edisonsciencecorner.blogspot.com----------- // | |
| // --------------------------------------------------------------- // | |
| #include "LedControl.h" | |
| struct 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
| //https://edisonsciencecorner.blogspot.com/ | |
| //https://edisonsciencecorner.blogspot.com/ | |
| //https://edisonsciencecorner.blogspot.com/ | |
| int m1a = 2; | |
| int m1b = 3; | |
| int m2a = 4; | |
| int m2b = 5; | |
| char val; |
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
| //www.ediosnsciencecorner.blogspot.com | |
| //www.ediosnsciencecorner.blogspot.com | |
| //www.ediosnsciencecorner.blogspot.com | |
| #include <LedControl.h> | |
| #include <Wire.h> | |
| #include <NTPClient.h> | |
| #include <ESP8266WiFi.h> |
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
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| #include <MD_MAX72xx.h> | |
| #include <SPI.h> | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WiFiMulti.h> | |
| #include <ESP8266HTTPClient.h> |
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
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| //www.edisonsciencecorner.blogspot.com | |
| #include <LiquidCrystal_I2C.h> | |
| LiquidCrystal_I2C lcd(0x27, 2, 16); | |
| const int Up_buttonPin = 2; // the pin that the pushbutton is attached to | |
| const int Down_buttonPin = 3; | |