-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,081 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: 电源 | ||
--- | ||
|
||
# 电源 | ||
|
||
- [电池](./battery.md) | ||
- [UPS](./ups.md) | ||
|
||
## Power consumption | ||
|
||
- RasPi0 / Pi Zero W | ||
- 100 mA: 没有连接外设,WiFi和蓝牙关闭 | ||
- 160 mA: 蓝牙开启 | ||
- 170 mA: WiFi开启 | ||
- 230 mA: 相机连接并捕捉图像 | ||
- ESP32 | ||
- Active Mode - RTC + ULP + ESP32 Core + 外设 + Radio + WiFi + BT | ||
- 160~260mA - WiFi Tx 13dBm~21dBm | ||
- 120mA - WiFi/BT Tx 0dBm | ||
- 80-90mA - WiFi/BT Rx & listening | ||
- Modem Sleep - RTC + UPL + ESP32 Core | ||
- Light Sleep - RTC + UPL + ESP32 Core Paused | ||
- Deep Sleep - RTC + UPL | ||
- Hibernation - RTC | ||
|
||
--- | ||
|
||
- 参考 | ||
- https://raspi.tv/2017/how-much-power-does-pi-zero-w-use | ||
- https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: cpp | ||
--- | ||
|
||
# cpp | ||
|
||
- cpp -> C PreProcessor | ||
- `__FILE__`, `__LINE__` | ||
- `__FUNCTION__` | ||
- `__func__` - C++11 | ||
|
||
**predefined identifier** | ||
|
||
``` | ||
__LINE__: The line number of the current source line (a decimal constant). | ||
__FILE__: The presumed name of the source file (a character string literal). | ||
__DATE__: The date of translation of the source file (a character string literal...) | ||
__TIME__: The time of translation of the source file (a character string literal...) | ||
__STDC__: Whether__STDC__ is predefined | ||
__cplusplus: The name __cplusplus is defined to the value 199711L when compiling a C ++ translation unit | ||
``` | ||
|
||
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1642.html | ||
- https://en.cppreference.com/w/cpp/utility/source_location | ||
- `std::source_location` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.