<commit_before>Notes
===

Following the [Medium tutorial](https://medium.com/swlh/create-an-e-paper-display-for-your-raspberry-pi-with-python-2b0de7c8820c).


| Header Pin | RPi Pin | Name | Description
|---------|------|---|
| `17` | `3.3v`  | `3.3v` | power |
| `20` | `gnd` | `GND` | ground |
| `19` | `gpio 10/mosi` | `DIN` | data in |
| `23` | `gpio 11/slck` | `CLK` | clock |
| `24` | `gpio 8/ceo` | `CS` | chip select |
| `22` | `gpio 25` | `DC` | data/command selection |
| `11` | `gpio 17` | `RST` | reset |
| `18` | `gpio 24` | `BUSY` | busy indicator line |

Enable `SPI` through `raspi-config` (`Interface Options -> SPI -> Yes`) and `reboot`.

```
sudo bash
apt-get update
apt-get install -y python3-pip python3-pil python3-numpy
pip3 install RPi.GPIO
pip3 install spidev
```

```
git clone https://github.com/waveshare/e-Paper
```

As root (?):

```
sudo bash<commit_msg>table formatting fix<commit_after>Notes
===

Following the [Medium tutorial](https://medium.com/swlh/create-an-e-paper-display-for-your-raspberry-pi-with-python-2b0de7c8820c).


| Header Pin | RPi Pin | Name | Description |
|---------|------|---|---|
| `17` | `3.3v`  | `3.3v` | power |
| `20` | `gnd` | `GND` | ground |
| `19` | `gpio 10/mosi` | `DIN` | data in |
| `23` | `gpio 11/slck` | `CLK` | clock |
| `24` | `gpio 8/ceo` | `CS` | chip select |
| `22` | `gpio 25` | `DC` | data/command selection |
| `11` | `gpio 17` | `RST` | reset |
| `18` | `gpio 24` | `BUSY` | busy indicator line |

Enable `SPI` through `raspi-config` (`Interface Options -> SPI -> Yes`) and `reboot`.

```
sudo bash
apt-get update
apt-get install -y python3-pip python3-pil python3-numpy
pip3 install RPi.GPIO
pip3 install spidev
```

```
git clone https://github.com/waveshare/e-Paper
```

As root (?):

```
sudo bash
{'fraction_non_alphanumeric': 0.2237801458216489, 'fraction_numerical': 0.04823331463825014, 'mean_word_length': 3.2375296912114013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5806536', 'n_tokens_mistral': 792, 'n_tokens_neox': 710, 'n_words': 175}