From 5eafbd9dac14d60492430e0053d5cef233c139a4 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 21 Feb 2026 09:40:46 +0100 Subject: [PATCH 1/2] make: add tasks for counting the number of drivers, and displaying a list of them Signed-off-by: deadprogram --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index c05ef645b..0a6915e20 100644 --- a/Makefile +++ b/Makefile @@ -26,3 +26,17 @@ unit-test: @go test -v $(addprefix ./,$(TESTS)) test: clean fmt-check unit-test smoke-test + +EXCLUDE_DIRS = build cmd examples internal lora ndir netdev netlink tester + +drivers-count: + @root_count=$$(find . -mindepth 1 -maxdepth 1 -type d | grep -vE '^\./($(subst $(space),|,$(EXCLUDE_DIRS)))$$' | wc -l); \ + epd_count=$$(find ./waveshare-epd -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l); \ + total=$$((root_count + epd_count)); \ + echo "Total drivers: $$total (root: $$root_count, waveshare-epd: $$epd_count)" + +drivers-list: + @{ \ + find . -mindepth 1 -maxdepth 1 -type d | grep -vE '^\./($(subst $(space),|,$(EXCLUDE_DIRS)))$$'; \ + if [ -d ./waveshare-epd ]; then find ./waveshare-epd -mindepth 1 -maxdepth 1 -type d; fi; \ + } | sed 's|^\./||' | sort From 2cd0352b82e11d313df58307e6299d3320ac065b Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 21 Feb 2026 09:41:11 +0100 Subject: [PATCH 2/2] docs: update count of drivers Signed-off-by: deadprogram --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cff324ed..d0491633a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![PkgGoDev](https://pkg.go.dev/badge/tinygo.org/x/drivers)](https://pkg.go.dev/tinygo.org/x/drivers) [![Build](https://github.com/tinygo-org/drivers/actions/workflows/build.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/drivers/actions/workflows/build.yml) -This package provides a collection of over 130 different hardware drivers for devices such as sensors, displays, wireless adaptors, and actuators, that can be used together with [TinyGo](https://tinygo.org). +This package provides a collection of 139 different hardware drivers for devices such as sensors, displays, wireless adaptors, and actuators, that can be used together with [TinyGo](https://tinygo.org). For the complete list, please see: https://tinygo.org/docs/reference/devices/