Advertisement
Guest User

touchscreen problem

a guest
Sep 19th, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Code that works:
  2.  
  3. //Initialize ILI9341
  4. TM_ILI9341_Init();
  5. //Rotate LCD for 90 degrees
  6. TM_ILI9341_Rotate(TM_ILI9341_Orientation_Portrait_2);
  7. //FIll lcd with color
  8. TM_ILI9341_Fill(ILI9341_COLOR_MAGENTA);
  9. //Put string with black foreground color and red background with 11x18px font
  10. TM_ILI9341_Puts(200, 225, "blah blah blah", &TM_Font_7x10, ILI9341_COLOR_BLACK, ILI9341_COLOR_ORANGE);
  11.  
  12. //Select touch screen orientation
  13. touchData.orientation = TM_STMPE811_Orientation_Portrait_2;
  14.  
  15. //Initialize Touch
  16. TM_STMPE811_Init();
  17.  
  18.  
  19. COde that doesn't work:
  20.  
  21. //Initialize ILI9341
  22. TM_ILI9341_Init();
  23. //Rotate LCD for 90 degrees
  24. TM_ILI9341_Rotate(TM_ILI9341_Orientation_Portrait_2);
  25. //FIll lcd with color
  26. TM_ILI9341_Fill(ILI9341_COLOR_MAGENTA);
  27. //Put string with black foreground color and red background with 11x18px font
  28. // TM_ILI9341_Puts(200, 225, "blah blah blah", &TM_Font_7x10, ILI9341_COLOR_BLACK, ILI9341_COLOR_ORANGE);
  29.  
  30. //Select touch screen orientation
  31. touchData.orientation = TM_STMPE811_Orientation_Portrait_2;
  32.  
  33. //Initialize Touch
  34. TM_STMPE811_Init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement