this locks like shit

Dependencies:   MenuLCD mbed

Fork of MenuLCD_copy by Vinícius Alves

menbed/menbedButtonHandlerTimespec.cpp

Committer:
ViniR
Date:
2017-05-19
Revision:
0:92357d1220f3

File content as of revision 0:92357d1220f3:

#include "mbed.h"
#include "include/menbedButtonHandlerTimespec.h"

MenbedButtonHandlerTimespec::MenbedButtonHandlerTimespec () :
    scanPeriod_us(10000), debounceDelay_us(45000), 
    longReleaseDelay_us(2500000), typematicPeriod_us(333000),
    typematicX10Delay_us(2997000), typematicX10Period_us(33000)
{}

MenbedButtonHandlerTimespec::MenbedButtonHandlerTimespec (
    uint32_t scanPeriod_us, 
    uint32_t debounceDelay_us,
    uint32_t longReleaseDelay_us, uint32_t typematicPeriod_us,
    uint32_t typematicX10Delay_us, uint32_t typematicX10Period_us) :
    scanPeriod_us(scanPeriod_us), debounceDelay_us(debounceDelay_us),
    longReleaseDelay_us(longReleaseDelay_us), 
    typematicPeriod_us(typematicPeriod_us), 
    typematicX10Delay_us(typematicX10Delay_us),
    typematicX10Period_us(typematicX10Period_us)
{}