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.
Dependents: pixy2 pixy2_10_0042 0000Non_stop_code_v1 0000Non_stop_code_v3 ... more
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 Tue Jul 12 2022 15:51:01 by
1.7.2
