Loading files
7452d848cThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/hivehub-1225459033.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
#!/usr/bin/env sh
# Build and run the host-level I2C hardening tests. Needs only a C++17 g++/clang++
# — no Arduino toolchain: the tests exercise the exact production headers
# (i2c_iface.h, nau7802_checked.h, scale_math.h, scale_topology.h) against the
# scripted mock bus in mock_i2c.h.
set -e
cd "$(dirname "$0")"
: "${CXX:=g++}"
mkdir -p build
"$CXX" -std=gnu++17 -Wall -Wextra -Werror -I../include \
-o build/test_i2c_hardening test_i2c_hardening.cpp
./build/test_i2c_hardening
"$CXX" -std=gnu++17 -Wall -Wextra -Werror -I../include \
-o build/test_sht4x_recovery test_sht4x_recovery.cpp
./build/test_sht4x_recovery
7452d848cThis file is pinned to the selected release. Download the original to open it in your design tool.