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
Diff: PixyLink.h
- Revision:
- 0:ed8dc4531ac1
diff -r 000000000000 -r ed8dc4531ac1 PixyLink.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PixyLink.h Sun Nov 16 11:52:55 2014 +0000
@@ -0,0 +1,21 @@
+#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
\ No newline at end of file
