Dicklessgreat / daisy-embassy

5 stars 2 forks source link

Build Error: missing fields `SCL` and `SDA` in initializer of `CodecPins` at calling new_daisy_board!() on bin crate #21

Closed Dicklessgreat closed 1 month ago

Dicklessgreat commented 1 month ago

new_daisy_board!() is for stealing peripherals so that users does not accidentally use them contrary to what Daisy board intends to. So it should be used on the user side. But using it on the bin crate that has daisy_embassy for its dependencies makes an error:

error[E0063]: missing fields `SCL` and `SDA` in initializer of `CodecPins`
  --> src/main.rs:36:17
   |
36 |     let board = new_daisy_board!(p);
   |                 ^^^^^^^^^^^^^^^^^^^ missing `SCL` and `SDA`
   |

This error is because there are no features called seed_1_1 on the bin crate. see where the actual error happens

Could someone suggest a solution or workaround?

Note: This error doesn't happens when you build examples of daisy_embassy on its repository.