bdring / Grbl_Esp32

A port of Grbl CNC Firmware for ESP32
GNU General Public License v3.0
1.69k stars 530 forks source link

Translate Machine.h for YOUR NAME #1404

Open labbardell opened 1 year ago

labbardell commented 1 year ago

T#pragma once

// This file is where you choose the machine type, by including // one or more machine definition files as described below.

ifndef MACHINE_FILENAME

// !!! For initial testing, start with test_drive.h which disables // all I/O pins // #include "Machines/atari_1020.h"

include "Machines/eggbot.h"

// !!! For actual use, change the line above to select a board // from Machines/, for example: // #include "Machines/3axis_v4.h"

// === OEM Single File Configuration Option // OEMs that wish to publish source code that is configured for a // specific machine may put all of their configuration definitions // directly in this file, without including any other file above.

else

// By using the external environment to define MACHINE_FILENAME, // a configuration can be chosen without editing this file. // That is useful for automated testing scripts. // // For example, when using the platformio compilation environment // under Linux, you could issue the following command line: // PLATFORMIO_BUILD_FLAGS=-DMACHINE_FILENAME=3axis_v4.h platformio run // // Under Windows, using PowerShell, the command would be: // $env:PLATFORMIO_BUILD_FLAGS='-DMACHINE_FILENAME=3axis_v4.h'; platformio run // // When using the Arduino IDE, there is no easy way to pass variables // to the compiler, so this feature is not useful for Arduino. // // MACHINE_FILENAME must not include the Machines/ path prefix; it is // supplied automatically.

// MACHINE_PATHNAME_QUOTED constructs a path that is suitable for #include

define MACHINE_PATHNAME_QUOTED(eggbot) <src/Machines/eggbot>

include MACHINE_PATHNAME_QUOTED(MACHINE_FILENAME)

endif // MACHINE_FILENAME

github-actions[bot] commented 1 year ago

Dear labbardell, The attempt to convert your machine header-file into a FluidNc yaml file failed due to one of the following possibilities:

  1. Your machine file had an error. This can happen if you use an old machine file that will not compile with the latest version of Grbl_Esp32
  2. There is a bug in the converter program. If you cannot resolve the problem, please contact us on Discord - https://discord.gg/MDsRDeNsTE