Skip to content

Add rainbow effect to led strip #12323

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

Merged
merged 3 commits into from
Mar 16, 2023
Merged

Conversation

ASDosjani
Copy link
Contributor

@ASDosjani ASDosjani commented Feb 6, 2023

This PR adds rainbow effect to the led strip overlays, based on #6840.

Configurator changes: #3322

For testing please use cloud building.

@github-actions

This comment has been minimized.

@blckmn
Copy link
Member

blckmn commented Feb 6, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> PASS
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> FAIL
  • assigned to an approver -> FAIL
  • approver count at least three -> PASS

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@betaflight-admin
Copy link

ASDosjani#8597 (Discord) commented:
test comment

@freasy
Copy link
Member

freasy commented Feb 16, 2023

un!t#6860 (Discord) commented:
test from un!t

@freasy
Copy link
Member

freasy commented Feb 16, 2023

un!t#6860 (Discord) commented:
last test, sorry!

@github-actions

This comment has been minimized.

@betaflight-admin
Copy link

un!t#6860 (Discord) commented:
Tested with provided hex and configurator build.
Working as expected.

@betaflight-admin
Copy link

sugar K#0936 (Discord) commented:
tested works real nice

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@haslinghuis
Copy link
Member

We need to increment PG version (io/ledstrip.c):

PG_REGISTER_WITH_RESET_FN(ledStripConfig_t, ledStripConfig, PG_LED_STRIP_CONFIG, 2);

@haslinghuis
Copy link
Member

@TheIsotopes are you able to test?

@ASDosjani
Copy link
Contributor Author

Should I just increment 2 to 3?
Can you make a code suggestion?

@TheIsotopes
Copy link
Contributor

are you able to test?

@haslinghuis imo all looks good
Larson Scanner with rainbow effect ... I think it works as it should.

currently there is still a problem with a default value:

# get ledstrip_rainbow_freq
ledstrip_rainbow_freq = 75
Allowed range: 1 - 200
Default value: 0
###ERROR IN get: CORRUPTED CONFIG: ledstrip_rainbow_freq = 0###

Comment on lines +186 to +187
uint8_t ledstrip_rainbow_delta;
uint8_t ledstrip_rainbow_freq;
Copy link
Member

Choose a reason for hiding this comment

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

Add and initialize in io/ledstrip.c in pgResetFn_ledStripConfig``

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks, I didn't know how to set up default values.

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Do you want to test this code? Here you have an automated build:
Assets
WARNING: It may be unstable. Use only for testing! See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions for unified targets!

@ASDosjani ASDosjani requested a review from haslinghuis March 1, 2023 21:14
@haslinghuis
Copy link
Member

@TheIsotopes should be fixed now.

@TheIsotopes
Copy link
Contributor

@haslinghuis it's fixed.

@haslinghuis haslinghuis merged commit 7735a71 into betaflight:master Mar 16, 2023
davidbitton pushed a commit to davidbitton/betaflight that referenced this pull request Feb 5, 2024
* Add rainbow effect

* unit test

* default values + version change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

7 participants