pull/8/head
Jaup 9 years ago
parent 420d8e0cde
commit cdaaa6727a

@ -1,11 +1,9 @@
#include "button.h"
#include "string.h"
//MultiButton
#define HIGH 1
#define LOW 0
#define TICKS_INTERVAL 5 //ms
const uint8_t kDebounceTicks = 3;
@ -14,7 +12,6 @@ const uint16_t kLongTicks = (1000/TICKS_INTERVAL);
static struct Button* head_handle = NULL;
/**
* @brief Initializes the button struct handle.
* @param handle: the button handle strcut.

@ -1,7 +1,8 @@
#ifndef _BUTTON_H_
#define _BUTTON_H_
#include <stdint.h>
#include "stdint.h"
#include "string.h"
typedef void (*CallBackFunc)(void);

Loading…
Cancel
Save