Badger2040 display sometimes greys out

I’ve got a problem where the image and badge apps in BadgerOS update the screen OK, but then it gets a black border and the white on the screen gradually goes grey from the edges. The menu works fine and doesn’t do this no matter how long I leave it.

I think the problem is that due to a badly timed shutdown or low power level from a failing battery, I’ve managed to corrupt the OTP LUTs in the display driver on the Badger2040. These are used for normal speed updates only, and this seems to correlate with when the problem occurs.

Is there an easy way to reprogram the pre-programmed LUTs? And what are the values? The default LUT values that are in the uc8151 source are slower that the programmed ones.

Thanks!