X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Fcharts.h;h=eb3eea0709d70ae7c5efd8f7aa88bc1df59f775e;hb=3a9f71a83372f6e3d66ad64fd7ad5524940eec70;hp=735f8b7fb7c7007a88ff29ba1142401bef6e83de;hpb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;p=bertos.git diff --git a/bertos/gfx/charts.h b/bertos/gfx/charts.h index 735f8b7f..eb3eea07 100644 --- a/bertos/gfx/charts.h +++ b/bertos/gfx/charts.h @@ -37,7 +37,17 @@ * - \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$ + * 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 */