MCPcopy Create free account

hub / github.com/QuinnFreedman/modular / functions

Functions628 in github.com/QuinnFreedman/modular

↓ 228 callersFunctioninches
Returns n inches in mm
faceplate_maker.py:70
↓ 162 callersMethodadd
(self, component)
faceplate_maker.py:234
↓ 63 callersMethodwrite
Writes PWM values for all channels to the device. The values will be latched into the TLC5940's memory at the start of the next PWM cycle. If
modules/RNG/Firmware/src/led_driver.rs:222
↓ 45 callersMethodpush
Push a new element into the buffer, overwriting the oldest.
modules/Lights/Firmware/src/ringbuffer.rs:24
↓ 34 callersMethodget
(&self, i: u8)
modules/Quantizer/Firmware/src/bitvec.rs:12
↓ 29 callersMethodrotated
(self, point)
faceplate_maker.py:1481
↓ 23 callersMethodassert_ok
if debug-assertions are enabled, will do a checked unwrap and panic if not ok. Otherwise, will do an unsafe unchecked unwrap
fm-lib/src/debug_unwrap.rs:12
↓ 23 callersMethodset_bit
(&mut self, i: u8)
fm-lib/src/bit_ops.rs:10
↓ 20 callersMethoddraw
(self, function)
faceplate_maker.py:272
↓ 20 callersMethodset
(&mut self, i: u8, value: bool)
modules/Quantizer/Firmware/src/bitvec.rs:19
↓ 19 callersMethodwrite
(&mut self, spi: &mut Spi, channel: DacChannel, value: u16)
fm-lib/src/mcp4922.rs:130
↓ 18 callersMethodlen
()
modules/Lights/Firmware/src/ringbuffer.rs:43
↓ 15 callersFunctionunsafe_access_mutex
(f: F)
fm-lib/src/asynchronous.rs:18
↓ 14 callersMethod__init__
(self, x, y, rotation=0, font_size=None, color="red")
faceplate_maker.py:861
↓ 14 callersMethodupdate
(&self, ui_state: u8)
modules/Envelope/Firmware/src/main.rs:418
↓ 13 callersFunctionbuild
(name, output_dir, multiboard_refs=None, manual_pages=1, rp2040=False)
build.py:309
↓ 13 callersMethodinto
(self)
prototypes/rust-oscillator-demo/src/complex_osc.rs:347
↓ 13 callersFunctionlog
(indent, icon, msg, wait=False)
build.py:90
↓ 12 callersMethodfrom_cli
(self, hp, global_y_offset=0, title=None, title_size=5, hide_logo=False, **kwargs)
faceplate_maker.py:325
↓ 12 callersFunctionfrom_polar
(theta, r)
faceplate_maker.py:665
↓ 12 callersMethodlerp
(a, b, t)
prototypes/simplex.py:28
↓ 12 callersMethodsave
(self)
faceplate_maker.py:275
↓ 11 callersFunctionBasicCircle
(offset_x: float, offset_y: float, r: float)
faceplate_maker.py:401
↓ 10 callersMethodnext
(&mut self)
modules/Clock/Firmware/src/random.rs:29
↓ 9 callersFunctionassert_interrupts_disabled
(f: F)
fm-lib/src/asynchronous.rs:38
↓ 9 callersMethodclear_bit
(&mut self, i: u8)
fm-lib/src/bit_ops.rs:15
↓ 9 callersFunctionrandom_grad
(rng: &mut ParallelLfsr)
modules/Drift/Firmware/src/perlin.rs:101
↓ 9 callersFunctionto_snake_case
(text)
build.py:233
↓ 8 callersMethodfast_draw_ascii_text
Drawing text with embedded_graphics requires loading the full font into memory, which there isn't room for in the atmega. Also, it is relatively s
modules/Clock/Firmware/src/display_buffer.rs:214
↓ 8 callersMethodindex
(&self)
modules/Quantizer/Firmware/src/menu.rs:39
↓ 8 callersFunctionrun_command_or_exit_with_error
(command: List[str], **kwargs)
build.py:31
↓ 8 callersFunctionstep_time
(t: &mut u32, cv: u16)
modules/Envelope/Firmware/src/envelope/shared.rs:90
↓ 7 callersMethodfast_fill
( &mut self, x: usize, y: usize, width: usize, height: usize,
modules/Clock/Firmware/src/display_buffer.rs:269
↓ 7 callersMethodget_inner
(&self, cs: CriticalSection<'cs>)
fm-lib/src/asynchronous.rs:86
↓ 7 callersMethodinto
(self)
modules/RNG/Firmware/src/main.rs:123
↓ 7 callersFunctionlerp
(range: impl Into<RangeInclusive<f32>>, t: f32)
prototypes/rust-oscillator-demo/src/utils.rs:91
↓ 7 callersMethodnext_sample
(&mut self, freq: f32, sample_rate: u32)
prototypes/rust-oscillator-demo/src/utils.rs:19
↓ 6 callersMethodblit
Efficiently copy the contents of the buffer to the SSD1306 driver in BasicMode */
modules/Clock/Firmware/src/display_buffer.rs:93
↓ 6 callersMethodclear
(&mut self, color: Self::Color)
modules/Clock/Firmware/src/display_buffer.rs:66
↓ 6 callersMethoddraw_debug
(self, context)
faceplate_maker.py:866
↓ 6 callersMethodget
(&self, index: T)
fm-lib/src/async_adc.rs:77
↓ 6 callersFunctionget_glyph_size_bytes
(glyph_width: u8, glyph_height: u8)
modules/Clock/Firmware/src/font.rs:23
↓ 6 callersFunctionhas_changed_since
(dir, last_commit)
build.py:62
↓ 6 callersFunctionlog_ok
()
build.py:103
↓ 6 callersMethodsample
Should be called continuously in the main loop. Checks if the button is currently pressed and if its state has changed. Returns the debounced
fm-lib/src/button_debouncer.rs:51
↓ 5 callersMethodatomic_read
(&self)
fm-lib/src/asynchronous.rs:119
↓ 5 callersFunctiondraw_line
(p1, p2)
modules/Quantizer/Faceplate/make_quantizer_faceplate.py:12
↓ 5 callersFunctiondraw_text
(text, x, y, **text_props)
modules/Quantizer/Faceplate/make_quantizer_faceplate.py:69
↓ 5 callersMethodget_byte_at
(&mut self, col: usize, page: usize)
modules/Clock/Firmware/src/display_buffer.rs:115
↓ 5 callersFunctionget_font_buffer_size
(glyph_width: u8, glyph_height: u8, charset: CharSet)
modules/Clock/Firmware/src/font.rs:26
↓ 5 callersFunctionhandle_conversion_result
(adc: &AsyncAdc<N, W>)
fm-lib/src/async_adc.rs:184
↓ 5 callersFunctioninit_async_adc
Creates the ADC state struct and stores it as a static global. Also initializes the hardware ADC, enabling free running mode and starting the conversi
fm-lib/src/async_adc.rs:122
↓ 5 callersMethodmillis
(&self)
fm-lib/src/system_clock.rs:141
↓ 4 callersFunctionacrc_segment
(time: &mut u32, raw_cv_len: u16, raw_cv_c: u16, invert: bool)
modules/Envelope/Firmware/src/envelope/acrc.rs:147
↓ 4 callersFunctioncompute_adsr_value
(phase: &mut AdsrState, time: &mut u32, cv: &[u16; 4])
modules/Envelope/Firmware/src/envelope/adsr.rs:55
↓ 4 callersFunctionconcat_u12s
(left: u16, right: u16)
modules/Quantizer/Firmware/src/main.rs:239
↓ 4 callersFunctiondraw_arrows
( top: bool, draw_arrows: bool, display: &mut ssd1306::Ssd1306<DI, SIZE, ssd1306::mode::BasicMode>
modules/Clock/Firmware/src/menu/menu_graphics/submenu.rs:119
↓ 4 callersFunctionexp2_lut
Returns 2^16x by finding the two nearest entries in the lookup table and interpolating between them. */
modules/Envelope/Firmware/src/exponential_curves.rs:29
↓ 4 callersMethodget_all
(&self)
fm-lib/src/async_adc.rs:111
↓ 4 callersFunctionget_center
(circle)
modules/Drift/Faceplate/make_drift_faceplate.py:41
↓ 4 callersMethodinto
(self)
modules/Quantizer/Firmware/src/menu.rs:30
↓ 4 callersMethodprescaler
(&self)
fm-lib/src/system_clock.rs:39
↓ 4 callersFunctionread_cv_signed_fixed
Transforms a raw cv value into a fixed point number between 0 and 1. - Inverts value to compensate for the inverting amplifier in hardware - Shifts va
modules/Envelope/Firmware/src/envelope/shared.rs:61
↓ 4 callersFunctionrender_menu
( menu_state: &MenuOrScreenSaverState, clock_state: &ClockConfig, menu_update: &MenuUpdate, di
modules/Clock/Firmware/src/menu/menu_graphics.rs:19
↓ 4 callersMethodreset
(&mut self)
modules/Clock/Firmware/src/clock.rs:50
↓ 4 callersFunctionunpack
(tup)
modules/Drift/Faceplate/make_drift_faceplate.py:38
↓ 4 callersMethodwrite_channel_attribute
(&mut self, channel: u8, offset: u8, value: u8)
modules/Clock/Firmware/src/eeprom.rs:160
↓ 3 callersMethod__getitem__
(self, index)
prototypes/conv_reverb/dft-conv.py:14
↓ 3 callersMethod_get_hole_locations
(self)
faceplate_maker.py:1514
↓ 3 callersMethodatomic_write
(&self, x: Self::DataType)
fm-lib/src/asynchronous.rs:124
↓ 3 callersFunctionbutton_idx_to_i8
(idx: u8)
modules/Quantizer/Firmware/src/menu.rs:445
↓ 3 callersMethoddraw_chromatic_cap
(self, context, radii, cap_color=None, pointer_color=None)
faceplate_maker.py:1197
↓ 3 callersFunctiondraw_drill_marker
(context, x, y, size=1, stroke_width=.2)
faceplate_maker.py:437
↓ 3 callersFunctiondraw_submenu_item
( index: u8, selected: bool, scroll: u8, editing: EditingState, full_update: bool, cha
modules/Clock/Firmware/src/menu/menu_graphics/submenu.rs:152
↓ 3 callersFunctiondraw_top_level_menu_item
( channel_index: u8, value: i8, state: ChannelStyle, display: &mut ssd1306::Ssd1306<DI, SIZE,
modules/Clock/Firmware/src/menu/menu_graphics/main_page.rs:99
↓ 3 callersFunctiondraw_x
(context, x, y, size=1, stroke_width=.1)
faceplate_maker.py:445
↓ 3 callersMethodfast_draw_image
( &mut self, x: usize, y: usize, img_width: u8, img_height: u8,
modules/Clock/Firmware/src/display_buffer.rs:147
↓ 3 callersMethodflush
(&mut self)
modules/Clock/Firmware/src/eeprom.rs:138
↓ 3 callersFunctionget_delta_t
Gets the time constant for the frequency given by the knob and cv inputs. - `knob` is the raw ADC reading of the knob position [0,1023] scaled as if i
modules/Drift/Firmware/src/shared.rs:59
↓ 3 callersFunctionget_next_selected_note
(notes: &[bool; 12], starting_note: i8, direction: Direction)
modules/Quantizer/Firmware/src/quantizer.rs:307
↓ 3 callersMethodget_selected_algorithm
(&mut self)
prototypes/rust-oscillator-demo/src/main.rs:32
↓ 3 callersFunctionget_u12_payload_size
(num_u16s: usize)
modules/RNG/Firmware/src/led_driver.rs:79
↓ 3 callersFunctionlog_error
()
build.py:109
↓ 3 callersFunctionlog_skip
()
build.py:106
↓ 3 callersFunctionnew_async_adc_state
()
fm-lib/src/async_adc.rs:53
↓ 3 callersFunctionperlin1d
(_x: f32, permutation: &[u8])
modules/Drift/tools/perlin_test/src/main.rs:98
↓ 3 callersFunctionrender_sub_menu_signed
(n: i8)
modules/Quantizer/Firmware/src/menu.rs:517
↓ 3 callersMethodreset_tcnt
(&self)
fm-lib/src/system_clock.rs:226
↓ 3 callersMethodrollover
(&self)
fm-lib/src/system_clock.rs:49
↓ 3 callersFunctionrun_inkscape_command
(*command)
build.py:127
↓ 3 callersMethodsample_and_reset
Returns the total number of detents that the encoder has rotated (positive or negative) since the last time this function was called, then res
fm-lib/src/rotary_encoder.rs:180
↓ 3 callersFunctionsigmoid
(x)
prototypes/folding.py:44
↓ 3 callersMethodstep
(&mut self, frequency: f32, morph: f32, sample_rate: u32)
prototypes/rust-oscillator-demo/src/complex_osc.rs:520
↓ 3 callersMethodtoggle
(&self)
modules/Clock/Firmware/src/menu/menu_state.rs:60
↓ 3 callersFunctionu8_to_str_b10
(buffer: &'a mut [u8], mut n: u8)
modules/Clock/Firmware/src/render_numbers.rs:1
↓ 3 callersFunctionui_show_mode
(state: &EnvelopeMode)
modules/Envelope/Firmware/src/envelope.rs:42
↓ 3 callersFunctionupdate
()
prototypes/simplex.py:91
↓ 3 callersFunctionupdate
()
prototypes/folding.py:78
↓ 3 callersMethodwrite_keep_cs_pin_low
_Almost_ writes the data to the DAC, but stops just before releasing the chip select. If LDAC is held low (double-buffering disabled) then the val
fm-lib/src/mcp4922.rs:102
↓ 2 callersMethod_wrap_index
(self, i)
prototypes/granular.py:28
next →1–100 of 628, ranked by callers