mch2022-talktopics/main/include/button_wrapper.h

16 lines
306 B
C
Raw Normal View History

2022-04-15 23:16:36 +00:00
#pragma once
#include <stdio.h>
#include <string.h>
#include <sdkconfig.h>
#include <freertos/FreeRTOS.h>
#include <freertos/queue.h>
#include "hardware.h"
typedef struct _button_message {
uint8_t button;
bool state;
} button_message_t;
void button_init(PCA9555* aPca9555, xQueueHandle aQueue);