Could someone help me figure out this stuff out? The compiler is not being helpful at all. It's asking me to import an item that is already in scope.
error[E0599]: no method named `send_commands` found for struct `PGPIO8BitInterface<nrf52832_hal::gpio::Pin<Output<PushPull>>, P0_28<Output<PushPull>>, P0_04<Output<PushPull>>>` in the current scope
--> src/main.rs:44:23
|
44 | ili9486_interface.send_commands(display_interface::DataFormat::U8(&data));
| ^^^^^^^^^^^^^ method not found in `PGPIO8BitInterface<nrf52832_hal::gpio::Pin<Output<PushPull>>, P0_28<Output<PushPull>>, P0_04<Output<PushPull>>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
4 | use display_interface::WriteOnlyDataCommand;
|
warning: unused import: `display_interface::WriteOnlyDataCommand`
--> src/main.rs:4:5
|
4 | use display_interface::WriteOnlyDataCommand;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I made a test repo because I couldn't reproduce the issue in a playground and the code would be too messy if I posted some snippets here.
If you have any suggestions of something else I could provide for more info, please let me know!
EDIT: Forgot to mention that the repo has a submodule.