I was looking into a way of connecting upto 256 buttons to a single DINX4 module. Instead of connecting a button to each pin one could arrange the buttons in a 16 row x 16 column matrix. Is it possible to adapt the code in such a way that the button matrix gets read faster? I think a 1ms latency would suffice if the buttons are pressed after eachother, but a lower latency would be desirable in this case. Herman Zap25