tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
605 stars 188 forks source link

target pall on #302

Closed shayulei closed 2 years ago

shayulei commented 3 years ago

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

sago35 commented 3 years ago

Same problem as #301. I think #304 solves it a bit.