Page 1 of 1

TM1637 7seg LED Display

Posted: 18 Apr 2022, 20:11
by sartam
Hello. I am trying to connect 2 displays with 4 digits on TM1637 each to their DIO and CLK pins. Can these displays be controlled individually?

Re: TM1637 7seg LED Display

Posted: 18 Apr 2022, 22:24
by chromo23
You need to add the taskname in square brackets in front of the command.

here an example of setting the brightness of two displays where the tasks are called display1 and display2:

Code: Select all

 [display1].7db,10
 [display2].7db,10

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 07:48
by sartam
Indexes 1 and 2 are tied to device numbers on the Devices tab?

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 08:33
by Ath
No, they are the names you assigned to the Tasks.

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 10:02
by sartam
How and when will displays learn their names 1 and 2? When configuring the LED, it is not possible to assign a name.

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 10:36
by Ath
The name you have assigned to the task:
Screenshot - 19-04-2022 , 10_32_06.png
Screenshot - 19-04-2022 , 10_32_06.png (31.72 KiB) Viewed 5321 times
(This unit does not have displays attached, it is just an illustration of the taskname mentioned)

The name must be unique per task, that is a requirement to be able to select the correct task, of course.

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 11:23
by sartam
Thank you. As I did not guess ... It's elementary.

Re: TM1637 7seg LED Display

Posted: 19 Apr 2022, 14:17
by Ath
Your original question is explained in this documentation page