31 lines
785 B
C++
31 lines
785 B
C++
#include "blk_box.h"
|
|
|
|
#include "blk_box_drivers/i2c.h"
|
|
#include "blk_box_drivers/inputs.hpp"
|
|
#include "blk_box_drivers/leds.hpp"
|
|
#include "blk_box_drivers/char_lcd.hpp"
|
|
#include "blk_box_drivers/ssegs.hpp"
|
|
#include "blk_box_drivers/tft.hpp"
|
|
#include "blk_box_drivers/nvs.hpp"
|
|
// #include "blk_box_drivers/radio.hpp"
|
|
// #include "blk_box_drivers/.hpp"
|
|
#include "blk_box_drivers/wifi.hpp"
|
|
#include "bbnow_driver.hpp"
|
|
|
|
void init_blk_box(BlkBoxInitConfig cfg) {
|
|
init_main_i2c();
|
|
init_expander();
|
|
init_leds();
|
|
init_lcd();
|
|
init_ssegs();
|
|
init_tft();
|
|
|
|
init_nvs();
|
|
// TODO: should I move everything over to the Class/Namespace style??
|
|
|
|
ESP_ERROR_CHECK(Wifi::init());
|
|
ESP_ERROR_CHECK(BBNowDriver::init());
|
|
// init_radio();
|
|
// init_espnow();
|
|
}
|