Compare commits

...
8 Commits
Author SHA1 Message Date
mitchell 8ce58f411e setup sdkconfig and clean main 2026-07-20 16:31:52 -05:00
mitchell 67a85f2c11 move bbnow code 2026-07-20 15:48:07 -05:00
mitchell 98b5b96171 lvgl demo 2026-07-19 16:07:11 -05:00
mitchell 76f1c90afe bbnow test code 2026-07-19 14:20:18 -05:00
mitchell 8fed43c086 game timer 2026-04-04 16:35:47 -05:00
mitchell 4c52bff3e7 char lcd 2026-04-04 11:38:23 -05:00
mitchell 5ea3df10a4 leds 2026-04-01 22:11:54 -05:00
mitchell 9578c81dc0 update to inputs 2026-04-01 16:32:19 -05:00
9 changed files with 75 additions and 32 deletions
+3
View File
@@ -1,3 +1,6 @@
[submodule "components/blk_box_lib"] [submodule "components/blk_box_lib"]
path = components/blk_box_lib path = components/blk_box_lib
url = https://git.marinodev.com/MarinoDev/blk_box_lib.git url = https://git.marinodev.com/MarinoDev/blk_box_lib.git
[submodule "components/blk_box_common"]
path = components/blk_box_common
url = https://git.marinodev.com/MarinoDev/blk_box_common.git
+32 -2
View File
@@ -1,10 +1,40 @@
dependencies: dependencies:
atanisoft/esp_lcd_ili9488:
component_hash: 1bbdbec8ae5b5c32db45ace2c19a8d79c0eaa919209ce190a0be3dada703ddcf
dependencies:
- name: idf
require: private
version: '>=4.4.2'
source:
registry_url: https://components.espressif.com/
type: service
version: 1.1.1
espressif/led_strip:
component_hash: 28621486f77229aaf81c71f5e15d6fbf36c2949cf11094e07090593e659e7639
dependencies:
- name: idf
require: private
version: '>=5.0'
source:
registry_url: https://components.espressif.com/
type: service
version: 3.0.3
idf: idf:
source: source:
type: idf type: idf
version: 6.0.0 version: 6.0.2
lvgl/lvgl:
component_hash: d7c1ac037ae6e85d94897f807d6e7ba0946a83e720074fc95a4f6241da9f9f53
dependencies: []
source:
registry_url: https://components.espressif.com/
type: service
version: 8.4.0
direct_dependencies: direct_dependencies:
- atanisoft/esp_lcd_ili9488
- espressif/led_strip
- idf - idf
manifest_hash: 358b3aa9e74271a73347d172c5db1dd47acf31327fbda2257d6bdd67a24e3d2a - lvgl/lvgl
manifest_hash: 7282d42cdeb16392146e8acc67acc4625ae6ba6cba2b36852bd0e96432388883
target: esp32s3 target: esp32s3
version: 3.0.0 version: 3.0.0
+12 -1
View File
@@ -5,4 +5,15 @@ idf_component_register(
esp_driver_i2c esp_driver_i2c
spi_flash spi_flash
blk_box_lib blk_box_lib
INCLUDE_DIRS "") blk_box_common
esp_event
esp_netif
esp_wifi
nvs_flash
INCLUDE_DIRS ""
)
target_compile_options(${COMPONENT_LIB} PRIVATE
-Wno-error=missing-field-initializers
)
+1 -1
View File
@@ -2,7 +2,7 @@
dependencies: dependencies:
## Required IDF version ## Required IDF version
idf: idf:
version: ">=6.0.0" version: '>=6.0.0'
# # Put list of dependencies here # # Put list of dependencies here
# # For components maintained by Espressif: # # For components maintained by Espressif:
# component: "~1.0.0" # component: "~1.0.0"
+8 -27
View File
@@ -1,38 +1,19 @@
#include <stdio.h>
#include <inttypes.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "esp_chip_info.h"
#include "esp_flash.h"
#include "esp_system.h"
#include "blk_box.h" #include "blk_box.h"
#include "blk_box_drivers/i2c.h" #include "blk_box_drivers/char_lcd.hpp"
#include "blk_box_drivers/expander.hpp" #include "blk_box_drivers/helpers.hpp"
#include <lvgl.h>
const static char TAG[] = "main";
extern "C" void app_main(void) { extern "C" void app_main(void) {
BlkBoxInitConfig blk_box_cfg = {}; BlkBoxInitConfig blk_box_cfg = {};
init_blk_box(blk_box_cfg); init_blk_box(blk_box_cfg);
printf("Hello, Blk Box!\n"); LCDController::set_backlight(true);
while (1) { lcd_do_splash();
if (InputsController::has_button_press()) {
Button b = InputsController::wait_button_press();
printf("Button pressed: %d\n", raw_value(b));
}
if (InputsController::has_switch_flip()) {
SwitchFlip flip = InputsController::wait_switch_flip();
printf("Switch flipped: %d, new state: %d\n", raw_value(flip.get_switch()), flip.is_up());
}
if (InputsController::has_keypad_press()) {
KeypadKey k = InputsController::wait_keypad_press();
printf("Keypad key pressed: %c\n", keypad_key_to_char(k));
}
vTaskDelay(10 / portTICK_PERIOD_MS);
}
// TODO: impl P001DM
} }
+8
View File
@@ -0,0 +1,8 @@
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,,0x4000,
otadata,data,ota,,0x2000,
phy_init,data,phy,,0x1000,
factory,app,factory,,0x11000,
ota_0,app,ota_0,,3M,
ota_1,app,ota_1,,3M,
1 # ESP-IDF Partition Table
2 # Name, Type, SubType, Offset, Size, Flags
3 nvs,data,nvs,,0x4000,
4 otadata,data,ota,,0x2000,
5 phy_init,data,phy,,0x1000,
6 factory,app,factory,,0x11000,
7 ota_0,app,ota_0,,3M,
8 ota_1,app,ota_1,,3M,
+9
View File
@@ -0,0 +1,9 @@
# This file was generated using idf.py save-defconfig or menuconfig [D] key. It can be edited manually.
# Espressif IoT Development Framework (ESP-IDF) 6.0.2 Project Minimal Configuration
#
# default:
CONFIG_IDF_TARGET="esp32s3"
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_LV_FONT_MONTSERRAT_24=y