sparkfun / SparkFun_SCD30_Arduino_Library

An Arduino library for the SCD30 NDIR CO2 sensor.
Other
84 stars 47 forks source link

(FRC) Forced recalibration function. #11

Closed mut0g3n closed 4 years ago

mut0g3n commented 4 years ago

Hi, I cannot get the FRC function to work. SCD30 otherwise works fine connected to my Adafruit Huzzah Feather with good data output. Tried however using the FRC function in the library but when writing it into my code in the Arduino app (Mac OS X 10.14), the code line does not change text colour indicating a recognised function. Also tried pointing at the library directly "SCD30::" but same problem. By contrast the ARC function does change colour. Bit of a newbie with Arduino but will post a screen shot and code later but code is just the first example with the addition of the FRC function included in the setup. Any suggestions? (Listing as new issue becuse prior FRC issue was closed, sorry if that is the wrong way. )

jobr97 commented 4 years ago

How excatly are you trying to call the function? Can you paste a code snippet? The name of the function is setForcedRecalibrationFactor()

I just checked, and it seems like the function isn't listed as a keyword. Therefore it will not be colored but it should still work.

LGKev commented 4 years ago

Hi there!

I was wondering if possible to remove my LGKev github account from SparkFun/ SparkX activities. I keep getting emails and I think my account is linked to Sparkfun’s libraries

Thanks! Hope you are all doing well :D

On Mar 17, 2020, at 7:59 AM, Joel Brun notifications@github.com wrote:

How excatly are you trying to call the function? Can you paste a code snippet? The name of the function is setForcedRecalibrationFactor()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sparkfun/SparkFun_SCD30_Arduino_Library/issues/11#issuecomment-600118256, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADPWQDSS7PGKFZESKAXHH4TRH6F6TANCNFSM4LCINDEA.

jobr97 commented 4 years ago

@LGKev you are watching the repo. I think that's why you get notifications...

AndyEngland521 commented 4 years ago

Yeah @LGKev I don't think I have the ability to block you from the Repo, just go ahead and unwatch in the future, sorry for the inconvenience..

@mut0g3n It looks like, as @jobr97 said, it's not in the keywords.txt, which is how the IDE knows which text strings to color. In the future, this sort of thing won't break your code and you could still compile and things would functionally be the same, but filing an issue is definitely the proper course of action, as we like our code to look good as well as function well. Thanks! This should be added in v1.0.7

mut0g3n commented 4 years ago

Very many thanks @jobr97 and @AndyEngland521!

v1.0.7 now working perfectly.