Results 1 to 3 of 3
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Apr 2015
    Location
    UK
    Posts
    9
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    The strangest problem..."transposed" 7 seg read-outs

    Hi All, Jannie here.

    I have embarked on building my own radio stack and as a starting point I am learning from FESS's uploaded sketch. (Thanks Fess)

    What I am finding is that all my read-outs read from RIGHT to LEFT instead of L to R. Best to imagine this:

    ADF on FSX reads "0284.0"

    The displays should read: Adf--0284.0 - INSTEAD I get 04.820 Adf, as if digit 7-0 has become 0-7

    This problem is for all, COM NAV TRXPNDR and MCP.

    My 7219 circuit boards are homemade by me, BUT they have been thoroughly tested with a 7219 test sketch, no problem. (I am no expert, but am equally not new to electronics either)


    EVEN if I transpose the digits in the sketch and upoad again, the problem stays the same..and that is very weird...

    An ideas anybody?

  2. #2
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: The strangest problem..."transposed" 7 seg read-outs

    Hi Jannie,

    You will likely need to post a snippet of your code, where it sends to the display.

    When you transposed the digits in the sketch, did you do it like....

    led_Display_1.setDigit(0,7,Com1Active[0],false);
    led_Display_1.setDigit(0,6,Com1Active[1],false);
    led_Display_1.setDigit(0,5,Com1Active[2],true);
    led_Display_1.setDigit(0,4,Com1Active[3],false);
    led_Display_1.setDigit(0,3,Com1Active[4],false);

    Change to this...

    led_Display_1.setDigit(0,
    3,Com1Active[0],false);
    led_Display_1.setDigit(0,
    4,Com1Active[1],false);
    led_Display_1.setDigit(0,
    5,Com1Active[2],true);
    led_Display_1.setDigit(0,
    6,Com1Active[3],false);
    led_Display_1.setDigit(0,
    7,Com1Active[4],false);

    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Apr 2015
    Location
    UK
    Posts
    9
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: The strangest problem..."transposed" 7 seg read-outs

    Hi Fess, thanks for the reply..much appreciated.

    I think I have found the problem .. I tried yet another test set-up for my 7219 modules, which also showed up "transposed".

    I make my own PCB's, and in my schematic have wrongly connected the digits "0 - 7" , instead of 7 - 0 as it should be.
    I am now in the process of remaking the PCB's.
    I do not want to change your code to correct it all. Best to leave that as is, so in the future I stay on a level playing field with everybody else.

    Will report back.

    Best regards