LM75 temparature sensor
No detailed description...
Example for airframe file
Add to your firmware section:
<module name="temp_lm75"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Event Functions
These event functions are called in each cycle of the module event loop.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- lm75_periodic()
- Frequency in Hz: 3
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw temp_lm75.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="temp_lm75" dir="meteo">
<doc>
<description>LM75 temparature sensor</description>
</doc>
<header>
<file name="temp_lm75.h"/>
</header>
<init fun="lm75_init()"/>
<periodic fun="lm75_periodic()" freq="3"/>
<event fun="lm75_event()"/>
<makefile target="ap">
<file name="temp_lm75.c"/>
</makefile>
</module>