2018-01-12 08:07:25 +01:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-01-12 08:07:25 +01:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-01-12 08:07:25 +01: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 05:44:12 +02:00
|
|
|
#pragma once
|
2018-01-12 08:07:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Melzi (Malyan M150) pin assignments
|
|
|
|
*/
|
|
|
|
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "Melzi (Malyan)"
|
2020-06-05 02:55:39 +02:00
|
|
|
|
|
|
|
// Alter timing for graphical display
|
|
|
|
#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)
|
|
|
|
#endif
|
|
|
|
|
2018-02-10 21:44:14 +01:00
|
|
|
#include "pins_MELZI.h"
|
2018-01-12 08:07:25 +01: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
|
|
|
|
|
2020-03-22 03:13:19 +01: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
|