My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HAL_LCD_class_defines.h 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016, 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. // use this file to create the public interface for device drivers that are NOT in the U8G library
  23. extern u8g_dev_t u8g_dev_st7565_64128n_HAL_2x_sw_spi;
  24. extern u8g_dev_t u8g_dev_st7565_64128n_HAL_2x_hw_spi;
  25. class U8GLIB_64128N_2X_HAL : public U8GLIB
  26. {
  27. public:
  28. U8GLIB_64128N_2X_HAL(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
  29. : U8GLIB(&u8g_dev_st7565_64128n_HAL_2x_sw_spi, sck, mosi, cs, a0, reset)
  30. { }
  31. U8GLIB_64128N_2X_HAL(uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
  32. : U8GLIB(&u8g_dev_st7565_64128n_HAL_2x_hw_spi, cs, a0, reset)
  33. { }
  34. };
  35. extern u8g_dev_t u8g_dev_st7920_128x64_HAL_4x_sw_spi;
  36. extern u8g_dev_t u8g_dev_st7920_128x64_HAL_4x_hw_spi;
  37. class U8GLIB_ST7920_128X64_4X_HAL : public U8GLIB
  38. {
  39. public:
  40. U8GLIB_ST7920_128X64_4X_HAL(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
  41. : U8GLIB(&u8g_dev_st7920_128x64_HAL_4x_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
  42. { }
  43. U8GLIB_ST7920_128X64_4X_HAL(uint8_t cs, uint8_t reset = U8G_PIN_NONE)
  44. : U8GLIB(&u8g_dev_st7920_128x64_HAL_4x_hw_spi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
  45. { }
  46. };
  47. // AVR version uses ultralcd_st7920_u8glib_rrd_AVR.cpp, HAL version uses u8g_dev_st7920_128x64_HAL.cpp
  48. extern u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi;
  49. class U8GLIB_ST7920_128X64_RRD : public U8GLIB
  50. {
  51. public:
  52. U8GLIB_ST7920_128X64_RRD(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t reset = U8G_PIN_NONE)
  53. : U8GLIB(&u8g_dev_st7920_128x64_rrd_sw_spi, sck, mosi, cs, U8G_PIN_NONE, reset) // a0 = U8G_PIN_NONE
  54. { }
  55. };
  56. extern u8g_dev_t u8g_dev_sh1106_128x64_2x_i2c_2_wire;
  57. class U8GLIB_SH1106_128X64_2X_I2C_2_WIRE : public U8GLIB {
  58. public:
  59. U8GLIB_SH1106_128X64_2X_I2C_2_WIRE(uint8_t options = U8G_I2C_OPT_NONE)
  60. : U8GLIB(&u8g_dev_sh1106_128x64_2x_i2c_2_wire, options)
  61. { }
  62. };
  63. extern u8g_dev_t u8g_dev_ssd1306_128x64_2x_i2c_2_wire;
  64. class U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE : public U8GLIB {
  65. public:
  66. U8GLIB_SSD1306_128X64_2X_I2C_2_WIRE(uint8_t options = U8G_I2C_OPT_NONE)
  67. : U8GLIB(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options)
  68. { }
  69. };