### Build and install the library Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Runs the install script from the daqhats directory. The installer detects the HAT board EEPROMs and saves their contents if needed. ```bash cd ~/daqhats sudo ./install.sh ``` -------------------------------- ### Install git Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Installs the git package, required to clone the daqhats repository. ```bash sudo apt install git ``` -------------------------------- ### Install daqhats in a virtual environment Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Creates a virtual environment and installs the daqhats package in it. Replace with the desired venv location. ```bash python -m venv /bin/pip install daqhats ``` -------------------------------- ### Install daqhats Python library system-wide Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Installs the daqhats Python package system-wide with pip. On recent Python versions, appending --break-system-packages may be required. ```bash sudo pip install daqhats ``` -------------------------------- ### Display installed daqhats version Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Runs the daqhats_version command to show the installed version of the package. ```bash daqhats_version ``` -------------------------------- ### Update packages and reboot Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Optional step to update all installed packages and reboot the Raspberry Pi. Re-run this if errors occur during installation. ```bash sudo apt full-upgrade sudo reboot ``` -------------------------------- ### Update package list Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Run this command to update the package list on the Raspberry Pi, as the first step of the installation process. ```bash sudo apt update ``` -------------------------------- ### Clone daqhats repository Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Clones the daqhats GitHub repository into the current user's home folder, as part of the installation steps. ```bash cd ~ git clone https://github.com/mccdaq/daqhats.git ``` -------------------------------- ### Update package list Source: https://mccdaq.github.io/daqhats/install.html Updates the package list on the Raspberry Pi before installing the daqhats library. ```bash sudo apt update ``` -------------------------------- ### Include daqhats header in C code Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt The include line to add to C source code so the daqhats header is found. The headers are installed in /usr/local/include/daqhats. ```c #include ``` -------------------------------- ### Update MCC 118 firmware Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Updates the firmware on the MCC 118 installed at address 0. Repeat the command for each MCC 118 address in the board stack. ```bash mcc118_firmware_update 0 ~/daqhats/tools/MCC_118.hex ``` -------------------------------- ### Update MCC 128 firmware with mcc128_firmware_update Source: https://mccdaq.github.io/daqhats/overview.html Updates the firmware on an MCC 128 board installed at address 0. Repeat the command for each MCC 128 address in your board stack, replacing the address and firmware path as needed. ```bash mcc128_firmware_update 0 ~/daqhats/tools/MCC_128.fw ``` -------------------------------- ### Update saved EEPROM images Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Run sudo daqhats_read_eeproms to update the saved EEPROM images, required when the board stack changes and more than one HAT board is attached. ```bash sudo daqhats_read_eeproms ``` -------------------------------- ### Uninstall daqhats Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Runs the uninstall script from the daqhats directory to remove the package. ```bash cd ~/daqhats sudo ./uninstall.sh ``` -------------------------------- ### Read EEPROMs Source: https://mccdaq.github.io/daqhats/install.html Updates the saved EEPROM images for the library when the board stackup changes and more than one HAT board is attached. ```bash sudo daqhats_read_eeproms ``` -------------------------------- ### Update kernel for Raspberry Pi 5 ioctl errors Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Run sudo rpi-update to update the kernel if ioctl errors are seen when running on a Raspberry Pi 5. ```bash sudo rpi-update ``` -------------------------------- ### List detected DAQ HATs Source: https://mccdaq.github.io/daqhats/_sources/install.rst.txt Displays a list of the detected boards using the daqhats_list_boards command. ```bash daqhats_list_boards ``` -------------------------------- ### Update kernel on Raspberry Pi 5 Source: https://mccdaq.github.io/daqhats/install.html Updates the kernel on a Raspberry Pi 5 if ioctl errors occur when running the daqhats library. ```bash sudo rpi-update ``` -------------------------------- ### Update MCC 172 firmware with mcc172_firmware_update Source: https://mccdaq.github.io/daqhats/overview.html Updates the firmware on the MCC 172 board at address 0. The '0' is the board address; repeat the command for each MCC 172 address in the board stack. ```bash mcc172_firmware_update 0 ~/daqhats/tools/MCC_172.fw ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.