Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intensity not taken into account in pwm_set_gpio_level #4

Open
lorenpelli opened this issue Mar 20, 2023 · 1 comment
Open

Intensity not taken into account in pwm_set_gpio_level #4

lorenpelli opened this issue Mar 20, 2023 · 1 comment

Comments

@lorenpelli
Copy link

lorenpelli commented Mar 20, 2023

When setting the level of the LED in pwm_set_gpio_level, it always goes to the maximum intensity (duty cycle at 100%). I suspect that pwm_set_gpio_level should receive (char*) instead of (uint8_t) because changing the type in main.c on the RP2040 fixes the issue for me.

For example, I use the command:
i2cset -y 1 0x30 0 0xC0

It's the same behavior using the "pio run led_intensity --A 75" command.

Let me know if I'm doing something wrong.
Thanks!

@CamDavidsonPilon
Copy link
Member

Hi @lorenpelli, I totally missed this! Sorry about that!

Are you still seeing this issue? I'll investigate asap too.

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

No branches or pull requests

2 participants