Hello world/Text: Difference between revisions

imported>Yorecode
(First Hopper sample, hello on an MCU is blinkenlights and message on a serial monitor)
imported>Yorecode
Line 2,103:
<syntaxhighlight lang="csharp">program Hello
{
uses "/Source/SystemLibrary/MCUBoards/PiPico"
#define RP2040
 
Hopper()
uses "/Source/System/MCU"
 
{
WriteLn("Hello world!");
for (uint i = 0; i < 10; i++)loop
{
LED = true!LED;
Delay(500);
LED = false;
Delay(500);
}
Line 2,123 ⟶ 2,120:
<pre>!> hello
Hello world!
</pre>
</pre> shows up on monitor console and the on board LED will blink on and off at 1/2 second intervals, 10 times.
The language and runtime install verification message shows up on the monitor console. In keeping with most MCU introductions, the onboard Light Emitting Diode (LED) will then blink on and off at 1/2 second intervals, forever; ''(until power runs out, or explicit operator intervention)''.
 
=={{header|HPPPL}}==
Anonymous user