I just got home from break and needed something to do while home. I got a particle photon for Christmas last year, and hadn't really touched it since I got it. I decided to try to get it to talk to a little 128x128 TFT display I had lying around. During HCWP last week I worked on getting anything to display on the screen. I didn't have it working by the end of HCWP, but after bit more massaging, I got it working.
The source code for that is here: https://github.com/Ivoah/Particle_ILI9163
Once I got the photon talking with the screen, I needed something to display on it. Since the screen is square, I figured album artwork would be a perfect fit.
The photon gets the artwork of the current song playing in iTunes from a little webserver written in python, which uses PyObjC to get the artwork from iTunes.
https://github.com/Ivoah/Photon-Stuff/blob/master/iTunes.py
I couldn't find any HTTP libraries that I liked for the photon, so I made my own little function to perform HTTP GET requests to a server. The first version required passing the length of the data that was expected, but I later improved it to read the Content-Length header from the HTTP request.
https://github.com/Ivoah/Photon-Stuff/blob/master/iTunes.ino
There are a few other miscellaneous programs in my Photon-Stuff repo
https://github.com/Ivoah/Photon-Stuff
The source code for that is here: https://github.com/Ivoah/Particle_ILI9163
Once I got the photon talking with the screen, I needed something to display on it. Since the screen is square, I figured album artwork would be a perfect fit.
The photon gets the artwork of the current song playing in iTunes from a little webserver written in python, which uses PyObjC to get the artwork from iTunes.
https://github.com/Ivoah/Photon-Stuff/blob/master/iTunes.py
I couldn't find any HTTP libraries that I liked for the photon, so I made my own little function to perform HTTP GET requests to a server. The first version required passing the length of the data that was expected, but I later improved it to read the Content-Length header from the HTTP request.
https://github.com/Ivoah/Photon-Stuff/blob/master/iTunes.ino
There are a few other miscellaneous programs in my Photon-Stuff repo
https://github.com/Ivoah/Photon-Stuff