Bläddra i källkod

Merge branch 'Marlin_v1' of https://github.com/BorisLandoni/Marlin into BorisLandoni-Marlin_v1

Conflicts:
	Marlin/Configuration.h
	Marlin/language.h
	Marlin/pins.h
Erik van der Zalm 12 år sedan
förälder
incheckning
408169aef4
3 ändrade filer med 154 tillägg och 93 borttagningar
  1. 1
    0
      Marlin/Configuration.h
  2. 5
    2
      Marlin/language.h
  3. 148
    91
      Marlin/pins.h

+ 1
- 0
Marlin/Configuration.h Visa fil

@@ -37,6 +37,7 @@
37 37
 // 64 = STB V1.1
38 38
 // 7  = Ultimaker
39 39
 // 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
40
+// 77 = 3Drag Controller
40 41
 // 8  = Teensylu
41 42
 // 80 = Rumba
42 43
 // 81 = Printrboard (AT90USB1286)

+ 5
- 2
Marlin/language.h Visa fil

@@ -29,6 +29,9 @@
29 29
 #elif MOTHERBOARD == 80
30 30
 	#define MACHINE_NAME "Rumba"
31 31
 	#define FIRMWARE_URL "https://github.com/ErikZalm/Marlin/"
32
+#elif MOTHERBOARD == 77
33
+	#define MACHINE_NAME "3Drag"
34
+	#define FIRMWARE_URL "http://3dprint.elettronicain.it/"
32 35
 #else
33 36
 	#ifdef CUSTOM_MENDEL_NAME
34 37
 		#define MACHINE_NAME CUSTOM_MENDEL_NAME
@@ -1004,7 +1007,7 @@
1004 1007
 #if LANGUAGE_CHOICE == 7
1005 1008
 
1006 1009
 	// LCD Menu Messages
1007
-	#define WELCOME_MSG MACHINE_NAME " Pronto."
1010
+	#define WELCOME_MSG MACHINE_NAME " Pronta"
1008 1011
 	#define MSG_SD_INSERTED          "SD Card inserita"
1009 1012
 	#define MSG_SD_REMOVED           "SD Card rimossa"
1010 1013
 	#define MSG_MAIN                 "Menu principale"
@@ -1016,7 +1019,7 @@
1016 1019
 	#define MSG_PREHEAT_PLA_SETTINGS "Preris. PLA Conf"
1017 1020
 	#define MSG_PREHEAT_ABS          "Preriscalda ABS"
1018 1021
 	#define MSG_PREHEAT_ABS_SETTINGS "Preris. ABS Conf"
1019
-	#define MSG_COOLDOWN             "Rafredda"
1022
+	#define MSG_COOLDOWN             "Raffredda"
1020 1023
 	#define MSG_EXTRUDE              "Estrudi"
1021 1024
 	#define MSG_RETRACT              "Ritrai"
1022 1025
 	#define MSG_MOVE_AXIS            "Muovi Asse"

+ 148
- 91
Marlin/pins.h Visa fil

@@ -298,7 +298,7 @@
298 298
 * Arduino Mega pin assignment
299 299
 *
300 300
 ****************************************************************************************/
301
-#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
301
+#if MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
302 302
 #define KNOWN_BOARD 1
303 303
 
304 304
 //////////////////FIX THIS//////////////
@@ -308,47 +308,89 @@
308 308
  #endif
309 309
 #endif
310 310
 
311
+
311 312
 // uncomment one of the following lines for RAMPS v1.3 or v1.0, comment both for v1.2 or 1.1
312 313
 // #define RAMPS_V_1_3
313 314
 // #define RAMPS_V_1_0
314 315
 
315
-#if MOTHERBOARD == 33 || MOTHERBOARD == 34
316
-
317
-  #define LARGE_FLASH        true
318
-
319
-  #define X_STEP_PIN         54
320
-  #define X_DIR_PIN          55
321
-  #define X_ENABLE_PIN       38
322
-  #define X_MIN_PIN           3
323
-  #define X_MAX_PIN           2
324
-
325
-  #define Y_STEP_PIN         60
326
-  #define Y_DIR_PIN          61
327
-  #define Y_ENABLE_PIN       56
328
-  #define Y_MIN_PIN          14
329
-  #define Y_MAX_PIN          15
330
-
331
-  #define Z_STEP_PIN         46
332
-  #define Z_DIR_PIN          48
333
-  #define Z_ENABLE_PIN       62
334
-  #define Z_MIN_PIN          18
335
-  #define Z_MAX_PIN          19
336 316
 
337
-  #define Z2_STEP_PIN        36
338
-  #define Z2_DIR_PIN         34
339
-  #define Z2_ENABLE_PIN      30
317
+#if MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
340 318
 
341
-  #define E0_STEP_PIN        26
342
-  #define E0_DIR_PIN         28
343
-  #define E0_ENABLE_PIN      24
319
+  #define LARGE_FLASH true
320
+  
321
+  #if MOTHERBOARD == 77
322
+    #define X_STEP_PIN         54
323
+    #define X_DIR_PIN          55
324
+    #define X_ENABLE_PIN       38
325
+    #define X_MIN_PIN           3
326
+    #define X_MAX_PIN           -1   //2 //Max endstops default to disabled "-1", set to commented value to enable.
327
+
328
+    #define Y_STEP_PIN         60
329
+    #define Y_DIR_PIN          61
330
+    #define Y_ENABLE_PIN       56
331
+    #define Y_MIN_PIN          14
332
+    #define Y_MAX_PIN          -1   //15
333
+
334
+    #define Z_STEP_PIN         46
335
+    #define Z_DIR_PIN          48
336
+    #define Z_ENABLE_PIN       63
337
+    #define Z_MIN_PIN          18
338
+    #define Z_MAX_PIN          -1
339
+
340
+    #define Z2_STEP_PIN        36
341
+    #define Z2_DIR_PIN         34
342
+    #define Z2_ENABLE_PIN      30
343
+
344
+    #define E0_STEP_PIN        26
345
+    #define E0_DIR_PIN         28
346
+    #define E0_ENABLE_PIN      24
347
+
348
+    #define E1_STEP_PIN        36
349
+    #define E1_DIR_PIN         34
350
+    #define E1_ENABLE_PIN      30
351
+
352
+    #define SDPOWER            -1
353
+    #define SDSS               25//53
354
+    #define LED_PIN            13
355
+
356
+    #define BEEPER             33    
344 357
 
345
-  #define E1_STEP_PIN        36
346
-  #define E1_DIR_PIN         34
347
-  #define E1_ENABLE_PIN      30
358
+  #else
348 359
 
349
-  #define SDPOWER            -1
350
-  #define SDSS               53
351
-  #define LED_PIN            13
360
+    #define X_STEP_PIN         54
361
+    #define X_DIR_PIN          55
362
+    #define X_ENABLE_PIN       38
363
+    #define X_MIN_PIN           3
364
+    #define X_MAX_PIN           2
365
+
366
+    #define Y_STEP_PIN         60
367
+    #define Y_DIR_PIN          61
368
+    #define Y_ENABLE_PIN       56
369
+    #define Y_MIN_PIN          14
370
+    #define Y_MAX_PIN          15
371
+
372
+    #define Z_STEP_PIN         46
373
+    #define Z_DIR_PIN          48
374
+    #define Z_ENABLE_PIN       62
375
+    #define Z_MIN_PIN          18
376
+    #define Z_MAX_PIN          19
377
+
378
+    #define Z2_STEP_PIN        36
379
+    #define Z2_DIR_PIN         34
380
+    #define Z2_ENABLE_PIN      30
381
+
382
+    #define E0_STEP_PIN        26
383
+    #define E0_DIR_PIN         28
384
+    #define E0_ENABLE_PIN      24
385
+
386
+    #define E1_STEP_PIN        36
387
+    #define E1_DIR_PIN         34
388
+    #define E1_ENABLE_PIN      30
389
+
390
+    #define SDPOWER            -1
391
+    #define SDSS               53
392
+    #define LED_PIN            13
393
+  #endif
352 394
 
353 395
   #if MOTHERBOARD == 33
354 396
     #define FAN_PIN            9 // (Sprinter config)
@@ -356,6 +398,10 @@
356 398
     #define FAN_PIN            4 // IO pin. Buffer needed
357 399
   #endif
358 400
 
401
+  #if MOTHERBOARD == 77
402
+    #define FAN_PIN            8 
403
+  #endif
404
+
359 405
   #define PS_ON_PIN          12
360 406
 
361 407
   #if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
@@ -365,18 +411,27 @@
365 411
   #endif
366 412
 
367 413
   #define HEATER_0_PIN       10   // EXTRUDER 1
368
-
369
-  #if MOTHERBOARD == 33
414
+  #if MOTHERBOARD == 33 
370 415
     #define HEATER_1_PIN       -1
371 416
   #else
372 417
     #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
373 418
   #endif
419
+  #define HEATER_2_PIN       -1 
420
+
421
+  #if MOTHERBOARD == 77
422
+    #define HEATER_0_PIN       10   
423
+    #define HEATER_1_PIN       12 
424
+    #define HEATER_2_PIN       6   
425
+  #endif
374 426
 
375
-  #define HEATER_2_PIN       -1
376 427
   #define TEMP_0_PIN         13   // ANALOG NUMBERING
377 428
   #define TEMP_1_PIN         15   // ANALOG NUMBERING
378 429
   #define TEMP_2_PIN         -1   // ANALOG NUMBERING
379
-  #define HEATER_BED_PIN     8    // BED
430
+  #if MOTHERBOARD == 77
431
+    #define HEATER_BED_PIN     9    // BED
432
+  #else
433
+    #define HEATER_BED_PIN     8    // BED
434
+  #endif
380 435
   #define TEMP_BED_PIN       14   // ANALOG NUMBERING
381 436
 
382 437
 
@@ -403,7 +458,7 @@
403 458
       #define LCD_PINS_RS 16 
404 459
       #define LCD_PINS_ENABLE 17
405 460
       #define LCD_PINS_D4 23
406
-      #define LCD_PINS_D5 25
461
+      #define LCD_PINS_D5 25 
407 462
       #define LCD_PINS_D6 27
408 463
       #define LCD_PINS_D7 29
409 464
 
@@ -440,22 +495,23 @@
440 495
         #endif
441 496
     
442 497
       #endif
498
+    
443 499
 
444 500
     #else //old style panel with shift register
445 501
       //arduino pin witch triggers an piezzo beeper
446
-      #define BEEPER 33   // No Beeper added 
502
+      #define BEEPER 33		//No Beeper added
447 503
 
448 504
       //buttons are attached to a shift register
449
-      // Not wired this yet
505
+	// Not wired this yet
450 506
       //#define SHIFT_CLK 38
451 507
       //#define SHIFT_LD 42
452 508
       //#define SHIFT_OUT 40
453 509
       //#define SHIFT_EN 17
454
-
455
-      #define LCD_PINS_RS 16
510
+    
511
+      #define LCD_PINS_RS 16 
456 512
       #define LCD_PINS_ENABLE 17
457 513
       #define LCD_PINS_D4 23
458
-      #define LCD_PINS_D5 25
514
+      #define LCD_PINS_D5 25 
459 515
       #define LCD_PINS_D6 27
460 516
       #define LCD_PINS_D7 29
461 517
     #endif 
@@ -463,57 +519,56 @@
463 519
 
464 520
 #else // RAMPS_V_1_1 or RAMPS_V_1_2 as default (MOTHERBOARD == 3)
465 521
 
466
-  #define X_STEP_PIN         26
467
-  #define X_DIR_PIN          28
468
-  #define X_ENABLE_PIN       24
469
-  #define X_MIN_PIN           3
470
-  #define X_MAX_PIN          -1    //2
471
-
472
-  #define Y_STEP_PIN         38
473
-  #define Y_DIR_PIN          40
474
-  #define Y_ENABLE_PIN       36
475
-  #define Y_MIN_PIN          16
476
-  #define Y_MAX_PIN          -1    //17
477
-
478
-  #define Z_STEP_PIN         44
479
-  #define Z_DIR_PIN          46
480
-  #define Z_ENABLE_PIN       42
481
-  #define Z_MIN_PIN          18
482
-  #define Z_MAX_PIN          -1    //19
483
-
484
-  #define E0_STEP_PIN         32
485
-  #define E0_DIR_PIN          34
486
-  #define E0_ENABLE_PIN       30
487
-
488
-  #define SDPOWER            48
489
-  #define SDSS               53
490
-  #define LED_PIN            13
491
-  #define PS_ON_PIN          -1
492
-  #define KILL_PIN           -1
493
-
494
-  #ifdef RAMPS_V_1_0 // RAMPS_V_1_0
495
-    #define HEATER_0_PIN     12    // RAMPS 1.0
496
-    #define HEATER_BED_PIN   -1    // RAMPS 1.0
497
-    #define FAN_PIN          11    // RAMPS 1.0
498
-  #else // RAMPS_V_1_1 or RAMPS_V_1_2
499
-    #define HEATER_0_PIN     10    // RAMPS 1.1
500
-    #define HEATER_BED_PIN    8    // RAMPS 1.1
501
-    #define FAN_PIN           9    // RAMPS 1.1
502
-  #endif
522
+#define X_STEP_PIN         26
523
+#define X_DIR_PIN          28
524
+#define X_ENABLE_PIN       24
525
+#define X_MIN_PIN           3
526
+#define X_MAX_PIN          -1    //2
527
+
528
+#define Y_STEP_PIN         38
529
+#define Y_DIR_PIN          40
530
+#define Y_ENABLE_PIN       36
531
+#define Y_MIN_PIN          16
532
+#define Y_MAX_PIN          -1    //17
533
+
534
+#define Z_STEP_PIN         44
535
+#define Z_DIR_PIN          46
536
+#define Z_ENABLE_PIN       42
537
+#define Z_MIN_PIN          18
538
+#define Z_MAX_PIN          -1    //19
539
+
540
+#define E0_STEP_PIN         32
541
+#define E0_DIR_PIN          34
542
+#define E0_ENABLE_PIN       30
543
+
544
+#define SDPOWER            48
545
+#define SDSS               53
546
+#define LED_PIN            13
547
+#define PS_ON_PIN          -1
548
+#define KILL_PIN           -1
503 549
 
504
-  #define HEATER_1_PIN        -1
505
-  #define HEATER_2_PIN        -1
506
-  #define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
507
-  #define TEMP_1_PIN          -1
508
-  #define TEMP_2_PIN          -1
509
-  #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
550
+#ifdef RAMPS_V_1_0 // RAMPS_V_1_0
551
+  #define HEATER_0_PIN     12    // RAMPS 1.0
552
+  #define HEATER_BED_PIN   -1    // RAMPS 1.0
553
+  #define FAN_PIN          11    // RAMPS 1.0
554
+#else // RAMPS_V_1_1 or RAMPS_V_1_2
555
+  #define HEATER_0_PIN     10    // RAMPS 1.1
556
+  #define HEATER_BED_PIN    8    // RAMPS 1.1
557
+  #define FAN_PIN           9    // RAMPS 1.1
558
+#endif
559
+#define HEATER_1_PIN        -1
560
+#define HEATER_2_PIN        -1
561
+#define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
562
+#define TEMP_1_PIN          -1   
563
+#define TEMP_2_PIN          -1   
564
+#define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
510 565
 
511
-#endif// MOTHERBOARD == 33 || MOTHERBOARD == 34
566
+#endif // MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
512 567
 
513
-// SPI for Max6675 Thermocouple
568
+// SPI for Max6675 Thermocouple 
514 569
 
515 570
 #ifndef SDSUPPORT
516
-// these pins are defined in the SD library if building with SD support
571
+// these pins are defined in the SD library if building with SD support  
517 572
   #define MAX_SCK_PIN          52
518 573
   #define MAX_MISO_PIN         50
519 574
   #define MAX_MOSI_PIN         51
@@ -522,7 +577,9 @@
522 577
   #define MAX6675_SS       49
523 578
 #endif
524 579
 
525
-#endif//MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34
580
+#endif //MOTHERBOARD == 3 || MOTHERBOARD == 33 || MOTHERBOARD == 34 || MOTHERBOARD == 77
581
+
582
+
526 583
 
527 584
 /****************************************************************************************
528 585
 * Duemilanove w/ ATMega328P pin assignment

Laddar…
Avbryt
Spara