o Make sample section simpler to ignore with simple comment skipper.

This commit is contained in:
Henner Zeller 2016-09-14 09:47:44 -07:00
parent 8462ca7cd6
commit e10f9f00fa

View file

@ -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);