Skip to content

Commit

Permalink
Add openvfd config(whale.conf), share by 9runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed May 29, 2023
1 parent 60ea5de commit 678294e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ do_select_box() {
20 | t95z-plus) do_start t95z-plus.conf ;;
21 | tx9-pro) do_start tx9-pro.conf ;;
22 | x92) do_start x92.conf ;;
23 | whale) do_start whale.conf ;;
99 | diy) do_start diy.conf ;;
0 | stop) do_stop ;;
1 | quit) echo "quit!" && exit 0 ;;
Expand Down Expand Up @@ -170,6 +171,7 @@ case "${1}" in
│ 20. t95z-plus (s912) │
│ 21. tx9-pro (s912) │
│ 22. x92 (s912) │
│ 23. whale (s905x3) │
│ 99. diy │
│ │
├──────[ Other Operations ]─────┤
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file must be renamed to vfd.conf and placed in the /storage/.config/ folder.
#
# Whale (S905X3) configuration
# Share by: https://github.com/9runner
#--------------------
#gpio_xxx:
# [0] 0 = &gpio, 1 = &gpio_ao.
# [1] pin number - https://github.com/openSUSE/kernel/blob/master/include/dt-bindings/gpio/meson-g12a-gpio.h
# [0] Reserved - must be 0.

vfd_gpio_clk='0,64,0'
vfd_gpio_dat='0,63,0'
vfd_gpio_stb='1,10,0'

#chars:
# < DHHMM > Order of display chars (D=dots, represented by a single char)

vfd_chars='4,0,1,2,3'

#dot_bits:
# Order of dot bits. Typical configurations:
# Display Type 0, 1 usually has Alarm, USB, Play, Pause, Col, Ethernet, Wifi dots
# Alarm = 0, USB = 1, Play = 2, Pause = 3, Col = 4, Eth = 5, Wifi = 6
# Display Type 2 usually has APPS, USB, SETUP, CARD, Col, HDMI, CVBS dots
# APPS = 0, USB = 1, SETUP = 2, CARD = 3, Col = 4, HDMI = 5, CVBS = 6
# Display Type 3 Power, LAN, Col, Low Wifi, High Wifi
# N/A = 0, N/A = 1, Power = 2, LAN = 3, Col = 4, Low Wifi = 5, High Wifi = 6

vfd_dot_bits='0,1,2,3,4,5,6'

#display_type:
# [0] - Display type.
# [1] - Reserved - must be 0..
# [2] - Flags. (bit 0 = '1' - Common Anode display)
# [3] - Controller.

vfd_display_type='0x02,0x00,0x01,0x06' # ok

functions='usb apps setup sd hdmi cvbs'
2 changes: 2 additions & 0 deletions build-armbian/documents/led_screen_display_control.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sed -i 's|^#*openvfd_boxid=.*|openvfd_boxid="15"|g' /etc/custom_service/start_se
| t95z-plus | 20 | armbian-openvfd 20 | openwrt-openvfd 20 | Enable LED |
| tx9-pro | 21 | armbian-openvfd 21 | openwrt-openvfd 21 | Enable LED |
| x92 | 22 | armbian-openvfd 22 | openwrt-openvfd 22 | Enable LED |
| whale | 23 | armbian-openvfd 23 | openwrt-openvfd 23 | Enable LED |
| diy | 99 | armbian-openvfd 99 | openwrt-openvfd 99 | Enable LED |
| - | 0 | armbian-openvfd 0 | openwrt-openvfd 0 | Disable LED |
| - | -u | armbian-openvfd -u | openwrt-openvfd -u | Update Conf |
Expand Down Expand Up @@ -100,6 +101,7 @@ sed -i 's|^#*openvfd_boxid=.*|openvfd_boxid="15"|g' /etc/custom_service/start_se
| t95z-plus | 20 | armbian-openvfd 20 | openwrt-openvfd 20 | 启用 LED |
| tx9-pro | 21 | armbian-openvfd 21 | openwrt-openvfd 21 | 启用 LED |
| x92 | 22 | armbian-openvfd 22 | openwrt-openvfd 22 | 启用 LED |
| whale | 23 | armbian-openvfd 23 | openwrt-openvfd 23 | 启用 LED |
| diy | 99 | armbian-openvfd 99 | openwrt-openvfd 99 | 启用 LED |
| - | 0 | armbian-openvfd 0 | openwrt-openvfd 0 | 禁用 LED |
| - | -u | armbian-openvfd -u | openwrt-openvfd -u | 更新配置 |
Expand Down

0 comments on commit 678294e

Please sign in to comment.