diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-30 12:30:35 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-30 12:30:35 +0100 |
commit | 09d207785c77c85c957471b064ceebe0d2ee0a23 (patch) | |
tree | 6c34e11ee61c820c807db06d3d3cd69611c13ddb /stmhal/lcd.c | |
parent | 24a140a444cfb2ebda7f0b6d0a88be9461a99d03 (diff) |
stmhal: Unify naming of HW config; make SD detect configurable.
All board config macros now begin with MICROPY_HW_.
Renamed PYBv10 to PYBV10, since macros should be all uppercase.
Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD
detect pin can be easily configured.
Diffstat (limited to 'stmhal/lcd.c')
-rw-r--r-- | stmhal/lcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/lcd.c b/stmhal/lcd.c index c5952fa48..e2b9e2297 100644 --- a/stmhal/lcd.c +++ b/stmhal/lcd.c @@ -17,14 +17,14 @@ #include "font_petme128_8x8.h" #include "lcd.h" -#if defined(PYBOARD3) +#if defined(PYBV3) #define PYB_LCD_PORT (GPIOA) #define PYB_LCD_CS1_PIN (GPIO_PIN_0) #define PYB_LCD_RST_PIN (GPIO_PIN_1) #define PYB_LCD_A0_PIN (GPIO_PIN_2) #define PYB_LCD_SCL_PIN (GPIO_PIN_3) #define PYB_LCD_SI_PIN (GPIO_PIN_4) -#elif defined(PYBOARD4) || defined(PYBv10) +#elif defined(PYBV4) || defined(PYBV10) // X position #define PYB_LCD_PORT (GPIOA) #define PYB_LCD_CS1_PIN (GPIO_PIN_2) // X3 |