makerportal / tfluna-python

Python codes for TF-Luna LiDAR module that interface with a Raspberry Pi computer
21 stars 12 forks source link

Code is not working #6

Open ucibaris opened 2 years ago

ucibaris commented 2 years ago

Hi,

I have tried to link this on my RPI-4B, Although I have followed all the instructions and enabled UART 1 and can see ttyS0, when I run the example code (tfluna_test.py or other examples) with sudo, it does generate errors as in there is permission denied or could not open port error for /dev/serial0. What do you suggest?

Regards

Baris

krukhlis commented 2 years ago

It's not a python issue. Probably, you have to disable serial console in raspi-config.

tadeegan commented 1 year ago

Try sudo -E python xxx.py