Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

digitalOutput Class library for Arduino
Author:  Fabio Durigon develop@dury.it


Description

English

This is a class for Arduino

With this class You can handle a digital output pin with futures:

  • Changing state using '=' operator
  • Quick toggle Status
  • Store and Read current status (also with '==' operator)

This library is provide with doxygen documentation (in italian).

Italiano

Classe per Arduino

Permette di gestire più facilmente un output pin con queste funzionalità:

  • Cambio di stato usando l'operatore '='
  • Cambio veloce di stato con la funziona Toggle()
  • Memorizza lo stato corrente.
  • Leggere lo stato con l'operatore '=='

La classe contiene la documentazione in formato doxygen


Download, install and import

Download here: arduino_lib_digitalOutput.rar

Include doxygen compiled help in html format

Put the library folder in "hardware\libraries\".
In the Arduino IDE, create a new sketch (or open one) and select from the menubar "Sketch->Import Library->digitalOutput".
Once the library is imported, an "#include <digitalOutput.h>" line will appear at the top of your Sketch.


Usage Example

// Lampeggia il led collegato al pin 13
digitalOutput led(13,LOW); // Led Pin, stato iniziale LOW
void setup()
{
        Serial.begin(9600);
}

void loop()
{
        led.Toggle();
        delay(1000);
        Serial.print("Stato cambiato in ");
        Serial.println(led);
}