Skip to content

Commit 16604ae

Browse files
authored
Merge pull request #24 from n-elia/dev
Release v0.4.2
2 parents 235057b + 2b9a810 commit 16604ae

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Please do not rely on it for medical purposes or professional usage.
4343

4444
Driver usage is quite straightforward. You just need to import the library, and to set up a `SoftI2C` instance.
4545

46-
A full example is provided in `/example` directory.
46+
A full example is provided in `/examples/basic_usage` directory.
4747

4848
### 1 - Including this library into your project
4949

@@ -98,8 +98,8 @@ Then, import the constructor as follows:
9898
from max30102 import MAX30102
9999
```
100100

101-
To run the example in `./example` folder, copy `max30102/circular_buffer.py` and `max30102/__init__.py` into
102-
the `./example/lib/max30102` directory. Then, upload the `./example` directory content into your microcontroller. After the
101+
To run the example in `./examples/basic_usage` folder, copy `max30102/circular_buffer.py` and `max30102/__init__.py` into
102+
the `./examples/basic_usage/lib/max30102` directory. Then, upload the `./examples/basic_usage` directory content into your microcontroller. After the
103103
upload, press the reset button of your board are you're good to go.
104104

105105
### 2 - I2C setup and sensor configuration
@@ -288,6 +288,9 @@ resolution of 0.0625°C, but be aware that the accuracy is ±1°C.
288288

289289
## Changelog
290290

291+
- v0.4.2
292+
- Added an heartrate estimation example.
293+
- Issued a new release to update the PyPi docs.
291294
- v0.4.1
292295
- Changed the module files organization.
293296
- Added support to `mip` package manager.
@@ -356,7 +359,7 @@ running an I2C scan before actually using the sensor, as shown in the provided e
356359

357360
### Realtime plot over Serial
358361

359-
The example proposed in this repository ([main.py](./example/main.py)) contains a print statement in a CSV-like
362+
The example proposed in this repository ([main.py](./examples/basic_usage/main.py)) contains a print statement in a CSV-like
360363
format: `print(red_reading, ",", IR_reading)`. If you open Arduino IDE and connect your board, then you will be able to
361364
open the *serial plotter* (Ctrl+Maiusc+L) and see a real-time plot of your readings (need some help? take a
362365
look [here](https://learn.sparkfun.com/tutorials/max30105-particle-and-pulse-ox-sensor-hookup-guide/all)).
@@ -376,8 +379,9 @@ your phone camera to check), then you have to collect IR samples as red ones and
376379

377380
If you're looking for algorithms for extracting heartrate and SPO2 from your RAW data, take a
378381
look [here](https://github.com/aromring/MAX30102_by_RF)
379-
and [here](https://github.com/kandizzy/esp32-micropython/tree/master/PPG)
382+
and [here](https://github.com/kandizzy/esp32-micropython/tree/master/PPG).
380383

384+
A basic example of heartrate detection is also available in `./examples/heart_rate`.
381385

382386
### ESP8266 module import error
383387

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
],
66
"deps": [
77
],
8-
"version": "0.4.1"
8+
"version": "0.4.2"
99
}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="micropython-max30102",
6-
version="0.4.1",
6+
version="0.4.2",
77
description="MAX30102 driver for micropython.",
88
long_description=open("README.md").read(),
99
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)