Make it work via (USB-to-logic-level) serial on a desktop Linux first. It should then be a fairly straightforward port, provided you don't have dependencies that aren't available. ie, low-level solutions in python or C will be preferable.