Search found 40 matches
- Fri Dec 20, 2019 6:20 am
- Forum: Development of MicroPython
- Topic: Which timers are reserved for esp32?
- Replies: 0
- Views: 1778
Which timers are reserved for esp32?
I'm in the process of writting a module for MP. I need to use a timer. I have noticed that esp32 uses Timer 1 for PWM here: https://github.com/micropython/micropython/blob/master/ports/esp32/machine_pwm.c#L57 So it is a fixed Timer number, and probaby I cannot use this timer for a different purpose....
- Thu Dec 19, 2019 6:11 pm
- Forum: General Discussion and Questions
- Topic: dim LEDs
- Replies: 5
- Views: 2727
Re: dim LEDs
I'm working on a LEDC driver for MicroPython and ESP32 that will be able to do fading from hardware, in the background. It is in early stages, but it might be usable next year. For esp8266, there is no such solution.
- Wed Dec 18, 2019 3:21 pm
- Forum: Development of MicroPython
- Topic: IDE setup for micropython development
- Replies: 1
- Views: 1634
Re: IDE setup for micropython development
Also, compilation errors are not clickable.
Example:
https://imgur.com/EPCYVnE
It might be because in the error message, the path is relative to the micropython/ports/esp32 build dir, I'm not sure.
Example:
https://imgur.com/EPCYVnE
It might be because in the error message, the path is relative to the micropython/ports/esp32 build dir, I'm not sure.
- Wed Dec 18, 2019 3:12 pm
- Forum: Development of MicroPython
- Topic: IDE setup for micropython development
- Replies: 1
- Views: 1634
IDE setup for micropython development
I'm trying to setup Visual Studio Code under Linux, to be used for MicroPython development with esp32. I'm using this directory structure: / |- esp-idf |- micropython |- modules |- xtensa-esp23-elf Here, "micropython" contains the micropython source code, and the "modules" directory is for custom ex...
- Wed Dec 18, 2019 6:29 am
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
- Tue Dec 17, 2019 7:55 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
Re: PWM hardware fade
I could create a custom C module that fades a led with the LEDC driver. So maybe I'm going to create it as a custom module, and test it before I try to put it into the core micropython repo.
- Tue Dec 17, 2019 6:07 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
Re: PWM hardware fade
Can you please tell me how to start a new empty module in this project? I was reading this documentation about user modules: https://github.com/nagylzs/micropython/blob/master/docs/develop/cmodules.rst Should I implement this as a user module, or should I try to put it under micropython/ ? I have al...
- Tue Dec 17, 2019 5:44 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
Re: PWM hardware fade
All right, I could install the toolchain, compile a new firmware and burn it. It seems to be working.
Next step will be to examine the C code for PWM and Timer, make changes and test it.
Thanks
Next step will be to examine the C code for PWM and Timer, make changes and test it.
Thanks
- Tue Dec 17, 2019 4:17 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
Re: PWM hardware fade
Might be related to this:
viewtopic.php?t=517
After doing
sudo apt install libffi-dev
it still fails. After setting `MICROPY_PY_FFI = 0` in mpconfigport.mk I can compile it, but I'm not sure what the implications are.
viewtopic.php?t=517
After doing
sudo apt install libffi-dev
it still fails. After setting `MICROPY_PY_FFI = 0` in mpconfigport.mk I can compile it, but I'm not sure what the implications are.
- Tue Dec 17, 2019 4:12 pm
- Forum: General Discussion and Questions
- Topic: PWM hardware fade
- Replies: 8
- Views: 3637
Re: PWM hardware fade
Can you please point me to the right direction? I think I need to clone the micropython project from GitHub and then try to compile a new firmware. I was trying to follow the instructions in https://github.com/micropython/micropython/blob/master/README.md. This is what I could do: git clone https://...