Bumming monochron code

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dataman
 
Posts: 98
Joined: Wed May 20, 2009 7:03 pm

Bumming monochron code

Post by dataman »

I know you're still in prerelease,
Which is probably good time to bum some less than optimal code...

Might I suggest anim.c line 618:
if (d & _BV(7-j)) {
glcdFillRectangle(x+i*2, y+j*2, 2, 2, !inverted);
} else {
glcdFillRectangle(x+i*2, y+j*2, 2, 2, inverted);
}

Could be replaced by:
glcdFillRectangle(x+i*2, y+j*2, 2, 2, (d & _BV(7-j)) ? !inverted : inverted);

Pretty decent memory savings.
I don't think the optimizer would catch that one.
It also reads a bit bitter.

EdA
 
Posts: 2
Joined: Sat Feb 27, 2010 10:46 pm

Re: Bumming monochron code

Post by EdA »

How well does the default code fill up memory?
Is there room for hacks (like explosions on the hour...etc)?

Thanks,
/Ed

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Bumming monochron code

Post by adafruit »

theres about 20K taken up with program code. a lot of that is graphics stuff and the menu system. so about 10K left for hackin'

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”