I have been trying to wrap my head around the build system. I have the following configuration in mind:
Code: Select all
- components
- internet //resources downloaded from internet. (git submodule)
- esp-32-owb //https://github.com/DavidAntliff/esp32-owb
- onewire
- onewire.h //includes onewirebus.h and all onewiredevices. So in the main i only have to include this file to get access to all onewire devices.
- onewirebus
- onewirebus.h //represents a onewire bus. This is a CPP wrapper around esp-32-owb. Has a function to search for devices, returns list of onewiredevice
- onewirebus.cpp
- devices
- onewiredevice.h //a onewire device of unknown type. (uses onewirebus for comminucation.)
- onewiredevice.cpp
- ds18B20.h //inherits onewiredevice, adds functions like ReadTemperature(). Uses onewirebus for comminucation.
- ds18B20.h