| -12345 | "-**.**"
* @param n signed 32-bit integer part of fixed-point number
* @return none
* @brief fixed point output resolution 0.01
* @note send exactly 6 characters to the LCD
*/
void ST7735_sDecOut2(int32_t n);
/**
* unsigned 32-bit binary fixed-point with a resolution of 1/64.
* The full-scale range is from 0 to 999.99.
* If the integer part is larger than 63999, it signifies an error.
* The ST7735_uBinOut6 function takes an unsigned 32-bit integer part
* of the binary fixed-point number and outputs the fixed-point value on the LCD
ST7735_uBinOut6
| Parameter | LCD display
|
|---|
| 0 | " 0.00"
| | 1 | " 0.01"
| | 16 | " 0.25"
| | 25 | " 0.39"
| | 125 | " 1.95"
| | 128 | " 2.00"
| | 1250 | " 19.53"
| | 7500 | "117.19"
| | 63999 | "999.99"
| | 64000 | "***.**"
|
* @param n unsigned 32-bit integer part of binary fixed-point number
* @return none
* @brief fixed point output resolution 1/64
* @note send exactly 6 characters to the LCD
*/
void ST7735_uBinOut6(uint32_t n);
/**
* Specify the X and Y axes for an x-y scatter plot
* Draw the title and clear the plot area
* @param title ASCII string to label the plot, null-termination
* @param minX smallest X data value allowed, resolution= 0.001
* @param maxX largest X data value allowed, resolution= 0.001
* @param minY smallest Y data value allowed, resolution= 0.001
* @param maxY largest Y data value allowed, resolution= 0.001
* @return none
* @note assumes minX < maxX, and miny < maxY
* @brief initialize XY plot
*/
void ST7735_XYplotInit(char *title, int32_t minX, int32_t maxX, int32_t minY, int32_t maxY);
/**
* Plot an array of (x,y) data, neglect any points outside the minX maxY minY maxY bounds
* @param num number of data points in the two arrays
* @param bufX array of 32-bit fixed-point data, resolution= 0.001
* @param bufY array of 32-bit fixed-point data, resolution= 0.001
* @return none
* @note assumes ST7735_XYplotInit has been previously called
* @brief XY plot
*/
void ST7735_XYplot(uint32_t num, int32_t bufX[], int32_t bufY[]);
/**
* Draws one line on the ST7735 color LCD
* - (x1,y1) is the start point
* - (x2,y2) is the end point
* - x1 x2 must be less than 128, 0 is on the left, 126 is near the right
* - y1 y2 must be less than 160, 159 is near the wires, 0 is the side opposite the wires
*
* @param x1 horizonal position
* @param x2 horizonal position
* @param y1 vertical position
* @param y2 vertical position
* @param color 16-bit color, which can be produced by ST7735_Color565()
* @return none
* @brief Draws line
*/
void ST7735_Line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,
uint16_t color);
/**
* Used in all the plots to change the X coordinate to new location
* X exists in the range from 0 to 127,
* Input values less than 0 get changed to 0,
* Input values greater than 127 get changed to 127
* It does not output to display
* @param newX is the new value that the global X will be
* @return none
* @brief set X-position
*/
void ST7735_SetX(int32_t newX);
//------------ST7735_Message------------
// String draw and number output.
// Input: device 0 is on top, 1 is on bottom
// line row from top, 0 to 7 for each device
// pt pointer to a null terminated string to be printed
// value signed integer to be printed
void ST7735_Message(uint32_t d, uint32_t l, char *pt, int32_t value);
#endif
/** @}*/
|