mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-06-19 12:25:05 +00:00
* Optional internal pull-ups for SD/MMC pins in DTS * Selectable on‑chip LDO channel for SD/MMC power (can be disabled) * Added several sensor/driver modules to generic ESP32 device configurations so that they become part of the SDKs * SD card mount now prints card information for clearer diagnostics * Fix for bug DTS boolean parsing. Improved tests to catch these issues. * Expanded SDK integration test to include new modules and headers * Modularized packaging to generate per‑module build files and include driver assets
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
#include <tt_app.h>
|
|
#include <tt_lvgl_toolbar.h>
|
|
|
|
#include <tactility/concurrent/dispatcher.h>
|
|
#include <tactility/concurrent/event_group.h>
|
|
#include <tactility/concurrent/mutex.h>
|
|
#include <tactility/concurrent/recursive_mutex.h>
|
|
#include <tactility/concurrent/thread.h>
|
|
#include <tactility/concurrent/timer.h>
|
|
#include <tactility/drivers/gpio.h>
|
|
#include <tactility/drivers/gpio_controller.h>
|
|
#include <tactility/drivers/i2c_controller.h>
|
|
#include <tactility/drivers/i2s_controller.h>
|
|
#include <tactility/drivers/root.h>
|
|
#include <tactility/check.h>
|
|
#include <tactility/defines.h>
|
|
#include <tactility/delay.h>
|
|
#include <tactility/device.h>
|
|
#include <tactility/driver.h>
|
|
#include <tactility/error.h>
|
|
#include <tactility/log.h>
|
|
#include <tactility/module.h>
|
|
#include <tactility/time.h>
|
|
|
|
#include <tactility/lvgl_module.h>
|
|
|
|
#include <drivers/bm8563.h>
|
|
#include <drivers/bmi270.h>
|
|
#include <drivers/mpu6886.h>
|
|
#include <drivers/pi4ioe5v6408.h>
|
|
#include <drivers/qmi8658.h>
|
|
#include <drivers/rx8130ce.h>
|
|
|
|
static void onShowApp(AppHandle app, void* data, lv_obj_t* parent) {
|
|
lv_obj_t* toolbar = tt_lvgl_toolbar_create_for_app(parent, app);
|
|
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
|
|
|
|
lv_obj_t* label = lv_label_create(parent);
|
|
lv_label_set_text(label, "Hello, world!");
|
|
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
|
|
}
|
|
|
|
int main(int argc, char* argv[]) {
|
|
tt_app_register((AppRegistration) {
|
|
.onShow = onShowApp
|
|
});
|
|
return 0;
|
|
}
|