You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ASYD/ASYD_Safety/Ada_Microbit/examples/MicroBit/text_scrolling
Jonas Arnold 06f2ea67ee added ADA microbit sample code 3 years ago
..
src added ADA microbit sample code 3 years ago
README.md added ADA microbit sample code 3 years ago
text_scrolling.gpr added ADA microbit sample code 3 years ago

README.md

Text Scrolling Example

In this example we will see how to display text on the LED matrix of the micro:bit.

Code

To display text on the LED matrix, we will use the procedure Display of the MicroBit.Display package.

   procedure Display (Str : String)
     with Pre => Str'Length <= Scroll_Text_Max_Length;

Arguments:

  • Str : The text to be displayed on the LED matrix

Precondition:

The procedure Display has a precondition that the length of the text cannot be more than Scroll_Text_Max_Length (128 characters).

Here is the code:

with MicroBit.Display;

procedure Main is
begin

   loop
      MicroBit.Display.Display ("Make with Ada!  ");
   end loop;
end Main;