Search This Blog

Copyright - Technoreview85. Powered by Blogger.

How to make an AC power outlet timer using IC555

This is a complete step-by-step guide to making an electric timer plug. This timer Ac socket can turn on or off any Ac electrical appliance....

Back to Top

Recent Posts

Tuesday, December 10, 2019

LED blink using M5stack

  Avik Roy       Tuesday, December 10, 2019


It is a short article & code for LED blink .it is similar to Arduino led blink code. just you have to add two include the m5stack library.

Connect LED(+) to M5stack G21 & (-) to GND

#include <M5Stack.h>
/***
* LED Blinking

const int ledPin = 21;
void setup() {
// setup pin 5 as a digital output pin
pinMode (ledPin, OUTPUT);
}
void loop() {
digitalWrite (ledPin, HIGH); // turn on the LED
delay(500); // wait for half a second or 500 milliseconds
digitalWrite (ledPin, LOW); // turn off the LED
delay(500); // wait for half a second or 500 milliseconds
m5.update();
}





Here is the tutorial for programming m5stack using Arduino IDE

logoblog

Thanks for reading LED blink using M5stack

Previous
« Prev Post

No comments:

Post a Comment