/***********************************************************************
This sketch compiles and uploads Grbl to your 328p-based Arduino!
To use:
- First make sure you have imported Grbl source code into your Arduino
IDE. There are details on our Github website on how to do this.
- Select your Arduino Board and Serial Port in the Tools drop-down menu.
NOTE: Grbl only officially supports 328p-based Arduinos, like the Uno.
Using other boards will likely not work!
- Then just click 'Upload'. That's it!
For advanced users:
If you'd like to see what else Grbl can do, there are some additional
options for customization and features you can enable or disable.
Navigate your file system to where the Arduino IDE has stored the Grbl
source code files, open the 'config.h' file in your favorite text
editor. Inside are dozens of feature descriptions and #defines. Simply
comment or uncomment the #defines or alter their assigned values, save
your changes, and then click 'Upload' here.
Copyright (c) 2015 Sungeun K. Jeon
Released under the MIT-license. See license.txt for details.
***********************************************************************/
#include <grbl.h>
#if 0
#include <Arduino.h>
#endif
// Do not alter this file!
压制其中一些
nuts_bolts.h:52 添加接下来的 9 行(或注释 #DEFINE max、min & bit 宏)
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
#ifdef bit
#undef bit
#endif
eeprom.c:133, eeprom.c:144
替换校验和 = (校验和 << 1) || (校验和 >> 7);
通过校验和 = (校验和 << 1) | (校验和 >> 7);
gcode.c: xx – 使用“break;” 在所有开关“案例:”的末尾
兹德内克