-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #550 from MartinMueller2003/main
Enhancement to the PWM output driver to use a "home" position when a servo output is set to zero.
- Loading branch information
Showing
16 changed files
with
130 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
ESPixelStick/src/platformDefinitions/GPIO_Defs_ESP32_ESP3DEUXQuattro_DMX.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#pragma once | ||
/* | ||
* GPIO_Defs_ESP32_ESP3DEUXQuattro_DMX.hpp - Output Management class | ||
* | ||
* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver | ||
* Copyright (c) 2021 Shelby Merrick | ||
* http://www.forkineye.com | ||
* | ||
* This program is provided free for you to use in any way that you wish, | ||
* subject to the laws and regulations where you are using it. Due diligence | ||
* is strongly suggested before using this code. Please give credit where due. | ||
* | ||
* The Author makes no warranty of any kind, express or implied, with regard | ||
* to this program or the documentation contained in this document. The | ||
* Author shall not be liable in any event for incidental or consequential | ||
* damages in connection with, or arising out of, the furnishing, performance | ||
* or use of these programs. | ||
* | ||
* BOARD_ESPS_ESP3DEUXQUATRO_DMX | ||
*/ | ||
|
||
//Output Manager | ||
#define SUPPORT_UART_OUTPUT | ||
#define DEFAULT_UART_1_GPIO gpio_num_t::GPIO_NUM_16 | ||
#define DEFAULT_UART_2_GPIO gpio_num_t::GPIO_NUM_32 | ||
#define UART_LAST OutputChannelId_UART_2 | ||
|
||
#define SUPPORT_RMT_OUTPUT | ||
#define DEFAULT_RMT_0_GPIO gpio_num_t::GPIO_NUM_33 | ||
#define DEFAULT_RMT_1_GPIO gpio_num_t::GPIO_NUM_4 | ||
#define DEFAULT_RMT_2_GPIO gpio_num_t::GPIO_NUM_12 | ||
#define DEFAULT_RMT_3_GPIO gpio_num_t::GPIO_NUM_2 | ||
#define RMT_LAST OutputChannelId_RMT_4 | ||
|
||
// File Manager - Defnitions must be present even if SD is not supported | ||
// #define SUPPORT_SD | ||
#define SD_CARD_MISO_PIN gpio_num_t::GPIO_NUM_19 | ||
#define SD_CARD_MOSI_PIN gpio_num_t::GPIO_NUM_23 | ||
#define SD_CARD_CLK_PIN gpio_num_t::GPIO_NUM_18 | ||
#define SD_CARD_CS_PIN gpio_num_t::GPIO_NUM_5 | ||
|
||
#include <ETH.h> | ||
#define SUPPORT_ETHERNET | ||
/* | ||
* ETH_CLOCK_GPIO0_IN - default: external clock from crystal oscillator | ||
* ETH_CLOCK_GPIO0_OUT - 50MHz clock from internal APLL output on GPIO0 - possibly an inverter is needed for LAN8720 | ||
* ETH_CLOCK_GPIO16_OUT - 50MHz clock from internal APLL output on GPIO16 - possibly an inverter is needed for LAN8720 | ||
* ETH_CLOCK_GPIO17_OUT - 50MHz clock from internal APLL inverted output on GPIO17 - tested with LAN8720 | ||
*/ | ||
#define DEFAULT_ETH_CLK_MODE eth_clock_mode_t::ETH_CLOCK_GPIO17_OUT | ||
|
||
// Pin# of the enable signal for the external crystal oscillator (-1 to disable for internal APLL source) | ||
#define DEFAULT_ETH_POWER_PIN gpio_num_t(-1) | ||
#define DEFAULT_ETH_POWER_PIN_ACTIVE HIGH | ||
|
||
// Type of the Ethernet PHY (LAN8720 or TLK110) | ||
#define DEFAULT_ETH_TYPE eth_phy_type_t::ETH_PHY_LAN8720 | ||
|
||
// I2C-address of Ethernet PHY (0 or 1 for LAN8720, 31 for TLK110) | ||
// #define ETH_ADDR_PHY_LAN8720 0 | ||
#define ETH_ADDR_PHY_LAN8720 1 | ||
//#define ETH_ADDR_PHY_TLK110 31 | ||
#define DEFAULT_ETH_ADDR ETH_ADDR_PHY_LAN8720 | ||
#define DEFAULT_ETH_TXEN gpio_num_t::GPIO_NUM_21 | ||
#define DEFAULT_ETH_TXD0 gpio_num_t::GPIO_NUM_19 | ||
#define DEFAULT_ETH_TXD1 gpio_num_t::GPIO_NUM_22 | ||
#define DEFAULT_ETH_CRSDV gpio_num_t::GPIO_NUM_27 | ||
#define DEFAULT_ETH_RXD0 gpio_num_t::GPIO_NUM_25 | ||
#define DEFAULT_ETH_RXD1 gpio_num_t::GPIO_NUM_26 | ||
#define DEFAULT_ETH_MDC_PIN gpio_num_t::GPIO_NUM_23 | ||
#define DEFAULT_ETH_MDIO_PIN gpio_num_t::GPIO_NUM_18 | ||
|
||
|
||
// Output Types | ||
// Not Finished - #define SUPPORT_OutputType_TLS3001 | ||
// #define SUPPORT_OutputType_APA102 // SPI | ||
#define SUPPORT_OutputType_DMX // UART / RMT | ||
#define SUPPORT_OutputType_GECE // UART / RMT | ||
#define SUPPORT_OutputType_GS8208 // UART / RMT | ||
#define SUPPORT_OutputType_Renard // UART / RMT | ||
#define SUPPORT_OutputType_Serial // UART / RMT | ||
#define SUPPORT_OutputType_TM1814 // UART / RMT | ||
#define SUPPORT_OutputType_UCS1903 // UART / RMT | ||
#define SUPPORT_OutputType_UCS8903 // UART / RMT | ||
// #define SUPPORT_OutputType_WS2801 // SPI | ||
#define SUPPORT_OutputType_WS2811 // UART / RMT | ||
// #define SUPPORT_OutputType_Relay // GPIO | ||
// #define SUPPORT_OutputType_Servo_PCA9685 // I2C (default pins) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters