Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OS5.7 with WavLen<> and scroll-menu is on github;
- wavlen_scrollmenu_OS-57
- It also includes some new serial commands;
- dim 75 -> sets dimblade to 75% (min=0 max = 100, only full integers)
- get_dim -> show current value of dim percenatge of blade (manly used to inform WebApp v2)
- get_var -> shows current value of Variation (manly used to inform WebApp v2)
- The wav files for the menu items are
- cfg_vol.wav
- cfg_dim.wav
- cfg_exit.wav
- They are defined in sound/effect.h
- The fonts that I have used can be downloaded from our website;
- www.art-and-tech.com/download/common.zip
- Example files are;
- config/default_proffieboard_config_singleblade.h
- Prop file
- props/saber_aat_1_button.h (I chose to make separate files for single and double buttons installs). I mostly do single button installs on sabers, except for double bladed sabers or on request.
- Currently I use these button functionality;
- // 1 Button:
- // Activate - short click while OFF
- // Activate Muted - fast double click while OFF
- // Turn off blade - hold and wait till blade is off while ON
- // Clash - hit anything with the blade while ON
- // Lockup - hold + hit clash while ON pointing the blade tip up
- // Drag - hold + hit clash while ON pointing the blade tip down
- // Stab - holding blade horizontal push and clash onto hard surface and hold there while ON
- // Melt - Hold button and holding blade horizontal push and clash onto hard surface and hold there while ON
- // Blaster Blocks - short click while ON
- // Force Effects - Twist the hilt while ON
- // Lightning block Effects - Hold and Twist the hilt while ON
- // Play/Stop Music - hold and release while OFF
- // Next Preset - Hold and clash while OFF
- // Enter/Exit menu - hold and wait while off/in menu mode
- // Next menu/confirm - short click while in menu mode
- //TWIST
- // Force effect while on
- // revert to first preset while OFF
- // Color Change mode - Twist hilt while in Colorchange mode to change blade color (full 360 degree turn)
- // Volume Change mode - Twist hilt while in Volumechange mode to increase or decrease volume (+/- 90 degrees)
- // Dim Change mode - Twist hilt while in Dim mode to increase or decrease brightness off blade (+/- 90 degrees)
- When Upgrading I noticed that the EVENT_SWING is no longer default available, but needs to be explicit called in the prop file in the Loop() override function.
- At first, with only the DetectTwist() function in the Loop() function defined, the styles with WavLen<> defined would freeze after preon was over.
- Only when PropBase::Loop() was added, I was able to use the styles with WavLen<> again. SO this might indicate that there have been changes effecting the way WavLen<> behaves in OS 5.7
- Still investigating a little further and also working on improved version of WavLen<>
- I assume you are going to make your own blend. In the commit message on github you can find all the modified files to get this menu working.
Advertisement
Add Comment
Please, Sign In to add comment