#include <PT2258.h>
|
| PT2258 (uint8_t address) |
| PT2258 Datatype declaration Class Constructor. More...
|
|
void | attenuation (uint8_t channel, uint8_t attenuation) |
| Set the individual channel attenuation in db. More...
|
|
void | attenuationAll (uint8_t attenuation) |
| Set the attenuation of all the channels at once in db. More...
|
|
uint8_t | begin (void) |
| Start the I2C communication. More...
|
|
void | mute (bool mute) |
| Mute control for all the channels. No matter the volume, the channels will stay silent. It has to be disabled to hear something. More...
|
|
void | volume (uint8_t channel, uint8_t volume) |
| Set the individual channel volume. More...
|
|
void | volumeAll (uint8_t volume) |
| Set the volume of all the channels at once. More...
|
|
◆ PT2258()
PT2258::PT2258 |
( |
uint8_t |
_address | ) |
|
PT2258 Datatype declaration Class Constructor.
- Parameters
-
address | Set the I2C address of the IC address (read the PT2258 address on top for correct use). |
◆ attenuation()
void PT2258::attenuation |
( |
uint8_t |
channel, |
|
|
uint8_t |
attenuation |
|
) |
| |
Set the individual channel attenuation in db.
- Parameters
-
channel | Channel to set, form 1 to 6 |
db | Attenuation in db from 0 (0db) to 79 (79db) |
◆ attenuationAll()
void PT2258::attenuationAll |
( |
uint8_t |
attenuation | ) |
|
Set the attenuation of all the channels at once in db.
- Parameters
-
db | Attenuation in db from 0 (0db) to 79 (79db) |
◆ begin()
uint8_t PT2258::begin |
( |
void |
| ) |
|
Start the I2C communication.
- Returns
- Return 1:successful, 0:connection error
◆ mute()
void PT2258::mute |
( |
bool |
mute | ) |
|
Mute control for all the channels. No matter the volume, the channels will stay silent. It has to be disabled to hear something.
- Parameters
-
mute | Mute active (1, true) or mute not active (0, false) |
◆ PT2258Send()
void PT2258::PT2258Send |
( |
uint8_t |
a, |
|
|
uint8_t |
b |
|
) |
| |
|
private |
Send the datas to the IC.
- Parameters
-
a | 10dB byte value |
b | 1dB byte value |
◆ volume()
void PT2258::volume |
( |
uint8_t |
channel, |
|
|
uint8_t |
volume |
|
) |
| |
Set the individual channel volume.
- Parameters
-
channel | Channel to set, form 1 to 6 |
volume | Volume from 0 (min) to 100 (max) |
◆ volumeAll()
void PT2258::volumeAll |
( |
uint8_t |
volume | ) |
|
Set the volume of all the channels at once.
- Parameters
-
volume | Volume from 0 (min) to 100 (max) |
◆ address
The documentation for this class was generated from the following files: