-
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 #541 from bramoosterhuis/dev/m5stack-atom-support
Add support for m5stack atom boards
- Loading branch information
Showing
4 changed files
with
94 additions
and
1 deletion.
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
81 changes: 81 additions & 0 deletions
81
ESPixelStick/src/platformDefinitions/GPIO_Defs_ESP32_M5Stack_Atom.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,81 @@ | ||
#pragma once | ||
/* | ||
* GPIO_Defs_ESP32_M5Stack_Atom.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. | ||
* | ||
*/ | ||
|
||
/* | ||
* M5Stack Atom driver, boards are ESP32-PICO-D4 based, no PSRAM | ||
* | ||
* Note: These boards lack PSRAM. So if you need more outputs, you probably need to | ||
* raise the WebSocketFrameCollectionBufferSize a bit e.g. 12*1024. Otherwise you'll | ||
* face an issue that the webUI is not rendering the output configutation section. | ||
* | ||
* Tested: | ||
* - Atom Lite | ||
* - Atom Matrix | ||
*/ | ||
|
||
// Output Manager | ||
#define SUPPORT_UART_OUTPUT | ||
// Bottom extension interface | ||
#define DEFAULT_UART_1_GPIO gpio_num_t::GPIO_NUM_19 // TxD for RS485 Base | ||
#define UART_LAST OutputChannelId_UART_1 | ||
|
||
#define SUPPORT_RMT_OUTPUT | ||
|
||
// Internal neopixel(s) | ||
#define DEFAULT_RMT_0_GPIO gpio_num_t::GPIO_NUM_27 | ||
|
||
// Bottom extension interface | ||
#define DEFAULT_RMT_1_GPIO gpio_num_t::GPIO_NUM_22 | ||
#define DEFAULT_RMT_2_GPIO gpio_num_t::GPIO_NUM_23 | ||
#define DEFAULT_RMT_3_GPIO gpio_num_t::GPIO_NUM_33 | ||
|
||
// GROVE extension interface | ||
#define DEFAULT_RMT_4_GPIO gpio_num_t::GPIO_NUM_26 // TxD for RS485 Tail | ||
//#define DEFAULT_RMT_5_GPIO gpio_num_t::GPIO_NUM_32 // disabled by default due to memory contraints. | ||
#define RMT_LAST OutputChannelId_RMT_5 | ||
|
||
// Bottom extension interface | ||
// Disabled by default, on Atom Matrix I2C is shared with a 6-Axis IMU (MPU-6886) | ||
// #define DEFAULT_I2C_SDA gpio_num_t::GPIO_NUM_25 | ||
// #define DEFAULT_I2C_SCL gpio_num_t::GPIO_NUM_21 | ||
|
||
// 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_12 | ||
#define SD_CARD_MOSI_PIN gpio_num_t::GPIO_NUM_13 | ||
#define SD_CARD_CLK_PIN gpio_num_t::GPIO_NUM_14 | ||
#define SD_CARD_CS_PIN gpio_num_t::GPIO_NUM_15 | ||
|
||
// Output Types | ||
// Not Finished - #define SUPPORT_OutputType_TLS3001 | ||
// #define SUPPORT_OutputType_APA102 // SPI | ||
#define SUPPORT_OutputType_DMX // UART | ||
#define SUPPORT_OutputType_GECE // UART | ||
#define SUPPORT_OutputType_GS8208 // UART / RMT | ||
#define SUPPORT_OutputType_Renard // UART | ||
#define SUPPORT_OutputType_Serial // UART | ||
#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 | ||
// Disabled by default, on Atom Matrix I2C is shared with a 6-Axis IMU (MPU-6886) | ||
// #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