Ryan Yuyuenyongwatana / capstone_display_2

Dependencies:   TFTLCD

Dependents:   Capstone

Fork of capstone_display by James Moffat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers display.h Source File

display.h

00001 #include "st7735.h"
00002 
00003 class display
00004 {
00005     ST7735_LCD *lcd;
00006     char *debugstr;
00007     char *strength;
00008     char *dist;
00009     
00010     public:
00011     
00012     display(ST7735_LCD *disp);
00013     
00014     /**
00015     *Debug print that prints text in center of screen.
00016     *Will overwrite old text.
00017     */
00018     void print(char *str);
00019     /**
00020     *Displays a calibration screen, prompting user to place beacon certain distance, and press the button. str is the distance displayed on screen.
00021     */
00022     void calibrationdist(char *str);
00023     /**
00024     *Displays a calbration screen, prompting the user to turn the beacon off and press the button
00025     */
00026     void calibrationunl(void);
00027     /**
00028     *Test function that prints a string repeatedly in a rainbow fashion.
00029     */
00030     void printrb(const char *str);
00031     /**
00032     *Debug function that blinks text.
00033     */
00034     void blinktext(const char *str);
00035     
00036     /**
00037     *Displays the the strength on the screen, on the first line.
00038     *newStrength is the number in the form of a string, with units as
00039     *desired. Prints in format "Strength:newStrength". Will overwrite old
00040     *value automatically.
00041     */
00042     void displayStr(char *newStrength);
00043     
00044     /**
00045     *Works identically to displayStrength, but on second line with distance.
00046     *Prints in format "Dist:newDist". Units must be in string as desired.
00047     *Will overwrite old value automatically.
00048     */
00049     void displayDist(char * newDist);
00050     void clearscreen(void);
00051 };