Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add grayscale support for B/W displays

オープン
#166 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, raspberry-pi
領域
embedded-iot

調査の方向性

Start by reading the Waveshare epd2in7.py reference linked in the issue and trace how PaperPi initializes a display and prepares its image buffer. The issue names init_4Gray, getBuffer_4Gray, and display_4Gray as the grayscale entry points. Done means PaperPi can use the four-color palette and display grayscale on the target screen; check whether support for other models is in scope.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
I have a 2.7 inch Waveshare HAT with a resolution of 264x176. On such a small screen, fonts are mostly hard to read without antialiasing.

Example with PaperPi: https://i0.wp.com/dronebotworkshop.com/wp-content/uploads/2022/02/paperpi-weather.png

Describe the solution you'd like
The display supports 4 shades of gray, as can be seen in https://github.com/waveshareteam/e-Paper/blob/master/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in7.py#L436.

This also seems to apply to other models.

To use it, one must create a 4 color image with palette #000000, #808080, #c0c0c0, #ffffff, and call init_4Gray, getBuffer_4Gray and display_4Gray instead of the methods without the _4Gray suffix.

Describe alternatives you've considered
More dithering in black & white doesn't help.

Additional context

For comparison, I converted the same input image to B/W and 4 colors, and the difference is significant:
 

Input image here

主要言語
Python
スター
205
フォーク
17
平均マージ
5時間 42分
マージ済み PR(30日)
50

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

txoof/PaperPi のほかの issue

txoof/PaperPi の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。