-
Notifications
You must be signed in to change notification settings - Fork 9
Constructors
Tiago Lobão edited this page Aug 26, 2018
·
1 revision
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
CS5490 line(MCLK,rx,tx);
CS5490 line(MCLK);
#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