Commit 8e168bfd authored by Klint Youngmeyer's avatar Klint Youngmeyer
Browse files

Fix backlight pin on CutiPy rev1

parent e41ce4a3
......@@ -99,6 +99,9 @@ endif
ifneq (,findstring(CUTIPY,$(BOARD)))
CFLAGS += -DCUTIPY
endif
ifeq ($(BOARD),CUTIPYV1)
CFLAGS += -DCUTIPYV1
endif
LDFLAGS = -nostdlib -L $(LD_DIR) $(addprefix -T,$(LD_FILES)) -Map=$(@:.elf=.map) --cref
......
......@@ -234,7 +234,11 @@ STATIC mp_obj_t pyb_lcd_make_new(const mp_obj_type_t *type, size_t n_args, size_
lcd->pin_cs1 = pyb_pin_PC1;
lcd->pin_rst = pyb_pin_PC5;
lcd->pin_a0 = pyb_pin_PC4;
#ifdef CUTIPYV1
lcd->pin_bl = pyb_pin_PB8;
#else
lcd->pin_bl = pyb_pin_PD7;
#endif
#else
if ((lcd_id[0] | 0x20) == 'x' && lcd_id[1] == '\0') {
lcd->spi = &spi_obj[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment