generated from sirlilpanda/kicad-project-template-actionless
Added the zig_main project to software for zig based implementation of code for robot
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
pub const led_color_component_format_t = extern union {
|
||||
format: struct_format_layout_15,
|
||||
format_id: u32,
|
||||
};
|
||||
10
software/zig_main/patches/led_strip/led_strip_config_t.zig
Normal file
10
software/zig_main/patches/led_strip/led_strip_config_t.zig
Normal file
@@ -0,0 +1,10 @@
|
||||
pub const led_strip_config_t = extern struct {
|
||||
strip_gpio_num: c_int = 0,
|
||||
max_leds: u32 = 0,
|
||||
led_model: led_model_t = @import("std").mem.zeroes(led_model_t),
|
||||
color_component_format: led_color_component_format_t = @import("std").mem.zeroes(led_color_component_format_t),
|
||||
flags: led_strip_flags = @import("std").mem.zeroes(led_strip_flags),
|
||||
pub const led_strip_new_rmt_device = __root.led_strip_new_rmt_device;
|
||||
pub const led_strip_new_spi_device = __root.led_strip_new_spi_device;
|
||||
pub const device = __root.led_strip_new_rmt_device;
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
pub const led_strip_rmt_config_t = extern struct {
|
||||
clk_src: rmt_clock_source_t = @import("std").mem.zeroes(rmt_clock_source_t),
|
||||
resolution_hz: u32 = 0,
|
||||
mem_block_symbols: usize = 0,
|
||||
flags: led_strip_flags = @import("std").mem.zeroes(led_strip_flags),
|
||||
};
|
||||
|
||||
const led_strip_flags = extern struct {
|
||||
invert_out: u32,
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
pub const struct_led_strip_rmt_extra_config_20 = extern struct {
|
||||
with_dma: u32 = 0,
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
pub const struct_format_layout_15 = extern struct {
|
||||
r_pos: u32 = 0,
|
||||
g_pos: u32 = 0,
|
||||
b_pos: u32 = 0,
|
||||
w_pos: u32 = 0,
|
||||
reserved: u32 = 0,
|
||||
bytes_per_color: u32 = 0,
|
||||
num_components: u32 = 0,
|
||||
};
|
||||
Reference in New Issue
Block a user