add schematic PDF

This commit is contained in:
Yunhorn 2024-11-13 21:44:13 +08:00
parent 8a0a51d041
commit 20e68b97d5
5 changed files with 16 additions and 10 deletions

View File

@ -28,9 +28,9 @@ extern "C" {
/* Exported constants --------------------------------------------------------*/
#define USE_BSP_DRIVER
//#define USE_BSP_DRIVER
/* USER CODE BEGIN EC */
//#define YUNHORN_STS_WLE5CCxx 1
#define YUNHORN_STS_WLE5CCxx 1
/* USER CODE END EC */
/* Includes ------------------------------------------------------------------*/

View File

@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1048471218779752885" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="962004915065611908" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
@ -16,7 +16,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1048471218779752885" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="962004915065611908" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>

Binary file not shown.

View File

@ -322,10 +322,11 @@ static void MX_53L8A1_ThresholdDetection_Process(void)
ToF_EventDetected = 0;
status = VL53L8A1_RANGING_SENSOR_GetDistance(VL53L8A1_DEV_CENTER, &Result);
#if 0
L8CXResult.motion_indicator.motion[montion_config. ]
motion_config.
vl53l8cx_get_ranging_data(&Dev, &Result);
#endif
if (status == BSP_ERROR_NONE)
{
print_result(&Result);
@ -383,14 +384,19 @@ static void print_result(RANGING_SENSOR_Result_t *Result)
{
if (Result->ZoneResult[j + k].NumberOfTargets > 0)
{
for(i = 0; i < 16; i++)
{
printf("Zone : %3d, Motion power : %3lu\n",
i,
Results.
for(i = 0; i < 16; i++)
{
#if 0
printf("Zone : %3d, Motion power : %3lu\n", i, Results.
Results.motion_indicator.motion[motion_config.map_id[i]]);
#endif
printf("| \033[38;5;10m%5ld\033[0m :%2d%5ld ",
(long)Result->ZoneResult[j + k].Distance[l],(j+k),
(long)Result->ZoneResult[j + k].Status[l]);
}
printf("\n");
/* ---- origin
printf("| \033[38;5;10m%5ld\033[0m :%2d%5ld ",

Binary file not shown.