Factorize range checks in presets helper #10
Spi helper converted to new model #10