Custom Menu

Related to the development libraries, released by Curt Binder
Post Reply

Would you like the ability to create a custom menu on the controller?

Yes, I would like to create my own menu
54
87%
Maybe, if it will give me more memory I would
3
5%
No, I like the default menu
0
No votes
Don't care, I don't really use the menu
3
5%
There's a menu on the controller?
2
3%
 
Total votes: 62

binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Custom Menu

Post by binder »

ill have a closer look at things when i get my setup up and running later this weekend. It most likely is something simple.

curt
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Custom Menu

Post by rimai »

I think you really should avoid creating functions inside the library, but I do understand that this particular piece of the library is still not finalized.
The reason being is that whenever Curt releases updates, your code will be overwritten and you will have to keep updating your own set of libraries everytime, but I'm pretty sure you know how to merge them.
Anyway, on your code, I think you should release the RelayMaskOn to its running state, which is 0 and not invert it.
When you invert the mask, you are making the mask becode B01111111, which means turn all relays on except number 8.
So, that line should be

Code: Select all

Relay.RelayMaskOn =0;
Or, if you want to just return the relay 8 to its original state:

Code: Select all

Relay.RelayMaskOn &= ~MoonLightPorts;
Let me know if this works out.
Roberto.
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

Re: Custom Menu

Post by wolfador »

rimai wrote:
Or, if you want to just return the relay 8 to its original state:

Code: Select all

Relay.RelayMaskOn &= ~MoonLightPorts;
Let me know if this works out.
Used this and it works great. Thanks!
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
Post Reply