Using an Arduino Nano Every, Common Anode 4 digit 7segment display '3461BS', and 8-bit shift register sn74hc595, I ran into issues while using the Strings class.
I have distilled it down to its most basic form. Below is my setup code, which was taken almost verbatim from the example.
If I comment out both String allocations, the display behaves as expected, and shows 1238.
With just one String allocation, the display still behaves as expected.
As soon as there are two String allocations in the loop, the display becomes corrupted.
Only some segments turn on.
When removing the 8-bit shift register and hooking up the segments directly to the Arduino (and changing to the underlying SevSeg library), everything works as expected.
Using an Arduino Nano Every, Common Anode 4 digit 7segment display '3461BS', and 8-bit shift register sn74hc595, I ran into issues while using the Strings class.
I have distilled it down to its most basic form. Below is my setup code, which was taken almost verbatim from the example.
If I comment out both String allocations, the display behaves as expected, and shows 1238. With just one String allocation, the display still behaves as expected. As soon as there are two String allocations in the loop, the display becomes corrupted. Only some segments turn on.
When removing the 8-bit shift register and hooking up the segments directly to the Arduino (and changing to the underlying
SevSeg
library), everything works as expected.Code: