Beaglebone Black - Debian Image 2018-06-17, Waveshare LCD 7 Pol Cape.

I have this LCD panel and I’ve never been able to get it to work with Debian, Ubuntu or Kali. I made some changes to the original Waveshare and now I have video.

The code follows:

/*