I have recently bought an alphanumeric display which came with an unsoldered pin header. From the orientation of the pin header in the image below, I can see that the display was intended to be mounted upside down.
I figured that this would cause the decimal point to face the wrong direction so I have straightened the pin header. I can't test code on this display yet since it does not work while the pin header is unsoldered.
For anyone who has used this display, does it still work properly if I use the function setRotation() from the library Adafruit GFX?
There are many functions with the name setRotation(), from displays to tfts and each target specific things.
for instance I will create one new function with this same name:
void setRotation(){
Serial.println("it is competible.");
}
I promise you that this function is compatible with any code that does not have function with the same name included, but I am unsure of whether it is what you wanted. Please provide more information.
Just to be more clear, I was talking about the function tft.setRotation() from the Adafruit GFX library.
I can see that the position of the segments and the decimal point are fixed. I was wondering how the code line tft.setRotation(2); would affect the display since I cannot test it at the moment.
From the header file, I found a comment which stated: "A generic graphics superclass that can handle all sorts of drawing. At a minimum you can subclass and provide drawPixel(). At a maximum you can do a ton of overriding to optimize. Used for any/all Adafruit displays!".
In the Adafruit LED Backpack library, I cannot find any comment that specifies any restrictions on the functions. I guess the only way to tell is to wait until I can get access to a soldering machine for the pin header.
Check the angle and direction of the pins in the attached image. If I mount the module on a breadboard, the decimal points would be near the top of the digits.
I have manually straightened the pin header. In regards to my question, I was just curious about how the display would behave if I include the line tft.setRotation(2) in the uploaded program.