Skip to content

NTP Clock example #18

@BaltasarParreira

Description

@BaltasarParreira

This line of code on the NTP Clock example doesn't do nothing:

const bool HOUR_12 = true; // 12-hour format

This is a possible missing code (in bold) so this works:

byte format_hour(byte hr){
if (HOUR_12) {
if(hr > 12){
hr-=12;
}
if(hr == 0){
hr = 12;
}
}
return hr;
}

Also this example is a bit different from the one showing on your YouTube video (https://www.youtube.com/watch?v=FwXqQos0ZFk).
Can you share the one from the video and also the color changing android APP?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions