diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2021-11-29 16:39:37 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2021-11-29 16:39:37 -0700 |
commit | 1888bc20144559265b0719e5a0f83a5150a867c6 (patch) | |
tree | e82e18ae283a30f434196f50d114ca4beeef0189 /main/main.c | |
parent | 41574c410661c7ce9231cf9c29602f307f393276 (diff) | |
download | esp32-ws2812b-1888bc20144559265b0719e5a0f83a5150a867c6.tar.gz esp32-ws2812b-1888bc20144559265b0719e5a0f83a5150a867c6.tar.bz2 esp32-ws2812b-1888bc20144559265b0719e5a0f83a5150a867c6.zip |
Add ability to connect to wifi.
This adds a small subsystem to connect to a basic WPA accesspoint.
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index 7fbf47d..06fb4ef 100644 --- a/main/main.c +++ b/main/main.c @@ -5,6 +5,7 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "sdkconfig.h" +#include "station.h" #ifdef CONFIG_IDF_TARGET_ESP32 #define LCD_HOST HSPI_HOST @@ -83,6 +84,8 @@ void app_main(void) printf("Configuration complete!!\n"); + wifi_init_station(); + ws2812b_t* drv = ws2812b_init(spi); ws2812b_buffer_t* buffer = ws2812b_new_buffer(5); |