Changes

Jump to navigation Jump to search

X708-Hardware

327 bytes added, 12:47, 7 February 2021
no edit summary
<span style="color:red;">Please use 18650 battery with built-in protection circuit</span>
<span style="color:#5671B0;font-size:200%;">❾</span> How to program to get ASD function
The following is fake C/C++ code:
<pre>
while(1) {
// You need to implement getCurrentVoltage function
float fVoltage = getCurrentVoltage();
if (fVoltage <= 2.5) {
//execute shut down command, "sudo x708off"
break;
}
}
<pre>
Return to [[X708]]

Navigation menu