To run the example code included in the Readme, I needed to do three things:
add to the top of the file:
from bitalino import BITalino
import time
Maybe it could be mentioned that the dependencies must be installed by hand (they are not in setup.py)
On my Mac (MacOSX14, Python 3.6.7) the name of the device is not correct. I had to change:
macAddress = "/dev/tty.BITalino-XX-XX-DevB"
# on Mac OS replace XX-XX by the 4 final digits of the MAC address
to this:
macAddress = "/dev/tty.BITalino-DevB"
# on MacOS, "ls /dev/tty.*" lists the available devices
# select the BITalino you want to connect, for example "/dev/tty.BITalino-DevB" or "/dev/tty.BITalino-XX-XX-DevB" where XX-XX are the 4 final digits of the MAC address
To run the example code included in the Readme, I needed to do three things:
add to the top of the file:
Maybe it could be mentioned that the dependencies must be installed by hand (they are not in setup.py)
On my Mac (MacOSX14, Python 3.6.7) the name of the device is not correct. I had to change:
to this: