Skip to content

Commit

Permalink
Merge pull request #610 from Paciente8159/esp32-shield-v3
Browse files Browse the repository at this point in the history
Esp32 shield v3
  • Loading branch information
Paciente8159 committed Feb 3, 2024
2 parents ded7efc + 838ec55 commit 04ba6aa
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uCNC/src/hal/boards/boarddefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ extern "C"
#include "esp32/boardmap_mks_dlc32.h"
#endif

#if (BOARD == BOARD_ESP32_SHIELD_V3)
#define MCU MCU_ESP32
#include "esp32/boardmap_esp32_shield_v3.h"
#endif

#if (BOARD == BOARD_RPI_PICO)
#define MCU MCU_RP2040
#include "rp2040/boardmap_rpi_pico.h"
Expand Down
1 change: 1 addition & 0 deletions uCNC/src/hal/boards/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ extern "C"
#define BOARD_WEMOS_D1_R32 50
#define BOARD_MKS_TINYBEE 51
#define BOARD_MKS_DLC32 52
#define BOARD_ESP32_SHIELD_V3 53
#define BOARD_RPI_PICO 60
#define BOARD_RPI_PICO_W 61
#define BOARD_VIRTUAL 99
Expand Down
51 changes: 51 additions & 0 deletions uCNC/src/hal/boards/esp32/boardmap_esp32_shield_v3.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
Name: boardmap_esp32_shield_v3.h
Description: Contains all MCU and PIN definitions for Arduino UNO similar to Grbl 0.8 to run µCNC.
Copyright: Copyright (c) João Martins
Author: João Martins
Date: 04/01/2024
µCNC is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. Please see <http://www.gnu.org/licenses/>
µCNC is distributed WITHOUT ANY WARRANTY;
Also without the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/

#ifndef BOARDMAP_ESP_SHIELD_V3_H
#define BOARDMAP_ESP_SHIELD_V3_H

#ifdef __cplusplus
extern "C"
{
#endif

#ifndef BOARD_NAME
#define BOARD_NAME "ESP32 SHIELD V3"
#endif

#include "boardmap_wemos_d1_r32.h"

//swap limit z and replace pwm by spin enable pin
#ifdef LIMIT_Z_BIT
#undef LIMIT_Z_BIT
#endif
#ifdef PWM0_BIT
#undef PWM0_BIT
#endif

// Grbl 0.8 limit z
#define LIMIT_Z_BIT 23 // assigns LIMIT_Z pin

// Grbl 0.8 spindle en
#define PWM0_BIT 19 // assigns PWM0 pin

#ifdef __cplusplus
}
#endif

#endif
6 changes: 6 additions & 0 deletions uCNC/src/hal/boards/esp32/esp32.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ build_flags = ${common_esp32.build_flags} -DBOARD=BOARD_MKS_TINYBEE -DMCU_FLASH_
board_build.filesystem = littlefs
lib_deps = ${common_esp32.lib_deps}, LittleFS

[env:ESP32-Shield-V3]
extends = common_esp32
build_flags = ${common_esp32.build_flags} -DBOARD=BOARD_ESP32_SHIELD_V3 -DMCU_FLASH_FS=1
board_build.filesystem = littlefs
lib_deps = ${common_esp32.lib_deps}, LittleFS

#################
# ESPIDF builds #
#################
Expand Down

0 comments on commit 04ba6aa

Please sign in to comment.