multiplayer pong game for LPC 1768
Dependencies: mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt
graphics.cpp@16:7fd48cda0773, 2020-11-13 (annotated)
- Committer:
- vsoltan
- Date:
- Fri Nov 13 23:02:56 2020 +0000
- Revision:
- 16:7fd48cda0773
- Child:
- 17:32ae1f106002
finished display wiring and added graphics class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vsoltan | 16:7fd48cda0773 | 1 | |
vsoltan | 16:7fd48cda0773 | 2 | #include "graphics.h" |
vsoltan | 16:7fd48cda0773 | 3 | |
vsoltan | 16:7fd48cda0773 | 4 | Graphics::Graphics() { |
vsoltan | 16:7fd48cda0773 | 5 | this->tft = new Adafruit_ST7735(P_MOSI, P_MISO, P_SOCK, P_CS, P_RS, P_DC); |
vsoltan | 16:7fd48cda0773 | 6 | tft->initR(); |
vsoltan | 16:7fd48cda0773 | 7 | tft->fillScreen(ST7735_RED); |
vsoltan | 16:7fd48cda0773 | 8 | } |
vsoltan | 16:7fd48cda0773 | 9 | |
vsoltan | 16:7fd48cda0773 | 10 | |
vsoltan | 16:7fd48cda0773 | 11 | void Graphics::renderLaunchScreen() { |
vsoltan | 16:7fd48cda0773 | 12 | |
vsoltan | 16:7fd48cda0773 | 13 | } |
vsoltan | 16:7fd48cda0773 | 14 | |
vsoltan | 16:7fd48cda0773 | 15 | void Graphics::renderGameState(GameState *gs) { |
vsoltan | 16:7fd48cda0773 | 16 | |
vsoltan | 16:7fd48cda0773 | 17 | } |