The only change I can think of is to cross reference the pins passed to the driver object and check whether theyre set to pulldown mode, if not then a warning is printed.
I dont think its essential but could be a nice warning for those who have similar hardware