• Skip to content

Main Menu

  • Home
  • Paintings
  • Interactive Work
  • About
  • Posts
  • Back
  • NM Women Series
  • Hollyhocks Series
  • Daily Paintings
  • Small Works
  • Back
  • Games and Toys
  • Ribbons
  • ORBS
Enrico Trujillo

Main Menu

  • Home
  • Paintings
    • NM Women Series
    • Hollyhocks Series
    • Daily Paintings
    • Small Works
  • Interactive Work
    • Games and Toys
    • Ribbons
    • ORBS
  • About
  • Posts
  • Search
  • 0 items

Waveshare E-paper Display for Pico

 Posted on on March 15, 2023

Here is the same thing but for the Waveshare e-paper display for pico. This version (B) also displays red.

import time
import board
import busio
import digitalio
import requests
import adafruit_apds9960.apds9960
import adafruit_matrixportal.network
import adafruit_matrixportal.matrix
import adafruit_matrixportal_imageload
import adafruit_matrixportal_imagedisplay
import adafruit_pixel_shader
import adafruit_fancyled.adafruit_fancyled as fancy

# Set up the I2C bus for the APDS9960 gesture sensor
i2c = busio.I2C(board.SCL, board.SDA)

# Initialize the gesture sensor
gesture_sensor = adafruit_apds9960.apds9960.APDS9960(i2c)

# Initialize the MatrixPortal network and matrix
matrixportal_network = adafruit_matrixportal.network.MatrixPortalNetwork()
matrixportal_matrix = adafruit_matrixportal.matrix.Matrix()

# Initialize the E-Ink display
display = adafruit_matrixportal_imagedisplay.EPD_Display(
    busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO),
    cs=digitalio.DigitalInOut(board.CE0),
    dc=digitalio.DigitalInOut(board.D27),
    busy=digitalio.DigitalInOut(board.D17),
)

# Set up the pixel shader for dithering
shader = adafruit_pixel_shader.PixelShader(
    width=display.width, height=display.height, brightness=1.0
)

# Set up the color palette for dithering
palette = [
    fancy.CRGB(255, 255, 255),  # white
    fancy.CRGB(255, 0, 0),  # red
    fancy.CRGB(0, 0, 0),  # black
]

# Set up the image display object
image_display = adafruit_matrixportal_imagedisplay.ImageDisplay(
    display,

Posted in Uncategorized

Comments are closed.

Post navigation

Previous
Next

Primary

Recent Posts

  • Building an Art Store with WooCommerce: A Guide for Solo Artists
  • Egon Schiele⁣⁣ Portrait of the Painter Anton Peschka⁣⁣ 1909
  • Learning to Stretch My Paintings a Little Further
  • Growing Your Artist Footprint Online—Simple Steps I’m Taking (and You Can Too)
  • Choosing My Canvas: Why Format Matters When Painting People and Places

Archives

  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • August 2024
  • July 2024
  • April 2024
  • March 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • July 2022
  • March 2022
  • February 2022
  • December 2021
  • October 2021
  • August 2021

Categories

  • Advice
  • Agriculture
  • Art
  • Article
  • Business
  • Community
  • Culture
  • Daily
  • Drawing
  • Galleries
  • Home
  • Illustration
  • Land
  • News
  • Painting
  • Photography
  • Planning
  • Tech
  • Uncategorized

Follow us

Follow us on TwitterLike us on FacebookSubscribe to our Channel on YouTubeFollow us on GithubFollow us on InstagramFollow us on CodepenFollow us on SoundCloud

© Enrico Trujillo 2025MINIMAL

x