# Best way to map letter with LED's inside

**URL:** <https://forum.electromage.com/t/best-way-to-map-letter-with-leds-inside/3734>\
**Category:** Patterns and Code\
**Created:** [August 30, 2024, 7:13pm UTC](https://forum.electromage.com/t/best-way-to-map-letter-with-leds-inside/3734 "2024-08-30T19:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![allen00se](https://forum.electromage.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@allen00se](https://forum.electromage.com/u/allen00se)\
**Post date:** [August 30, 2024, 7:13pm UTC](https://forum.electromage.com/t/best-way-to-map-letter-with-leds-inside/3734/1 "2024-08-30T19:13:12Z")

</div>

Hello,  
I have some shadow box 3d letters that I am planning to run LED’s down the center of, what is the best way to map/code these so that I can activate the letters individually, but also run patterns on the entire word?  
My crude image shows where I plan to place the LEDs inside the letters.  
 ![Screenshot 2024-08-30 140850](https://forum.electromage.com/uploads/default/original/2X/2/270a997b4292d0ab15ed1284e893a993c6739246.png)

---

<div class="post-metadata">

**Author:** ![maumau](https://forum.electromage.com/user_avatar/forum.electromage.com/maumau/32/3384_2.png) [@maumau](https://forum.electromage.com/u/maumau)\
**Post date:** [September 5, 2024, 6:08pm UTC](https://forum.electromage.com/t/best-way-to-map-letter-with-leds-inside/3734/2 "2024-09-05T18:08:17Z")

</div>

From what I see you probably don’t need to even use the mapper and just write functions for each letter and use your timing logic to call as needed.

function letterA(index) {  
if (index \>= 10 && index \<= 20) {  
// do something  
}  
}

function fullWord(index) {  
letterI(index);  
letterA(index);  
letterH(index);  
}

export function render(index) {  
// Use your timing logic to determine when to display letters  
letterA()

}
