Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiencorpataux/micropython-sensirion-sps30
PROTOTYPING - Micropython module for Sensirion SPS30. Native C module compiled from Sensirion official driver code.
https://github.com/damiencorpataux/micropython-sensirion-sps30
prototype sandbox
Last synced: 20 days ago
JSON representation
PROTOTYPING - Micropython module for Sensirion SPS30. Native C module compiled from Sensirion official driver code.
- Host: GitHub
- URL: https://github.com/damiencorpataux/micropython-sensirion-sps30
- Owner: damiencorpataux
- Created: 2023-06-08T14:04:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-08T19:17:48.000Z (over 1 year ago)
- Last Synced: 2024-11-05T16:36:45.390Z (2 months ago)
- Topics: prototype, sandbox
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
micropython-sps30
=================Micropython module for Sensirion SPS-30, based on Sensirion official C driver packaged as mpy file.
Installation
-
...Development
-
Install toolchain:
* Pull the needed submodules: `git submodule init` and pull the submodules to commit/release compatible with your architecture
* Eg. pull micropython 1.20.0 if you want to run the .mpy on micropython 1.20.0
* Install prerequisites:
`sudo apt install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0`
* Install **gcc-multilib** if you want to cross-compile:
`sudo apt install gcc-multilib`
* Install **ESP-IDF toolchain**:
`.toolchain/esp-idf/install.sh esp32`Compile native C module (.mpy file):
* `. toolchain/esp-idf/export.sh`
* Build the **.mpy file**: `make`, or eg. `make ARCH=x86` if you want to cross compileNotes
-
Documentation:
* Sensirion SPS-30 official driver: https://github.com/Sensirion/arduino-sps
* Native machine code in .mpy files: https://docs.micropython.org/en/latest/develop/natmod.html
* Examples: https://github.com/micropython/micropython/tree/master/examples/natmod
* ESP-IDF toolchain install: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html
* About `ValueError: incompatible .mpy file` on `import sps30`: https://github.com/orgs/micropython/discussions/11125We follow the versions of the Sensiron SPS-30 official driver.