Skip to content

Commit

Permalink
Fix button read on S6D0139
Browse files Browse the repository at this point in the history
  • Loading branch information
WiseLord committed Aug 12, 2018
1 parent 5fbf828 commit 14fad93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ampcontrol-f103.config
Expand Up @@ -9,6 +9,6 @@


#define _GC320X240 #define _GC320X240


//#define _ILI9320 #define _ILI9320
//#define _ILI9341 //#define _ILI9341
#define _S6D0139 //#define _S6D0139
4 changes: 3 additions & 1 deletion pins.c
Expand Up @@ -99,10 +99,12 @@ uint8_t pinsGetInput(void)
{ {
uint8_t bus = 0; uint8_t bus = 0;


#if defined(_KS0108B) || defined(_ILI9320) #if defined(_KS0108B) || defined(_ILI9320) || defined(_S6D0139)
bus = glcdGetBus(); bus = glcdGetBus();
#elif defined(_ILI9341) #elif defined(_ILI9341)
bus = INPUT_Port->IDR & 0x00FF; // Read 8-bit bus bus = INPUT_Port->IDR & 0x00FF; // Read 8-bit bus
#else
#error "Unsupported display driver"
#endif #endif


return ~bus; return ~bus;
Expand Down

0 comments on commit 14fad93

Please sign in to comment.