File tree Expand file tree Collapse file tree 5 files changed +33
-13
lines changed Expand file tree Collapse file tree 5 files changed +33
-13
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ Introduction
13
13
:target: https://github.com/adafruit/Adafruit_CircuitPython_SI4713/actions/
14
14
:alt: Build Status
15
15
16
+ .. image :: https://img.shields.io/badge/code%20style-black-000000.svg
17
+ :target: https://github.com/psf/black
18
+ :alt: Code Style: Black
19
+
16
20
CircuitPython module for SI4713 and SI4721 FM RDS transmitter.
17
21
18
22
Dependencies
Original file line number Diff line number Diff line change 11
11
at: https://github.com/adafruit/Adafruit-Si4713-Library/
12
12
13
13
* Author(s): Tony DiCola
14
+
15
+ **Hardware:**
16
+
17
+ * `Adafruit Stereo FM Transmitter with RDS/RBDS Breakout - Si4713
18
+ <https://www.adafruit.com/product/1958>`_ (Product ID: 1958)
19
+
20
+
21
+ **Software and Dependencies:**
22
+
23
+ * Adafruit CircuitPython firmware for the supported boards:
24
+ https://circuitpython.org/downloads
25
+
26
+ * Adafruit's Bus Device library:
27
+ https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
28
+
14
29
"""
15
30
import time
16
31
86
101
87
102
class SI4713 :
88
103
"""SI4713 RDS FM transmitter. Initialize by specifying:
89
- - i2c: The I2C bus connected to the board.
90
-
91
- Optionally specify:
92
- - address: The I2C address if it has been changed.
93
- - reset: A DigitalInOut instance connected to the board's reset line,
94
- this will be used to perform a soft reset when necessary.
95
- - timeout_s: The amount of time (in seconds) to wait for a command to
96
- succeed. If this timeout is exceed a runtime error is thrown.
104
+
105
+ :param ~busio.I2C i2c: The I2C bus connected to the board.
106
+ :param int address: The I2C address if it has been changed. Defaults to :const:`0x63`
107
+ :param ~digitalio.DigitalInOut reset: A DigitalInOut instance connected to
108
+ the board's reset line, this will be used to perform a soft reset when necessary.
109
+ :param float timeout_s: The amount of time (in seconds) to wait for a command to
110
+ succeed. If this timeout is exceed a runtime error is thrown. Defaults to :const:`0.1`
111
+
97
112
"""
98
113
99
114
# Class-level buffer to reduce allocations and heap fragmentation.
Original file line number Diff line number Diff line change 17
17
extensions = [
18
18
"sphinx.ext.autodoc" ,
19
19
"sphinx.ext.intersphinx" ,
20
- "sphinx.ext.todo " ,
20
+ "sphinx.ext.viewcode " ,
21
21
]
22
22
23
23
# Uncomment the below if you use native CircuitPython modules such as
Original file line number Diff line number Diff line change @@ -23,9 +23,13 @@ Table of Contents
23
23
.. toctree ::
24
24
:caption: Tutorials
25
25
26
+ Adafruit Stereo FM Transmitter with RDS/RBDS Breakout - Si4713 Learning Guide <https://learn.adafruit.com/adafruit-si4713-fm-radio-transmitter-with-rds-rdbs-support >
27
+
26
28
.. toctree ::
27
29
:caption: Related Products
28
30
31
+ Adafruit Stereo FM Transmitter with RDS/RBDS Breakout - Si4713 <https://www.adafruit.com/product/1958 >
32
+
29
33
.. toctree ::
30
34
:caption: Other Links
31
35
Original file line number Diff line number Diff line change 4
4
# Simple demo of using the SI4743 RDS FM transmitter.
5
5
6
6
import time
7
-
8
7
import board
9
- import busio
10
8
import digitalio
11
-
12
9
import adafruit_si4713
13
10
14
11
# Specify the FM frequency to transmit on in kilohertz. As the datasheet
15
12
# mentions you can only specify 50khz steps!
16
13
FREQUENCY_KHZ = 102300 # 102.300mhz
17
14
18
15
# Initialize I2C bus.
19
- i2c = busio .I2C (board .SCL , board .SDA )
16
+ i2c = board .I2C () # uses board.SCL and board.SDA
20
17
21
18
# Initialize SI4713.
22
19
# si4713 = adafruit_si4713.SI4713(i2c)
You can’t perform that action at this time.
0 commit comments