Coder Social home page Coder Social logo

it8951usb's Introduction

IT8951 e-paper controller

This is a small utility to send images to an e-paper display using an IT8951 controller like the waveshare e-paper hat. Instead of using the i2c, i80 or spi interface this uses the USB interface that is normally used with the E-LINK TCON DEMO windows application.

The usb interface of the IT8951 controller shows up as an usb mass storage device with no medium inserted (similar to SD card readers). The display is controlled by sending customer-defined SCSI commands. For access to device you need add user to group disk or use sudo (NOT RECOMMENDED!!).

Actuall version works only with full-width images (for example 1024 per line)

Building

$ mkdir build
$ cd build
$ cmake ..
$ make

Make sure user is in disk group

$ id

Usage

Clear the display
$ ./it8951 -c /dev/sdb 0 0 1024 758

Send an 8-bit grayscale image (full size 1024 x 758)
$ ./it8951 /dev/sdb 0 0 1024 758 < image.raw

Generate an image and display it
$ convert -background white -fill black \
  -font Ubuntu -pointsize 50 label:"$(date)" \
  -gravity Center -extent 1024x758 \
  -depth 8 gray: \
  | ./it8951 -d /dev/sdb 0 0 1024 758

it8951usb's People

Contributors

martijnbraam avatar petrkr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mabecker

it8951usb's Issues

any plans to add a bmp to raw converter to it8951usb?

ImageMagick is a wonderful huge swiss knife ;-) that needs more space than a raspberry pi or beagle bone like to give.

I am looking for this kind of use case:

  1. app creates a bmp file on disk
  2. who does the bmp to byte array conversion?
  3. it8951usb does the transfer

Any hints or tool recommendations?

IT8951 and beaglebone

build it8951 works on beaglebone black without issues.

dmesg shows some entries about this mass storage and disable it

any hints howto get this device enabled?

Increase MAX_TRANSFER and gain up to 23%

Hi,

now running with #define MAX_TRANSFER 120*1024 which gives me a improvement up to 25%

time it8951 -c /dev/sda 0 0 1024 758
Filling buffer by dummy data (length 776192)
Start offset: 0
Apply some h-offset)
display area (0x00195870)
Updating
  Area X: 0x00000000
  Area Y: 0x00000000
  Area W: 0x00000400
, Area H: 0x000002f6

real	0m4.481s
user	0m0.000s
sys	0m0.016s

# MAX_TRANSFER 120*1024
time it8951d -c /dev/sda 0 0 1024 758
Filling buffer by dummy data (length 776192)
Start offset: 0
Apply some h-offset)
display area (0x00195870)
Updating
  Area X: 0x00000000
  Area Y: 0x00000000
  Area W: 0x00000400
, Area H: 0x000002f6

real	0m3.444s
user	0m0.000s
sys	0m0.012s

Did you figure out some optimizations for quicker transfer?

Edit: But not as stable as expected, maybe the firmware need to bee updated to handle larger transfer size too?

.bmp to .raw

Can you please explain which command was used to convert tesline.bmp to testline.raw?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.