maybe this should be moved to Firmata as well as a public method.