Accelerometer Issues?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
linuxcircle
Posts: 5
Joined: Mon Nov 07, 2016 2:50 am

Re: Accelerometer Issues?

Post by linuxcircle » Tue Nov 08, 2016 11:32 pm

Ah, brilliant! :mrgreen:

I used Y1 & Y2 instead, and activated that by setting bus 6 in the constructor:

Code: Select all

from pyb import UART

uart = UART(6, 9600)
uart.init(9600, bits=8, parity=None, stop=1)

Accelerometer now works like charm. I'll post a tutorial on using bluetooth to transmit accel results on http://www.linuxcircle.com

Thanks!

Post Reply