Skip to content

Commit

Permalink
Add LED instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Mar 18, 2022
1 parent 75f318f commit c8e6579
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,21 @@ armbian-config
armbian-swap 1
```

- ### 控制 LED 显示

登录 Armbian 系统 → 输入命令:

```yaml
armbian-led
```

根据 [LED 测试说明](build-armbian/armbian-docs/led.md) 进行调试。屏幕显示正常后,可以添加至开机自启动任务,下面命令中的 `15` 请根据 `armbian-led` 选项中盒子对应的序号进行修改:

```yaml
sed -i '/armbian-led/d' /etc/rc.local
sed -i '/exit 0/i\armbian-led 15' /etc/rc.local
```

- ### 在 TF/SD/USB 中使用 Armbian

激活 TF/SD/USB 的剩余空间,请登录 Armbian 系统 → 输入命令:
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,21 @@ Login in to armbian → input command:
armbian-swap 1
```

- ### Controlling the LED display

Login in to armbian → input command:

```yaml
armbian-led
```

Debug according to [LED test instructions](build-armbian/armbian-docs/led.md). After the screen is displayed normally, you can add it to the self-starting task at boot, Please modify the `15` in the following command according to the serial number corresponding to the box in the `armbian-led` option:

```yaml
sed -i '/armbian-led/d' /etc/rc.local
sed -i '/exit 0/i\armbian-led 15' /etc/rc.local
```

- ### Use Armbian in TF/SD/USB

To activate the remaining space of TF/SD/USB, please login in to armbian → input command:
Expand Down
47 changes: 47 additions & 0 deletions build-armbian/armbian-docs/led.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# LED test instructions

- Upgrade the kernel to version 5.4.185, 5.10.106, 5.15.29, 5.16.15 or later via the `armbian-update` command.

- Currently, six devices have been tested, including `x96max.conf`, `x96maxplus.conf`, `h96max-x3.conf`, `hk1-x3.conf`, `hk1box.conf`, and `tx3.conf`. The configuration of other devices can be viewed: [arthur-liberman/vfd-configurations](https://github.com/arthur-liberman/vfd-configurations) and [LibreELEC/linux_openvfd](https://github.com/LibreELEC/linux_openvfd/tree/master/conf) to modify, It is necessary to adjust the corresponding content in the configuration files of these two websites, and use it after subtracting `1` from the value of the second field, such as:

```yaml
vfd_gpio_clk='0,69,0'
vfd_gpio_dat='0,70,0'
```
change into:

```yaml
vfd_gpio_clk='0,68,0'
vfd_gpio_dat='0,69,0'
```

- Name the configuration file `diy.conf` and upload it to the `/usr/share/openvfd/conf` directory, enter the command `armbian-led 99` to test.

- You can disable the LED display and clear system processes with the command `armbian-led 0` or `armbian-led stop`, before each test a new configuration, please execute this disable command first, and then execute `armbian-led 99` to make changes After the configuration test.

- You are welcome to share the conf file(xxx.conf) of your own devices after testing, so that more people can benefit.


# LED 测试说明

- 通过 `armbian-update` 命令将内核升级到 5.4.185、5.10.106、5.15.29、5.16.15 或更高版本。

- 目前有 `x96max.conf``x96maxplus.conf``h96max-x3.conf``hk1-x3.conf``hk1box.conf``tx3.conf` 共六个设备经过测试,其他设备的配置可以查看:[arthur-liberman/vfd-configurations](https://github.com/arthur-liberman/vfd-configurations)[LibreELEC/linux_openvfd](https://github.com/LibreELEC/linux_openvfd/tree/master/conf) 进行修改,需要把这两个网站中配置文件里对应内容中进行调整,把第二个字段的值减 `1` 后使用,如:

```yaml
vfd_gpio_clk='0,69,0'
vfd_gpio_dat='0,70,0'
```
修改为:

```yaml
vfd_gpio_clk='0,68,0'
vfd_gpio_dat='0,69,0'
```

- 将配置文件命名为 `diy.conf` 并上传至 `/usr/share/openvfd/conf` 目录下,输入命令 `armbian-led 99` 进行测试。

- 通过命令 `armbian-led 0``armbian-led stop` 可以禁用 LED 显示并清除系统进程,在每次测试新的配置前,请先执行此禁用命令,再执行 `armbian-led 99` 进行更改后的配置测试。

- 欢迎大家测试后分享自己设备的配置文件( diy.conf ),让更多人受益。

0 comments on commit c8e6579

Please sign in to comment.