Replies: 3 comments 15 replies
-
In your specific case, the simplest would be to do a More generally, When it comes to getting temperatures from the TMP117 driver, you do not actually need to call a method in the class for that. Assuming that you did not change it significantly, the values are also available (along with other sensors) if you
Of course, this may be a bit problematic if you are also creating a driver supplying data to the same sensor payload, as your |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. So if i would like to work with multiple driver files i would do it this in the following way - or is this conceptually wrong? autoexec.be
main.be
ina3221.be
ina226.be
|
Beta Was this translation helpful? Give feedback.
-
Following the link above: |
Beta Was this translation helpful? Give feedback.
-
maybe a silly question - but i don't get it.
when i creat the file:
/tmp117.be
and add in the autoexec.be the line
this failes with:
00:00:02.609 BRY: failed to load '/autoexec.be' (syntax_error - /autoexec.be:45: 'TMP117' undeclared (first use in this function))
tried different ways but not luck so far. Also in the docs is no specific information. As long as everything is in the same file it works fine. But having lv code and drivers all in the same file is getting ugly.
i would like in the end to have on file with the display desctiption, getting the values from the different drivers like
print( tmp.read_temperature() )
.Beta Was this translation helpful? Give feedback.
All reactions