Updated firmware and API to work with multiple encoder types. Still untested