Skip to content

Commit

Permalink
added include/compilation section
Browse files Browse the repository at this point in the history
  • Loading branch information
vtx22 authored Nov 14, 2023
1 parent c71ec22 commit 39022bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ C++ Library for interfacing the ADS7828 AD-Converter with STM32 microcontrollers
- Averaging of the last N values for every channel (dynamic or static storage options)

# Usage
### Includes and Compilation
Include the Library via
```
#include "ADS7828.hpp"
```
Make sure to define which STM32 controller you are using! This is relevant for the selection of the HAL Library. You can select the MCU family with the `-D STM32F1` flag while compiling.
Or simply define it at the start of your code with `#define STM32F1`. Change accordingly for your STM32!

---
### Init
Create an ADS7828 object with an initialized I2C handle and the device address.
```
Expand Down

0 comments on commit 39022bf

Please sign in to comment.