|
@@ -811,3 +811,136 @@
|
811
|
811
|
#error "I2C_SLAVE_ADDRESS can't be over 127. (Only 7 bits allowed.)"
|
812
|
812
|
#endif
|
813
|
813
|
#endif
|
|
814
|
+
|
|
815
|
+/**
|
|
816
|
+ * Make sure only one display is enabled
|
|
817
|
+ *
|
|
818
|
+ * Note: BQ_LCD_SMART_CONTROLLER => REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
819
|
+ * REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER => REPRAP_DISCOUNT_SMART_CONTROLLER
|
|
820
|
+ * SAV_3DGLCD => U8GLIB_SH1106 => ULTIMAKERCONTROLLER
|
|
821
|
+ * miniVIKI => ULTIMAKERCONTROLLER
|
|
822
|
+ * VIKI2 => ULTIMAKERCONTROLLER
|
|
823
|
+ * ELB_FULL_GRAPHIC_CONTROLLER => ULTIMAKERCONTROLLER
|
|
824
|
+ * PANEL_ONE => ULTIMAKERCONTROLLER
|
|
825
|
+ */
|
|
826
|
+#define COUNT_LCD_1 0
|
|
827
|
+#if ENABLED(ULTIMAKERCONTROLLER) \
|
|
828
|
+ && DISABLED(SAV_3DGLCD) && DISABLED(miniVIKI) && DISABLED(VIKI2) \
|
|
829
|
+ && DISABLED(ELB_FULL_GRAPHIC_CONTROLLER) && DISABLED(PANEL_ONE)
|
|
830
|
+ #define COUNT_LCD_2 INCREMENT(COUNT_LCD_1)
|
|
831
|
+#else
|
|
832
|
+ #define COUNT_LCD_2 COUNT_LCD_1
|
|
833
|
+#endif
|
|
834
|
+#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && DISABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
835
|
+ #define COUNT_LCD_3 INCREMENT(COUNT_LCD_2)
|
|
836
|
+#else
|
|
837
|
+ #define COUNT_LCD_3 COUNT_LCD_2
|
|
838
|
+#endif
|
|
839
|
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && DISABLED(BQ_LCD_SMART_CONTROLLER)
|
|
840
|
+ #define COUNT_LCD_4 INCREMENT(COUNT_LCD_3)
|
|
841
|
+#else
|
|
842
|
+ #define COUNT_LCD_4 COUNT_LCD_3
|
|
843
|
+#endif
|
|
844
|
+#if ENABLED(CARTESIO_UI)
|
|
845
|
+ #define COUNT_LCD_5 INCREMENT(COUNT_LCD_4)
|
|
846
|
+#else
|
|
847
|
+ #define COUNT_LCD_5 COUNT_LCD_4
|
|
848
|
+#endif
|
|
849
|
+#if ENABLED(PANEL_ONE)
|
|
850
|
+ #define COUNT_LCD_6 INCREMENT(COUNT_LCD_5)
|
|
851
|
+#else
|
|
852
|
+ #define COUNT_LCD_6 COUNT_LCD_5
|
|
853
|
+#endif
|
|
854
|
+#if ENABLED(MAKRPANEL)
|
|
855
|
+ #define COUNT_LCD_7 INCREMENT(COUNT_LCD_6)
|
|
856
|
+#else
|
|
857
|
+ #define COUNT_LCD_7 COUNT_LCD_6
|
|
858
|
+#endif
|
|
859
|
+#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
|
860
|
+ #define COUNT_LCD_8 INCREMENT(COUNT_LCD_7)
|
|
861
|
+#else
|
|
862
|
+ #define COUNT_LCD_8 COUNT_LCD_7
|
|
863
|
+#endif
|
|
864
|
+#if ENABLED(VIKI2)
|
|
865
|
+ #define COUNT_LCD_9 INCREMENT(COUNT_LCD_8)
|
|
866
|
+#else
|
|
867
|
+ #define COUNT_LCD_9 COUNT_LCD_8
|
|
868
|
+#endif
|
|
869
|
+#if ENABLED(miniVIKI)
|
|
870
|
+ #define COUNT_LCD_10 INCREMENT(COUNT_LCD_9)
|
|
871
|
+#else
|
|
872
|
+ #define COUNT_LCD_10 COUNT_LCD_9
|
|
873
|
+#endif
|
|
874
|
+#if ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
|
875
|
+ #define COUNT_LCD_11 INCREMENT(COUNT_LCD_10)
|
|
876
|
+#else
|
|
877
|
+ #define COUNT_LCD_11 COUNT_LCD_10
|
|
878
|
+#endif
|
|
879
|
+#if ENABLED(G3D_PANEL)
|
|
880
|
+ #define COUNT_LCD_12 INCREMENT(COUNT_LCD_11)
|
|
881
|
+#else
|
|
882
|
+ #define COUNT_LCD_12 COUNT_LCD_11
|
|
883
|
+#endif
|
|
884
|
+#if ENABLED(MINIPANEL)
|
|
885
|
+ #define COUNT_LCD_13 INCREMENT(COUNT_LCD_12)
|
|
886
|
+#else
|
|
887
|
+ #define COUNT_LCD_13 COUNT_LCD_12
|
|
888
|
+#endif
|
|
889
|
+#if ENABLED(REPRAPWORLD_KEYPAD)
|
|
890
|
+ #define COUNT_LCD_14 INCREMENT(COUNT_LCD_13)
|
|
891
|
+#else
|
|
892
|
+ #define COUNT_LCD_14 COUNT_LCD_13
|
|
893
|
+#endif
|
|
894
|
+#if ENABLED(RIGIDBOT_PANEL)
|
|
895
|
+ #define COUNT_LCD_15 INCREMENT(COUNT_LCD_14)
|
|
896
|
+#else
|
|
897
|
+ #define COUNT_LCD_15 COUNT_LCD_14
|
|
898
|
+#endif
|
|
899
|
+#if ENABLED(RA_CONTROL_PANEL)
|
|
900
|
+ #define COUNT_LCD_16 INCREMENT(COUNT_LCD_15)
|
|
901
|
+#else
|
|
902
|
+ #define COUNT_LCD_16 COUNT_LCD_15
|
|
903
|
+#endif
|
|
904
|
+#if ENABLED(LCD_I2C_SAINSMART_YWROBOT)
|
|
905
|
+ #define COUNT_LCD_17 INCREMENT(COUNT_LCD_16)
|
|
906
|
+#else
|
|
907
|
+ #define COUNT_LCD_17 COUNT_LCD_16
|
|
908
|
+#endif
|
|
909
|
+#if ENABLED(LCM1602)
|
|
910
|
+ #define COUNT_LCD_18 INCREMENT(COUNT_LCD_17)
|
|
911
|
+#else
|
|
912
|
+ #define COUNT_LCD_18 COUNT_LCD_17
|
|
913
|
+#endif
|
|
914
|
+#if ENABLED(LCD_I2C_PANELOLU2)
|
|
915
|
+ #define COUNT_LCD_19 INCREMENT(COUNT_LCD_18)
|
|
916
|
+#else
|
|
917
|
+ #define COUNT_LCD_19 COUNT_LCD_18
|
|
918
|
+#endif
|
|
919
|
+#if ENABLED(LCD_I2C_VIKI)
|
|
920
|
+ #define COUNT_LCD_20 INCREMENT(COUNT_LCD_19)
|
|
921
|
+#else
|
|
922
|
+ #define COUNT_LCD_20 COUNT_LCD_19
|
|
923
|
+#endif
|
|
924
|
+#if ENABLED(U8GLIB_SSD1306)
|
|
925
|
+ #define COUNT_LCD_21 INCREMENT(COUNT_LCD_20)
|
|
926
|
+#else
|
|
927
|
+ #define COUNT_LCD_21 COUNT_LCD_20
|
|
928
|
+#endif
|
|
929
|
+#if ENABLED(SAV_3DLCD)
|
|
930
|
+ #define COUNT_LCD_22 INCREMENT(COUNT_LCD_21)
|
|
931
|
+#else
|
|
932
|
+ #define COUNT_LCD_22 COUNT_LCD_21
|
|
933
|
+#endif
|
|
934
|
+#if ENABLED(BQ_LCD_SMART_CONTROLLER)
|
|
935
|
+ #define COUNT_LCD_23 INCREMENT(COUNT_LCD_22)
|
|
936
|
+#else
|
|
937
|
+ #define COUNT_LCD_23 COUNT_LCD_22
|
|
938
|
+#endif
|
|
939
|
+#if ENABLED(SAV_3DGLCD)
|
|
940
|
+ #define COUNT_LCD_24 INCREMENT(COUNT_LCD_23)
|
|
941
|
+#else
|
|
942
|
+ #define COUNT_LCD_24 COUNT_LCD_23
|
|
943
|
+#endif
|
|
944
|
+#if COUNT_LCD_24 > 1
|
|
945
|
+ #error "Please select no more than one LCD controller option."
|
|
946
|
+#endif
|