I just ordered my Spark Core and I’m very excited to give it a try. (Even though I have some basic education in electronics, I haven’t done anything in the last 6 years)
So my first question refers to displays, specifically those displays with high quality like OLED. The thing is that I want to build a simple application that shows a 0-6 digit number on black background, preferrably on a display >4 inch.
Does anyone of you have any experience with this kind of task? I saw that there is different standards like I2C or SPI, but I have no idea yet how hard it is to get a display running with these standards.
I’d think this is not a display but only a cap touch digitizer panel and to use it you’d rather want the Core to talk to a suitable controler than to the digitizer direct.
Edit: You’ve just updated the link, but now it’s a broken link
@BayerischBier, there are different ways to do touch screens. One is to read the voltages from the touch membrane directly. Another is to use a touch screen interface chip which simplifies the interface and does all the heavy lifting. Without too much promotion, I have pledged on Indiegogo for a different type of display (similar to 4D Systems) which is smart display implementing a Human-Machine Interface. This moves the entire GUI work to the display device
@ScruffR and @BayerischBier, @ScruffR is partly correct. A library must be used to manage outgoing and incoming display events (touch, etc). However, all this is done via a Serial port so a Spark port will be straight forward. If you are familiar with the 4D Systems Spark library (I ported it) then you will understand the need for it.
That was a textbook example, how to contradict diplomatically
Of course Paul is right, since there is some proper “formating” and “vocabulary” for the serial commands required, the library is “needed” to save you a lot of headache.
@Bspranger, I have six 4.3" Nextions and absolutely have it working! I ported their Arduino weather app to the Photon/Core and posted it on their forum.
@BayerischBier, the Nextion library is super easy to port:
In NexTouch.h, change #include <Arduino.h> to #include "application.h"
In NexSerialConfig.h, change #define nexSerial Serial2 to #define nexSerial Serial1 if you are connecting the Nextion to the Rx/Tx lines of the Photon.
@peekay123 have you done any popCallBacks with the Nextion yet? I just want to be able to know when a button is pushed and send back vars to fill in blank text fields like t0.txt=myVar.
I can vouch for the displays from buydisplay.com that @peekay123 mentioned, they work flawlessly.
You must however keep in mind that large pixel densities (larger displays) take longer to update up to a point where it’s barely usable . A 480x272 SPI/I2C screen would refresh at sluggish rates.
If you don’t mind seeing your digits update one pixel row at a time, the suggested display will be perfect for your application
The effect can be seen here: https://www.youtube.com/watch?v=GYDLHMxKCaU, it would be a bit faster though