1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 18:43:50 +01:00
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..

tests/drivers/srf04

This example shows the usage of an srf04 module. The application uses a timer and two gpio pins. The module is an ultrasonic range finder with a small protocol [1]:

  • trigger pin is raised high for 10 us by calling trigger function
  • after a sample period of 50 ms the value can be read out

[1] www.robot-electronics.co.uk/htm/srf04tech.htm

Usage

Build, flash and start the application:

export BOARD=your_board
make flash term