A quick one, I know how to set GPIO pins but how to set them to work as PWM outputs or UART?
According to the datasheet, any GPIO can be PWM or UART. How to do that?
how to configure pins for peripherals?
Re: how to configure pins for peripherals?
This sounds like an arduino question and if so it should be in the arduino forum.
Maybe check this example and look for other examples on github.
https://github.com/jkb-git/ESP32Servo
Maybe check this example and look for other examples on github.
https://github.com/jkb-git/ESP32Servo
Re: how to configure pins for peripherals?
Thanks, WiFive, but I'm not using Arduino but the ESP IDF. If that is possible with Arduino I suppose there is a way with the native IDF.
Re: how to configure pins for peripherals?
Oh OK for IDF just look at the examples https://github.com/espressif/esp-idf/tr ... r/examples and docs http://esp-idf.readthedocs.io/en/latest/
Re: how to configure pins for peripherals?
Thanks WiFive, I have had a quick browse at the examples without luck but will carry on. I expect somebody (or myself) to come with a more valuable answer to improve the forum with valuable questions and answers, otherwise it will be a useless collection of "it's out there, go find it"
Re: how to configure pins for peripherals?
I was interested in configuring PWM and UART.
The PWM is well hidden in the ledc.c/h files. The example peripherals/leds is actually what I was looking for.
The peripherals\uart_echo example shows how to configure pins for the UART
The PWM is well hidden in the ledc.c/h files. The example peripherals/leds is actually what I was looking for.
The peripherals\uart_echo example shows how to configure pins for the UART
Re: how to configure pins for peripherals?
I knew you could do it!
Who is online
Users browsing this forum: MicroController, noweare and 180 guests