PU2CLR RDA5807 Arduino Library 1.1.9
Arduino Library for RDA5807 Devices - By Ricardo Lima Caratti
Loading...
Searching...
No Matches
Audio Functions

Functions

bool RDA5807::isSoftmuted ()
 Gets the softmute status.
 
bool RDA5807::getBass ()
 Gets Bass Boost.
 
void RDA5807::setLedStereoIndicator (bool value=true)
 Sets the system to use a LED to indicate Stereo or Mono.
 
bool RDA5807::isMuted ()
 Gets Audio Mute Status.
 
bool RDA5807::getMute ()
 Gets Audio Mute Status. Same isMuted.
 
bool RDA5807::isAudioOutputHighImpedance ()
 Gets true if the output audio impedance is high.
 
void RDA5807::setSoftmute (bool value)
 Sets Soft Mute Enable or disable.
 
void RDA5807::setMute (bool value)
 Sets Audio mute or unmute.
 
void RDA5807::setAudioOutputHighImpedance (bool value)
 Sets audio output impedance high ow low.
 
void RDA5807::setMono (bool value)
 Sets audio Mono or stereo.
 
void RDA5807::setBass (bool value)
 Sets Bass Boost.
 
bool RDA5807::isStereo ()
 Gets the current Stereo status.
 
void RDA5807::setVolume (uint8_t value)
 Sets the audio volume level.
 
uint8_t RDA5807::getVolume ()
 Gets the current audio volume level.
 
void RDA5807::setVolumeUp ()
 Increments the audio volume.
 
void RDA5807::setVolumeDown ()
 Decrements the audio volume.
 

Detailed Description

Audio

Function Documentation

◆ getBass()

bool RDA5807::getBass ( )
inline

Gets Bass Boost.

Returns
FALSE = Disable; TRUE = Enable

◆ getMute()

bool RDA5807::getMute ( )
inline

Gets Audio Mute Status. Same isMuted.

Returns
True if muted

◆ getVolume()

uint8_t RDA5807::getVolume ( )

Gets the current audio volume level.

Returns
uint8_t 0 to 15

◆ isAudioOutputHighImpedance()

bool RDA5807::isAudioOutputHighImpedance ( )
inline

Gets true if the output audio impedance is high.

Returns
True or false

◆ isMuted()

bool RDA5807::isMuted ( )
inline

Gets Audio Mute Status.

Returns
True if muted

◆ isSoftmuted()

bool RDA5807::isSoftmuted ( )
inline

Gets the softmute status.

Returns
true if enabled

◆ isStereo()

bool RDA5807::isStereo ( )

Gets the current Stereo status.

Returns
TRUE if stereo;

◆ setAudioOutputHighImpedance()

void RDA5807::setAudioOutputHighImpedance ( bool  value)

Sets audio output impedance high ow low.

Useful to setup high impedance headphones

Parameters
valueTRUE = High; FALSE = Low

◆ setBass()

void RDA5807::setBass ( bool  value)

Sets Bass Boost.

Parameters
valueFALSE = Disable; TRUE = Enable

◆ setLedStereoIndicator()

void RDA5807::setLedStereoIndicator ( bool  value = true)
inline

Sets the system to use a LED to indicate Stereo or Mono.

Call this function to setup the GPIO3 of the RDA5807FP (pin 15) to turn a LED on or OFF.

When Stereo, the GPIO3 is HIGH.

#include <RDA5807.h>
void setup() {
rx.setup();
rx.setFrequency(10390); // Tunes in 103.9 MHz
rx.setLedStereoIndicator(true); // The GPIO3 (pin 15 of the RDA5807) can use to turn a LED on when Stereo
}
void loop() {
}
KT0915 Class.
Definition: RDA5807.h:568
void setup(uint8_t clock_frequency=CLOCK_32K, uint8_t oscillator_type=OSCILLATOR_TYPE_PASSIVE, uint8_t rlck_no_calibrate=RLCK_NO_CALIBRATE_MODE_OFF)
Starts the device.
Definition: RDA5807.cpp:273
void setFrequency(uint16_t frequency)
Sets the frequency.
Definition: RDA5807.cpp:372
void setLedStereoIndicator(bool value=true)
Sets the system to use a LED to indicate Stereo or Mono.
Definition: RDA5807.h:820
Parameters
valuetrue or false.
See also
setGpio, isStereo

◆ setMono()

void RDA5807::setMono ( bool  value)

Sets audio Mono or stereo.

Parameters
valueTRUE = Mono; FALSE force stereo

◆ setMute()

void RDA5807::setMute ( bool  value)

Sets Audio mute or unmute.

Parameters
valueTRUE = mute; FALSE = unmute

◆ setSoftmute()

void RDA5807::setSoftmute ( bool  value)

Sets Soft Mute Enable or disable.

Parameters
valuetrue = enable; false=disable

◆ setVolume()

void RDA5807::setVolume ( uint8_t  value)

Sets the audio volume level.

You can use values between 0 and 15.

#include <RDA5807.h>
void setup() {
pinMode(4, INPUT_PULLUP); // Arduino pin 4 - Volume Up
pinMode(5, INPUT_PULLUP); // Arduino pin 5 - Volume Down
rx.setup();
rx.setFrequency(10390); // Tunes at 103.9 MHz
rx.setVolume(7);
}
void loop() {
if (digitalRead(4) == LOW) rx.setVolumeUp();
if (digitalRead(5) == LOW) rx.setVolumeDown();
delay(200);
}
void setVolume(uint8_t value)
Sets the audio volume level.
Definition: RDA5807.cpp:1581
void setVolumeUp()
Increments the audio volume.
Definition: RDA5807.cpp:1606
void setVolumeDown()
Decrements the audio volume.
Definition: RDA5807.cpp:1620
Parameters
value(from 0 to 15)
See also
setVolumeUp, setVolumeDown, setMute, getVolume

◆ setVolumeDown()

void RDA5807::setVolumeDown ( )

Decrements the audio volume.

◆ setVolumeUp()

void RDA5807::setVolumeUp ( )

Increments the audio volume.