Skip to content

3 update the stcc4 sensor code for the thermometer example#4

Merged
v2016e merged 25 commits into
mainfrom
3-update-the-stcc4-sensor-code-for-the-thermometer-example
Jun 30, 2026
Merged

3 update the stcc4 sensor code for the thermometer example#4
v2016e merged 25 commits into
mainfrom
3-update-the-stcc4-sensor-code-for-the-thermometer-example

Conversation

@v2016e

@v2016e v2016e commented May 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@v2016e v2016e linked an issue May 27, 2026 that may be closed by this pull request
@v2016e
v2016e requested a review from BartolomeyKant June 16, 2026 07:23
Comment thread main/sensors/esp_main_utils.c Outdated
# include <freertos/FreeRTOS.h>
# include <freertos/task.h>

//#define I2C_LEGACY_DRIVER

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why left this commented?

Comment thread main/controller.cpp Outdated
std::uint32_t humidity = {};
std::uint32_t co2 = {};
ReadSensors(&temperature, &humidity, nullptr, &co2, nullptr);
std::cout << ae::Format(" >>> Temperature: [{}]\n", temperature);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could print all of this in one Format and std::cout call.

Like

std::cout << ae::Format(<All formats in one>, <list of all variables>)

Comment thread .gitignore Outdated

# Build directory
build/
build*/**.cmake

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should list only build/ or build*/*

Comment thread main/CMakeLists.txt

# Write the value of the BOARD variable to this file
if(NOT "${BOARD}" STREQUAL "")
file(WRITE "${ULP_BOARD_FILE}" "set(BOARD \"${BOARD}\")\n")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really complicated!

First of all you should use configure_file cmake command for this.

Did you check what BOARD variable is not visible inside ulp/CMakeLists.txt ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe later.

@v2016e
v2016e merged commit dbe3c85 into main Jun 30, 2026
3 checks passed
@v2016e
v2016e deleted the 3-update-the-stcc4-sensor-code-for-the-thermometer-example branch June 30, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the STCC4 sensor code for the thermometer example.

3 participants