mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-02 10:53:01 +02:00
Fixed 16->8 PWM channels
This commit is contained in:
@@ -8,10 +8,11 @@
|
|||||||
|
|
||||||
namespace PinUsers {
|
namespace PinUsers {
|
||||||
class NativePwm : public PwmDetail {
|
class NativePwm : public PwmDetail {
|
||||||
static LimitedResource<16>& PwmChannelResources() {
|
static LimitedResource<8>& PwmChannelResources() {
|
||||||
// The ESP32 chip has 16 PWM channels.
|
// The ESP32 chip has 16 PWM channels, but the second 8 channels share the same timers as the first 8.
|
||||||
|
// So, in essense, we use only 8 here, so we can configure them independently.
|
||||||
|
|
||||||
static LimitedResource<16> instances_;
|
static LimitedResource<8> instances_;
|
||||||
return instances_;
|
return instances_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user