Refactor firmata to use new adaptor interface