开源改变世界

我不能使用 MAX6675,#562

推推 grbl 2年前 (2023-02-05) 258次浏览
关闭
sjw107273131 开了这个issue 2013 年 7 月 30 日 · 3条评论
关闭

我不能使用 MAX6675,#define TEMP_SENSOR_0 -2 是错误的。#562

sjw107273131 开了这个issue 2013 年 7 月 30 日 · 3条评论

评论

我不能使用 MAX6675,#562

我用的是ultimaker的板子,但是TC不对,所以改加了一个MAX6675。
[#define MOTHERBOARD 7]
当我将#define TEMP_SENSOR_0 -1 更改为#define TEMP_SENSOR_0 -2 时,Arduino IDE 向我显示了一系列错误。

像这样:

temperature.cpp: 在函数 ‘void tp_init()’ 中:
temperature.cpp:736: 错误:’DIOMAX_SCK_PIN_DDR’ 未在此范围内声明
temperature.cpp:736: 错误:’DIOMAX_SCK_PIN_PIN’ 未在此范围内声明
temperature.cpp :737:错误:“DIOMAX_SCK_PIN_RPORT”未在此范围
温度中声明。cpp:737:错误:“DIOMAX_SCK_PIN_WPORT”未在此范围
温度中声明。cpp:737:错误:“DIOMAX_SCK_PIN_PIN”未在此范围
温度中声明。 cpp:737: 错误:“DIOMAX_SCK_PIN_WPORT”未在此范围
温度中声明。cpp:737:错误:“DIOMAX_SCK_PIN_PIN”未在此范围温度中声明。cpp
:737:错误:“DIOMAX_SCK_PIN_WPORT”在这方面没有申明
temperature.cpp:737: 错误:“DIOMAX_SCK_PIN_PIN”未在此范围内声明

截屏

我不能使用 MAX6675,#562

我不能使用 MAX6675,#562

同样在这里:

temperature.cpp: In function ‘void tp_init()’:
temperature.cpp:750: error: ‘DIOMAX_SCK_PIN_DDR’ was not declared in this scope
temperature.cpp:750: error: ‘DIOMAX_SCK_PIN_PIN’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_RPORT’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_WPORT’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_PIN’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_WPORT’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_PIN’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_WPORT’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_PIN’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_WPORT’ was not declared in this scope
temperature.cpp:751: error: ‘DIOMAX_SCK_PIN_PIN’ was not declared in this scope
temperature.cpp:753: error: ‘DIOMAX_MOSI_PIN_DDR’ was not declared in this scope
temperature.cpp:753: error: ‘DIOMAX_MOSI_PIN_PIN’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_RPORT’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_WPORT’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_PIN’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_WPORT’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_PIN’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_WPORT’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_PIN’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_WPORT’ was not declared in this scope
temperature.cpp:754: error: ‘DIOMAX_MOSI_PIN_PIN’ was not declared in this scope
temperature.cpp:756: error: ‘DIOMAX_MISO_PIN_DDR’ was not declared in this scope
temperature.cpp:756: error: ‘DIOMAX_MISO_PIN_PIN’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_RPORT’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_WPORT’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_PIN’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_WPORT’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_PIN’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_WPORT’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_PIN’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_WPORT’ was not declared in this scope
temperature.cpp:757: error: ‘DIOMAX_MISO_PIN_PIN’ was not declared in this scope
temperature.cpp:760: error: ‘DIOMAX6675_SS_DDR’ was not declared in this scope
temperature.cpp:760: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_RPORT’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:761: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp: At global scope:
temperature.cpp:1047: error: ‘HEAT_INTERVAL’ was not declared in this scope
temperature.cpp: In function ‘int read_max6675()’:
temperature.cpp:1067: error: ‘DIOMAX6675_SS_RPORT’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1067: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_RPORT’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_WPORT’ was not declared in this scope
temperature.cpp:1085: error: ‘DIOMAX6675_SS_PIN’ was not declared in this scope
我不能使用 MAX6675,#562
贡献者

这个是大约一年前创建的,有很多变化,请下载最新的 marlin 副本,看看问题是否仍然存在。您还可以使用最新的 arduino IDE 来刷新 marlin 固件。如果您的板文件等只能在旧的 ide 下工作,请先升级它们,以便它们在最新的 IDE 下工作。

如果您为不在https://github.com/ErikZalm/Marlin/tree/Marlin_v1/ArduinoAddons中的硬件创建板文件,请 fork marlin 并添加文件,然后创建一个拉取请求,以便我们可以获得硬件支持的。这也将使人们了解人们正在使用什么硬件。