diff --git a/nrf5/drivers/display/epaper/epaper_sld00200p_obj.c b/nrf5/drivers/display/epaper/epaper_sld00200p_obj.c index cfe461b6ce..8470850108 100644 --- a/nrf5/drivers/display/epaper/epaper_sld00200p_obj.c +++ b/nrf5/drivers/display/epaper/epaper_sld00200p_obj.c @@ -27,11 +27,12 @@ #include "py/obj.h" #include "py/runtime.h" +// For now PWM is only enabled for nrf52 targets. +#if MICROPY_PY_DISPLAY_EPAPER_SLD00200P && NRF52 + #include "hal_spi.h" #include "hal_pwm.h" -#if MICROPY_PY_DISPLAY_EPAPER_SLD00200P - typedef struct _epaper_sld00200p_obj_t { mp_obj_base_t base; SPI_HandleTypeDef *spi;