So I got my pyboard working on ubuntu linux. Got it running in REPL.
Linked up so that main, runs.
Got a bunch of the LED projects tested and working.
Set up this code (ignore the leds line, it's not necessary).
Code: Select all
# main.py -- put your code here!
import pyb
acc = pyb.Accel()
leds = [pyb.LED(i) for i in range(1,5)]
while True:
print(acc.x(), acc.y(), acc.z())
pyb.delay(1000)
Am I doing something wrong?
I'll copy the code onto my second board, and test that.