Skip to content

Commit 783822d

Browse files
author
brabo
committed
ts-i2c: removed pgm_read_byte define from gfx.c (unused) and updated README to mention we are using Adafruit gfx library code.
1 parent c760620 commit 783822d

File tree

2 files changed

+2
-2
lines changed
  • examples/stm32/f4/stm32f429i-discovery/ts-i2c

2 files changed

+2
-2
lines changed

examples/stm32/f4/stm32f429i-discovery/ts-i2c/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ This example sets up a very basic LCD display on the DISCO
55
board and fills it with red.
66
Pressing on the touchscreen will turn the screen green.
77

8+
It uses some graphics code that was inspired by AdaFruit graphics library.
9+
810
The stmpe811 example driver uses i2c to communicate with the
911
touchscreen.

examples/stm32/f4/stm32f429i-discovery/ts-i2c/gfx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include <stdlib.h>
4343
#include "gfx.h"
4444

45-
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
46-
4745
struct gfx_state __gfx_state;
4846

4947
void

0 commit comments

Comments
 (0)