Adafruit_BBIO library is structured differently than
PyBBIO is structured such that, essentially, the entire API is accessed directly from the first level of the
Adafruit_BBIO instead has the package tree broken up by a peripheral subsystem. For instance, to use the GPIO API you have to import the GPIO package:
from Adafruit_BBIO import GPIO
Otherwise, to use the PWM API you would import the PWM package:
from Adafruit_BBIO import PWM
This structure follows a more standard Python library model, and can also save some space in your program's memory because you're only importing the parts you need (the difference is pretty minimal, but it is worth thinking about).
The same program shown above using ...