![]() |
AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
|
Class to actuate a beeper connected to PIEZO_PIN. More...
#include <beeper.h>


Public Member Functions | |
| void | init (bool enabled) final |
| bool | enabled () final |
| BeepState | getState () final |
| void | ready () final |
| void | finishedLine () final |
| void | endWork () final |
| void | error () final |
| void | schedule () final |
Private Member Functions | |
| void | beep (uint8_t repeats) |
Private Attributes | |
| BeepState | m_currentState |
| BeepState | m_nextState |
| unsigned long | m_nextTime |
| uint8_t | m_repeat |
| bool | m_enabled |
Class to actuate a beeper connected to PIEZO_PIN.
|
private |
Generic beep function.
/param repeats number of beeps

|
finalvirtual |
|
finalvirtual |
Beep to indicate the end the knitting pattern
Implements BeeperInterface.
References beep().

|
finalvirtual |
Implements BeeperInterface.
|
finalvirtual |
Beep to indicate the end of a line
Implements BeeperInterface.
References beep().

|
finalvirtual |
Get beeper state
Implements BeeperInterface.
|
finalvirtual |
Initialize beeper
Implements BeeperInterface.
References enabled().

|
finalvirtual |
Beep to indicate readiness
Implements BeeperInterface.
References beep().

|
finalvirtual |
Beep handler scheduled from main loop
Implements BeeperInterface.