-
Notifications
You must be signed in to change notification settings - Fork 25
Business card update #3
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
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.
The only other thing is that the business_card function only works in 4.1 Beta.
@@ -61,17 +61,17 @@ from adafruit_pybadger import PyBadger | |||
pybadger = PyBadger() | |||
|
|||
while True: | |||
pybadger.show_badge(hello_scale=2, my_name_is_scale=2, name_scale=3) | |||
pybadger.show_badge(name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3) |
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.
I would recommend moving show_badge and auto_dim out of the loop and then allowing something like pressing the start button to switch back to badge mode.
adafruit_pybadger.py
Outdated
email_label.color = 0xFFFFFF | ||
email_group.append(email_label) | ||
business_card_splash.append(email_group) | ||
time.sleep(dwell) |
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.
I'm not entirely sure of the point of the automatically sleep for 20 seconds is. If this is for the purposes of the simepletest, would it be more useful to put it in the simpletest itself?
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.
I realised earlier that I need to make the code non-blocking, but didn't have the time to do so yet. Please do not merge until I have done that - I'll get to it this evening.
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.4.3 from 1.4.2: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#60 from brentru/make-esp-object-public Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 0.8.0 from cf55921: < Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#3 from kattni/business-card-update Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Added the following libraries: Adafruit_CircuitPython_PyBadger
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.5.0 from 1.4.3: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#29 from martymcguire/mm-chunk-socket-sends Updating https://github.com/adafruit/Adafruit_CircuitPython_SI4713 to 1.1.3 from 1.1.2: > Merge pull request adafruit/Adafruit_CircuitPython_SI4713#7 from caternuson/iss2_rds Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Button to 1.1.2 from 1.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Button#8 from makermelissa/master Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 0.9.0 from 0.8.0: > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#3 from kattni/business-card-update
Added email display functionality to
show_business_card
, and changeddata
inshow_qr_code
to a string from a bytearray. Updated examples to be accurate and more thorough.