-
Notifications
You must be signed in to change notification settings - Fork 12
pass additonal pins as arguments #66
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
pass additonal pins as arguments #66
Conversation
displayio.release_displays() | ||
if spi is None: | ||
spi = board.SPI() | ||
if cs is None: | ||
cs = board.D9 | ||
if dc is None: | ||
dc = board.D10 |
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.
was the default for dc
here removed intentionally?
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.
No -- I will restore it -- surprised it worked OK on the stm32...
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.
restored - thanks for catching that.
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 think we do want the dc
default. I needed to add this back in to be able to use the no parameter constructor keyboard_featherwing.KeyboardFeatherwing()
on a Feather Sense.
if dc is None:
dc = board.D10
I tested your changes successfully with UM Feather S2 and it's working well.
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.
Looks Good to me. Thank you!
Updating https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing to 1.13.1 from 1.13.0: > Merge pull request adafruit/Adafruit_CircuitPython_FeatherWing#66 from jerryneedell/jerryn_keyboard_featherwing
addresses #65
add argument for passing ts_cs, sd_cs, neopixel_pin as arguments
keep defaults as expected.
tested default settings with feather_stm32f405_express
tested non-standard settings with umfeathers2
I had to disable pylint (too-many-arguments)