S1-A1 button -> MFS.write

I’m trying to figure out how to display “HI” when the button in the left corner is being pressed (of the Multifunction Shield on my Arduino Uno). I came up with the code bellow. It compiles, but it won’t work like I desire.

Could someone help?

#include <MultiFuncShield.h>

void setup ()
{}
void loop()
{
MFS.initialize();

  if (BUTTON_1_PRESSED)
  {
    MFS.write("HI");
  }
}

but it won't work like I desire.

What does it do ?

This tutorial shows you how to use that shield.

UKHeliBob:
What does it do ?

When I upload the code, the D1 LED is blinking twice. Then nothing happens.

pylon:
This tutorial shows you how to use that shield.

I just saw that page, but it's not corresponding with my case.
"Detecting button presses on the shield" may be useful, but that's another project.

I also noticed that MFS.initialize(); should be written in the setup method.

"Detecting button presses on the shield" may be useful, but that's another project.

So what exactly should your sketch do if not detecting if that button was pressed? That's exactly what you wrote in the first sentence of your first post.