GameCounter/Source/lib/ssd1306xled/num2str.h
Mark van Renswoude b20ce09a2c Initial commit
OLED worked, displaying large digits worked, reading VCC level worked, started refactoring. Does not currently build, but I'm too tired to figure it out right now.
2017-08-01 23:29:57 +02:00

42 lines
1.2 KiB
C

/**
* NUM2STR - Functions to handle the conversion of numeric vales to strings.
*
* @created 2014-12-18
* @author Neven Boyanov
* @version 2016-04-17 (last modified)
*
* This is part of the Tinusaur/TinyAVRLib project.
*
* Copyright (c) 2016 Neven Boyanov, Tinusaur Team. All Rights Reserved.
* Distributed as open source software under MIT License, see LICENSE.txt file.
* Please, as a favor, retain the link http://tinusaur.org to The Tinusaur Project.
*
* Source code available at: https://bitbucket.org/tinusaur/tinyavrlib
*
*/
// ============================================================================
#ifndef NUM2STR_H
#define NUM2STR_H
// ----------------------------------------------------------------------------
#include <stdint.h>
// ----------------------------------------------------------------------------
#define USINT2DECASCII_MAX_DIGITS 5
#define USINT2BINASCII_MAX_DIGITS 16
// ----------------------------------------------------------------------------
uint8_t usint2decascii(uint16_t, char *);
uint8_t usint2binascii(uint16_t, char *);
// ----------------------------------------------------------------------------
#endif
// ============================================================================