Scrolling Text too fast in TM1637 library

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

 

I am using this TM1637 library, the scrolling character is moving too fast. Basically cannot see the scrolling movement for long text message. 

 

The original CPP code is below.  Can someone advice how to admend this code to make it scrolling in human viewable format for long text message.  

 

void TM1637::scrollChars(const char *value) {
	uint32_t offset = 0;
	if (value == 0 || *value == 0)
	return;

	while (1) {
		for (uint8_t i = 0; i != TM1637_DIGITS; ++i) {
			const char *p = value + offset;
			setChar(i, p[i]);

			if (!p[i + 1]) {
				_delay_ms(500);//original is 250
				return;
			}
		}

		++offset;
		_delay_ms(500);//original is 250
	}
}

 

Last Edited: Sat. Apr 9, 2022 - 10:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice to see you advancing with TM1637.

 

It will be nice of you to close now your previous thread what is the DDRA for DIO/CLK Pins ?

... which also concerns TM1637.

It means: put some conclusions, final speech, thanks, anything.

It will be, yes, polite, of you.

 

Edit: Excellent done, thanks.

Last Edited: Sat. Apr 9, 2022 - 12:30 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How about you keep this in your other thread on this same library. So we don’t have to keep bouncing around.

 

jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked