Advertisement
Ariser

display.cpp

Sep 20th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include "display.h"
  2.  
  3.  
  4. dogm_7036 Display::DOG;
  5. const uint8_t Display::ledpin=6;
  6.  
  7. void Display::setup()
  8. {
  9.     Serial.println("SU Display");
  10.     DOG.initialize(10,0,0,9,3,1,DOGM163);   //SS = 10, 0,0= use Hardware SPI, 9 = RS, 8 = RESET, 1 = 5V, EA DOGM163-A (=3 lines)
  11.     DOG.displ_onoff(true);
  12.     DOG.cursor_onoff(true);
  13.     DOG.contrast(128);
  14.     pinMode(ledpin, OUTPUT);
  15.     lighton();
  16. }
  17.  
  18. void Display::lighton()
  19. {
  20.     digitalWrite(ledpin, HIGH);
  21. }
  22.  
  23. void Display::lightoff()
  24. {
  25.     digitalWrite(ledpin, LOW);
  26. }
  27.  
  28. void Display::service()
  29. {
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement