Custom Menu

Related to the development libraries, released by Curt Binder
Would you like the ability to create a custom menu on the controller?

Yes, I would like to create my own menu
52
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 : 60

User avatar
Posts: 2745
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Sat Sep 17, 2011 10:39 pm
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

Posts: 12276
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Sep 18, 2011 8:37 am
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.

Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA
PostPosted: Sun Sep 18, 2011 11:27 am
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
Previous

Return to Development Libraries

Who is online

Users browsing this forum: No registered users and 3 guests

cron