Rev 1239 | Rev 1245 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1239 | Rev 1244 | ||
|---|---|---|---|
| Line 635... | Line 635... | ||
| 635 | 635 | ||
| 636 | this.myInterval.start(); |
636 | this.myInterval.start(); |
| 637 | 637 | ||
| 638 | this.timerUpdate(); |
638 | this.timerUpdate(); |
| 639 | } |
639 | } |
| - | 640 | } |
|
| - | 641 | ||
| - | 642 | Display.prototype.setLEDred = function() |
|
| - | 643 | { |
|
| - | 644 | this.setLED(255, 0, 0); |
|
| - | 645 | } |
|
| - | 646 | ||
| - | 647 | Display.prototype.setLEDgreen = function() |
|
| - | 648 | { |
|
| - | 649 | this.setLED(0, 255, 0); |
|
| 640 | } |
650 | } |
| 641 | 651 | ||
| 642 | Display.prototype.setLED = function(red, green, blue) |
652 | Display.prototype.setLED = function(red, green, blue) |
| 643 | { |
653 | { |
| - | 654 | if (this.mySoftPwmService.isOnline()) |
|
| 644 | 655 | { |
|
| - | 656 | this.mySoftPwmService.setPWMValue(255-(red&0xff), 1); |
|
| - | 657 | this.mySoftPwmService.setPWMValue(255-(green&0xff), 2); |
|
| - | 658 | this.mySoftPwmService.setPWMValue(255-(blue&0xff), 0); |
|
| - | 659 | } |
|
| 645 | } |
660 | } |
| 646 | 661 | ||
| 647 | Display.prototype.sendTimeStamp = function() |
662 | Display.prototype.sendTimeStamp = function() |
| 648 | { |
663 | { |
| 649 | var canMessage = new CanNMTMessage("nmt", "Time"); |
664 | var canMessage = new CanNMTMessage("nmt", "Time"); |
| Line 653... | Line 668... | ||
| 653 | Display.prototype.timerUpdate = function() |
668 | Display.prototype.timerUpdate = function() |
| 654 | { |
669 | { |
| 655 | /* If LCD service is not online do nothing */ |
670 | /* If LCD service is not online do nothing */ |
| 656 | if (this.myLCDService.isOnline()) |
671 | if (this.myLCDService.isOnline()) |
| 657 | { |
672 | { |
| - | 673 | //this.setLEDgreen(); |
|
| 658 | this.screenSaverCnt++; |
674 | this.screenSaverCnt++; |
| 659 | this.mainScreenCnt++; |
675 | this.mainScreenCnt++; |
| 660 | this.exchangeUpdateCnt++; |
676 | this.exchangeUpdateCnt++; |
| 661 | 677 | ||
| 662 | if (this.mainScreenCnt > mainScreenTimeout/5) |
678 | if (this.mainScreenCnt > mainScreenTimeout/5) |
| 663 | { |
679 | { |
| - | 680 | //this.setLEDred(); |
|
| 664 | /* Go to main screen (time) */ |
681 | /* Go to main screen (time) */ |
| 665 | this.currentMenuItem = this.statusMenuItem; |
682 | this.currentMenuItem = this.statusMenuItem; |
| 666 | 683 | ||
| 667 | /* update the info on display */ |
684 | /* update the info on display */ |
| 668 | this.updateDisplay(); |
685 | this.updateDisplay(); |
| Line 680... | Line 697... | ||
| 680 | { |
697 | { |
| 681 | /* update the info on display */ |
698 | /* update the info on display */ |
| 682 | this.updateDisplay(); |
699 | this.updateDisplay(); |
| 683 | 700 | ||
| 684 | /* do an exchange lookup */ |
701 | /* do an exchange lookup */ |
| 685 |
|
702 | // this.exchangeCalendar.lookup(this.shortName); |
| 686 | 703 | ||
| 687 | this.exchangeUpdateCnt = 0; |
704 | this.exchangeUpdateCnt = 0; |
| 688 | } |
705 | } |
| 689 | 706 | ||
| 690 | } |
707 | } |