Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clock/time ":" point #17

Closed
purevnorov opened this issue Apr 23, 2021 · 3 comments
Closed

clock/time ":" point #17

purevnorov opened this issue Apr 23, 2021 · 3 comments
Assignees
Labels
Grove_4Digital_Display Label for Grove_4Digital_Display UAY Unassigned yet

Comments

@purevnorov
Copy link

I'm using TM1637 time/clock module how can I enable clock/time ":" point

tm1637.point(POINT_ON); or
tm1637.point(true);

is it wrong?

@Combinacijus
Copy link
Contributor

Seems right to me

/**** definitions for the clock point of the digit tube *******/
#define POINT_ON 1
#define POINT_OFF 0

void TM1637::point(boolean PointFlag)
{
_PointFlag = PointFlag;
}

int8_t TM1637::coding(int8_t DispData)
{
uint8_t PointData;
if(_PointFlag == POINT_ON)PointData = 0x80;
else PointData = 0;
if(DispData == 0x7f) DispData = 0x00 + PointData;//The bit digital tube off
else DispData = TubeTab[DispData] + PointData;
return DispData;
}

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Grove_4Digital_Display Label for Grove_4Digital_Display labels Oct 9, 2024
@Lesords Lesords self-assigned this Oct 15, 2024
@Lesords Lesords assigned ackPeng and unassigned Lesords Oct 16, 2024
@ackPeng
Copy link

ackPeng commented Oct 16, 2024

@purevnorov This doesn't seem to be a problem.

@Lesords
Copy link
Contributor

Lesords commented Oct 30, 2024

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]

@Lesords Lesords closed this as completed Oct 30, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PR Assemble Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Grove_4Digital_Display Label for Grove_4Digital_Display UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

5 participants