Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 728183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:39:07+00:00 2026-05-14T06:39:07+00:00

I have to do some different views containing 72 LED lights. I built an

  • 0

I have to do some different views containing 72 LED lights. I built an LED Class so I can loop through the LED’s and set them to different colors (Green, Red, Orange, Blue None etc.).
The LED then loads the appropriate .png.

This works fine, I loop over the LED’s and set them.
Now I know that at some time they will need to not just turn on/off change color, but will have to turn on with a small delay. Like an equalizer.

I have a 5-10 views containing the 72 LED’s and I would like to achieve the above with the minimum amount of memory/CPU strain.

for(LED *l in self.ledArray) {

    [l display:Green];
}

I simply loop as shown above and inside the LED is a switch case that does the correct logic.
If this were actual LED’s and a microController I would use sleep(100) or similar in the loop, but I would really like to avoid stuff like that for obvious reasons.

I was thinking that doing a performOnThread withDelay would really be consuming, so would UIView animation changing the alpha and NSOperation would also be a lot of lifting for a small feature.

Is there a both efficient and clever way to go around this?

Thanks for any inspiration given:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:39:08+00:00Added an answer on May 14, 2026 at 6:39 am

    I would definitely use OpenGL!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couchdb database containing different types of documents. Unfortunately some of those
I have an application with multiple views. I can click on different buttons to
How can I keep some values between different Views in MVC 3? I tried
I have some numbers of different length (like 1, 999, 76492, so on) and
I have some folder with different files. I want to use something like this:
If you have some directories from different version control systems (cvs, svn...), how do
I have some 10 buttons with different names each.On selecting each button I need
I have some code in a couple of different functions that looks something like
I have some internal link which shows different content. Everytime I click the internal
I have some unit tests that expects the 'current time' to be different than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.