From 938b3af523c22d66b19f64dd0059c7de98f1e815 Mon Sep 17 00:00:00 2001 From: drath Date: Mon, 11 May 2026 11:20:16 +0200 Subject: [PATCH] more cleanup --- CMakeLists.txt | 12 +----------- README.md | 1 + 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b14409..047d6ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index b5f2bcf..d0008a3 100644 --- a/README.md +++ b/README.md @@ -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.