Hardware - Waveshare NRF52840 User Manual

Eval kit
Table of Contents

Advertisement

NRF52840 Eval Kit User Manual
3. The most basic function of OLED driver is written and read functions as below:
write
void Single_Command(unsigned char
{
nrf_gpio_pin_clear(DC);
//if SPI is busy Frequently,delay here
//nrf_delay_us(30);
spi_write(&cmd, sizeof(cmd));
}
read
void Single_Data(unsigned char
{
nrf_gpio_pin_set(DC);
//if SPI is busy Frequently,delay here
//nrf_delay_us(30);
spi_write(&dt, sizeof(dt));
}

HARDWARE

In hardware, the SPI interface of NRF52840 are pinout to Arduino compatible
interface.
Vision: V1.0.1 Date: 2019.01.19
cmd)
dt)
31 / 72

Advertisement

Table of Contents
loading

Table of Contents