#include "grbl.h"
Go to the source code of this file.
Functions | |
void | printString (const char *s) |
void | printPgmString (const char *s) |
Print a string stored in PGM-memory. More... | |
void | print_uint8_base10 (uint8_t n) |
void printIntegerInBase(unsigned long n, unsigned long base) More... | |
void | print_uint8_base2_ndigit (uint8_t n, uint8_t digits) |
Prints an uint8 variable in base 2 with desired number of desired digits. More... | |
void | print_uint32_base10 (uint32_t n) |
void | printInteger (long n) |
void | printFloat (float n, uint8_t decimal_places) |
Convert float to string by immediately converting to a long integer, which contains. More... | |
void | printFloat_CoordValue (float n) |
Floating value printing handlers for special variables types used in Grbl and are defined. More... | |
void | printFloat_RateValue (float n) |
void print_uint8_base10 | ( | uint8_t | n | ) |
void print_uint8_base2_ndigit | ( | uint8_t | n, |
uint8_t | digits | ||
) |
void printFloat | ( | float | n, |
uint8_t | decimal_places | ||
) |
Convert float to string by immediately converting to a long integer, which contains.
NOTE: AVR '' and '/' integer operations are very efficient. Bitshifting speed-up
< Quickly convert values expected to be E0 to E-4.
< Add rounding factor. Ensures carryover through entire value.
< Get digit
< Fill in zeros to decimal point for (n < 1)
< Fill in leading zero, if needed.
void printFloat_CoordValue | ( | float | n | ) |
void printPgmString | ( | const char * | s | ) |