From bdcec32efff266ec5447675bee9a0ae454a96709 Mon Sep 17 00:00:00 2001 From: Wastl Kraus Date: Sat, 15 Apr 2023 08:12:37 +0200 Subject: [PATCH] Update dshot300.ino --- examples/dshot300/dshot300.ino | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/dshot300/dshot300.ino b/examples/dshot300/dshot300.ino index 7fccb66..4cd3323 100644 --- a/examples/dshot300/dshot300.ino +++ b/examples/dshot300/dshot300.ino @@ -2,6 +2,7 @@ * Title: dshot300.ino * Author: derdoktor667 * Date: 2023-04-13 + * * Description: A simple example of using the DShotRMT library to * generate a DShot300 signal for a motor using an Arduino board. */ @@ -10,16 +11,16 @@ #include "DShotRMT.h" // USB serial port needed for this example -constexpr auto USB_SERIAL_BAUD = 115200; +const auto USB_SERIAL_BAUD = 115200; #define USB_Serial Serial // Define the GPIO pin connected to the motor and the DShot protocol used -constexpr auto MOTOR01_PIN = GPIO_NUM_4; -constexpr auto DSHOT_MODE = DSHOT300; +const auto MOTOR01_PIN = GPIO_NUM_4; +const auto DSHOT_MODE = DSHOT300; // Define the failsafe and initial throttle values -constexpr auto FAILSAFE_THROTTLE = 999; -constexpr auto INITIAL_THROTTLE = 48; +const auto FAILSAFE_THROTTLE = 999; +const auto INITIAL_THROTTLE = 48; // Initialize a DShotRMT object for the motor DShotRMT motor01(MOTOR01_PIN, RMT_CHANNEL_0);