Reversed bit ordering to make more sense
This commit is contained in:
@@ -7,6 +7,7 @@ public start:
|
||||
|
||||
.wrap_target
|
||||
PULL noblock
|
||||
OUT NULL, 16
|
||||
|
||||
SET Y,6
|
||||
loop:
|
||||
@@ -19,7 +20,7 @@ loop:
|
||||
OUT PINS,1 [14]
|
||||
SET PINS,0 [14]
|
||||
OUT PINS,1 [14]
|
||||
SET PINS,0 [12]
|
||||
SET PINS,0 [11]
|
||||
|
||||
.wrap
|
||||
|
||||
@@ -30,6 +31,8 @@ static inline void datastream_program_init(PIO pio, uint sm, uint offset) {
|
||||
pio_gpio_init(pio, 12);
|
||||
pio_sm_set_consecutive_pindirs(pio, sm, 12, 1, true);
|
||||
pio_sm_config c = datastream_program_get_default_config(offset);
|
||||
sm_config_set_out_shift(&c, false, false, 0);
|
||||
sm_config_set_fifo_join(&c, PIO_FIFO_JOIN_TX);
|
||||
sm_config_set_clkdiv(&c, 1.0);
|
||||
sm_config_set_out_pin_base(&c, 12);
|
||||
sm_config_set_out_pin_count(&c, 1);
|
||||
|
||||
Reference in New Issue
Block a user