LBRY Block Explorer

LBRY Claims • let's-look-at-the-tilt-switch-on-arduino

036c11775a4f9677a33c876b2eaa5bf6c07e6b79

Published By
Created On
25 Jul 2021 23:34:26 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
Let's look at the Tilt switch on Arduino
This video is about how to use the Tilt switch on Arduino. #Arduinio #arduinouno #robotics #programming.
You can Visit us at: www.wizardofwestla.com
Facebook: @wizardofwestla
Here is the code you can also copy and paste:
const int ledPin = 13;

void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
pinMode(2, INPUT);
digitalWrite(2, HIGH);
}

void loop() {
// put your main code here, to run repeatedly:
int digitalVal = digitalRead(2);
if (HIGH == digitalVal)
{
digitalWrite(ledPin, LOW); // turn off the LED
}
else
{
digitalWrite(ledPin, HIGH); // turn on the LED
}
}
...
https://www.youtube.com/watch?v=MLGq4O9KbCA
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
USING
Controlling
VIDEO
COMMU
Controlling
VIDEO
CHATG
Controlling
VIDEO
PYTHO
Controlling
VIDEO
ADOBE
Controlling
VIDEO
PLANS
Controlling
VIDEO
WELCO
Controlling
VIDEO
USING
Controlling
VIDEO
HOW T