This is a new Code Builder plugin that provides an easy interface with
DS1820, DS1822, DS18B20 & DS18S20 temperature sensors.
It's extremely easy to use with only minimal settings. The plugin will automatically send the readings to ChipChop and as DS1820 uses OneWire you can have multiple sensors working at the same time.
Make sure that the device component types are set as 'Temperature' in the Device Settings and Code Builder will detect them automatically and offer you a list of compatible components so you can simply tick them and have them managed by the plugin.
Usage Note: - The plugin provides a callback hook that get's triggered every time a reading is taken so you can implement any additional logic in your code
You can retrieve the readings with the
DS1820.getTemperature('component_name') method and you don't have to worry about remembering the pin used as everything works with component names.
Arduino IDE Note: This plugin requires a manual install of the 'OneWire' and the 'DallasTemperature' libraries. Both libraries are included in the download zip file so make sure to check the included "additional_libraries" folder and read the "installation.txt" for instructions.
Please note that from the last tests there is an issue with OneWire that can be installed through the Library Manager in Arduino IDE and can fail to compile due to the Arduino IDE c++ compiler. The version included with the Code Builder has been manually modified and complies fine (at the time of writing this)