Skip to content

Commit

Permalink
Run 'i2c.scan' as part of the hw tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Jan 30, 2025
1 parent a065f50 commit 3172b92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/hw/esp32/bme280-board2.toit
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ test:
scl := gpio.Pin Variant.CURRENT.board2-i2c-scl-pin
sda := gpio.Pin Variant.CURRENT.board2-i2c-sda-pin
bus := i2c.Bus --scl=scl --sda=sda

devices := bus.scan

expect-equals 1 devices.size
expect (devices.contains bme280.I2C-ADDRESS-ALT)

device := bus.device bme280.I2C-ADDRESS-ALT
driver := bme280.Driver device

Expand Down

0 comments on commit 3172b92

Please sign in to comment.