Skip to content

Arduino Library for output pin. It is easy to use with multiple output pins to control multiple LED, relay

Notifications You must be signed in to change notification settings

simonthechipmunk/output

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Output Library for Arduino - ezOutput

This library is designed for Arduino, ESP32, ESP8266... to control the states of digital output pins (HIGH, LOW, TOGGLE, PULSE, BLINK_WITHOUT_DELAY). It is easy to use with multiple output pins to control multiple LED, relay... It is designed for not only beginners but also experienced users. The digitalWrite and pinMode functions can be overwritten to use ezOutput on top of other libraries like Shifty.

ezOutput stands for easy output, which mean that the library is easy to use.

Features

  • Support HIGH, LOW, PULSE and TOGGLE
  • Support get state of output pin
  • Supports blink without delay
  • Functions for digitalWrite and pinMode are overwritable
  • All functions are non-blocking
  • Easy to use with multiple output pins
  • Support time offset in blink multiple output pins

Available Functions

  • ezOutput(int pin)
  • ezOutput(int pin, void (*funptr_digitalWrite)(uint8_t, uint8_t), void (*funptr_pinMode)(uint8_t, uint8_t) = nullptr)
  • void high(void)
  • void low(void)
  • void toggle(void)
  • void toggle(unsigned long delayTime)
  • void pulse(unsigned long pulseTime)
  • void pulse(unsigned long pulseTime, unsigned long delayTime)
  • void blink(unsigned long lowTime, unsigned long highTime)
  • void blink(unsigned long lowTime, unsigned long highTime, unsigned long delayTime)
  • void blink(unsigned long lowTime, unsigned long highTime, unsigned long delayTime, long blinkTimes)
  • int getState(void)
  • void loop(void)

Available Examples

How To Install the Library

References

About

Arduino Library for output pin. It is easy to use with multiple output pins to control multiple LED, relay

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%