more cleanup

This commit is contained in:
2026-05-11 11:20:16 +02:00
parent ac75332680
commit 938b3af523
2 changed files with 2 additions and 11 deletions

View File

@@ -5,10 +5,8 @@ project(linuxSmartie
LANGUAGES C
)
# Use C23
# Use C99
set(CMAKE_C_STANDARD 99)
#set(CMAKE_C_STANDARD_REQUIRED ON)
#set(CMAKE_C_EXTENSIONS ON)
# Collect sources
file(GLOB SOURCES
@@ -37,16 +35,8 @@ target_compile_options(linuxSmartie
-fdiagnostics-color=always
)
find_package(libwebsockets QUIET)
find_package(ZLIB QUIET)
if(libwebsockets_FOUND)
target_link_libraries(linuxSmartie PRIVATE websockets)
target_compile_definitions(linuxSmartie PRIVATE ENABLE_HOME_ASSISTANT)
else()
message(STATUS "no libwebsockets found, disabling hass")
endif()
if(ZLIB_FOUND)
target_link_libraries(linuxSmartie PRIVATE ZLIB::ZLIB)
target_compile_definitions(linuxSmartie PRIVATE ENABLE_ZLIB)

View File

@@ -2,6 +2,7 @@
Alphanumeric LCD controller software for Linux (kind of LCDSmartie for Windows but no GUI, no config file, no plugins, no Windows).
Big ol rewrite in C, like God intended because GOOD LORD C++ IS A MESS. Originally written with C23, then ported to C99 because it's a bigger numer. Also trivially portable to ANSI C. Idk maybe I'll port it to C23 again.
It is at feature parity with C++ (for now), minus home assistant stuff bc I hate it. I alredy have it somewhere else and logged to history. I probably won't update C++ version now.
Hardcoded to work with 4x40 character display because that's what I have and I don't plan on using anything else. Uses Matrix Orbital protocol over serial. Should work with most other display sizes by modifying `src/lcd.c`. Best of luck if you try to make it work with anything else.