Skip to content

Instantly share code, notes, and snippets.

View EDISON-SCIENCE-CORNER's full-sized avatar
🏠
Working from home

RAJESH K T EDISON-SCIENCE-CORNER

🏠
Working from home
View GitHub Profile
//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
//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;
// www.edisonsciencecorner.blogspot.com
//define Pin
#include <Servo.h>
Servo servo;
/*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);
}
// ----------------------------------------------------------------- //
// -------------www.edisonsciencecorner.blogspot.com----------- //
// --------------------------------------------------------------- //
#include "LedControl.h"
struct Pin {
//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;
//www.ediosnsciencecorner.blogspot.com
//www.ediosnsciencecorner.blogspot.com
//www.ediosnsciencecorner.blogspot.com
#include <LedControl.h>
#include <Wire.h>
#include <NTPClient.h>
#include <ESP8266WiFi.h>
//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>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
//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;