Small bitmap-library to use with monocrome displays.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TinyHelper.h Source File

TinyHelper.h

00001 // ------------- MIT-LICENCE -------------
00002 //
00003 //Copyright 2017 Theo Bestenlehner
00004 //
00005 //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the 
00006 //Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 
00007 //and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
00008 //
00009 //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
00010 //
00011 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
00012 //PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
00013 //OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00014 
00015 
00016 #ifndef TINYHELPER_H_
00017 #define TINYHELPER_H_
00018 //Helper-functions to convert an int to a displayable char[]
00019 
00020 void IntToChar(char *CharBuffer, int Number); //Only works for positive numbers
00021 
00022 void IntToChar(char *CharBuffer, int Number, char Digits); //Only works for positive numbers, adds leading 0s to numbers
00023 
00024 void CombineChars(char *Destination, char *Source); //Combines two char[]
00025 
00026 #endif