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.
View.h@2:891b3618be4f, 2015-05-01 (annotated)
- Committer:
- tyleralt
- Date:
- Fri May 01 10:12:55 2015 +0000
- Revision:
- 2:891b3618be4f
- Parent:
- 1:bb1507f0bb64
- Child:
- 5:d7d16cb9c974
working yo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tyleralt | 0:ded79d89abdf | 1 | #include "mbed.h" |
tyleralt | 0:ded79d89abdf | 2 | #include <vector> |
tyleralt | 0:ded79d89abdf | 3 | #define BUFFER_SIZE 16 |
tyleralt | 0:ded79d89abdf | 4 | #define NUMBER_OF_SLICES 360 |
tyleralt | 0:ded79d89abdf | 5 | #include "Point.h" |
tyleralt | 0:ded79d89abdf | 6 | #include "EuclidPoint.h" |
tyleralt | 2:891b3618be4f | 7 | #include "Block.h" |
tyleralt | 0:ded79d89abdf | 8 | |
tyleralt | 0:ded79d89abdf | 9 | class View { |
tyleralt | 0:ded79d89abdf | 10 | |
tyleralt | 0:ded79d89abdf | 11 | |
tyleralt | 0:ded79d89abdf | 12 | //Declare global vars |
tyleralt | 0:ded79d89abdf | 13 | char slice_data [360][16]; //[slice][specific led distance] (0 is closest) & with approppriate bit for each arm |
tyleralt | 0:ded79d89abdf | 14 | |
tyleralt | 0:ded79d89abdf | 15 | void pushData(char [16]); |
tyleralt | 0:ded79d89abdf | 16 | public : |
tyleralt | 0:ded79d89abdf | 17 | int current_slice; |
tyleralt | 0:ded79d89abdf | 18 | View(); |
tyleralt | 0:ded79d89abdf | 19 | void nextLedPush(void); |
tyleralt | 0:ded79d89abdf | 20 | void resetCount(void); |
tyleralt | 0:ded79d89abdf | 21 | void resetDisplay(void); |
tyleralt | 0:ded79d89abdf | 22 | void setCurrentSlice(int); |
tyleralt | 0:ded79d89abdf | 23 | void addPoint(Point); |
tyleralt | 0:ded79d89abdf | 24 | void addEucPoint(EuclidPoint); |
tyleralt | 1:bb1507f0bb64 | 25 | void addBlock(Block); |
tyleralt | 2:891b3618be4f | 26 | void drawSquare (int, int, int, int); |
tyleralt | 2:891b3618be4f | 27 | void drawLine(int, int, int, int); |
tyleralt | 2:891b3618be4f | 28 | void addValue(int, int, char); |
tyleralt | 0:ded79d89abdf | 29 | }; |