You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to display temperature, and I want to turn the display upside down so I can use dot as degree and fourth digit to display C.
So I want to display 'C on the fourth segment all the time.
For degree C, I usually use the built-in degree mark - See code example:
I think you did not realize what I really wanted. I want to use the decimal dot as a degree symbol. I did it with 2 digits, but
when i use 3 digits dot disappears.
You can see it in the images below and you can see code too.
#include<Arduino.h>
#include<TM1637TinyDisplay.h>// Define the connections pins
#defineCLK9
#defineDIO8
TM1637TinyDisplay display(CLK, DIO);
voidsetup() {
display.setBrightness(4); // Set brightness level (0-7)// Flip the display upside down
display.flipDisplay(true);
// Display 'C' with a decimal dot on the 4th digituint8_t segments[] = {0x00, 0x00, 0b10000000, 0b00111001 };
display.setSegments(segments);
}
voidloop() {
display.showNumber(22, false, 2, 0);
delay(1000); // Wait for 1 second
display.showNumber(111, false, 3, 0);
delay(1000); // Wait for 1 second
}
Incoming question:
For degree C, I usually use the built-in degree mark - See code example:
TM1637TinyDisplay/examples/TM1637Demo/TM1637Demo.ino
Lines 384 to 389 in a4d07fb
If you want to flip the display, use the function: flipDisplay()
See:
TM1637TinyDisplay/TM1637TinyDisplay.h
Lines 136 to 142 in a4d07fb
To set the “dot” you can use showNumberDec()
See:
TM1637TinyDisplay/examples/TM1637Test/TM1637Test.ino
Lines 220 to 224 in a4d07fb
The text was updated successfully, but these errors were encountered: