Skip to content

Commit 1f3163c

Browse files
committed
Adds rotation to SDL driver
1 parent f8b6518 commit 1f3163c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ext_mod/lcd_bus/rotate.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
#ifndef __ROTATE_H__
44
#define __ROTATE_H__
55

6+
#ifndef MAX
7+
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
8+
#endif
9+
10+
#ifndef MIN
11+
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
12+
#endif
13+
14+
615
#define ROTATION_0 (0)
716
#define ROTATION_90 (1)
817
#define ROTATION_180 (2)

0 commit comments

Comments
 (0)