Coverage for /usr/lib/python3/dist-packages/gpiozero/__init__.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-02-10 12:38 +0000

1# vim: set fileencoding=utf-8: 

2# 

3# GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins 

4# 

5# Copyright (c) 2015-2021 Dave Jones <dave@waveform.org.uk> 

6# Copyright (c) 2015-2021 Ben Nuttall <ben@bennuttall.com> 

7# Copyright (c) 2019 tuftii <3215045+tuftii@users.noreply.github.com> 

8# Copyright (c) 2019 Jeevan M R <14.jeevan@gmail.com> 

9# Copyright (c) 2019 ForToffee <ForToffee@users.noreply.github.com> 

10# Copyright (c) 2018 Claire Pollard <claire.r.pollard@gmail.com> 

11# Copyright (c) 2016 pcopa <scheltovandoorn@gmail.com> 

12# Copyright (c) 2016 Ian Harcombe <ian.harcombe@gmail.com> 

13# Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org> 

14# Copyright (c) 2016 Andrew Scheller <lurch@durge.org> 

15# Copyright (c) 2015 Philip Howard <phil@gadgetoid.com> 

16# 

17# SPDX-License-Identifier: BSD-3-Clause 

18 

19from __future__ import ( 

20 unicode_literals, 

21 print_function, 

22 absolute_import, 

23 division, 

24) 

25 

26from .pins import ( 

27 Factory, 

28 Pin, 

29 SPI, 

30) 

31from .pins.data import ( 

32 PiBoardInfo, 

33 HeaderInfo, 

34 PinInfo, 

35 pi_info, 

36) 

37# Yes, import * is naughty, but exc imports nothing else so there's no cross 

38# contamination here ... and besides, have you *seen* the list lately?! 

39from .exc import * 

40from .devices import ( 

41 Device, 

42 GPIODevice, 

43 CompositeDevice, 

44) 

45from .mixins import ( 

46 SharedMixin, 

47 SourceMixin, 

48 ValuesMixin, 

49 EventsMixin, 

50 event, 

51 HoldMixin, 

52) 

53from .input_devices import ( 

54 InputDevice, 

55 DigitalInputDevice, 

56 SmoothedInputDevice, 

57 Button, 

58 LineSensor, 

59 MotionSensor, 

60 LightSensor, 

61 DistanceSensor, 

62 RotaryEncoder, 

63) 

64from .spi_devices import ( 

65 SPIDevice, 

66 AnalogInputDevice, 

67 MCP3001, 

68 MCP3002, 

69 MCP3004, 

70 MCP3008, 

71 MCP3201, 

72 MCP3202, 

73 MCP3204, 

74 MCP3208, 

75 MCP3301, 

76 MCP3302, 

77 MCP3304, 

78) 

79from .output_devices import ( 

80 OutputDevice, 

81 DigitalOutputDevice, 

82 PWMOutputDevice, 

83 PWMLED, 

84 LED, 

85 Buzzer, 

86 Motor, 

87 PhaseEnableMotor, 

88 Servo, 

89 AngularServo, 

90 RGBLED, 

91 TonalBuzzer, 

92) 

93from .boards import ( 

94 CompositeOutputDevice, 

95 ButtonBoard, 

96 LEDCollection, 

97 LEDBoard, 

98 LEDBarGraph, 

99 LEDCharDisplay, 

100 LEDMultiCharDisplay, 

101 LEDCharFont, 

102 LedBorg, 

103 PiHutXmasTree, 

104 PiLiter, 

105 PiLiterBarGraph, 

106 TrafficLights, 

107 PiTraffic, 

108 PiStop, 

109 StatusZero, 

110 StatusBoard, 

111 SnowPi, 

112 TrafficLightsBuzzer, 

113 FishDish, 

114 TrafficHat, 

115 TrafficpHat, 

116 Robot, 

117 RyanteckRobot, 

118 CamJamKitRobot, 

119 PhaseEnableRobot, 

120 PololuDRV8835Robot, 

121 Energenie, 

122 PumpkinPi, 

123 JamHat, 

124 Pibrella, 

125) 

126from .internal_devices import ( 

127 InternalDevice, 

128 PolledInternalDevice, 

129 PingServer, 

130 CPUTemperature, 

131 LoadAverage, 

132 TimeOfDay, 

133 DiskUsage, 

134)