Sensirion / raspberry-pi-i2c-scd4x

RaspberryPi driver for Sensirion SCD4x sensors
BSD 3-Clause "New" or "Revised" License
21 stars 9 forks source link

functions not working #9

Closed avathompson30 closed 2 months ago

avathompson30 commented 2 months ago

I downloaded this git hub file to my raspberry pi. The code recognizes the header files I am including but does not recognize certain functions within the files. I keep getting a message that the function is an undefined reference. When I complied the driver it was successful, and some of the functions it understands but not others. Also I am using Geany as my IDE and coding in C. Please help thank you! Also the scd4x_i2c_example_usage.c runs in the terminal not in Geany. None of the files with .c run on the platform only .h

qfisch commented 2 months ago

Hello @avathompson30

Did you follow the steps in the setup guide (README) ? If you did, at which step do you see an error ?

Quentin

avathompson30 commented 2 months ago

Yes I followed those steps. I was able to fix my problem. I am new to the Raspberry Pi and did not know I had to change the build commands. I made those changes and now I am able to utilize the functions from the files. Thank you for getting back to me.

On Mon, Jul 1, 2024 at 5:02 AM Quentin F @.***> wrote:

Hello @avathompson30 https://github.com/avathompson30

Did you follow the steps in the setup guide https://github.com/Sensirion/raspberry-pi-i2c-scd4x?tab=readme-ov-file#setup-guide (README) ? If you did, at which step do you see an error ?

Quentin

— Reply to this email directly, view it on GitHub https://github.com/Sensirion/raspberry-pi-i2c-scd4x/issues/9#issuecomment-2199615329, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJPFPDMPJSERIFU62K5AQVDZKELLJAVCNFSM6AAAAABJ6RAUHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGYYTKMZSHE . You are receiving this because you were mentioned.Message ID: @.***>

qfisch commented 2 months ago

Great to hear you manage to solve your problem.

Cheers Q