Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 958
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 885 times
Been thanked: 214 times

Flowcode v11 Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by jgu1 »

Hi Martin (mfisher)! :)

Some time ago, you created the Max7219_v2.fcpx component for Flowcode 8. It still works perfectly in FC8, but when I add it to FC11, I get a lot of errors and I’m unable to compile.

I also have a Max7219_v9.fcpx file (I have no idea where I got that one from 😊), but unfortunately that one doesn’t work in FC11 either.

I have a program that I would like to edit, and I would really prefer to do it in FC11.

Would you be able and willing to modify one of these files so that it is compatible with FC11 and can be used there? It was a really good component for controlling up to 8×8 MAX7219 displays, and I would very much like to keep using it.

If you can and are willing to have a look at it, I would really appreciate it. I Guess you have both file, don´t know hvat the difference is in these two, otherwice I can att. them

Many thanks in advance!

Jorgen

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

Hi Jorgen,

Yes, surely can. I have used it with v11 - so hopefully nothing too major. What issue are you getting?

Martin

jgu1
Posts: 958
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 885 times
Been thanked: 214 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by jgu1 »

So nice Martin.

Get this during compiling:

C:\Flowcode11\Forsoeg\MAX7219FC11>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Flowcode11\Forsoeg\MAX7219FC11\Flowcode11.elf" "C:\Flowcode11\Forsoeg\MAX7219FC11\Flowcode11.c" -lm -Wl,-gc-sections
C:\Flowcode11\Forsoeg\MAX7219FC11\Flowcode11.c:37:41: error: expected expression before ',' token
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,,

I made a small testprogram
^
Attachments
Place.png
Place.png (32.94 KiB) Viewed 565 times
Flowcode11.msg.txt
(2.12 KiB) Downloaded 2 times
Flowcode11.fcfx
(8.89 KiB) Downloaded 2 times

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

Hi Jorgen,

Is caused by an issue with the LUT component - it used to allow a comma at the end of a line - now it gets upset by one - will fix latte today when i get home...

Martin

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

Can you try this....
Attachments
Max7219_v9.fcpx
(8.83 KiB) Downloaded 7 times

jgu1
Posts: 958
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 885 times
Been thanked: 214 times

Flowcode v11 Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by jgu1 »

Hi Martin!
Thank you Martin! :D

Yes, now I can compile after change the v.2 makro to v.9 it work, but If I in Scroll string change the direktion to 0,the text is appearing mirrored. In my test program, I am using four 8x8 displays, but I am forced to use only three devices, otherwise, not all the text shows up. Is there something I need to adjust in the Properties?

EDIT: If I use the Slew macro Examble write "test", the last t is missing.
Attachments
Slewtest.fcfx
(9.98 KiB) Downloaded 10 times
Flowcode11.fcfx
(9.57 KiB) Downloaded 9 times

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

Hi Jorgen,

Just tested on hardware (albeit with a Uno not a Nano) - and Slew works AOK - if you have four displays attached then set the number to 4 (Slew just scrolls until the left side of the letters is at 0 - so if the text doesn't fit then the end will be lost... If you have more displays attached than set - odd things happen on ones at the end of the chain.. How are you powering the displays? (if from the nano 5v then try setting the brightness to 0 or 1)

Scroll does reverse the text with direction = 0 - Odd... I'll have a look - but it's some time ago - Mode 0 might have to be mirror writing :-)

jgu1
Posts: 958
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 885 times
Been thanked: 214 times

Flowcode v11 Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by jgu1 »

Hi Martin!

Your rigth (as always :lol: ) Few mA more and 4 digit in proporties, the last digit turn on ;)

Wish, is it possible to change the orientation in the Sleew component I also like this Macro, but if i have the other macro in 0 and add the slew then it is in 1 ( Direktion 0 and 1 from the display ect. Ili9341) hope you understand what I mean?

And Please the Mirror Issue, as far I remember it vork in ver.2 If I ask to much, let know ;)

Jorgen
Attachments
Orientation_Mirror_test.fcfx
(10.23 KiB) Downloaded 4 times

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

Will take a look and see what i can do ..

mnfisher
Valued Contributor
Posts: 2170
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 1011 times

Re: Max7219_v.fcpx and Max7219_v9.fcpx Martin Fisher

Post by mnfisher »

I've realised why the scroll reverses the text - it draws a column of the current character then scrolls the display right - so the left hand column of the character -> right first. So mirrored. Need to draw the right most column of the last character in the string first - scroll and repeat....

Post Reply