Page 1 of 1
BH1750 ligth sensor!
Posted: Wed Mar 12, 2025 7:06 pm
by jgu1
Hi!
Just started a new project with a BH1750 ligthsensor. As soon I try to compile to hex I get an error, look like it is the initilise. What am I doing wrong, please?
Br Jorgen
Re: BH1750 ligth sensor!
Posted: Wed Mar 12, 2025 11:00 pm
by medelec35
Hi Jorgen.
It looks like your DVI pin is not set correctly.
Try setting the DVI pin and compiling again.
Re: BH1750 ligth sensor!
Posted: Thu Mar 13, 2025 5:33 am
by jgu1
Hi Martin!
Thank you, very much, I continue in the afternoon, and check

You hear.
Br Jorgen
Re: BH1750 ligth sensor!
Posted: Thu Mar 13, 2025 4:23 pm
by jgu1
Hi again Martin!
You are rigth, it was the DVI pin. I always forgot to check the pin everytime I add a new component, it work now.
Thank you
Br Jorgen
Re: BH1750 ligth sensor!
Posted: Thu Mar 13, 2025 5:24 pm
by medelec35
You're welcome.
I'm glad you are up and running.
For future reference.
Depending on the device if a pin is not connected then you could see two types of errors.
Most devices would show a tris error , which yours did, that how I knew it was a pin not connected.
I have noticed that ESP32 could just show syntax error.
Re: BH1750 ligth sensor!
Posted: Thu Mar 13, 2025 7:08 pm
by jgu1
Nice tip Martin, great.
Thanks and have a nice weekend......