From 8a98e7ef89a90e8f7295b8c1d1dcba0941ea79dc Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 5 Jun 2024 22:01:52 +0800 Subject: [PATCH] update --- chip/zgpio.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chip/zgpio.hpp b/chip/zgpio.hpp index 7afef56..1a81bda 100644 --- a/chip/zgpio.hpp +++ b/chip/zgpio.hpp @@ -85,6 +85,8 @@ class ZGPIO { bool setState(bool state); void toggleState(); + bool isNull() { return m_pin == PinNull; } + Pin_t getPin() { return m_pin; } IRQn_Type getEXTIIRQn();