Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next
HCMAX7219 - LED driver library 
Author Message

Joined: Mon Oct 09, 2017 8:31 pm
Posts: 10
Post Re: HCMAX7219 - LED driver library
Andrew,
I have rewired my project but still facing a problem,I will try to explain in my best englisch.
I have 12 max7219 chips with is 96 positions for a character.
I have changed the number in HCMAX 7219.h in 12
I can adres the characters from number 32 to 96 with is 8 chips perfect.
I can run the test command for all the 12 chips,that works perfect.
But i can not adres characters to the first 4 chips with display numbers 1 to 32 ,
I have tried everything but no result.
Can you please help me?

Best regards,
Albert Kolkman


Mon Oct 23, 2017 3:40 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 706
Post Re: HCMAX7219 - LED driver library
If you use the 'HCMODU0082_Serial_7_Segment_Module_Example1' in the first post and change the NUMBEROFDRIVERS to 1 so that the sketch is only controlling the first driver, does the first driver now do anything? I.e. do you see anything on the first 8 digits?

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Tue Oct 24, 2017 9:29 am
Profile

Joined: Mon Oct 09, 2017 8:31 pm
Posts: 10
Post Re: HCMAX7219 - LED driver library
I will check,thanks for the reply.
Albert


Tue Oct 24, 2017 10:09 am
Profile

Joined: Wed Oct 25, 2017 2:05 pm
Posts: 2
Post Re: HCMAX7219 - LED driver library
I am using 5 MAX7219 modules. I would like to use the "print7Seg" command to write to them but cannot how see to address each driver using that. It seems I have to address each character in each driver to write to it though I can pre-select the number of characters for each driver. I have plenty of spare Arduino pins so could use a dedicated LOAD pin for each but cannot see how to switch that as the program runs as it is assigned during Setup.


Wed Oct 25, 2017 4:06 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 706
Post Re: HCMAX7219 - LED driver library
Quote:
I would like to use the "print7Seg" command to write to them but cannot how see to address each driver using that.


You just need to connect your drivers in series (cascade). See the diagram in the first post of this thread:

viewtopic.php?f=75&t=1789


Quote:
It seems I have to address each character in each driver


Nope, so long as they are connected as above you only need to specify the starting index of the string of text to print. So with two drivers driving 16 characters the follow line:

Code:
HCMAX7219.print7Seg("HELLO WORLD!!!", 15);


Would display this:

Attachment:
HCMAX7219_Diagram.jpg



Quote:
I have plenty of spare Arduino pins so could use a dedicated LOAD pin for each


No need for multiple load pins, just connect the same load pin to each driver.


You do not have the required permissions to view the files attached to this post.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Oct 26, 2017 10:32 am
Profile

Joined: Wed Oct 25, 2017 2:05 pm
Posts: 2
Post Re: HCMAX7219 - LED driver library
Thank you for the detailed reply but I am going to write unconnected data to each MAX7219. I fear to rewrite to all displays say for one character change in one of them in series will really slow things down. The "print7Seg" command is very powerful & streamlines addressing the Driver.


Thu Oct 26, 2017 11:00 am
Profile

Joined: Mon Oct 09, 2017 8:31 pm
Posts: 10
Post Re: HCMAX7219 - LED driver library
Andrew,
I tested the first chip in the chain and yes the display say HELLO !!.
And like I said I can adres all the 12 chips with the test command,only the funny thing is that it start with the last chip in the chain.
The same with the Print7Seg command it start with number 98 with is the first display on the first chip in the chain,
Dit you find the attachment with my last post?
It is abouth the scketch i wrote to test all the chips.
I will add it again.


You do not have the required permissions to view the files attached to this post.


Thu Oct 26, 2017 11:44 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 706
Post Re: HCMAX7219 - LED driver library
Quote:
And like I said I can adres all the 12 chips with the test command,only the funny thing is that it start with the last chip in the chain.
The same with the Print7Seg command it start with number 98 with is the first display on the first chip in the chain,


I may have misunderstood your issue from the first post. What you are describing now sounds like the correct behavior. When for example using the HCMAX7219.print7Seg() function index 1 is the right most character in your chain and index 96 will be the left most in your chain. You can take a look at the image I've just posted in reply to piney's question 2 post above. This shows how each character is indexed for a 2 device (16 character) example.

Quote:
Dit you find the attachment with my last post?


It doesn't look like it attached to your original post but I've taken a look at it now and from what I can see it confirms what I have said above.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Oct 26, 2017 3:29 pm
Profile

Joined: Fri Oct 27, 2017 1:32 am
Posts: 3
Post Re: HCMAX7219 - LED driver library
Hi, first post and first Arduino project! :D

However, that's where the fun stops, as I have installed the library and am trying to compile the sketch but I receive the following error messages.
Quote:
Arduino: 1.6.6 (Linux), Board: "Arduino Nano, ATmega328"

In file included from /home/al5ki/Projects/arduino/Maxim-MAX7219-Seven-Segment-Serial-Display/HCMODU0082_Serial_7_Segment_Module_Example1/HCMODU0082_Serial_7_Segment_Module_Example1.ino:45:0:
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '242' from 'int' to 'char' inside { } [-Wnarrowing]
};
^
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '242' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '214' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '214' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '204' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '178' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '178' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '238' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '162' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '206' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '138' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '242' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '228' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '230' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '162' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '162' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '190' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '156' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '222' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '158' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '190' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '246' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '138' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '154' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '178' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '242' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '208' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '208' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '144' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '144' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '222' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '144' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '144' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '134' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '152' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '156' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '246' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '246' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '146' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '222' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '248' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '252' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '248' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '238' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '238' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '198' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '134' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '142' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '154' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '178' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '226' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '194' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '254' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '192' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '238' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '130' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Arduino/libraries/HCMAX7219/HCMAX7219.h:269:1: error: narrowing conversion of '238' from 'int' to 'char' inside { } [-Wnarrowing]
/home/al5ki/Projects/arduino/Maxim-MAX7219-Seven-Segment-Serial-Display/HCMODU0082_Serial_7_Segment_Module_Example1/HCMODU0082_Serial_7_Segment_Module_Example1.ino: In function 'void loop()':
/home/al5ki/Projects/arduino/Maxim-MAX7219-Seven-Segment-Serial-Display/HCMODU0082_Serial_7_Segment_Module_Example1/HCMODU0082_Serial_7_Segment_Module_Example1.ino:66:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
HCMAX7219.print7Seg("HELLO !!",8);
^
exit status 1
Error compiling.


Any assistance would be greatly appreciated.


Fri Oct 27, 2017 1:55 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 706
Post Re: HCMAX7219 - LED driver library
Welcome to the forum. I don't have access to a Linux machine until this afternoon but I have a suspicion as to what the problem my be. I think it may be something to do with how your Liunx Arduino setup (or rather the GCC compiler) interprets the definition of a 'const char'. Could you open up the HCMAX7219.h library header file in a text editor and find the following line:

Code:
const char Font8x8[][8] =


and change it to this....

Code:
const unsigned char Font8x8[][8] =


Save the file and see if the error goes away.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Fri Oct 27, 2017 8:48 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 30 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD