X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Fcharts.h;h=8b4e345849b522fd186be3dd76da1ab392b86305;hb=c34de402cec6fda7bf4474f32fed5e5c02cd7e7e;hp=ecc7f309be69218830c7e1621462e5e6bb11932b;hpb=11da44352fcd4d33b173c976db45293ac1a87cca;p=bertos.git diff --git a/bertos/gfx/charts.h b/bertos/gfx/charts.h index ecc7f309..8b4e3458 100644 --- a/bertos/gfx/charts.h +++ b/bertos/gfx/charts.h @@ -27,7 +27,7 @@ * the GNU General Public License. * * Copyright 2004 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999, 2000, 2001, 2003 Bernardo Innocenti + * Copyright 1999, 2000, 2001, 2003 Bernie Innocenti * * --> * @@ -37,14 +37,25 @@ * - \c CONFIG_CHART_TYPE_X: type for the input dataset of X-coordinates * - \c CONFIG_CHART_TYPE_Y: type for the input dataset of Y-coordinates * + * Sample usage: + * + * \code + * bm = chart_init(0, ymax, N_POINTS_CURVE, ymin); + * + * chart_drawCurve(bm, curve_y, curve_points + 1); + * gfx_setViewRect(bm, xmin, ymax, xmax, ymin); + * chart_drawDots(bm, samples_x, samples_y, samples_cnt); + * + * print_bitmap(bm); + * \endcode * \version $Id$ - * \author Bernardo Innocenti + * \author Bernie Innocenti */ #ifndef GFX_CHARTS_H #define GFX_CHARTS_H -#include /* CONFIG_ stuff */ +#include "cfg/cfg_gfx.h" /* CONFIG_ stuff */ #include /* vcoord_t */