Hello world/Text: Difference between revisions

Content added Content deleted
(Add Refal)
imported>Yorecode
(First Hopper sample, hello on an MCU is blinkenlights and message on a serial monitor)
Line 2,099: Line 2,099:
=={{header|Hoon}}==
=={{header|Hoon}}==
<syntaxhighlight lang="hoon">~& "Hello world!" ~</syntaxhighlight>
<syntaxhighlight lang="hoon">~& "Hello world!" ~</syntaxhighlight>

=={{header|Hopper}}==
<syntaxhighlight lang="csharp">program Hello
{
#define RP2040

uses "/Source/System/MCU"

{
WriteLn("Hello world!");
for (uint i = 0; i < 10; i++)
{
LED = true;
Delay(500);
LED = false;
Delay(500);
}
}
}</syntaxhighlight>

{{out}}
In IDE, build hello.hs into hello.hexe, (press F7) and start debug (F5) or hm console monitor.
<pre>!> hello
Hello world!
</pre> shows up on monitor console and the on board LED will blink on and off at 1/2 second intervals, 10 times.


=={{header|HPPPL}}==
=={{header|HPPPL}}==