Automatically add code to main.c
All checks were successful
Build & Publish / build (push) Successful in 10m5s

This commit is contained in:
2023-08-03 14:44:16 +02:00
parent 555419f701
commit 231880178f
6 changed files with 61 additions and 39 deletions

View File

@@ -1,3 +1,10 @@
/* --------------------------- */
/* Buttons */
/* --------------------------- */
/* Imports / Declarations */
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/sys/util.h>
@@ -25,6 +32,7 @@ static struct gpio_dt_spec led = GPIO_DT_SPEC_GET_OR(DT_ALIAS(led0), gpios,
{0});
/* Functions */
void button_pressed(const struct device *dev, struct gpio_callback *cb,
uint32_t pins)
{

View File

@@ -0,0 +1 @@
CONFIG_GPIO=y