Implement full SSD1306 OLED display support: - Splash screen on boot (1.5s) with project name, version, board - Dashboard showing radio state, config, counters, RSSI/SNR - RSSI history sparkline (64-sample ring buffer, 2px-wide bars) - DisplayOn/DisplayOff host commands routed via dedicated channel - Pure render functions against generic DrawTarget (no hardware coupling) - Display on/off control bypasses radio task entirely Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
426 B
Rust
20 lines
426 B
Rust
#![deny(improper_ctypes, improper_ctypes_definitions)]
|
|
#![allow(clippy::uninlined_format_args)]
|
|
|
|
use anyhow::anyhow;
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn anyhow1(err: anyhow::Error) {
|
|
println!("{:?}", err);
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn anyhow2(err: &mut Option<anyhow::Error>) {
|
|
*err = Some(anyhow!("ffi error"));
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn anyhow3() -> Option<anyhow::Error> {
|
|
Some(anyhow!("ffi error"))
|
|
}
|