status_screen_lite_ST7920_spi.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Lightweight Status Screen for the RepRapDiscount Full
  3. * Graphics Smart Controller (ST7920-based 128x64 LCD)
  4. *
  5. * (c) 2017 Aleph Objects, Inc.
  6. *
  7. * The code in this page is free software: you can
  8. * redistribute it and/or modify it under the terms of the GNU
  9. * General Public License (GNU GPL) as published by the Free Software
  10. * Foundation, either version 3 of the License, or (at your option)
  11. * any later version. The code is distributed WITHOUT ANY WARRANTY;
  12. * without even the implied warranty of MERCHANTABILITY or FITNESS
  13. * FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  14. *
  15. */
  16. #include "status_screen_lite_ST7920_class.h"
  17. void ST7920_Lite_Status_Screen::cs() {
  18. ST7920_CS();
  19. current_bits.synced = false;
  20. }
  21. void ST7920_Lite_Status_Screen::ncs() {
  22. ST7920_NCS();
  23. current_bits.synced = false;
  24. }
  25. void ST7920_Lite_Status_Screen::sync_cmd() {
  26. ST7920_SET_CMD();
  27. }
  28. void ST7920_Lite_Status_Screen::sync_dat() {
  29. ST7920_SET_DAT();
  30. }
  31. void ST7920_Lite_Status_Screen::write_byte(const uint8_t data) {
  32. ST7920_WRITE_BYTE(data);
  33. }