pull/5/head
tangjie133 3 years ago
parent ee688f17ce
commit 49c09d5ba1
  1. 8
      python/raspberrypi/DFRobot_AS3935_Lib.py
  2. 6
      python/raspberrypi/README.md
  3. 2
      python/raspberrypi/README_CN.md
  4. 2
      readme.md

@ -1,6 +1,6 @@
'''! '''!
@file DFRobot_AS3935_Lib.py @file DFRobot_AS3935_Lib.py
@brief Define the DFRobot_AS3935 class infrastructure, the implementation of the base method @brief Define the basic structure of the DFRobot_AS3935 class, the implementation of the basic methods.
@copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
@license The MIT License (MIT) @license The MIT License (MIT)
@author TangJie(jie.tamg@dfrobot.com) @author TangJie(jie.tamg@dfrobot.com)
@ -121,7 +121,7 @@ class DFRobot_AS3935:
'''! '''!
@brief Get mid-range type @brief Get mid-range type
@return Return to interrupted state @return 返回中断状态
@retval 0 Unknown src @retval 0 Unknown src
@retval 1 Lightning detected @retval 1 Lightning detected
@retval 2 Disturber @retval 2 Disturber
@ -245,7 +245,7 @@ class DFRobot_AS3935:
''' '''
@brief read WDTH @brief read WDTH
@return Return interference level @return 返回干扰等级
''' '''
def get_watchdog_threshold(self): def get_watchdog_threshold(self):
#This function is used to read WDTH. It is used to increase robustness to disturbers, #This function is used to read WDTH. It is used to increase robustness to disturbers,
@ -270,7 +270,7 @@ class DFRobot_AS3935:
''' '''
@brief read SREJ (spike rejection) @brief read SREJ (spike rejection)
@return Return SREJ value @return 返回SREJ值
''' '''
def get_spike_rejection(self): def get_spike_rejection(self):
#This function is used to read SREJ (spike rejection). Similar to the Watchdog threshold, #This function is used to read SREJ (spike rejection). Similar to the Watchdog threshold,

@ -5,7 +5,7 @@
AS3935 Lightning Sensor can detect lightning and display the distance and intensity of the lightning without the disturbance of electric arc and noise. AS3935 Lightning Sensor can detect lightning and display the distance and intensity of the lightning without the disturbance of electric arc and noise.
It can be set as indoor or outdoor mode. It can be set as indoor or outdoor mode.
![Product Image](./resources/images/SEN0290.png) ![Product Image](../../resources/images/SEN0290.png)
## 产品链接(https://www.dfrobot.com/product-1828.html) ## 产品链接(https://www.dfrobot.com/product-1828.html)
@ -33,7 +33,7 @@ Input commands and read data from AS3935 modules
## Installation ## Installation
To use the library, first download it to Raspberry Pi, then open the routines folder.To execute a routine demox.py, type Python demox.py on the command line.For example, to execute the control_LEd.py routine, you need to enter: 要使用这个库,首先将库下载到Raspberry Pi,然后打开例程文件夹。要执行一个例程demox.py,请在命令行中输入python demox.py。例如,要执行control_led.py例程,你需要输入:
```python ```python
python DFRobot_AS3935_detailed.py python DFRobot_AS3935_detailed.py
@ -57,7 +57,7 @@ python DFRobot_AS3935_detailed.py
''' '''
@brief Get mid-range type @brief Get mid-range type
@return Return to interrupted state @return 返回中断状态
@retval 0 Unknown src @retval 0 Unknown src
@retval 1 Lightning detected @retval 1 Lightning detected
@retval 2 Disturber @retval 2 Disturber

@ -5,7 +5,7 @@
AS3935雷电传感器可以检测雷电,显示雷电的距离和强度,不受电弧和噪声的干扰 AS3935雷电传感器可以检测雷电,显示雷电的距离和强度,不受电弧和噪声的干扰
可设置为室内或室外模式 可设置为室内或室外模式
![Product Image](./resources/images/SEN0290.png) ![Product Image](../../resources/images/SEN0290.png)
## 产品链接(https://www.dfrobot.com.cn/goods-1889.html) ## 产品链接(https://www.dfrobot.com.cn/goods-1889.html)

@ -7,7 +7,7 @@ It can be set as indoor or outdoor mode.
![Product Image](./resources/images/SEN0290.png) ![Product Image](./resources/images/SEN0290.png)
## product link (https://www.dfrobot.com/product-1828.html) ## 产品链接(https://www.dfrobot.com/product-1828.html)
SKU:SEN0290 SKU:SEN0290

Loading…
Cancel
Save