Imported wishbone code from original opal-kelly repo.