Same problem as #301.
I think #304 solves it a bit.
d1mini has less memory, so it is better not to use the fmt package
The UART1 part is a board-dependent code and needs to be modified. You will need to consider how to fix it separately. If interrupts are really a problem, functions like arm.DisableInterrupts() are needed, but there may not be any for d1mini right now.
tinygo build -o ./dht11.hex -size=short -target=d1mini .
tinygo.org/x/drivers/dht
../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/constants.go:105:10: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/constants.go:112:29: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/thermometer.go:158:47: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/thermometer.go:170:40: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/util.go:18:49: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/constants.go:115:9: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/thermometer.go:127:21: undeclared name: counter ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/thermometer.go:160:10: UART1 not declared by package machine ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/thermometer.go:161:16: UART1 not declared by package machine ../../../../../../../../root/Documents/GoprojectLinux/pkg/mod/tinygo.org/x/drivers@v0.17.1/dht/util.go:19:9: undeclared name: counter