rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
300 stars 68 forks source link

Will this driver also work with stm32f7xx-hal? #134

Closed ost-ing closed 4 years ago

ost-ing commented 4 years ago

Hey, I'm new to rust and wondering if this driver can also work with the stm32f7xx-hal https://github.com/stm32-rs/stm32f7xx-hal/

It exposes a similar BlockingI2c struct: https://github.com/stm32-rs/stm32f7xx-hal/blob/471ca4de7026612b28f419b10f0ec0ef77813071/src/i2c.rs but I'm struggling to glue things together.

To me it seems that the st32f7xx-hal isn't particularly stable and is a WIP. Maybe it would be better to not use it for now. Is it possible to use this library without it?

Thanks for any assistance

therealprof commented 4 years ago

but I'm struggling to glue things together.

What's the problem? Should be rather straight forward and similar to other STM32 code, including the examples in in this crate.

To me it seems that the st32f7xx-hal isn't particularly stable and is a WIP.

I'd say it is rather stable especially since people are using it commercially.

Maybe it would be better to not use it for now. Is it possible to use this library without it?

You will definitely need some I2C peripheral with a driver implementing the embedded-hal traits.

ost-ing commented 4 years ago

Thanks for the quick reply.

I understand much clearer now, I didn't realize that embedded-hal traits are what interfaced the different specific device HALs (stm32f7xx, stm32f4xx etc) with your driver library.

I now have things compiling!