Skip to content

Commit 7f2b77d

Browse files
committed
fix: classroom, new ulx3s revision needs half speed on OLED (for 'some reason')
1 parent 751cd31 commit 7f2b77d

File tree

1 file changed

+3
-2
lines changed
  • learn-silice/classroom/soc_wave_player/hardware

1 file changed

+3
-2
lines changed

learn-silice/classroom/soc_wave_player/hardware/main.si

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ $$config['bram_wmask_byte_wenable_width'] = 'data'
2828
$include('../../../projects/ice-v/CPUs/ice-v.si')
2929
$$if Solution_SCREEN then
3030
// Includes the SPIscreen driver
31+
$$ OLED_SLOW=1
3132
$include('../../../projects/ice-v/SOCs/ice-v-oled.si')
3233
$$end
3334
$$if Solution_UART then
@@ -141,7 +142,7 @@ $$if Solution_HWFBUFFER then
141142
uint1 fb_enabled = 0;
142143
uint14 fb_pixcount = 0;
143144
uint3 fb_channel = 3b010;
144-
uint17 fb_wait = 1;
145+
uint33 fb_wait = 1;
145146
$$end
146147

147148
$$if Solution_SPIflash then
@@ -258,7 +259,7 @@ $$if Solution_HWFBUFFER then
258259
fb_channel = (fb_enabled & fb_wait[0,1])
259260
? {fb_channel[0,2],fb_channel[2,1]}
260261
: fb_channel;
261-
fb_wait = (fb_enabled) ? {fb_wait[0,16],fb_wait[16,1]}
262+
fb_wait = (fb_enabled) ? {fb_wait[0,32],fb_wait[32,1]}
262263
: fb_wait;
263264
fb_pixcount = (fb_enabled & fb_wait[0,1] & fb_channel[0,1])
264265
? fb_pixcount + 1

0 commit comments

Comments
 (0)