Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PixyLink.h
- Committer:
- ZHAW_Prometheus
- Date:
- 2017-05-17
- Revision:
- 2:c3a866b20784
- Parent:
- 0:a2603d7fa0ac
File content as of revision 2:c3a866b20784:
#ifndef PIXYLINK_H #define 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 //PIXYLINK_H