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
- Committer:
- tyleralt
- Date:
- 2015-08-17
- Revision:
- 5:d7d16cb9c974
- Parent:
- 2:891b3618be4f
File content as of revision 5:d7d16cb9c974:
#include "mbed.h" #include <vector> #define BUFFER_SIZE 16 #define NUMBER_OF_SLICES 360 #include "Point.h" #include "EuclidPoint.h" #include "Block.h" class View { //Declare global vars char slice_data [360][16]; //[slice][specific led distance] (0 is closest) & with approppriate bit for each arm void pushData(char [16]); public : int current_slice; View(); bool isAtPoint(int, int, int, int); void nextLedPush(void); void resetCount(void); void resetDisplay(void); void setCurrentSlice(int); void addPoint(Point); void addFilledEucPoint(EuclidPoint); void addEucPoint(EuclidPoint); void addBlock(Block); void drawSquare (int, int, int, int); void drawLine(int, int, int, int); void addValue(int, int, char); };