Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
drawNumber.c File Reference
#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...
 

Function Documentation

◆ drawNumber()

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.

Parameters
devPointer to the display's device structure returned by the initialization function.
dNumber to be printed to the screen. The number can be either a floating point decimal or an integer.
rThe 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".