From c7134a9e07bea961b5e6c1be095cf6533a8d33ce Mon Sep 17 00:00:00 2001 From: Carter Nelson Date: Thu, 9 May 2024 08:46:27 -0700 Subject: [PATCH] Add soil module registers enum (#100) * add soil module enum * clang --- Adafruit_seesaw.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Adafruit_seesaw.h b/Adafruit_seesaw.h index a18fee8..c42f2b5 100644 --- a/Adafruit_seesaw.h +++ b/Adafruit_seesaw.h @@ -54,6 +54,7 @@ enum { SEESAW_KEYPAD_BASE = 0x10, SEESAW_ENCODER_BASE = 0x11, SEESAW_SPECTRUM_BASE = 0x12, + SEESAW_SOIL_BASE = 0x13, }; /** GPIO module function address registers @@ -172,6 +173,21 @@ enum { SEESAW_SPECTRUM_STATUS = 0xFF, }; +/** soil moisture module function address registers + */ +enum { + // 0x00..0x0F Global Settings + SEESAW_SOIL_STATUS = 0x00, + SEESAW_SOIL_RATE = 0x01, + // 0x10..0xF0 Sensor Settings + // lower four bits = sensor number + // upper four bits = setting type + SEESAW_SOIL_VALUE = 0x10, + SEESAW_SOIL_SAMPLES = 0x20, + SEESAW_SOIL_XDELAY = 0x30, + SEESAW_SOIL_TIMEOUT = 0x40, +}; + #define ADC_INPUT_0_PIN 2 ///< default ADC input pin #define ADC_INPUT_1_PIN 3 ///< default ADC input pin #define ADC_INPUT_2_PIN 4 ///< default ADC input pin