Playing with project config

master
noah metz 2024-02-14 09:30:12 -07:00
parent f00825496f
commit e79580cd1b
2 changed files with 30 additions and 1 deletions

@ -1 +1,10 @@
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
CONFIG_SHELL=y
CONFIG_CRYPTO=y
CONFIG_CONSOLE=y
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_ZIGBEE=y
CONFIG_ZIGBEE_ROLE_ROUTER=y

@ -1,6 +1,26 @@
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/gpio.h>
LOG_MODULE_REGISTER(app, LOG_LEVEL_INF);
int main(void)
{
return 0;
LOG_INF("Starting main");
const struct gpio_dt_spec led_green = GPIO_DT_SPEC_GET(DT_NODELABEL(led0_green), gpios);
gpio_pin_configure_dt(&led_green, GPIO_OUTPUT | GPIO_ACTIVE_LOW);
while(true) {
gpio_pin_set_dt(&led_green, 1);
k_msleep(500);
gpio_pin_set_dt(&led_green, 0);
k_msleep(500);
}
}