>I wouldn't want to shift out 16 bits and increment a counter for the anodes every 1.024 ms in an interrupt though. That seems like an awful lot to do for an ISR which in my experience (very limited experience) has to be as short as possible.
If you bypass the arduino digitalwrites, it wouldn't be so bad and you would probably be left with under 20us of work to shift out manually (assuming 16MHz).
Short isr's are generally good, but general rules apply generally. If you delayed a pin interrupt for a user switch by 30us because of your display isr, the user will not know their switch press could have been serviced 30us sooner. It just depends what is more important and if the work can easily be deferred out of the isr.
I don't know what isr's arduino claims for its own use or if you want to give up the uart for display use, but if using the uart-spi you could use the transmit-complete irq/isr. Set the baud rate so 2 bytes take whatever time you want for refresh, then your txc isr also becomes the refresh timer.
I would probably just shift out the bits manually so any pins can be used and the important peripherals can be left to do the work they were designed to do if needed. Bit banging the shift data will be easier than bit banging a uart, and a uart will be wanted sooner or later.
Here is a mod of previous code that bypasses digitalWrite and ends up with cbi/sbi-
https://godbolt.org/z/8wriXV (also slight mod to load data first with latch disabled, so the shift time is done with display on)
this requires an enum for the pins (using the 'real' names here), and instantiation via a template (just as easy as before).
I have no idea if this is correct, and arduino use makes the online assembly a little more difficult to read but the cbi/sbi are there for pin writes so assume the rest is close.
edit- I had arduino on the pc for esp32 so tried to compile and hook into the millis isr-
https://godbolt.org/z/FeYsa5I modified platform.txt to use c++17 (or c++14), created an extern C function for the isr to access display.refresh, added the display_refresh c function call to the timer0 isr in wiring.c, and Bob's your uncle. Probably.
The arduino asm output shows the display.refresh as looking ok. I would probably forget using the LE when doing the shift register work manually as it will only make a 0.36% difference in led on time- ~30us shift time /( 1.024ms*8 ).
The final step would be to get OE hooked up to a pwm if wanted, where you could control brightness and even have each digit with its own brightness value (pwm value).