|
1 |
| -# The MIT License (MIT) |
| 1 | +# SPDX-FileCopyrightText: 2016 Radomir Dopieralski for Adafruit Industries |
| 2 | +# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries |
2 | 3 | #
|
3 |
| -# Copyright (c) 2016 Radomir Dopieralski, written for Adafruit Industries |
4 |
| -# Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC |
5 |
| -# |
6 |
| -# Permission is hereby granted, free of charge, to any person obtaining a copy |
7 |
| -# of this software and associated documentation files (the "Software"), to deal |
8 |
| -# in the Software without restriction, including without limitation the rights |
9 |
| -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
10 |
| -# copies of the Software, and to permit persons to whom the Software is |
11 |
| -# furnished to do so, subject to the following conditions: |
12 |
| -# |
13 |
| -# The above copyright notice and this permission notice shall be included in |
14 |
| -# all copies or substantial portions of the Software. |
15 |
| -# |
16 |
| -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
17 |
| -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
18 |
| -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
19 |
| -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
20 |
| -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
21 |
| -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
22 |
| -# THE SOFTWARE. |
| 4 | +# SPDX-License-Identifier: MIT |
| 5 | + |
23 | 6 | """
|
24 | 7 | `adafruit_pca9685`
|
25 | 8 | ====================================================
|
@@ -79,7 +62,7 @@ def frequency(self, _):
|
79 | 62 | @property
|
80 | 63 | def duty_cycle(self):
|
81 | 64 | """16 bit value that dictates how much of one cycle is high (1) versus low (0). 0xffff will
|
82 |
| - always be high, 0 will always be low and 0x7fff will be half high and then half low.""" |
| 65 | + always be high, 0 will always be low and 0x7fff will be half high and then half low.""" |
83 | 66 | pwm = self._pca.pwm_regs[self._index]
|
84 | 67 | if pwm[0] == 0x1000:
|
85 | 68 | return 0xFFFF
|
|
0 commit comments