View Single Post
Posts: 254 | Thanked: 509 times | Joined on Nov 2011 @ Canada
#45
I now have an MCE compiled that adds the ability to have three engine patterns. I used the ideas discussed here with Joerg. At this point here's what it does:

- Simply turns off the keypad instead of fading it out.

- Looks for a section in the MCE file called [LEDPatternLystiRX51-3Engine] and will use the patterns there if found. If not, it will use the old 2-engine patterns from [LEDPatternLystiRX51] instead.

- If using the 3 engine patterns, maps the LEDs to engines based on three numbers corresponding to RGB (keyboard LEDs not yet implemented.) An extra field is added at the end for the pattern to load to engine 3.

These are the default patterns to work with the 3engine MCE:

Code:
[LEDPatternLystiRX51-3Engine]
PatternError=0;5;0;100;9d8040007f007f0040ff7f007f000000;9d800000;9d800000
PatternDeviceOn=254;0;0;111;9d804000422043207f100000;9d800000;9d800000
PatternDeviceSoftOff=253;0;0;110;9d804000423f433f7f100000;9d800000;9d800000
PatternPowerOn=9;3;0;111;9d80400042ff02ffc000;9d800000;9d800000
PatternPowerOff=10;3;0;111;9d80400001ff43ff7f007f00c000;9d800000;9d800000
PatternCommunicationCall=30;1;0;001;9d80400002ff03ff02ff03ff71080000;9d800000;9d
800000
PatternCommunicationIM=30;1;0;001;9d80400002ff03ff02ff03ff71080000;9d800000;9d800000
PatternCommunicationSMS=30;1;0;001;9d80400002ff03ff02ff03ff71080000;9d800000;9d800000
PatternCommunicationEmail=30;1;0;001;9d80400002ff03ff02ff03ff71080000;9d800000;9d800000
PatternCommonNotification=30;1;0;001;9d80400002ff03ff02ff03ff71080000;9d800000;9d800000
PatternWebcamActive=20;1;0;100;9d80400004ffc0000000;9d800000;9d800000
PatternBatteryCharging=50;4;0;110;9d804000427f0d7f7f007f0042000000;9d800000;9d800000
PatternBatteryFull=40;4;0;010;9d80407f0000;9d800000;9d800000
Things I still would like to do:
- add the ability to control keyboard LEDs to the patterns (by simply extending the LEDsToMap field by 6 digits). I'm not sure whether this will be used or not, but might as well add the functionality. I'm concerned that the normal keyboard LED control might interfere with the keyboard LED control by the engines. Need to test this.
- add the fadeout time back into keyboard.c

Last edited by shawnjefferson; 2014-02-01 at 19:44.
 

The Following 6 Users Say Thank You to shawnjefferson For This Useful Post: