-
Notifications
You must be signed in to change notification settings - Fork 789
Secrets Cleanup: L, M and O #3001
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
Conversation
str_code = str(code % 10 ** digits) | ||
while len(str_code) < digits: | ||
str_code = '0' + str_code | ||
otp_code = ((hmac_hash[offset] & 0x7f) << 24 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse of code
, so renamed
@@ -80,7 +76,9 @@ | |||
rtc_time.anchor_point = (0.0, 0.5) | |||
rtc_time.anchored_position = (0, 59) | |||
|
|||
progress_bar = HorizontalProgressBar((68, 46), (55, 17), bar_color=0xFFFFFF, min_value=0, max_value=30) | |||
progress_bar = HorizontalProgressBar( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linting
print("Credentials and tokens are kept in secrets.py, please add them there!") | ||
raise | ||
# Get WiFi details, ensure these are setup in settings.toml | ||
ssid = getenv("CIRCUITPY_WIFI_SSID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
many MagTag
examples import secrets, but don't always use them, but do use Network. So raising an error if the keys aren't there
@FoamyGuy here's the next one! |
@@ -0,0 +1,22 @@ | |||
# SPDX-FileCopyrightText: 2021 Carter Nelson for Adafruit Industries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed and updated from secrets.py per conversation on Discord
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
All guide pages are updated. I switched a handful of them from static uploaded file screenshots to the ones generated automatically. |
Uh oh!
There was an error while loading. Please reload this page.