Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

GNU/Linux kernel driver and libusb app for a Pearl's USB LED fan

License

NotificationsYou must be signed in to change notification settings

Ventto/pearlfan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusLicense

PearlFan is a tool to draw on aPEARL's USB LED fan.

Installation

Package

$ pacaur -S pearlfan

Manually

  • Dependencies:
$ pacman -S libusb-1.0 netpbm                         (archlinux)$ apt-get install libusb-1.0-0-dev libnetpbm10-dev    (ubuntu)
  • Build:
$ make

Usage

pearlfan -c FILE  [-f]pearlfan -d DIRECTORY [-f]pearlfan -t TEXT [-f]Setting:  -c:  Displays at most eight images with transition effects described       in the given config FILE.  -d:  Displays at most eight .PBM images (156x11) in DIRECTORY.  -t:  Draws TEXT (standard ASCII table). Words are not split, only huge words.Mode:  -f:  Enables fast-mode. Disables all others effect transitions.Miscellaneous:  -h:  Prints this help and exits.  -v:  Prints version info and exits.

Examples

$ ls images/pacman.pbmmario.pbmfile.config$ cat file.configpacman.pbm  +2-2-0mario.pbm   +1-1-6$ pearlfan -c images/file.config    (or)$ pearlfan -d images/             (without config file)

Configuration File

Sample

This an example of a pfan's configuration file

pacman.pbm  +2-2-0mario.pbm   +1-1-6circle.pbm  +0-0-0cols.pbm    +3-3-6full.pbm    +2-5-0

Specifications

Each configuration file consists of the following:

  • line pattern:{image_basename}.pbm+{effects}
  • Whitespace (blanks and TABs) between{image_basename}.pbm and+ are ignored (cf. example above)
  • The image must be in the same directory than the configuration file
  • The image must be.PBM image
  • The image size must be: width=11px, height=156px
  • {effects}: the fan provides transition effects when displaying and switching images
  • Effect's pattern:{open}-{close}-{beforeclose}
  • Open, close and beforeclose's exclusive values are described in the table below
  • The fan can display at most 8 images

Effect values

Effects/Value0123456
openingright-leftleft-right2-sidered-carpettop-bottombottom-topfast-mode
closingleft-rightright-left2-sidered-carpettop-bottombottom-topn/a
before-closingdo nothingn/aturn left-rightn/an/an/aturn right-left
  • opening/right-left: means appearing from right to left
  • closing/right-left: means disappearing from right to left
  • fast-mode: skip the 'open' and 'before-closing' transition effects

TODO

  • Turn the project into a cross-platform lib to draw on USB LED fans
  • Rename the project

About

GNU/Linux kernel driver and libusb app for a Pearl's USB LED fan

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp