Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code that works:
- //Initialize ILI9341
- TM_ILI9341_Init();
- //Rotate LCD for 90 degrees
- TM_ILI9341_Rotate(TM_ILI9341_Orientation_Portrait_2);
- //FIll lcd with color
- TM_ILI9341_Fill(ILI9341_COLOR_MAGENTA);
- //Put string with black foreground color and red background with 11x18px font
- TM_ILI9341_Puts(200, 225, "blah blah blah", &TM_Font_7x10, ILI9341_COLOR_BLACK, ILI9341_COLOR_ORANGE);
- //Select touch screen orientation
- touchData.orientation = TM_STMPE811_Orientation_Portrait_2;
- //Initialize Touch
- TM_STMPE811_Init();
- COde that doesn't work:
- //Initialize ILI9341
- TM_ILI9341_Init();
- //Rotate LCD for 90 degrees
- TM_ILI9341_Rotate(TM_ILI9341_Orientation_Portrait_2);
- //FIll lcd with color
- TM_ILI9341_Fill(ILI9341_COLOR_MAGENTA);
- //Put string with black foreground color and red background with 11x18px font
- // TM_ILI9341_Puts(200, 225, "blah blah blah", &TM_Font_7x10, ILI9341_COLOR_BLACK, ILI9341_COLOR_ORANGE);
- //Select touch screen orientation
- touchData.orientation = TM_STMPE811_Orientation_Portrait_2;
- //Initialize Touch
- TM_STMPE811_Init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement