支持sbc显示驱动程序的组件库

luma.core的Python项目详细描述


luma.coreluma.docsluma.emulatorluma.examplesluma.lcdluma.led_matrixluma.oled

luma.core

https://travis-ci.org/rm-hull/luma.core.svg?branch=masterhttps://coveralls.io/repos/github/rm-hull/luma.core/badge.svg?branch=masterhttps://requires.io/github/rm-hull/luma.core/requirements.svg?branch=masterhttps://img.shields.io/pypi/pyversions/luma.core.svghttps://img.shields.io/pypi/v/luma.core.svghttps://img.shields.io/maintenance/yes/2019.svg?maxAge=2592000

luma.core是提供枕头兼容绘图的组件库 画布和其他支持绘图原语和 用于覆盆子皮和其他小型显示器的文本呈现功能 单板计算机:

  • 滚动/平移功能,
  • 终端式打印,
  • 国家管理,
  • 颜色/灰度(如果支持),
  • 抖动到单色,
  • 精灵动画,
  • 灵活的帧缓冲(取决于设备能力)

设备驱动程序扩展luma.core以提供正确的初始化 特定物理显示设备/芯片组的序列。

对于不同类型的设备,有几种驱动程序可用:

有实时运行的模拟器(使用pygame)和其他可以 按照下面的例子拍摄屏幕截图,或者组装动画gif。来源 这些代码可以在examples中找到 luma.examples存储库的目录。

clockinvaderscrawl

许可证

麻省理工学院许可证(MIT)

版权所有(c)2017-18 Richard Hull和撰稿人

兹免费准许任何人取得副本 本软件和相关文档文件(“软件”)的 在软件中不受限制,包括但不限于 使用、复制、修改、合并、发布、分发、再授权和/或出售 软件的副本,并允许软件的用户 在满足以下条件的情况下,可以这样做:

上述版权公告及本许可公告须包括在 软件的拷贝或大部分。

本软件按“原样”提供,无任何形式的保证,明示或 默示的,包括但不限于适销性保证, 适合特定目的和不侵权。在任何情况下 作者或版权所有者应对任何索赔、损害或其他 责任,无论是在合同诉讼、侵权诉讼或其他诉讼中, 不属于或与本软件有关,或使用或与本软件的其他交易有关。 软件。

贡献

拉取请求(代码更改/文档/输入错误/功能请求/设置) 被欣然接受。如果你打算引进一些大规模的 更改,请先联系以确保我们在同一页上:尝试 包括任何新方法或类的docstring,并保持方法体小, 可读且符合PEP8。添加测试并努力保持代码覆盖率 水平高。

Github

源代码可在以下位置克隆:https://github.com/rm-hull/luma.core

贡献者

  • thijs triemstra(@thijstriemstra)
  • 克里斯托夫·汉德尔(@fragfutter)
  • @波尔布
  • @X轴
  • 罗杰·达尔(@roger dahl)
  • 瓦克拉夫什米拉乌尔(@eudoxos)
  • 克劳斯·比耶尔(@bjerrep)
  • @bkntrx
  • @7754359337
  • @Theraspydev
  • @沃蒂冈
  • 马腾洛斯(@mlo)
  • 乔纳森·佩雷拉(@jonathanrjpereira)
  • 丹尼尔·斯穆伦(@drspangle)
  • 汉斯·利斯(@hanslis)
  • 菲尔·霍华德(@gadgetoid)

变更日志

VersionDescriptionDate
1.12.0
  • Rework namespace support for subprojects
2019/06/15
1.11.0
  • Support luma.lcd.aux (if present)
2019/06/02
1.10.1
  • Fix [Error 22] emitted from within I2C serial adapter when used with SSD1327 device
2019/05/25
1.10.0
  • Allow viewport pseudo-display to dither when rendering to device with lower-fidelity color mode
2019/05/23
1.9.0
  • Improve I2C render speed by not chunking into 32-byte blocks
  • Add support for bridging FTDI to I2C/SPI
2019/05/10
1.8.3
  • Improve command line help output
  • Split API docs into separate pages
2019/01/07
1.8.2
  • Fix type hint for SPI’s cs_high parameter
2018/11/05
1.8.1
  • Mutable string now works over unicode (for both py2/3)
2018/09/18
1.8.0
  • Namespace packaging fix
  • Correct implementation of pkgutil style namespace
  • Support for Python 3.7
  • Docstring updates
2018/09/04
1.7.2
  • Fix upside-down SEG7_FONT
2018/03/29
1.7.1
  • Support unicode in terminal class
2018/03/22
1.7.0
  • Add ^{tt2}$ flag on device
2018/03/21
1.6.0
  • Add ^{tt3}$ flag in cmdline args
2018/02/21
1.5.0
  • Add SEG7_FONT: Compact 7x3 font for LED Matrix
2018/02/06
1.4.0
  • Add ^{tt4}$ flag in cmdline args
2018/01/29
1.3.0
  • Add ^{tt5}$ flag in cmdline args
2018/01/02
1.2.1
  • Use ^{tt6}$ in ^{tt7}$ for Linux dependencies
2017/11/26
1.2.0
  • Added ^{tt8}$ & ^{tt9}$
2017/11/23
1.1.1
  • Version number available as ^{tt10}$ now
2017/11/23
1.1.0
  • Added image composition classes
2017/10/28
1.0.3
  • Explicitly state ‘UTF-8’ encoding in setup when reading files
2017/10/18
1.0.2
  • Fix conditional install on wheel
2017/09/15
1.0.1
  • Don’t install RPi.GPIO & spidev if setup running on OSX
2017/09/04
1.0.0
  • Stable release (remove all deprecated methods & parameters)
2017/07/29
0.9.5
  • Remove assert in ^{tt11}$ to allow extended characters to be printed (note: this only works for Python3 presently)
2017/07/06
0.9.4
  • Add ^{tt12}$ class for legacy font handling non-ASCII chars
  • Add CP437 chars to fonts.py
2017/07/01
0.9.3
  • LCD_FONT: lowercase cyrillic chars added, minor corrections in uppercase chars
2017/06/25
0.9.2
  • Add ^{tt13}$ option to ^{tt14}$
  • Add TCA9548A I2C multiplex scanner (contrib)
  • Display I2C address in hex when error occurs
2017/06/19
0.9.1
  • Add cmdline block orientation of 180
2017/05/01
0.9.0
  • Add word-wrap capability to ^{tt15}$
  • Bug fix to ^{tt15}$ when scrolling
2017/04/22
0.8.1
  • Propagate segment_mapper through other virtual devices
2017/04/14
0.8.0
  • Migrate seven-segment wrapper from ^{tt17}$
2017/04/14
0.7.5
  • Allow alternative RPi.GPIO implementations
2017/04/09
0.7.4
  • Reduce size of space character in legacy proportional font
2017/04/09
0.7.3
  • Cmdline args now supports backlight active high/low
2017/04/07
0.7.2
  • Add ^{tt18}$ and ^{tt19}$ params to cmdline args
2017/04/07
0.7.1
  • Improve formatting in command line options
2017/04/06
0.7.0
  • Add software-based bitbang SPI implementation
  • Cmdline args parsing
  • Use monotonic clock
2017/03/27
0.6.2
  • Move GPIO.setmode() to point when referenced
  • Use regex prefix in ANSI color parser (fixes deprecation warning)
2017/03/19
0.6.1
  • Deprecate spi params
  • Fix resource leak in spritesheet
2017/03/13
0.6.0
  • Terminal supports ANSI Color escape codes
  • Catch & rethrow IOErrors
2017/03/13
0.5.4
  • Rework decorators
2017/03/08
0.5.3
  • Catch & rethrow all RPi.GPIO RuntimeExceptions
2017/03/08
0.5.2
  • Raise ^{tt20}$ if RPi.GPIO is not available
  • Bug fix to ^{tt15}$ to handle multiple \n
2017/03/08
0.5.1
  • Bug fix: ^{tt22}$ regression
2017/03/05
0.5.0
  • BREAKING CHANGES: Rework ^{tt23}$ class
  • Documentation updates
2017/03/05
0.4.4
  • Bug fix: ^{tt22}$ off-by-one bug
2017/03/02
0.4.3
  • Restrict exported Python symbols from ^{tt25}$
2017/03/02
0.4.2
  • Optional alignment of framebuffer bounding_box to word-boundaries
2017/02/28
0.4.1
  • Refactor framebuffer interface
2017/02/27
0.4.0
  • Add spritesheet and framerate_regulator functionality
  • Add full-frame and diff-to-previous framebuffer implementations
  • Remove unnecessary travis/tox dependencies
2017/02/27
0.3.2
  • Bug fix: ^{tt22}$ wrong device height
  • Add Cyrillic chars to legacy font
  • Make pytest-runner a conditional requirement
2017/02/24
0.3.1
  • Imported legacy font handling from ^{tt27}$
2017/02/19
0.2.0
  • Fix bug in seven_segment transform (display correct char)
  • Moved emulator code to ^{tt28}$ github repo
2017/02/17
0.1.15
  • Require at least Pillow 4.0.0
  • Configurable ^{tt29}$ on SPI writes
  • Documentation updates
2017/02/11
0.1.14
  • Use a more flexible no-op implementation
  • Use spidev’s ^{tt30}$ rather than ^{tt31}$
  • Dont write GIF animation if nothing was displayed
  • Attempt to optimize palette when saving GIF animations
2017/02/03
0.1.13
  • Fix bug in setup script
2017/01/23
0.1.12
  • Assert valid SPI bus speed
  • Don’t report errors in shutdown
  • Don’t package as zip-safe
  • Add 7-segment LED emulation transformer
2017/01/21
0.1.11
  • Rejig packaging to include emulator assets
2017/01/20
0.1.3
  • Reset SPI device on initialization
  • Add LED matrix emulation transformer
2017/01/19
0.1.2
  • Namespace packaging
2017/01/10
0.1.0
  • Split out core functionality from ^{tt32}$
2017/01/10

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在表被注释到配置之前获取表的元数据?   java滚动条不会出现在JList上   java JOGL监视器GPU内存   java为什么要使用RecyclerView onDraw延迟   java定制Oppo Reno 2 Z CPH1951(手机型号)的固件(闪存文件)   java自定义线程池执行器   java如何解决发布版本中重复的jar条目[com/安卓/volley/R.class]?   java如何使用Bukkit API触发事件?   java在blazemeter jmeter RTE插件中使用ctrl+w输入   C#/Visual Studio的java JDT等价物   java为什么当maxread值很大而收到的消息数量很小时,卡夫卡消费者会无限期消费?   java游戏2。x:包含模板列表的绑定模型   带压缩的java日志旋转   运行时。exec用java运行程序读取它正在做什么