Microsoft MakeCode

Screenmagic

namespace screenMagic {

/**

 * Plot at LEDs for index

 */

//% blockId="screenmagicplotat"

//% block="Plot At $index"

//% index.min=0 index.max=25

export function plotAt(index: number): void{

    index| 0

    const y = Math.floor(index / 5);

    const x = Math.floor(index % 5);

    led.plot(x, y)

}

}

namespace screenMagic {

/**

 * Plot toggle LEDs for index

 */

//% blockId="screenmagicplottoggle"

//% block="Plot Toggle $index"

//% index.min=0 index.max=25

export function plotToggle(index: number): void{

    index| 0

    const x = Math.floor(index % 5);

    const y = Math.floor(index / 5);

    led.toggle(x, y)

}

}

Is there something wrong with this, or are you just showcasing your code?