1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-23 08:06:13 +01:00

need to ifdef that

This commit is contained in:
Harald Barth 2022-08-30 09:44:59 +02:00
parent 08427abe70
commit cec6d6dbe7
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>. * along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifdef ARDUINO_ARCH_ESP32
#include <Arduino.h> #include <Arduino.h>
#include "ESP32-fixes.h" #include "ESP32-fixes.h"
@ -57,3 +58,4 @@ void DCCEXanalogWrite(uint8_t pin, int value) {
ledcWrite(pin_to_channel[pin], value); ledcWrite(pin_to_channel[pin], value);
} }
} }
#endif

View File

@ -17,8 +17,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>. * along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifdef ARDUINO_ARCH_ESP32
#pragma once #pragma once
#include <Arduino.h> #include <Arduino.h>
void DCCEXanalogWriteFrequency(uint8_t pin, uint32_t frequency); void DCCEXanalogWriteFrequency(uint8_t pin, uint32_t frequency);
void DCCEXanalogWrite(uint8_t pin, int value); void DCCEXanalogWrite(uint8_t pin, int value);
#endif