Joshua Brown
/
TactileMouse
First revision of tactile mouse code
tactile_display.hpp@0:f254a3cfe0f6, 2019-04-08 (annotated)
- Committer:
- JPB515
- Date:
- Mon Apr 08 16:57:36 2019 +0000
- Revision:
- 0:f254a3cfe0f6
First publish of tactile mouse code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JPB515 | 0:f254a3cfe0f6 | 1 | #ifndef TACTILE_DISPLAY_HPP |
JPB515 | 0:f254a3cfe0f6 | 2 | #define TACTILE_DISPLAY_HPP |
JPB515 | 0:f254a3cfe0f6 | 3 | |
JPB515 | 0:f254a3cfe0f6 | 4 | #include "mbed.h" |
JPB515 | 0:f254a3cfe0f6 | 5 | #include "taxel.hpp" |
JPB515 | 0:f254a3cfe0f6 | 6 | |
JPB515 | 0:f254a3cfe0f6 | 7 | #include <vector> |
JPB515 | 0:f254a3cfe0f6 | 8 | |
JPB515 | 0:f254a3cfe0f6 | 9 | class tactileDisplay{ |
JPB515 | 0:f254a3cfe0f6 | 10 | public: |
JPB515 | 0:f254a3cfe0f6 | 11 | tactileDisplay(); |
JPB515 | 0:f254a3cfe0f6 | 12 | tactileDisplay(int x, int y); |
JPB515 | 0:f254a3cfe0f6 | 13 | tactileDisplay(int x, int y, int max); |
JPB515 | 0:f254a3cfe0f6 | 14 | ~tactileDisplay(); |
JPB515 | 0:f254a3cfe0f6 | 15 | void zero(); |
JPB515 | 0:f254a3cfe0f6 | 16 | int coordtoidx(int x, int y); |
JPB515 | 0:f254a3cfe0f6 | 17 | void setTaxel(int x, int y, int steps); |
JPB515 | 0:f254a3cfe0f6 | 18 | void stepDisplay(); |
JPB515 | 0:f254a3cfe0f6 | 19 | |
JPB515 | 0:f254a3cfe0f6 | 20 | private: |
JPB515 | 0:f254a3cfe0f6 | 21 | int xSize; |
JPB515 | 0:f254a3cfe0f6 | 22 | int ySize; |
JPB515 | 0:f254a3cfe0f6 | 23 | int size; |
JPB515 | 0:f254a3cfe0f6 | 24 | int maxActive; |
JPB515 | 0:f254a3cfe0f6 | 25 | vector<taxel*> taxels; |
JPB515 | 0:f254a3cfe0f6 | 26 | }; |
JPB515 | 0:f254a3cfe0f6 | 27 | |
JPB515 | 0:f254a3cfe0f6 | 28 | #endif |