From e10f9f00fa7fdbe3399450786f938d822fa96242 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 14 Sep 2016 09:47:44 -0700 Subject: [PATCH] o Make sample section simpler to ignore with simple comment skipper. --- include/led-matrix-c.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/include/led-matrix-c.h b/include/led-matrix-c.h index fd17365..b7c74ba 100644 --- a/include/led-matrix-c.h +++ b/include/led-matrix-c.h @@ -110,15 +110,17 @@ struct RGBLedMatrixOptions { * The arguments that have been used from the command line are removed from * * Usage: - int main(int argc, char **argv) { - struct RGBLedMatrixOptions options; - memset(&options, 0, sizeof(options)); - options.rows = 32; - options.chain_length = 1; - RGBLedMatrix *matrix = led_matrix_create_from_options(&options, - &argc, &argv); - // do additional commandline handling; then use matrix... - } + * ---------------- + * int main(int argc, char **argv) { + * struct RGBLedMatrixOptions options; + * memset(&options, 0, sizeof(options)); + * options.rows = 32; + * options.chain_length = 1; + * RGBLedMatrix *matrix = led_matrix_create_from_options(&options, + * &argc, &argv); + * // do additional commandline handling; then use matrix... + * } + * ---------------- */ struct RGBLedMatrix *led_matrix_create_from_options( struct RGBLedMatrixOptions *options, int *argc, char ***argv);