STM32 Example

STM32 DS18B20 Example

Read DS18B20 temperature sensor.

Code Example

float temperature = DS18B20_ReadTemp();

while(1)
{
  HAL_Delay(1000);
}

How it works

This STM32 example demonstrates basic peripheral configuration and HAL usage.

Frequently asked questions

Can I use STM32CubeIDE?

Yes. These examples are intended for STM32CubeIDE and STM32 HAL drivers.

Can I modify the GPIO pins?

Yes. Update GPIO pin definitions according to your board schematic.