('ω') うんちぶりぶり ちんこ 共同編集できるのくそ便利お それ チーム名適当にFにしといた() 今度からそれでいいなFチームで お前らhackmd使ってた? いや個人で使ってたけど、チームではgoogle drive使ってた ほーん ```rust= use embedded_graphics::{ fonts::*, pixelcolor:: Rgb565, prelude::*, style::*, }; use embedded_graphics_simulator::*; fn main() -> Result<(), core::convert:: Infallible> { // シミュレータディスプレイを作成する let mut display: SimulatorDisplay<Rgb565> = SimulatorDisplay::new(Size::new(320, 240)); let output_settings = OutputSettingsBuilder::new().build(); let mut window = Window::new("hello world", &output_settings); // Text は描画する文字列と、描画開始位置となる左上の点を引数に渡す Text::new("hello world!", Point::new(0, 0)) .into_styled(TextStyle::new(Font12x16, Rgb565::GREEN)) .draw(&mut display)?; window.show_static(&display); Ok(()) } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up