51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
|
/*****************************************************************************
|
||
|
|
||
|
source::worx libPiGPio
|
||
|
Copyright © 2022 c.holzheuer
|
||
|
chris@sourceworx.org
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 2 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
Uses:
|
||
|
|
||
|
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
|
||
|
https://abyz.me.uk/rpi/pigpio
|
||
|
|
||
|
sigslot by 2017 Pierre-Antoine Lacaze
|
||
|
https://github.com/palacaze/sigslot
|
||
|
|
||
|
***************************************************************************/
|
||
|
|
||
|
|
||
|
#ifndef PIGLED_H
|
||
|
#define PIGLED_H
|
||
|
|
||
|
#include <pignodeout.h>
|
||
|
#include <pigstate.h>
|
||
|
|
||
|
/**
|
||
|
* @brief The pigBeeper class
|
||
|
* ein __passiver__ Beeper, muss per PWM angesteuert
|
||
|
* werden.
|
||
|
*/
|
||
|
|
||
|
|
||
|
class LIBPIGPIO_EXPORT pigLED : public pigNodeOut
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
explicit pigLED( pigpio::bcm_t bcmNo );
|
||
|
virtual ~pigLED();
|
||
|
|
||
|
void blink( int millisOn, int millisOff = 0 );
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
#endif // PIGLED_H
|