Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int outPin = 8; // digital pin 8
void setup()
{
pinMode(outPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(outPin, HIGH); // sets the pin on
delayMicroseconds(44); // pauses for 44 microseconds
digitalWrite(outPin, LOW); // sets the pin off
delayMicroseconds(44); // pauses for 44 microseconds
Toggle the output pin every 44 us using timer.
Who mentioned 44 ms? I mentioned 44 us.