Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/stm32/f0/other/usb_hid_sensor/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
##
## This file is part of the libopencm3 project.
##
## Copyright (C) 2009 Uwe Hermann <[email protected]>
##
## This library is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with this library. If not, see <http://www.gnu.org/licenses/>.
##

BINARY = usbhid

include ../../Makefile.include

13 changes: 13 additions & 0 deletions examples/stm32/f0/other/usb_hid_sensor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# README

This example implements a USB HID Sensor device. It creates a custom device
which can be found in sysfs:

```
# cd /sys/bus/platform/drivers/hid_sensor_custom/HID-SENSOR-2000e1.1.auto
# echo 1 > enable_sensor
# cat input-0-200544/input-0-200544-value
```

See also: https://www.kernel.org/doc/html/latest/hid/hid-sensor.html

Loading