Changing the colours for the MultiLED Display-Module

IDE/FlashROM/RTC/RAM expansion boards for 260/520/1040ST(FM), MegaST and 520/1040STE
Post Reply
User avatar
Administrator
Site Admin
Posts: 41
Joined: 03 Jan 2016 17:23
Contact:

Changing the colours for the MultiLED Display-Module

Post by Administrator »

A short introduction about the MultiLED (red, green, blue, yellow LED) module and its colour settings.

The colours are not fix! You can modify them to your preferred settings but you need to change some values of the Atmel 2313A AVR microcontroller's EEPROM.
The display module can support up to eight TOS slots but for the STE only four are available. The EEPROM's space is divided into two sections:
  • ring-buffer to store the last selected slot
  • colour settings
This is a visual of the EEPROM's memory map:
DisplayMultiLED_EEPROM.gif
Do NOT alter the values framed in grey, i.e. memory locations $0..$4F and $60..$6F. These are the ring buffer ($00..$4F) and reserved area for Slot No.5..8 and you may destroy important settings.
Then you will recognise that the coloured frames represent four bytes each. The left-most byte is the setting for the red LEDs, next for green, then blue and lastely yellow LEDs. A value of $FF means that the LEDs of that particular colour shall be switched on, while $00 switches them off.
As you can see the Slot No.1 setting only switches on the red LEDs and so on to Slot No.4 which illuminates yellow LEDs only.
The next 16 bytes running from $60 to $6F (again framed in grey) are for Slot No.5 to Slot No.8 which aren't supported on SmartBoard STE. Leave them alone.
Then we have bytes:
  • $70..$73: these (red and blue in this example) light up whenever you press DEL or BACKSPACE key while the module is in the armed state. It will reset the ring-buffer to its default state, i.e. Slot No.1 is selected.
  • $74..$77: while flashing the FlashROMs you will see that the red LEDs will flash, i.e. the red LEDs are on for about 500ms then off for about 500ms. These four bytes represent the first phase of the visual flashing
  • $78..$7B: this is the colour code that indicates the armed phase (red and blue here)
  • $7C..$7F: these represent the colour coding for the second phase of the visual flashing and make up a pair with the colour coding at $74..$77. You can see that all LEDs are switched off.
But before you start changing the values I highly recommend that you make a backup of the AVR's internal Flash and EEPROM. And make sure that you do not alter the content of the AVR's FlashROM instead of the EEPROM.

There isn't much space in the AVR's FlashROM anymore but I would like to implement a firmware version that dims the LEDs i.e. that values $00, $01, .., $FE, $FF will represent the brightness of the LEDs.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest