X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Fcharts.h;h=eb3eea0709d70ae7c5efd8f7aa88bc1df59f775e;hb=f36134e30c09664483d32bdd66b4802a70c2936c;hp=4dad1cecd8e0724ab223842669141552813c3705;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/gfx/charts.h b/bertos/gfx/charts.h index 4dad1cec..eb3eea07 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,8 +37,18 @@ * - \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 * - * \version $Id$ - * \author Bernardo Innocenti + * 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 + * \author Bernie Innocenti */ #ifndef GFX_CHARTS_H