fix cp437 prefix, fix example

This commit is contained in:
Vinzenz Schroeter 2025-06-17 22:21:11 +02:00
parent 514c0304b8
commit 8296773779
3 changed files with 29 additions and 29 deletions

View file

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