NoSloppy

WavLen 5.7 message

Feb 18th, 2021
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. OS5.7 with WavLen<> and scroll-menu is on github;
  2.  
  3. wavlen_scrollmenu_OS-57
  4.  
  5. It also includes some new serial commands;
  6.  
  7. dim 75 -> sets dimblade to 75% (min=0 max = 100, only full integers)
  8. get_dim -> show current value of dim percenatge of blade (manly used to inform WebApp v2)
  9. get_var -> shows current value of Variation (manly used to inform WebApp v2)
  10.  
  11. The wav files for the menu items are
  12.  
  13. cfg_vol.wav
  14. cfg_dim.wav
  15. cfg_exit.wav
  16.  
  17. They are defined in sound/effect.h
  18.  
  19. The fonts that I have used can be downloaded from our website;
  20.  
  21. www.art-and-tech.com/download/common.zip
  22.  
  23. Example files are;
  24.  
  25. config/default_proffieboard_config_singleblade.h
  26.  
  27. Prop file
  28.  
  29. 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.
  30.  
  31. Currently I use these button functionality;
  32.  
  33. // 1 Button:
  34. // Activate - short click while OFF
  35. // Activate Muted - fast double click while OFF
  36. // Turn off blade - hold and wait till blade is off while ON
  37. // Clash - hit anything with the blade while ON
  38. // Lockup - hold + hit clash while ON pointing the blade tip up
  39. // Drag - hold + hit clash while ON pointing the blade tip down
  40. // Stab - holding blade horizontal push and clash onto hard surface and hold there while ON
  41. // Melt - Hold button and holding blade horizontal push and clash onto hard surface and hold there while ON
  42. // Blaster Blocks - short click while ON
  43. // Force Effects - Twist the hilt while ON
  44. // Lightning block Effects - Hold and Twist the hilt while ON
  45.  
  46. // Play/Stop Music - hold and release while OFF
  47. // Next Preset - Hold and clash while OFF
  48. // Enter/Exit menu - hold and wait while off/in menu mode
  49. // Next menu/confirm - short click while in menu mode
  50.  
  51. //TWIST
  52. // Force effect while on
  53. // revert to first preset while OFF
  54. // Color Change mode - Twist hilt while in Colorchange mode to change blade color (full 360 degree turn)
  55. // Volume Change mode - Twist hilt while in Volumechange mode to increase or decrease volume (+/- 90 degrees)
  56. // Dim Change mode - Twist hilt while in Dim mode to increase or decrease brightness off blade (+/- 90 degrees)
  57.  
  58.  
  59. 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.
  60. At first, with only the DetectTwist() function in the Loop() function defined, the styles with WavLen<> defined would freeze after preon was over.
  61. 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
  62.  
  63. Still investigating a little further and also working on improved version of WavLen<>
  64.  
  65. 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