Hi, when I run any code in the demo starting from 3 and above, the python script stops here:
robot_hat init … done
imu_sh3001 init … done
rgb_strip init … done
dual_touch init … done
sound_direction init … done
sound_effect init …
and it freezes here. I have tried to disable the sound using SDL_AUDIODRIVER=dummy but then it will run until the ultasonic init and stop(freeze). It will freeze exactly here:
robot_hat init … done
imu_sh3001 init … done
rgb_strip init … done
dual_touch init … done
sound_direction init … done
sound_effect init … pinctrl set 20 op dh
done
ultrasonic init … done
What can I do to fix this?
It is recommended that you provide us with a complete print screenshot so that we can help you analyze and solve the problem.
Hi, it runs until here and stops and does not do anything else. We have checked and made sure everything was correctly assembled. I have followed all the steps to install the packages and everything else prior to running the code.
We are very sorry that we could not reproduce your issue. The example worked fine when we ran it. We are using the Bookworm 64-bit Raspberry Pi system. Could you please end the example and run it again to see if it works properly? If it still doesn’t work, we suggest reinstalling the system, then installing all the library code again, and running the example code to check the situation.
Hi, I tried removing and installing the library code as you suggested but now it gets stuck here
It is recommended that you provide us with complete error information, including the command executed and the error message. Provide us with a complete screenshot from the command execution to the error message.
It is recommended that you reinstall the system, download and install all library codes, and then run the code examples to see the working results.
We cannot reproduce the problem you encountered.
Also, when you downloaded and installed the code, did you perform any operations unrelated to the tutorial? Please let us know.