Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Erutan409/Arduino-Relay-Library

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Relay Library

A way to simplify controlling a relay module board.

Example:

#include <Relay.h>
    
#define relayOne 2 // the actual pin number
    
Relay relay(relayOne);
    
void setup()
{
    // prevent toggling more than once every 500 microseconds
    relay.setSafety(500);
}
    
void loop()
{
    // toggle every half second while not interrupting entire program
    relay.toggle();
}

RelayConfig.h

The safety machinsm can be disabled by setting RELAY_SAFETY to false in the aforementioned configuration file. This will also use less memory for the compiled application.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.