
NRF52840
haidscs
这个作者很懒,什么都没留下…
展开
-
1.3”TFT LCD (240 x 3RGB x 240 )驱动配置
用SPI总线通讯1、模拟spi:static void LCD_GPIO_Init(void){ nrf_gpio_cfg_output(LCD_CS_PIN); nrf_gpio_pin_set(LCD_CS_PIN); nrf_gpio_cfg_output(LCD_RESET_PIN); nrf_gpio_cfg_output(LCD_DC_PIN); nrf_gpio_cfg_output(LCD_SCLK_PIN); nrf_gpio_c...原创 2020-10-21 23:58:35 · 2041 阅读 · 0 评论 -
nrf52840 spi 32MHz配置
#define SPIM_INSTANCE 2 /**< SPI instance index. */static nrfx_spim_t driver_spim3 = NRFX_SPIM_INSTANCE(SPIM_INSTANCE);nrfx_spim_config_t driver_spim3_config;static volatile bool spi_xfer_done;void spi_event_handler_m(nrfx_spim_evt...原创 2020-10-14 12:45:30 · 3321 阅读 · 0 评论