KREMEN Реклама
KREMEN Реклама

Добрый день помогите со скетчем пож

folkar02
Идет загрузка
Загрузка
08.03.2020
660
1
Вопросы и ответы

Добрый день,помогите пожайлусто разобратся со скетчем,при попытке поменять дисплей на REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CORNTROLLE вылетают ошибки разного образца,библиотека подключена вот сам скетч: 

#ifndef CONFIGURATION_H

#define CONFIGURATION_H

/*Notes for to dos

* Basic motion control - complete

* Come up with right settings steps/mm, acceleration, and feed rate to get good behavior - complete

* Allow motion to be turned on/off via LCD - complete

*

* Figure our why motors pulse - complete was resetting failure

* Figure out why motors miss steps (add heating fins?) - complete

*

* Calibrate the extruder in RPM - complete

* calibrate the puller in mm based on urethane wheel diameter - complete

* Add the control for two motors - complete

* link the motor velocities so that the puller motor is a percentage of the extruder RPM - complete

*

* Winder speed can't be changed while running - works for 'control' menu but not 'tuning' menu - complete

* Still getting Card Removed at turn on only. - complete

*

* Display items

* Show more on the main display (length, rpm, diameter) - complete

* Trem went blank, but returned - check why this might be - occurs when not collecting stats (like when paused)

* Remove dmin and dmax since does not seem useful - complete

* Add one more digit to M2 RPM (0.00) - complete

* Would like to change the total mm while running. - you can do this already - moved to better menus - complete

* Need to clear the Tela time stat with the length stat - complete

* Figure out how to resent the display periodically so that it restarts after static elect. - complete

* display filament diameter every 5 seconds rather than 1 second

*

* Temp control

* figure out the right thermister - complete

* seems to hit max or min temp - fixed

* tune the PID - complete

* add autotune to the menus - complete

*

* Filament width

* Add input and code for filament width sensor - complete

*

* add an input for turning the extruder motor on/off - complete

* get PID to work with the filament width to puller speed control and add LCD manual/automatic control - complete

* add filament dia max,min, avg, and some way to clear and freeze it - complete

* add winder on/off control with an input, screen way, and #define to enable/disable in code - complete

* make sure new configuration items are saved in flash - complete

* add new g-codes for manual/automatic control to allow it to be controlled via pronterface

* clean-up of LCD menus - complete

*

* need to make filament pid not time based but mm based - complete

* change back to direct control, not incremental. - complete

* add menus to change PID parameters for Filament - complete

*

* Clear Stats did not zero out the L (length). - complete

* Need to be able to adjust the M2 rpm same as M1. - complete

* Clean up the multiplication factors - complete

* Clean up the Tune menu to remove factors no longer needed - complete

* Change the feedmultiply to an absolute puller_feedrate - complete

* Info page does not show M2 rpm. - complete

* Need docs of each function in the menus. - complete

*

* make PID autotune go back to the info screen after launching

* Remove endstop logic out of the stepper interrupt ISR(TIMER1_COMPA_vect) to improve stepper speed and reliability - complete

* Rename to Mackerel from Marlin where referred to in code - complete

debug notes:

- Hardcoded the temperature reading of the extruder for testing - search for FMMDEBUGTEMP

- Change how milimeters is calculated in the planner - search for FMMDEBUGMMPLAN

15

*/

// This configuration file contains the basic settings.

// Advanced settings can be found in Configuration_adv.h

// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration

//===========================================================================

//============================= DELTA Printer ===============================

//===========================================================================

// For a Delta printer replace the configuration files with the files in the

// example_configurations/delta directory.

//

// User-specified version info of this build to display in [Pronterface, etc] terminal window during

// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this

// build by the user have been successfully uploaded into firmware.

#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time

#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.

// SERIAL_PORT selects which serial port should be used for communication with the host.

// This allows the connection of wireless adapters (for instance) to non-default port pins.

// Serial port 0 is still used by the Arduino bootloader regardless of this setting.

#define SERIAL_PORT 0

// This determines the communication speed of the printer

// This determines the communication speed of the printer

#define BAUDRATE 250000

// This enables the serial port associated to the Bluetooth interface

//#define BTENABLED // Enable BT interface on AT90USB devices

//// The following define selects which electronics board you have. Please choose the one that matches your setup

// 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"

// 11 = Gen7 v1.1, v1.2 = 11

// 12 = Gen7 v1.3

// 13 = Gen7 v1.4

// 2 = Cheaptronic v1.0

// 20 = Sethi 3D_1

// 3 = MEGA/RAMPS up to 1.2 = 3

// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)

// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)

// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)

// 4 = Duemilanove w/ ATMega328P pin assignment

// 5 = Gen6

// 51 = Gen6 deluxe

// 6 = Sanguinololu REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib

//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CORNTROLLE

// The RepRapWorld REPRAPWORLD_KEYPAD v1.1

// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626

//#define REPRAPWORLD_KEYPAD

//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click

// The Elefu RA Board Control Panel

// http://www.elefu.com/index.php?route=product/product&product_id=53

// REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARUDINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C

//#define RA_CONTROL_PANEL

//automatic expansion

#if defined (MAKRPANEL)

 #define DOGLCD

 #define SDSUPPORT

 #define ULTIPANEL

 #define NEWPANEL

 #define DEFAULT_LCD_CONTRAST 17

#endif

#if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)

 #define DOGLCD

 #define U8GLIB_ST7920

 #define REPRAP_DISCOUNT_SMART_CONTROLLER

#endif

#if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)

 #define ULTIPANEL

 #define NEWPANEL

#endif

#if defined(REPRAPWORLD_KEYPAD)

  #define NEWPANEL

  #define ULTIPANEL

#endif

#if defined(RA_CONTROL_PANEL)

 #define ULTIPANEL

 #define NEWPANEL

 #define LCD_I2C_TYPE_PCA8574

 #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander

#endif

//I2C PANELS

//#define LCD_I2C_SAINSMART_YWROBOT

#ifdef LCD_I2C_SAINSMART_YWROBOT

  // This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )

  // Make sure it is placed in the Arduino libraries directory.

  #define LCD_I2C_TYPE_PCF8575

  #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander

  #define NEWPANEL

  #define ULTIPANEL

#endif

// PANELOLU2 LCD with status LEDs, separate encoder and click inputs

//#define LCD_I2C_PANELOLU2

#ifdef LCD_I2C_PANELOLU2

  // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )

  // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.

  // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)

  // Note: The PANELOLU2 encoder click input can either be directly connected to a pin

  // (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).

  #define LCD_I2C_TYPE_MCP23017

  #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander

  #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD

  #define NEWPANEL

  #define ULTIPANEL

  #ifndef ENCODER_PULSES_PER_STEP

 #define ENCODER_PULSES_PER_STEP 4

  #endif

  #ifndef ENCODER_STEPS_PER_MENU_ITEM

 #define ENCODER_STEPS_PER_MENU_ITEM 1

  #endif

  #ifdef LCD_USE_I2C_BUZZER

 #define LCD_FEEDBACK_FREQUENCY_HZ 1000

 #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100

  #endif

#endif

// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs

//#define LCD_I2C_VIKI

#ifdef LCD_I2C_VIKI

  // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )

  // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.

  // Note: The pause/stop/resume LCD button pin should be connected to the Arduino

  // BTN_ENC pin (or set BTN_ENC to -1 if not used)

  #define LCD_I2C_TYPE_MCP23017

  #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander

  #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)

  #define NEWPANEL

  #define ULTIPANEL

#endif

// Shift register panels

// ---------------------

// 2 wire Non-latching LCD SR from:

// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection

//#define SR_LCD

#ifdef SR_LCD

   #define SR_LCD_2W_NL // Non latching 2 wire shift register

   //#define NEWPANEL

#endif

#ifdef ULTIPANEL

// #define NEWPANEL //enable this if you have a click-encoder panel

 #define SDSUPPORT

  #define ULTRA_LCD

  #ifdef DOGLCD // Change number of lines to match the DOG graphic display

    #define LCD_WIDTH 20

    #define LCD_HEIGHT 5

  #else

    #define LCD_WIDTH 20

    #define LCD_HEIGHT 4

  #endif

#else //no panel but just LCD

  #ifdef ULTRA_LCD

  #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display

    #define LCD_WIDTH 20

    #define LCD_HEIGHT 5

  #else

    #define LCD_WIDTH 16

    #define LCD_HEIGHT 2

  #endif

  #endif

#endif

// default LCD contrast for dogm-like LCD displays

#ifdef DOGLCD

# ifndef DEFAULT_LCD_CONTRAST

# define DEFAULT_LCD_CONTRAST 32

# endif

#endif

// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino

//#define FAST_PWM_FAN

// Temperature status LEDs that display the hotend and bet temperature.

// If all hotends and bed temperature and temperature setpoint are 

Ответы на вопросы
Lider 3D Реклама
Lider 3D Реклама