fix cp437 prefix, fix example
This commit is contained in:
parent
514c0304b8
commit
8296773779
3 changed files with 29 additions and 29 deletions
|
@ -12,7 +12,7 @@ void enable_all_pixels(void) {
|
|||
}
|
||||
|
||||
void make_brightness_pattern(BrightnessGrid *grid) {
|
||||
ByteSlice slice = sp_brightness_grid_unsafe_data_ref(grid);
|
||||
ByteSlice slice = sp_brightness_grid_data_ref_mut(grid);
|
||||
for (size_t index = 0; index < slice.length; index++) {
|
||||
slice.start[index] = (uint8_t)(index % ((size_t) Brightness_MAX));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue