machine or pyb

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Peter.Kenyon
Posts: 70
Joined: Wed Oct 14, 2015 5:07 pm

machine or pyb

Post by Peter.Kenyon » Mon Jun 20, 2016 5:20 pm

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?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: machine or pyb

Post by dhylands » Mon Jun 20, 2016 6:03 pm

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.

Peter.Kenyon
Posts: 70
Joined: Wed Oct 14, 2015 5:07 pm

Re: machine or pyb

Post by Peter.Kenyon » Mon Jun 20, 2016 6:47 pm

thanks dave, I can see that machine would be more generic across platforms.

Post Reply