2018-01-12 07:07:25 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 14:00:57 +00:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-01-12 07:07:25 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-01-12 07:07:25 +00:00
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 03:44:12 +00:00
|
|
|
#pragma once
|
2018-01-12 07:07:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Melzi (Malyan M150) pin assignments
|
|
|
|
*/
|
|
|
|
|
2019-08-21 00:08:58 +00:00
|
|
|
#define BOARD_INFO_NAME "Melzi (Malyan)"
|
2018-02-10 20:44:14 +00:00
|
|
|
#include "pins_MELZI.h"
|
2018-01-12 07:07:25 +00:00
|
|
|
|
|
|
|
#undef LCD_SDSS
|
|
|
|
#undef LCD_PINS_RS
|
|
|
|
#undef LCD_PINS_ENABLE
|
|
|
|
#undef LCD_PINS_D4
|
|
|
|
#undef BTN_EN1
|
|
|
|
#undef BTN_EN2
|
|
|
|
#undef BTN_ENC
|
|
|
|
|
2018-03-28 17:51:59 +00:00
|
|
|
#define LCD_PINS_RS 17 // ST9720 CS
|
|
|
|
#define LCD_PINS_ENABLE 16 // ST9720 DAT
|
|
|
|
#define LCD_PINS_D4 11 // ST9720 CLK
|
|
|
|
#define BTN_EN1 30
|
|
|
|
#define BTN_EN2 29
|
|
|
|
#define BTN_ENC 28
|
2018-01-12 07:07:25 +00:00
|
|
|
|
|
|
|
// Alter timing for graphical display
|
2019-11-10 04:33:25 +00:00
|
|
|
#if HAS_GRAPHICAL_LCD
|
|
|
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
|
|
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
|
|
|
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
|
2018-03-17 07:40:20 +00:00
|
|
|
#endif
|