/*****************************************************************************

    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 PIGI2CNODE_H
#define PIGI2CNODE_H


#include <libpigpio.h>
#include <pignode.h>
#include <pigi2c.h>


class LIBPIGPIO_EXPORT pigI2CNode : public pigNode
{

public:

    pigI2CNode() = default;
    pigI2CNode( i2c_addr_t aaddr, i2c_bus_t abus );
    virtual ~pigI2CNode() = default;

    void init( i2c_addr_t aaddr, i2c_bus_t abus );


protected:

    pigI2C _i2c;

};


#endif // PIGI2CNODE_H


