Page 1 of 1

machine or pyb

Posted: Mon Jun 20, 2016 5:20 pm
by Peter.Kenyon
been away a while and came back to play and I'm confused as to which import I should use on the pyboard
import machine
or
import pyb

they both seem to do the same thing - are they the same thing?

Re: machine or pyb

Posted: Mon Jun 20, 2016 6:03 pm
by dhylands
machine will become the new way forward, and pyb will eventually be deprecated.

Currently, for the pyboard I believe pyb is more complete than machine.

Re: machine or pyb

Posted: Mon Jun 20, 2016 6:47 pm
by Peter.Kenyon
thanks dave, I can see that machine would be more generic across platforms.