学物联网,来万物简单IoT物联网!!
TEA5767 FM收音机模块是工作频率在76MHz~108MHz的自动数字调谐收音机。其特点高灵敏度、高稳定、低噪声,内部集成了中频选频和解调网络。
引脚定义
tea5767Obj = TEA5767(i2cObj)
参数 | 类型 | 必选参数? | 说明 |
---|---|---|---|
i2cObj | I2C | 是 | 传入I2C对象 |
from machine import I2C,Pin # 导入machine驱动库
import tea5767
i2cObj = I2C(1, scl=Pin(22), sda=Pin(21), freq=400000)
tea5767Obj=tea5767.TEA5767(i2cObj)
print('tea5767 inited')
tea5767 inited!
TEA5767.setFrequency(freq)
返回值 | 类型 | 说明 |
---|---|---|
freq | float | 76.0~108.0,单位(MHz) |
from machine import I2C,Pin # 导入machine驱动库
import tea5767
i2cObj = I2C(1, scl=Pin(22), sda=Pin(21), freq=400000)
tea5767Obj=tea5767.TEA5767(i2cObj)
print('tea5767 inited')
tea5767Obj.setFrequency(91.8)
print('set freq = 91.8Mhz')
tea5767 inited
set freq = 91.8Mhz
from machine import I2C,Pin # 导入machine驱动库
import tea5767
i2cObj = I2C(1, scl=Pin(22), sda=Pin(21), freq=400000)
tea5767Obj=tea5767.TEA5767(i2cObj)
print('tea5767 inited')
robot.setFrequency(91.8)
print('set freq = 91.8Mhz')
tea5767 inited
set freq = 91.8Mhz
[1] TEA5767收音机模块介绍说明
[2] TEA5767收音机模块购买