mirror of
https://github.com/Hopiu/rpi-rgb-led-matrix.git
synced 2026-03-16 22:10:27 +00:00
o Make sample section simpler to ignore with simple comment skipper.
This commit is contained in:
parent
8462ca7cd6
commit
e10f9f00fa
1 changed files with 11 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue