PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Display
liboledc
oledc_print.c
1
/*
2
* @file oledc_print.c
3
*
4
* @author Matthew Matz
5
*
6
* @version 0.9
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2016. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief 0.96-inch RGB OLED display bitmap driver, see oledc_h. for documentation.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
18
#include "oledc.h"
19
#include "
simpletext.h
"
20
21
int
oledc_print(
const
char
*fmt, ...)
22
{
23
char
buf[128];
24
va_list args;
25
int
r;
26
va_start(args, fmt);
27
r = _dosprnt(fmt, args, buf);
28
va_end(args);
29
//putStr(buf);
30
int
len;
31
len = strlen(buf);
32
for
(
int
sc = 0; sc < len; sc++)
33
{
34
oledc_write(buf[sc]);
35
}
36
//string(buf);
37
return
r;
38
}
39
simpletext.h
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17