0

error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

error

by kgedesigner on Sat Jan 21, 2017 6:12 pm

can not import the module machine get error on Feather M0 adalogger
>>> import machine
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'machine'
>>>
import module time goes well

kgedesigner
 
Posts: 4
Joined: Sun Oct 20, 2013 1:01 pm

Re: error

by cartere on Sat Jan 21, 2017 7:15 pm

Try
Import board
import nativeio

Kind of a moving target at the moment, feel free to experiment :)

cartere
 
Posts: 19
Joined: Thu Jan 19, 2017 10:35 am

Re: error

by tannewt on Mon Jan 23, 2017 1:56 pm

kgedesigner, machine isn't available on the M0 boards in favor of nativeio which is a cross-port API. The docs for it are here: https://circuitpython.readthedocs.io

cartere, thanks for pointing out board and nativeio.

tannewt
 
Posts: 2496
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.