From 8d13d93dfaf6a1914256be5ccc3b2544d5157f6f Mon Sep 17 00:00:00 2001 From: Theodor Teslia Date: Mon, 22 May 2023 13:09:52 +0200 Subject: [PATCH] Rewrite API --- README.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a6cbabb..16bf452 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,10 @@ # Driver for the MS5607 pressure sensor ## Usage -1. The driver has two main methods: ```int32_t getPressure()``` and ```int32_t getTemperature()``` -2. The constructor takes an SpiDevice pointer and an instance from the OsrLevel enum -3. The OsrLevel enum stores the possible values for the OSR (how fine the sensor measures or sth.) -4. When calling ```getPressure()```, the temperature gets requested from the sensor as well -> May be too slow + +1. The constructor takes an SpiDevice pointer and an instance from the OsrLevel enum +2. The OsrLevel enum stores the possible values for the OSR (how fine the sensor measures or sth.) ## TODO + 1. Debug -2. Add more accurate temperature calculations -3. Change structure of requesting values - - Method for requesting ADC, then return from method to allow MCU to do different things - - Another Method to do the ADC readout and calculations - - Store dT for multiple uses (access only through method, which counts uses down?)