BH1750 ligth sensor!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 777
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 670 times
Been thanked: 175 times

Flowcode v10 BH1750 ligth sensor!

Post 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
Attachments
Ny_Fiskedam.fcfx
(15.65 KiB) Downloaded 20 times

medelec35
Matrix Staff
Posts: 1921
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: BH1750 ligth sensor!

Post by medelec35 »

Hi Jorgen.
It looks like your DVI pin is not set correctly.
Try setting the DVI pin and compiling again.
Martin

jgu1
Posts: 777
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 670 times
Been thanked: 175 times

Re: BH1750 ligth sensor!

Post by jgu1 »

Hi Martin!


Thank you, very much, I continue in the afternoon, and check ;) You hear.

Br Jorgen

jgu1
Posts: 777
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 670 times
Been thanked: 175 times

Flowcode v10 Re: BH1750 ligth sensor!

Post 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 :D

Br Jorgen

medelec35
Matrix Staff
Posts: 1921
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: BH1750 ligth sensor!

Post 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.
Martin

jgu1
Posts: 777
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 670 times
Been thanked: 175 times

Re: BH1750 ligth sensor!

Post by jgu1 »

Nice tip Martin, great. ;)

Thanks and have a nice weekend......

Post Reply