-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! This is an example of how to read the Wii system settings using Luma. | ||
#![no_std] | ||
|
||
extern crate alloc; | ||
extern crate luma_core; | ||
extern crate luma_runtime; | ||
|
||
use core::fmt::Write; | ||
use luma_core::println; | ||
use luma_core::sysconf; | ||
|
||
fn main() { | ||
let sysconf = sysconf::read_and_parse().unwrap(); | ||
println!("Aspect ratio {:?}", sysconf.aspect_ratio()); | ||
println!("{:?}", sysconf.refresh_rate()); | ||
println!("{:?}", sysconf.progressive()); | ||
|
||
loop {} | ||
} |