Skip to content
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

Adds an lcd 16x2 example that also uses buzzer and buttons #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Adds an lcd 16x2 example that also uses buzzer and buttons #90

wants to merge 2 commits into from

Conversation

lamenezes
Copy link
Contributor

A countdown in a 16x2 LCD.
It is possible to pause or reset the countdown using buttons.
When the countdown ends buzzes continuously.

Requires:

Hardware:

  • 16x2 LCD (8 digital pins)
  • Buzzer (1 digital pin)
  • 2x buttons (1 digital pin each)


import time
import pingo

Copy link
Contributor

Choose a reason for hiding this comment

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

from pingo import State, Mode

should be necessary if Enum for State and Mode is accept

see #109

@scls19fr
Copy link
Contributor

Examples should come with schematics
Fritzing is nice http://fritzing.org/

beep(interval=0.03, times=2)

if pause_status:
lcd.message(u'PAUSADO em\n{}'.format(seconds_to_minutes(countdown)))
Copy link
Contributor

Choose a reason for hiding this comment

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

An english message is (probably) better for international cooperation.

@Vido
Copy link
Contributor

Vido commented Feb 28, 2016

@lamenezes , Thanks.

Since just an example, I guess it's good to go.
It would be nice to have a Fritzing schematics.

Thanks!

@lamenezes
Copy link
Contributor Author

@Vido Unfortunately I don't have the schematics anymore. I formatted my PC a few months ago and lost them all.

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.

None yet

3 participants