Giter Club home page Giter Club logo

Comments (9)

lChiehZ avatar lChiehZ commented on June 4, 2024 2

As I mentioned in the other issue with a similar problem, I've not tested this on 5.x kernel in general, nor on Armbian specifically.
Maybe they have the pins mapped differently in the new/mainline kernel and that's why it doesn't work, I don't really know.

Thank you Arthur! I carefully compared the GPIO mapping between the two systems, and there are indeed some differences, and now I have successfully lit up the LCD screen!
WechatIMG20

Thank you very much!

from linux_openvfd.

danboid avatar danboid commented on June 4, 2024 1

Hi @lChiehZ

Could you please share your working config file or explain how you worked out the correct values? I have got a X96 Air running Manjaro that I failed to get working with openvfd, even tho it works fine with openelec.

Thanks

from linux_openvfd.

lChiehZ avatar lChiehZ commented on June 4, 2024

BTW, It works fine when I use CoreELEC-Amlogic-ng.arm-19.2-Matrix_rc2 With this vfd.conf:

vfd_gpio_clk='0,65,0'
vfd_gpio_dat='0,64,0'
vfd_gpio_stb='0,0,0xFF'
vfd_chars='0,4,3,2,1'
vfd_dot_bits='0,1,3,2,4,5,6'
vfd_display_type='0x00,0x00,0x00,0x06'

from linux_openvfd.

arthur-liberman avatar arthur-liberman commented on June 4, 2024

As I mentioned in the other issue with a similar problem, I've not tested this on 5.x kernel in general, nor on Armbian specifically.
Maybe they have the pins mapped differently in the new/mainline kernel and that's why it doesn't work, I don't really know.

from linux_openvfd.

Jeebus678 avatar Jeebus678 commented on June 4, 2024

@lChiehZ Bumping this thread to see if you can post your findings. Curious as well.

from linux_openvfd.

danboid avatar danboid commented on June 4, 2024

@Jeebus678 see the post from 16th Oct from chbgdn in #8 . I've not tried it yet but please let us know if it works for you.

from linux_openvfd.

lChiehZ avatar lChiehZ commented on June 4, 2024

Hi @danboid @Jeebus678

Sorry I'm just seeing it now, I don't have the equipment in my hands right now, but I can tell you the points that need attention.
For example, in the dtb file

leds {
    compatible = "gpio-leds";
    status = "okay";
    sys_led {
        label = "sys_led";
        gpios = <0x75 0x0b 0x00>; //0x75 is the phandle for bank@14, note to modify your own
        default-state = "on";
        linux,default-trigger = "default-on";
    };
};

The above code is correct to display the power light normally.

Then check the GPIO mapping of your own device, e.g.
This conf works fine in CoreELEC, the

vfd_gpio_clk='0,65,0'
vfd_gpio_dat='0,64,0'

so check what gpio pins 65 and 64 are in CoreELEC.
Finally, find the corresponding pins in the system you need to use
For example, the last conf I used was.

vfd_gpio_clk='0,64,0'
vfd_gpio_dat='0,63,0'
vfd_gpio_stb='0,0,0xFF'
vfd_chars='0,4,3,2,1'
vfd_dot_bits='0,1,3,2,4,5,6'
vfd_display_type='0x00,0x00,0x00,0x06'

Good luck!

from linux_openvfd.

Jeebus678 avatar Jeebus678 commented on June 4, 2024

@lChiehZ

Thank you for the reply. I am trying to work the vfd on a tx mini 3, which is different although I imagine the idea is the same. I'm having trouble mapping the GPIOs. How do I figure out what pins are in charge of the 7-segment, and once I have that declared within my DTB and/or my vfd.conf, how do I actually write to the LCD? Thanks.

from linux_openvfd.

arthur-liberman avatar arthur-liberman commented on June 4, 2024

Closing due to lack of activity. Please let me know if you still have an issue with the latest commits pushed recently.

from linux_openvfd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.