Skip to content

Constructors

Tiago Lobão edited this page Aug 26, 2018 · 1 revision

CS6590 Constructor

In order to avoid using the same UART control pins as the computer USB, the CS5490 library only uses Hardware Serial on ARDUINO MEGA and ESP32 because they have more than one Hardware Serial Pins.

The arguments names and they explanation:

  • MCLK: Value in Mhz of the Cristal used on CS5490 (Obs: the value of MCLK_default constant is 4.096)

  • rx: UART upload

  • tx: UART download pin

ARDUINO (UNO, NANO, etc) and ESP 8622

CS5490 line(MCLK,rx,tx);

ARDUINO MEGA AND ESP32 ONLY

CS5490 line(MCLK);

Example

#include<CS5490.h>
#define rx 13
#define tx 12

CS5490 line(MCLK_default,rx,tx);

"line" variable is consider the default instance of the class CS5490 for every example in this Wiki

Clone this wiki locally