ePaper (IL3820) module library  v0.5
Library for the 2.9-inch WaveShare ePaper display module
Functions
il3820_spiWrite.c File Reference
#include "il3820.h"
#include <propeller.h>

Functions

void il3820_spiWrite (int mask_cs, int mask_sdi, int mask_clk, int mask_dc, char c, char dc)
 Low-level driver for sending a byte to the ePaper screen. More...
 
 __attribute__ ((fcache))
 
char il3820_writeLock ()
 Returns the status of the SPI communication lockout so multiple cogs don't try to write to it at the same time. More...
 
void il3820_writeLockSet (char devId)
 Sets the SPI communication lockout. More...
 
void il3820_writeLockClear (char devId)
 Clears the SPI communication lockout. More...
 

Function Documentation

◆ __attribute__()

__attribute__ ( (fcache)  )

◆ il3820_spiWrite()

void il3820_spiWrite ( int  mask_cs,
int  mask_sdi,
int  mask_clk,
int  mask_dc,
char  c,
char  dc 
)

Low-level driver for sending a byte to the ePaper screen.

Parameters
mask_csPin mask for the display's chip select pin.
mask_sdiPin mask for the display's serial data in pin.
mask_clkPin mask for the display's clock pin.
mask_dcPin mask for the display's data/command pin.
cByte to be transferred.
dcToggle whether the byte is a command or data.

◆ il3820_writeLock()

char il3820_writeLock ( )

Returns the status of the SPI communication lockout so multiple cogs don't try to write to it at the same time.

◆ il3820_writeLockClear()

void il3820_writeLockClear ( char  devId)

Clears the SPI communication lockout.

Parameters
devIdThe ID of the device (usually the chip select pin).

◆ il3820_writeLockSet()

void il3820_writeLockSet ( char  devId)

Sets the SPI communication lockout.

Parameters
devIdThe ID of the device (usually the chip select pin).