![]() |
Display Simple Graphics library
v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
|
#include "simplegfx.h"
Functions | |
void | drawNumber (screen_t *dev, float d, int r) |
Prints a number to the screen starting at the cursor position. Output is limited to 64 bytes. More... | |
void drawNumber | ( | screen_t * | dev, |
float | d, | ||
int | r | ||
) |
Prints a number to the screen starting at the cursor position. Output is limited to 64 bytes.
dev | Pointer to the display's device structure returned by the initialization function. |
d | Number to be printed to the screen. The number can be either a floating point decimal or an integer. |
r | The number base to display the number in (for integers); HEX, BIN, OCT, and DEC are acceptable values. or the number of decimals to display following the decimal point (for floating point numbers). Negative numbers in bases other than DEC will display "Err". |