-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Info: Custom PWM routines not neccessary for latest stage core 2.5.0 #4917
Comments
How did you test? I tried both enabling the defines and removing the three files but in both cases the PWM channels are dead. No output on an Arilux LC01 three color PWM device... |
On a wemos mini on GPIO 2 (connected on board led) with PWM1i |
Ah. now tried the official Staged version. This works as expected. I first used your version but that doesn't seem to work. |
Still on beta2 on my repo. Should i go to this version? The commits made since beta2 are great steps in the right direction. |
Ah that makes sense. No stay at Beta 2 as that works for all and Arduino also. Let's wait for the Core team to release a new version before updating yours |
Core 2.5.0 beta 3 has been released :) |
PR for Platformio.ini to work with my repo which is now on Beta3 |
@Jason2866 I keep getting major file size differences for sonoff.bin using your platformio beta3 repository (571768) and the current stage version (557472). I would expect them to be close considering the time between beta3 release and the current stage version. The stage version size also comes close to the Arduino IDE beta3 version as released by @andrethomas. I expect there is something fishy with your beta3 platformio repository... |
@arendst Thx for info. Will investigate. |
@arendst |
My setup: Windows 10 pro 64bit with all updates. IDE VSC with platformio plugin |
I'm out. Will try tomorrow. |
Tested it and found the cause of my problem: I didn't do the So it is fixed after the Next action is finding a secure way to disable the 2.4.0 PWM code as I seem to have problems with the defines when used with different core version; sometimes only two out of three files are undefined, other moments all three files seem to be undefined... To be continued... |
Still testing. @Jason2866 would you mind to add the following lines to your 2.5.0_beta3 for tasmota repository. It allows Tasmota to show the correct "released" beta version. Pls add these lines to file cores/esp8266/core_version.h:
|
Testing finished. As of 2.5.0-beta3 the custom PWM files are no longer needed. They have defines enabled to act accordingly depending on core version. |
Great! Verified. Works! |
Have you look for this feature in other issues and in the wiki?
yes
Is your feature request related to a problem? Please describe.
Core 2.5.0 stage solved the pwm issues. No need anymore for self written code
Describe the solution you'd like
Delete / disable core_esp8266_timer.c, core_esp8266_wiring_digital.c and core_esp8266_wiring_pwm.c for core 2.5.0 feature/stage
Describe alternatives you've considered
None
Additional context
esp8266/Arduino#5578
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: