News:

Let's find out together what makes a PIC Tick!

Main Menu

Matrix 8x8 proteus simulation

Started by Pepe, Aug 28, 2022, 01:11 AM

Previous topic - Next topic

JohnB

I am wondering if I would need to create a new font file with everything rotated or if it can be done  simply in Pepe's code.
JohnB

joesaliba

I think it can be done in code. I have seen some code with Arduino that they can be rotated as you wish.

Joe

Pepe

#42
probe this, let me know if it's corrected

Pepe

Setdot is added

Pepe

JuanB,I hope the last library has rotated the characters

JohnB

ill try tomorrow morning, been out all day and just got back in.
JohnB

JohnB

Not managed to get the display to show anything with the new code.
I will try and get to the bottom of it and get back to you when I have a better understanding of whats going on.
JohnB

Pepe

podria enviarme su programa para simularlo

JohnB

Its quite a big program.
I have uploaded the version which does at least work although the characters are rotated.
JohnB

Pepe

#49
I send you both versions, I can't simulate it for your pic,modify my main program for your pic and try it with the libraries I send you

JohnB

Thank you, I will give it a try.

Meanwhile, I tried rotating the displays through 180 degrees.  This meant that the vertical column is now addressed in a single byte.  However, the horizontal addressing doesn't work with the current code.
JohnB

JohnB

You are getting there. I now have vertical characters but mirrored.
JohnB

JohnB

I reversed the order I set the Col and its all working correctly

Thank you very much for your help



JohnB

Pepe

Podría enviarme la librería que utilizo finalmente para arreglar la simulación en proteus

Pepe

#54
I could try the library I send you to know if it looks good

I have optimized the setcol procedure

Proc setCol(col As Byte,value As Byte)
    Dim Va As Bit
    Dim addr As Byte
    Dim dcol As Byte
    Dim row As Byte
   
    If col >= Display_Count * 8 Then ExitProc
   
    addr = Display_Count - col / 8 - 1
   
    dcol = col//8
   
    For row = 0 To 7 
    Ror value 
    va = STATUS.0
    setpoint(addr,row,dcol,va)
    Next

EndProc

JohnB

I am not sure which library you mean, the last 2 you sent me and my working library are attached

IMG_3134.jpg .

I tried your optimized code for SetCol but is didn't work wasn't rotated and flickered.
JohnB

Pepe

#56
I could try this new library that has added to be able to print from a certain column

Pepe

spaces between digits are removed

JohnB

IMG_3135.jpg
Sort of Proportional Spacing
JohnB

Pepe

#59
Yes, in my library I had already added it
16707007094222027343254281112814.jpg