Mohsinsapraa / glcd-arduino

Automatically exported from code.google.com/p/glcd-arduino
0 stars 0 forks source link

Upload problem when using fixed nums 8x16 font on Arduino Mega #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include fixed nums 8x16 font in an arduino sketch.
2. Upload to Mega board.
3. Will timeout.

What is the expected output? What do you see instead?
The sketch should upload but does not. Fails with timeout issues.

What version of the product are you using? On what operating system?

Please provide any additional information below.
Have located the problem to the character '4' in the font definition. Contains 
the sequence 0x21, 0x21, 0x21, which is ASCII "!!!" which just happens to be 
the upload escape sequence. 

Original issue reported on code.google.com by mikael.p...@gmail.com on 27 Jan 2013 at 3:00

GoogleCodeExporter commented 8 years ago
Interesting problem. Thanks for tracking this down.
I really wish the Arduino guys would remove this "feature". It is totally 
worthless as it is now and creates many subtle issues.
Nobody is really using it anyway.
I'm not sure what to do as changing the bit pattern will alter the glyph.
I'll have to think a bit about a solution for this given the problem is in the 
Arduino firmware.
Maybe I should just quit waiting on the Arduino guys to fix it and just rebuild
a new firmware image that removes the support for their goofy escape and host 
the firmware image here. It's easy but many people won't have the ISP 
programmer or the skills necessary to be able to update the firmware even if I 
do make a newer version available.
hm......

Original comment by bperry...@gmail.com on 27 Jan 2013 at 7:07

GoogleCodeExporter commented 8 years ago
I couldn't agree with you more. The bootloader "feature" is really bad as there 
is no guarantee that this could not happen in code as well. A better bootload 
is what is needed but for now I think we just have to help avoid the problem. 

I am working on an object-oriented platform for Arduino and ported in some of 
your font. Please check if the acknowledgement is ok or if you would like this 
in an other way. You can also see the commit with the minor change I made to 
get my code working on the Mega.

https://github.com/mikaelpatel/Cosa
https://github.com/mikaelpatel/Cosa/commit/e3c0975510445c67c3b152dad744225771dd5
82d

Thanks for a great library. Inspired some of the work I did on the class 
Canvas, Font, Icon and the IOStream/Textbox onto a Canvas. 

Cheers, Mikael

Original comment by mikael.p...@gmail.com on 27 Jan 2013 at 7:51