Lines Matching +full:0 +full:- +full:1
4 * SPDX-License-Identifier: Apache-2.0
13 static struct mb_image smiley = MB_IMAGE({ 0, 1, 0, 1, 0 },
14 { 0, 1, 0, 1, 0 },
15 { 0, 0, 0, 0, 0 },
16 { 1, 0, 0, 0, 1 },
17 { 0, 1, 1, 1, 0 });
20 MB_IMAGE({ 1, 0, 0, 0, 0 },
21 { 1, 0, 0, 0, 1 },
22 { 1, 0, 0, 1, 0 },
23 { 1, 0, 1, 0, 0 },
24 { 1, 1, 0, 0, 0 }),
25 MB_IMAGE({ 1, 0, 0, 0, 0 },
26 { 0, 1, 0, 0, 0 },
27 { 0, 0, 1, 0, 0 },
28 { 0, 0, 0, 1, 0 },
29 { 0, 0, 0, 0, 1 }),
30 MB_IMAGE({ 0, 0, 0, 0, 1 },
31 { 0, 0, 1, 0, 1 },
32 { 0, 1, 0, 1, 1 },
33 { 1, 0, 0, 0, 1 },
34 { 0, 0, 0, 0, 1 }),
38 MB_IMAGE({ 0, 0, 0, 0, 0 },
39 { 0, 0, 0, 0, 0 },
40 { 0, 0, 1, 0, 0 },
41 { 0, 0, 0, 0, 0 },
42 { 0, 0, 0, 0, 0 }),
43 MB_IMAGE({ 0, 0, 0, 0, 0 },
44 { 0, 1, 1, 1, 0 },
45 { 0, 1, 1, 1, 0 },
46 { 0, 1, 1, 1, 0 },
47 { 0, 0, 0, 0, 0 }),
48 MB_IMAGE({ 1, 1, 1, 1, 1 },
49 { 1, 1, 1, 1, 1 },
50 { 1, 1, 0, 1, 1 },
51 { 1, 1, 1, 1, 1 },
52 { 1, 1, 1, 1, 1 }),
53 MB_IMAGE({ 1, 1, 1, 1, 1 },
54 { 1, 0, 0, 0, 1 },
55 { 1, 0, 0, 0, 1 },
56 { 1, 0, 0, 0, 1 },
57 { 1, 1, 1, 1, 1 }),
72 /* Display countdown from '9' to '0' */ in main()
74 1 * MSEC_PER_SEC, "9876543210"); in main()
77 /* Iterate through all pixels one-by-one */ in main()
78 for (y = 0; y < 5; y++) { in main()
79 for (x = 0; x < 5; x++) { in main()
83 &pixel, 1); in main()
88 /* Show a smiley-face */ in main()
90 &smiley, 1); in main()
94 mb_display_image(disp, MB_DISPLAY_MODE_SCROLL, 1 * MSEC_PER_SEC, in main()
106 return 0; in main()