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.
Fork of pixy by
PixyLink.h
00001 #ifndef TUIASI_PIXYLINK_H 00002 #define TUIASI_PIXYLINK_H 00003 00004 #include "stdint.h" 00005 00006 class PixyLink 00007 { 00008 public: 00009 PixyLink() { m_addr = 0; }; 00010 PixyLink(uint8_t addr) : m_addr(addr) {}; 00011 void setAddress(uint8_t addr) { 00012 m_addr = addr; 00013 }; 00014 virtual uint16_t getWord() = 0; 00015 virtual uint8_t getByte() = 0; 00016 virtual int8_t send(uint8_t *data, uint8_t len) = 0; 00017 protected: 00018 uint8_t m_addr; 00019 }; 00020 00021 #endif //TUIASI_PIXYLINK_H
Generated on Fri Jul 22 2022 19:10:53 by
