ok

Dependents:   pixy2 pixy2_10_0042 0000Non_stop_code_v1 0000Non_stop_code_v3 ... more

Fork of pixy by Arcadie Cracan

PixyLink.h

Committer:
pirottealex
Date:
2018-02-08
Revision:
2:4bc00ec184a8
Parent:
0:ed8dc4531ac1

File content as of revision 2:4bc00ec184a8:

#ifndef TUIASI_PIXYLINK_H
#define TUIASI_PIXYLINK_H

#include "stdint.h"

class PixyLink
{
public:
    PixyLink() { m_addr = 0; };
    PixyLink(uint8_t addr) : m_addr(addr) {};
    void setAddress(uint8_t addr) {
        m_addr = addr;
    };
    virtual uint16_t getWord() = 0;
    virtual uint8_t getByte() = 0;
    virtual int8_t send(uint8_t *data, uint8_t len) = 0;
protected:
    uint8_t m_addr;
};

#endif //TUIASI_PIXYLINK_H