Skip to content

Commit

Permalink
Add example: sprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed Mar 20, 2024
1 parent 480fd8d commit 55e2cfd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/hpc/hello-hpc/examples/sprintln.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#![no_std]
#![no_main]

use headsail_bsp::{rt::entry, sprintln};
use hello_hpc::print_example_name;
use panic_halt as _;

#[entry]
fn main() -> ! {
print_example_name!();
sprintln!("Hello sprintln!");
loop {}
}

0 comments on commit 55e2cfd

Please sign in to comment.