Skip to content

Instantly share code, notes, and snippets.

@bu5hm4nn
bu5hm4nn / gist:f377cf60397b70c536481280f85a0fda
Created March 9, 2023 04:07
Get glyph width in Rust egui
let char = 'C';
let width = ui.fonts(|f| -> f32 {
f.glyph_width(&TextStyle::Body.resolve(ui.style()), char)
});
@bu5hm4nn
bu5hm4nn / atmega1284p_bootloader.md
Last active December 18, 2022 07:04
Flash Bootloader to Creality Ender 3 Pro (ATMega1284p, Melzi, Sanguino) using a Raspberry Pi only

My raspberry is running Raspbian

  1. Setup avrdude on Raspberry following this guide: http://archive.today/U0WzQ

    The wiring diagram works exactly the same for the Creality Melzi board

    To run the test, replace atmega328p with atmega1284p