@tierfonorbital : I had the same problem. Couldn't really get an answer anywhere, and the supplied code didn't help.

Eventually I found a working solution. Here's my writeup:

https://sites.google.com/site/3dsfinfo/mini-displays