bouffalolab / bl_iot_sdk

BL602/BL702 SDK. Any technical topic, please access the following link.
http://bbs.bouffalolab.com
Apache License 2.0
260 stars 170 forks source link

BL702 PIR #72

Open Jatsekku opened 1 year ago

Jatsekku commented 1 year ago

Hi, I would like to ask how PIR peripheral can be used with BL702?. I already saw: https://github.com/bouffalolab/bl_iot_sdk/issues/43 But I also saw that it can be done via firmware.

  1. Which pins can be associated with PIR?
  2. Can it work with PIRs without amplifier (analog ones)? That would explain BL_Err_Type HBN_Set_PIR_Threshold(uint16_t threshold) function.
  3. Does hardware allow to use it as normal interrupt or is it provided just as a source to wake-up MCU?