Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davang/esp-davang
My esp-idf libraries
https://github.com/davang/esp-davang
adc dac esp-idf esp-idf-component esp32 gpio i2c linux microcontroller pwm spi uart windows-10
Last synced: about 2 months ago
JSON representation
My esp-idf libraries
- Host: GitHub
- URL: https://github.com/davang/esp-davang
- Owner: Davang
- License: mit
- Created: 2024-05-21T20:04:10.000Z (9 months ago)
- Default Branch: develop
- Last Pushed: 2024-09-19T21:08:47.000Z (5 months ago)
- Last Synced: 2024-12-22T00:44:30.324Z (about 2 months ago)
- Topics: adc, dac, esp-idf, esp-idf-component, esp32, gpio, i2c, linux, microcontroller, pwm, spi, uart, windows-10
- Language: C++
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-davang
Custom classes to wrap around esp-idf. The main idea is not make it faster neither lighter but try to use `c++` features to ease future implementations.
For example compile checking validity of peripherals configurations. Improve memory safety like using `std::string` instead of `char*`.As with esp-idf an export script is given to ease its use. It exports two variables, `DAVANG_ESP` and `DAVANG_COMPONENT_DIRS`.
* `DAVANG_ESP` : the path to the esp-davang directory base of the repository.
* `DAVANG_COMPONENT_DIRS` : the path to the components directory base of the.I know writting a warp over an already HAL/BSP libary makes no sense, as for that reason you may use the existing one already.
My classes remove some funciontality, will ad some overhead to the code, and not be as tested as esp-idf.
So why did I do it? beacuase I do not use all the functionlay mos of the time, and run time errors are a pain in the ass.
I used this classes for a few time, and they are helpfull to me, I hope they to you too.## Components
This directory has all componets, each have a unique folder with _dvng_ as prefix this way they may nor result in conflict with any other component.
Add `list(APPEND EXTRA_COMPONENT_DIRS "${DAVANG_COMPONENT_DIRS}")` to your project.## Examples
Just what the name says it is, examples.
## Linux
Execute [export.sh](./export.sh) it relies on [get_idf alias](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/linux-macos-setup.html#step-4-set-up-the-environment-variables).
It sets custom davang and esp-idf enviroment variables. After it try to compile one of the [examples](./examples).
## Windows
Execute [Initialize-Davang.ps1](./Initialize-Davang.ps1) and all esp variables, it relies on `\Initialize-Idf.ps1` script and that esp-idf was installed at home.
It sets custom davang and esp-idf enviroment variables. After it try to compile one of the [examples](./examples).
This shortcut may be attached to windows start menu or placed on the Desktop whenever you prefer, or as command line in a profile in terminal application.
```powershell
powershell.exe -ExecutionPolicy Bypass -NoExit -File " %USERPROFILE%\esp-davang\Initialize-Davang.ps1"
```---
Davang