文明233 发表于 2021-6-15 09:16 左侧找到lcd.c uint8_t const table1[]= 这里改 |
牛牛牛 |
仿真不了啊。。LCD和串口都没反应。。 |
看到能仿真成功,我也试试,不知道8.8能不能行 |
测量出来的距离误差有点大,把UltrasonicWave_Distance=TIM_GetCounter(TIM2)*5*34/2000; 改成UltrasonicWave_Distance=TIM_GetCounter(TIM2)*0.79; 会好很多 |
试了一下能仿真成功,牛! |
撞南墙 发表于 2021-6-14 19:04 你这个好像是目标没有创建 |
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" |
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'E:\keil\ARM\ARMCC\Bin' Build target 'Target 1' compiling UltrasonicWave.c... UltrasonicWave.c(1): error: #5: cannot open source input file "./Wave/UltrasonicWave.h": No such file or directory #include "./Wave/UltrasonicWave.h" UltrasonicWave.c: 0 warnings, 1 error compiling w.c... w.c(11): error: #5: cannot open source input file "./dht11/bsp_dht11.h": No such file or directory #include "./dht11/bsp_dht11.h" w.c: 0 warnings, 1 error compiling LCD.c... LCD.c(1): error: #5: cannot open source input file "LCD/bsp_LCD.h": No such file or directory #include "LCD/bsp_LCD.h" LCD.c: 0 warnings, 1 error compiling main.c... E:\keil\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\Include\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)" main.c: 0 warnings, 1 error ".\Objects\1.axf" - 4 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:00 |
在仿真中 |
看到能仿真成功,我也试试 |
撞南墙 发表于 2021-6-14 19:04 因为用户名是中文的原因 |
撞南墙 发表于 2021-6-14 19:04 把if 改成else if 好了 |
LCD液晶显示器怎么修改显示 |
为什么keil5显示 ..\..\Output\DHT11.axf: error: L6002U: Could not open file ..\..\output\core_cm3.o: No such file or directory Finished: 0 information, 0 warning, 0 error and 1 fatal error messages. "..\..\Output\DHT11.axf" - 1 Error(s), 5 Warning(s). Target not created. Build Time Elapsed: 00:00:10 |
看到能仿真成功,我也试试 |
这个是牛的,给楼主点个赞 |