From c0221846f9ad7c8a0bfee13b00c451842c76cae3 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Thu, 26 Nov 2020 07:26:53 -0600 Subject: [PATCH] Update Reference.md --- docs/Reference.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/Reference.md b/docs/Reference.md index f8c489b..b011507 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -82,9 +82,12 @@ The following methods are supported: * `virtual void loop()` * HomeSpan calls this method every time `homeSpan.poll()` is executed. Users should override this method with code that monitors for state changes in Characteristics that require HomeKit Controllers to be notified. * `virtual void button(int pin, int pressType)` - * HomeSpan calls this method whenever a SpanButton() object associated with the Service is triggered. Users should override this method with code that implements any actions that should be taken in response to the SpanButton() trigger + * HomeSpan calls this method whenever a SpanButton() object associated with the Service is triggered. Users should override this method with code that implements any actions to be taken in response to the SpanButton() trigger * *pin* - the ESP32 pin associated with the SpanButton() object - * *pressType* - 0=single press, 1=double press, 2=long press + * *pressType* - + * 0=single press (SpanButton::SINGLE) + * 1=double press (SpanButton::DOUBLE) + * 2=long press (SpanButton::LONG) ## *SpanCharacteristic()*