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
Looks very nice, do you have any further plans for the project?
tr1p1ea wrote:
Looks very nice, do you have any further plans for the project?

I was going to turn it into a little twitter feed viewer today, but ended up doing other things. Perhaps I'll try again tomorrow.
Did you, in fact, do so? I like the idea of a little screen that would show interesting information about Twitter stories and perhaps emails.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement