Skip to content

Commit 39022bf

Browse files
authored
added include/compilation section
1 parent c71ec22 commit 39022bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ C++ Library for interfacing the ADS7828 AD-Converter with STM32 microcontrollers
1010
- Averaging of the last N values for every channel (dynamic or static storage options)
1111

1212
# Usage
13+
### Includes and Compilation
14+
Include the Library via
15+
```
16+
#include "ADS7828.hpp"
17+
```
18+
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.
19+
Or simply define it at the start of your code with `#define STM32F1`. Change accordingly for your STM32!
20+
21+
---
1322
### Init
1423
Create an ADS7828 object with an initialized I2C handle and the device address.
1524
```

0 commit comments

Comments
 (0)