32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
999
stars
1.15k
forks
source link
Trying to use P2_05 and setting it to HIGH or LOW as per user defined if conditions - SKR 1.4Turbo #546
Hello,
I am trying to control the P2_05 pin on the SKR 1.4 Turbo board.
So, in my MarlinCore.cpp in the loop() function, i am doing something like
if (condition) {
OUT_WRITE(P2_05,HIGH);
} else {
OUT_WRITE(P2_05,LOW);
}
With this, the LED light for P2_05 flickers even if the condition is met throughout the code execution.
I tried to understand the PWM and how to enable it by referring the issue here https://github.com/MarlinFirmware/Marlin/issues/13265, but was not successful
Any pointers will be helpful on how to successfully enable a PWM control on P2_05 to make it HIGH or LOW based on conditions.
Hello, I am trying to control the P2_05 pin on the SKR 1.4 Turbo board.
So, in my MarlinCore.cpp in the loop() function, i am doing something like
if (condition) { OUT_WRITE(P2_05,HIGH); } else { OUT_WRITE(P2_05,LOW); }
With this, the LED light for P2_05 flickers even if the condition is met throughout the code execution. I tried to understand the PWM and how to enable it by referring the issue here https://github.com/MarlinFirmware/Marlin/issues/13265, but was not successful
Any pointers will be helpful on how to successfully enable a PWM control on P2_05 to make it HIGH or LOW based on conditions.