Using Accel3 from Mikroe

Welcome to the forum.

Please read the how to get the best from the forum post.

Use the IDE auroformat tool to format your code for easier reading.

Properly post the code in a code block as suggested by the how to get the best from the forum post.

As requested, post a detailed schematic or wiring diagram.

Photots showing the actual wiring can also be of value