Skip to content

Add support for buttons on Inky Impression#48

Merged
lawik merged 2 commits into
pappersverk:impressionfrom
jasonmj:impression
Aug 1, 2022
Merged

Add support for buttons on Inky Impression#48
lawik merged 2 commits into
pappersverk:impressionfrom
jasonmj:impression

Conversation

@jasonmj

@jasonmj jasonmj commented Jul 23, 2022

Copy link
Copy Markdown
Collaborator

Luckily, the buttons for the impression are the same as those on the Unicorn Hat, so I was able to pull in the same code, which coincidentally is the same as the button code for the Scroll Hat.

I think Pimoroni must have planned for their devices to use the same pins for buttons. How convenient :)

@jasonmj jasonmj requested review from lawik and nyaray July 23, 2022 21:51
@jasonmj jasonmj marked this pull request as ready for review July 23, 2022 21:51

@lawik lawik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, added a question :)

Comment thread lib/buttons.ex Outdated
The Inky Impression has 4 buttons that are monitored independently from the display
and can be started in supervison.

Supply the `:handler` option as either a pid, or `{module, function, args}` tuple

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to also support an atom name for a process? I think that'd be convenient considering these are all likely singletons.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lawik I've added support for atom name in 40cda84

@lawik lawik merged commit 6a6cd42 into pappersverk:impression Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants