MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / set_scaling

Method set_scaling

fl16-inputmodules/src/fl16.rs:660–662  ·  view source on GitHub ↗

TODO: Maybe make this private and set it once in the constructor

(&mut self, scale: u8)

Source from the content-addressed store, hash-verified

658
659 // TODO: Maybe make this private and set it once in the constructor
660 pub fn set_scaling(&mut self, scale: u8) -> Result<(), I2cError> {
661 self.device.set_scaling(scale)
662 }
663
664 pub fn new(i2c: I2C, calc_pixel: fn(x: u8, y: u8) -> (u8, u8)) -> LedMatrix<I2C> {
665 LedMatrix {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected