Toying around with a 4.2 in. e-Paper module from Waveshare and the Raspberry Pi Pico. Maybe it'll become a library some day.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
532 B

/* epd0.h - Instantiate E-Paper Display 0 */
#ifndef EPD0_H_
#define EPD0_H_
/* Includes */
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/spi.h"
#include "epd/epd.h"
/* Definitions */
#define EPD0_SPI_PORT spi0
#define EPD0_PIN_SCK 2
#define EPD0_PIN_MOSI 3
#define EPD0_PIN_MISO 4
#define EPD0_PIN_CS 5
#define EPD0_PIN_DC 6
#define EPD0_PIN_RST 7
#define EPD0_PIN_BUSY 8
/* Data Structures */
/* Global Variables */
extern epd_t epd0;
/* Function Prototypes */
void epd0_init();
#endif /* EPD0_H_ */