knowledge:3d_print:2022102301
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版上一修订版两侧同时换到之后的修订记录 | ||
knowledge:3d_print:2022102301 [2022/10/28 05:38] – 弘毅 | knowledge:3d_print:2022102301 [2023/06/14 12:32] – 弘毅 | ||
---|---|---|---|
行 6: | 行 6: | ||
static void xflash_err_msg() | static void xflash_err_msg() | ||
{ | { | ||
- | lcd_clear(); | + | |
- | lcd_puts_P(_n(" | + | lcd_puts_P(_n(" |
} | } | ||
// " | // " | ||
- | // Before startup, the Timers-functions (PWM)/ | + | // Before startup, the Timers-functions (PWM)/ |
// are initialized by the main() routine provided by the Arduino framework. | // are initialized by the main() routine provided by the Arduino framework. | ||
void setup() | void setup() | ||
{ | { | ||
- | timer2_init(); | + | |
- | mmu_init(); | + | |
- | ultralcd_init(); | + | |
- | spi_init(); | + | |
- | lcd_splash(); | + | |
- | Sound_Init(); | + | Sound_Init(); |
- | selectedSerialPort = eeprom_read_byte((uint8_t *)EEPROM_SECOND_SERIAL_ACTIVE); | + | |
- | if (selectedSerialPort == 0xFF) selectedSerialPort = 0; | + | if (selectedSerialPort == 0xFF) selectedSerialPort = 0; |
- | eeprom_update_byte((uint8_t *)EEPROM_SECOND_SERIAL_ACTIVE, | + | eeprom_update_byte((uint8_t *)EEPROM_SECOND_SERIAL_ACTIVE, |
- | MYSERIAL.begin(BAUDRATE); | + | MYSERIAL.begin(BAUDRATE); |
- | fdev_setup_stream(uartout, | + | fdev_setup_stream(uartout, |
- | stdout = uartout; | + | stdout = uartout; |
#ifdef XFLASH | #ifdef XFLASH | ||
- | | + | |
- | uint8_t optiboot_status = 1; | + | uint8_t optiboot_status = 1; |
- | if (xflash_success) | + | if (xflash_success) |
- | { | + | { |
- | optiboot_status = optiboot_xflash_enter(); | + | optiboot_status = optiboot_xflash_enter(); |
#if (LANG_MODE != 0) //secondary language support | #if (LANG_MODE != 0) //secondary language support | ||
- | | + | |
#endif // | #endif // | ||
- | } | + | |
- | else | + | else |
- | { | + | { |
- | | + | xflash_err_msg(); |
- | } | + | } |
#else | #else | ||
- | const bool xflash_success = true; | + | |
#endif //XFLASH | #endif //XFLASH | ||
</ | </ |
knowledge/3d_print/2022102301.txt · 最后更改: 2023/06/14 12:34 由 弘毅