padme_core/default.rs
1use crate::{AudioSpeaker, Pixel, Screen, SerialOutput};
2
3pub struct NoScreen;
4
5impl Screen for NoScreen {
6 fn set_pixel(&mut self, _px: &Pixel, _x: u8, _y: u8) {
7 }
8
9 fn update(&mut self) {
10 }
11}
12
13pub struct NoSpeaker;
14
15impl AudioSpeaker for NoSpeaker {
16 fn set_samples(&mut self, _left: f32, _right: f32) {
17 }
18}
19
20pub struct NoSerial;
21
22impl SerialOutput for NoSerial {
23 fn putchar(&mut self, _ch: u8) {
24 }
25}