tea5767
v1.0.4
Published
TEA5767 for pi
Downloads
2
Readme
TEA5767
TEA5767 API for pi
Installation & use
$ npm install tea5767
let tea5767 = require("tea5767");
setAddress
tea5767.setAddress(addr = 0x60)
addr
:Int
getFrequency
tea5767.getFrequency()
Return current frequency.
setFrequency
tea5767.setFrequency(freq, mute = false)
freq
:Float
frequency, 87.5 ~ 108mute
:Boolean
mute
tea5767.mute(bool = false)
bool
:Boolean
autoSearch
autoSearch(freq = 87.5, dir = 1)
freq
:Float
frequency, 87.5 ~ 108dir
:Int
direction
This fn supports circular search.
tea5767.autoSearch(100).then(freq => {
tea5767.setFrequency(freq);
freq = tea5767.getFrequency();
});