Rename functions name for better code clarity

This commit is contained in:
2025-05-15 22:08:36 +02:00
parent 412354fe88
commit cf3230c470
4 changed files with 23 additions and 16 deletions
+8
View File
@@ -1,6 +1,8 @@
#ifndef CONFIG_H
#define CONFIG_H
//#define VASE_NUM 0
#define MOISTURE_SENSOR_A0 PC0
#define MOISTURE_SENSOR_A1 PC1
#define MOISTURE_SENSOR_A2 PC2
@@ -12,6 +14,12 @@
//#define MOISTURE_SENSOR_A6 PC6
//#define MOISTURE_SENSOR_A7 PC7
// You may connect only the number of pumps that actually are needed in the vase
#define PUMP_D3 PD3
#define PUMP_D4 PD4
#define PUMP_D5 PD5
#define PUMP_D6 PD6
#define PUMP_D7 PD7
#define SENSOR_READINGS 5
#define SENSORS_NUM 6
+4 -4
View File
@@ -4,10 +4,10 @@
#include <stdint.h>
#include <stdbool.h>
void initMoistureSensors(void);
void triggerSensorsRead(void);
int16_t moistureSensorsAverage(int8_t sensorPin);
int16_t readMoisture(void);
void sensorsInit(void);
void triggerRead(void);
int16_t moistureAverage(int8_t sensorPin);
int16_t moistureRead(void);
extern volatile bool readSensors;