Memory Map saids that it 95% FULL I was able to add a LCD Display (ReSolved)
I have the routine the way that·I want it
·The memory map saids 95% FULL
Dose any one have any····
·s
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/25/2008 4:26:25 AM GMT
·The memory map saids 95% FULL
Dose any one have any····
![idea.gif](http://forums.parallax.com/images/smilies/idea.gif)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
![idea.gif](http://forums.parallax.com/images/smilies/idea.gif)
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/25/2008 4:26:25 AM GMT
Comments
- your long debug statements take a LOT of space -- I cut all the debug statements down (see attached) to a few characters and it freed up quite a bit of room. Debugs are hefty (every character is a byte less left for your program
- the following code is basically repeated in every "code x" routine:
Since the debug "button 3" or whatever is based on the remote code, you could put the above in a subroutine, and call that new routine in place of every do loop -- would also save quite a bit of space (I left this for you to tackle). E.g....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Thank You for helping me clean this code up· ·
I for got how much memory the DEBUG Statement s take up
I was able to add a· Two Line LCD Display to this project
and still have only used 76% of the memory on Ver_2 and on
Ver_3 it down too 72%
Since the debug "button 3" or whatever is based on the remote code, you could put the above in a subroutine, and call that new routine in place of every do loop -- would also save quite a bit of space (I left this for you to tackle). E.g....
These routine are not really the same I only had them the same to make sure that ALL of the Button Routine worked
Also the code routine code_0 may not be right·
code_0:
·· TOGGLE relay
·· TOGGLE led
· GOSUB Get_IR
··· RETURN
I have not try this yet to see if this will work
What·I want to is is if you hit (0) on the remote on time it turn the relay ON
When hit (0) on the remote on the second time it turn OFF the relay
I·will try the power button to see what # it is and use it if I can
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/25/2008 12:20:55 PM GMT
Is "relay" a pin to relay driver (i.e. a discrete transistor/diode driver for the coil or a driver like the ULN2803). If so, toggle should be fine. However, you might want to put some kind of delay in the code routine that toggles the relay, or account for a "repeat" press in your logic -- in other words, if the user keeps their finger on the 0 button, you don't want to keep toggling it back and forth rapidly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Yes I am using a ULN2803
Is "relay" a pin to relay driver (i.e. a discrete transistor/diode driver for the coil or a driver like the ULN2803).· ·
·However, you might want to put some kind of delay in the code routine that toggles the relay, or account for a "repeat" press in your logic -- in other words, if the user keeps their finger on the 0 button, you don't want to keep toggling it back and forth rapidly.
Thank You for all of your help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam