Coverage for /Users/fmorton/GitHub/Birdbrain-Python-Library-2/src/BirdBrain.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-05-21 08:37 -0400

1# -------------------------------------------------------------- 

2# Author Raghunath J, revised by Bambi Brewer 

3# and Kristina Lauwers 

4# Last Edit Date 11/20/2019 

5# Description This python file contains Microbit, 

6# Hummingbird, and Finch classes. 

7# 

8# The Microbit class controls a micro:bit via bluetooth. It 

9# includes methods to print on the micro:bit LED array or set 

10# those LEDs individually. It also contains methods to read the 

11# values of the micro:bit accelerometer and magnetometer. 

12# 

13# The Hummingbird class extends the Microbit class to incorporate 

14# functions to control the inputs and outputs of the Hummingbird 

15# Bit. It includes methods to set the values of motors and LEDs, 

16# as well as methods to read the values of the sensors. 

17# 

18# The Finch class also extends the Microbit class. This class 

19# similarly includes function to control the inputs and outputs 

20# of the Finch robot. 

21# 

22# Revised 3/2025 by Frank Morton @ Base2 Incorporated 

23# 

24# This file is left for historical reasons and backward 

25# compatibility. Originally, all classes were in this single 

26# file. Now they are broken into separate files and published 

27# in pypi.org. 

28# -------------------------------------------------------------- 

29from birdbrain_finch import BirdbrainFinch 

30from birdbrain_hummingbird import BirdbrainHummingbird 

31from birdbrain_microbit import BirdbrainMicrobit 

32 

33class Microbit(BirdbrainMicrobit): pass 

34 

35class Hummingbird(BirdbrainHummingbird): pass 

36 

37class Finch(BirdbrainFinch): pass