esp8266-hal icon indicating copy to clipboard operation
esp8266-hal copied to clipboard

More examples

Open ahmtcn123 opened this issue 4 years ago • 4 comments

Can we get Analog or I2S examples?

ahmtcn123 avatar Oct 12 '20 14:10 ahmtcn123

These peripherals have yet to be implemented. Once they have been then examples can be added.

jessebraham avatar Oct 12 '20 21:10 jessebraham

@jessebraham Is analog HAL coming soon?

tsarquis88 avatar Nov 01 '21 00:11 tsarquis88

I unfortunately don't have a lot of time for this project right now as my focus has been on the newer chips, but I can try to find some time/energy to do it at some point.

Just as a bit of a background, I had made a previous attempt to implement this but was trying to do a pure-Rust implementation via reverse engineering. This became tedious and I gave up.

You can take a look at this gist so see an idea of how this implementation might look. I think at this point, the easiest path forward would be to provide the system_adc_read and system_get_vdd33 functions from the ROM via a linker script and just call them directly.

jessebraham avatar Nov 02 '21 09:11 jessebraham

Thanks for your job @jessebraham. I'm a newbie in Rust so it's probably not gonna be me who solve this... Unless there's some docs about that kind of procedures.

tsarquis88 avatar Nov 02 '21 17:11 tsarquis88