Code is intended for the Waveshare High-Precision AD HAT
It is adopted from the manufacturer's repo
I have added passive waiting for the ready signal. The original code implements active waiting which means that one core is always at 100% load. With the pasive waiting I ran read 7200 SPS at around 24% load of a single core.