ADC / GPIO modules use plain integer decriptors rather than bitmasks.
Add poll interval to th event module, to slow the over zealous polling rate
Add ram usage script