MotoHawk:Blocks:Print String

From MotoHawk
Jump to navigationJump to search

Print String

This MotoHawk™ block provides standard sprintf() functionality for formatting a string.

Note: This block is only supported on 48, 80, and 128 pin modules. On other targets, using this block in your model will result in a build error.

Block ID

motohawk_print_string

Library

MotoHawk_lib/Extra Development Blocks

Description

Print String.PNG

After formatting the string, it calls the 'trigger' output for each character, after setting the 'character' output to the corresponding uint8 ASCII value. This block can be directly connected to the Serial Transmit block.

Block Parameters

Parameter Field Values Comments/Description
Number of Variables Numeric The number of variables that appear in the format string. Format String: The format string used to generate the output string
Format String Alpha-numeric text

May contain the standard sprintf() formats: %d, %h, %s, %f, etc.

Evaluate Format String Check box (enable) Enable evaluation of Format.