GRBL CNC

From Wiki
Revision as of 11:18, 18 January 2021 by Marcluer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • CNC with MKS Gen L v1.0 Atmega2560

VS Code - PlatformIO Project

  • New Project
    • Name: CNC-Grbl
    • Board: Atmega2560
    • Framework: Arduino

Find GRBL for target architecture

VS Code

  • platformio.ini
    [env:megaatmega2560]
    platform = atmelavr
    board = megaatmega2560
    framework = arduino
    monitor_speed = 115200
    
  • lib/grbl/config.h
    //#define DEFAULTS_GENERIC
    //#define CPU_MAP_2560_INITIAL
    
    // To use with RAMPS 1.4 Board, comment out the above defines and uncomment the next two defines
    #define DEFAULTS_RAMPS_BOARD
    #define CPU_MAP_2560_RAMPS_BOARD
    
  • src/main.cpp
    #include <grbl.h>