TDA7419 De-mystified and Secrets revealed. (TDA 7419). Part 2:

In This part we will be going to the Code you can download it from here

https://github.com/SunRays979/TDA7419

You will need the following projects to get the code compiled.

https://github.com/liman324/TDA7419

https://github.com/adafruit/Adafruit-GFX-Library

https://github.com/shirriff/Arduino-IRremote

https://github.com/mathertel/RotaryEncoder

High level Code Walk thru.

We use the https://github.com/liman324/TDA7419 library to control the IC. We also use the ADAFruit GFX and ILI9341 Libraries. The main issue with ILI9341 was the frequency of communication. A lot of users had complained that the library does not work. If the frequency is set properly the LCD responds correctly.
Arduino pins 8,9,10,11,12,13 are used to interface with the LCD.

#define TFT_CLK 13
#define TFT_MISO 12
#define TFT_MOSI 11

#define TFT_DC 8
#define TFT_RST 9
#define TFT_CS 10

IR Remote is from http://github.com/shirriff/Arduino-IRremote .
Remove uses Arduino pin 2
#define IR_RECV_PIN 2

Encoder library is from https://github.com/mathertel/RotaryEncoder
Encoder uses pins 7 and 5 or Arduino. The encoder push button is mapped to pin 6.
#define ENCODER_PIN_A 7
#define ENCODER_PIN_B 5
#define ENCODER_PIN_SW 6

We use Rectangles to draw the Widgets. There are five different widgets that we can render, all the widgets respond to the key events. To optimize painting only the current focused widget is painted.

More to come…