Sitelet https://github.com/lewisxhe/PCF8563_PythonLibrary/issues/2
Skip to content

Days of the week. #2

Description

@chicory-ru

The range of days of the week according to the datasheet is 0-6, and you have 1-7 when recording. Although for the alarm at the very end of the code is correct.

145        day [0,7]

180        if day < 1 or day > 7:
181            raise ValueError('Day is out of range [1,7].')

280        if weekday < 0 or weekday > 6:
281            raise ValueError('weekday is out of range [0,6].')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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