Changing default colour

I have a script in my mm.startup file.

It includes the:

OPTION DEFAULT COLOURS YELLOW, BLACK

Turning on the calc and all is good as it displays the RTC TIME AND DATE which is part of the script along with my name and phone number.

And the font is now yellow.

Until i run my next program which is up to 22k in size.

Then the screen defaults to green and OPTION LIST confirms the colours as GREEN, BLACK.

Question:

Is mm.startup with AUTOSAVE and OPTION AUTORUN the correct place for the colours option, or is there someplace else it should be.

At power on it is correct and OPTION LIST indicates

OPTION AUTORUN ON
OPTION DEFAULT COLOURS YELLOW, BLACK

However at some point while editing or running it defaults to green and the AUTORUN OPTION is no longer indicated in the OPTION LIST.

Again, is mm.startup the correct place or is a peek and poke required?


1 Like

Have you tried setting changing the display color in your MMBasic library?

(Disclaimer: I have never used MMBasic myself, so I am basing the above just on what I have read here.)

Enter this in the editor then exit…
Enter “library save”
Then “library list” to confirm it’s there.

That should then run before every program…

2 Likes

My bad, Geoff. The color is hard coded into the PicoCalc changes. In FileIO.c, line 5022, change GREEN to whatever color you want (all uppercase!), or better yet, comment that line out altogether so you can make changes on the fly that will survive a reboot.

2 Likes

That would work, but it would be temporary unless you executed it at all times in which case you could just stick the option default color yellow black as the first line of any program that you write.

Which is what I ended up doing until I see TomL’s suggestion!

1 Like

Do you know the command to remove something from library? or do i have to reflash the pico?

Library list

Will list the functions you have created in library flash 3

Library delete

Looks like it deletes all of library in flash 3

I do not see a library edit

I have yet to play with the library, but will be adding a function that I call HMS/HR which will convert degrees minutes seconds or hours minutes seconds to decimal degrees or decimal time.

And another called HR/HMS, which will do the opposite.

Let me know if you find an edit function, but I do not see one.

Anyone else like to chime in?


1 Like

Here is what ChatGPT says about picomite and library editing:

1 Like

Thank you :+1:

I have a question for you on the subject of flight computers. I’d like to convert (if possible) some of the older flight software’s over to MMBasic just for fun, Do you have any suggestions on where to look or names of these old programs?

There is a very expensive book due to its extremely limited run back in 1980 or so called “Axioms of flight”.

It is a paperback but commands around $200 if you can find a copy at Amazon or the like. It has many formulas and basic program coding for those formulas with explanations, etc…. It also gives rules of fun, which approximate the answers that the formula and the basic computer would create.

Other books would be, navigation for sailing and flying.

I created a manual for the Hewlett-Packard 15 CE as part of the aviation pack I developed for the same handheld calculator. It would give you guidance on specific conversions, navigation, altimeter pressure, altitude, and etc.

You can find that manual for free download however it is in RPN line programming but has the formulas that were used and program code in RPN for use..

[Look for PDF manual here]

(https://www.thecalculatorstore.com/c/hp15c/software-pacs)

You could also check out this HHC conference video, talk I gave a few years ago about Hewlett-Packard and aviation

Cheers

That is what I am developing for this PicoCalc. The program is now up to 25K in length which they may not get longer depending on how I enhance the output and decrease the coding redundancy. MM basic is new to me as I am used to HP basic with much less GUI interface, but more scientific functions.

1 Like

There is no library edit function. Keep a copy of your library in BASIC format and whenever you make a change to it, make sure to do a SAVE"yourlibname" BEFORE you do a LIBRARY SAVE or else you won’t be able to see your changes in the BASIC program since LIBRARY SAVE deletes the program from the edit buffer as it copies it to the library.

2 Likes

Thanks, this is helpful. I occasionally struggle to understand things, so this really makes a difference.

1 Like

My cousin is training to become a commercial pilot, and he recently got his PicoCalc. I’ve been trying to teach him how to code in BASIC, but he’s decided to go with MicroPython instead. I want to help him create a frequency textbook/notebook on the PicoCalc, using the same concept I had for PicoPub.

1 Like

What would be interesting to create, and I will probably look into that even though I don’t need one now,

But a logbook APP

It would include

Off time
On time
Total time for leg
Total running time for career
Aircraft type
Night time
Instrument time
Simulator time
Float plane time

A notes page for each leg
Captain’s name
Copilot’s name
Pilot monitoring leg
Pilot flying leg

And other things, all transferable to your home computer, where it can be printed in the correct format for a logbook.

Well, that would be a big project but let me finish this big project, first.

Just completed a world time clock program, which will display world times in as many cities as you would care to enter.

787Geoff

1 Like

!! CAUTION !!
‘library save’ will ADD whatever is in the program buffer to the current library contents !. See the effect with ‘library list’ after a few saves. If you want to update the whole library contents and not add to them you must ‘library delete’ before ‘library save’ !

I just have ‘option angle degrees’ in there and set it by simply entering it into the editor and exiting with F1 before ‘library save’. I may add useful subroutines and functions in the future when program space reaches limits (hence freeing program space)…

1 Like