Skip to content

Added support for I2C power control during boot2 phase#150

Merged
hathach merged 5 commits into
adafruit:masterfrom
skieast:espressif_hmi_v1.1_neopixel_boot2
Sep 24, 2021
Merged

Added support for I2C power control during boot2 phase#150
hathach merged 5 commits into
adafruit:masterfrom
skieast:espressif_hmi_v1.1_neopixel_boot2

Conversation

@skieast
Copy link
Copy Markdown
Contributor

@skieast skieast commented Sep 20, 2021

Added support for I2C TCA9554 peripheral power control during the boot2 phase.
Uses software I2C.
Made a small change to the neopixel reset timing (increased to 1000usec) as it seems to be needed on this board.
I tested this timing with another neopixel equipped board (Gravitech Cucumber) and it worked.

@skieast
Copy link
Copy Markdown
Contributor Author

skieast commented Sep 22, 2021

image

Initializing the TCA9554 using software I2C

static void board_led_off(void)
{
#ifdef NEOPIXEL_PIN
delay_cycle( ns2cycle(1000*1000) ) ;
Copy link
Copy Markdown
Member

@hathach hathach Sep 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any reason that you move the delay before the neopixel off ? would the pixel is off when the delay is as it is ? Otherwise please move it back to its original location.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait until you have pushed whatever changes you have made. You are correct in that it works either way and should be after. This is a remnant from trying to eliminate what I thought was a problem. Thanks

Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made some changes to the PR, but couldn't push it to your fork to update this PR due to permission. Please set your fork to allow maintainer to have write permission, or simply grant me write permission

@skieast
Copy link
Copy Markdown
Contributor Author

skieast commented Sep 23, 2021

I have made some changes to the PR, but couldn't push it to your fork to update this PR due to permission. Please set your fork to allow maintainer to have write permission, or simply grant me write permission

I have invited you as a collaborator on my fork. Hopefully this is what you are asking for. Thanks for looking at the PR

@hathach
Copy link
Copy Markdown
Member

hathach commented Sep 23, 2021

I have made some changes to the PR, but couldn't push it to your fork to update this PR due to permission. Please set your fork to allow maintainer to have write permission, or simply grant me write permission

I have invited you as a collaborator on my fork. Hopefully this is what you are asking for. Thanks for looking at the PR

thanks for the invitation, actually, I just fiugred out I made an typo in the push command previously. Anyway, I pushed the changes, mostly some format clean up along with the macro for NEOPIXEL_RESET_DELAY set to 1000 us for using gpio expander, 200us for existing boards.

Comment on lines 537 to 539
delay_cycle( NEOPIXEL_RESET_DELAY ) ;

// Neopixel reset time
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the delay should be below its comment. But I push update for this change already.

Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR, everything look perfect now. Will merge when ci is passed.

@hathach hathach merged commit 366a390 into adafruit:master Sep 24, 2021
@skieast skieast deleted the espressif_hmi_v1.1_neopixel_boot2 branch September 24, 2021 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants