Question about using setRotation() with the HT16K33 display

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.

From which library?

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.

Sorry for the vagueness of the question. I have edited my question now. The library I was curious about was Adafruit GFX.

Check the GFX library to see whether the setRotation function supports the HT16K33.

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.

why? the pin header is on the top of the pcb. The decimal points will be on the bottom.

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.

you could use wires to connect them to the breadboard.
or straight headers and put it flat on the breadboard.

Obviously it wasn't designed to put it other way round in a breadboard.

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.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.