esp-idf-hal icon indicating copy to clipboard operation
esp-idf-hal copied to clipboard

spi/adc_st7789_example

Open monacoprinsen opened this issue 2 years ago • 9 comments

Added an SPI example, drawing an image on the ST7789 screen.

monacoprinsen avatar Sep 09 '22 15:09 monacoprinsen

Added ADC examples

monacoprinsen avatar Sep 10 '22 19:09 monacoprinsen

@monacoprinsen I think it would be great to have an ADC example! Ideally though, examples should be tiny and targeted to demoing just one feature. So I think it would actually be beneficial if you remove the st7789 aspects from this example. (Or create another example, that is only demonstrating how to write on an st7789 screen.)

The other thing is, would it be possible to update the example so that it follows the latest changes to the master branch? There were quite a few of those, but the ADC driver is mostly intact, modulo some renames here and there?

ivmarkov avatar Sep 22 '22 08:09 ivmarkov

@ivmarkov thanks for the input. I have added 3 examples: Simple adc example St7789 adc example St7789 spi example

If you prefer that I remove the St7789 examples I can do that.

Should work to update to the latest branch, will do that.

monacoprinsen avatar Sep 24 '22 10:09 monacoprinsen

@monacoprinsen The "St7789 adc" example we should remove, the other two we keep. Can you please also update the examples to be compatible with latest master? They are currently failing the cargo fmt but I looked briefly at them, and they are not based on master.

ivmarkov avatar Sep 25 '22 07:09 ivmarkov

@ivmarkov Alright will do that!

monacoprinsen avatar Oct 06 '22 16:10 monacoprinsen

@ivmarkov now it should be up to date.

monacoprinsen avatar Oct 10 '22 11:10 monacoprinsen

@ivmarkov now it should be up to date.

Can you make sure that the CI checks pass successfully on your changes? I.e. cargo fmt, cargo clippy and the subsequent actual build. Otherwise, merging your changes will immediately break CI and I need to immediately follow up with fixes of your just merged code.

ivmarkov avatar Oct 10 '22 13:10 ivmarkov

Will do

monacoprinsen avatar Oct 10 '22 13:10 monacoprinsen

@ivmarkov sorry for the delay.... It should be ok now.

monacoprinsen avatar Oct 13 '22 10:10 monacoprinsen

@ivmarkov sorry for the delay.... It should be ok now.

Compile fails.

ivmarkov avatar Oct 31 '22 09:10 ivmarkov

@ivmarkov ok will look into that.

monacoprinsen avatar Oct 31 '22 12:10 monacoprinsen

The path to the ferris image seems incorrect?

ivmarkov avatar Oct 31 '22 15:10 ivmarkov

@ivmarkov thanks, adjusted it! Sorry for the mess, hopefully next contribution will be a little cleaner.

monacoprinsen avatar Oct 31 '22 15:10 monacoprinsen

Thank you!

ivmarkov avatar Nov 08 '22 16:11 ivmarkov