Skip to content

Conversation

@sbliven
Copy link

@sbliven sbliven commented Nov 14, 2012

I've made a number of minor changes and improvements to the code which you might be interested in. They shouldn't result in any functional changes. However, my own LED matrix is rigged differently from yours so I'm not able to test the changes definitively.

Changes include:

  • (Biggest functional change) Use an additional byte to store the brightness in the linked list. I needed more than 16 wires, so the neat byte-stuffing trick no longer worked.
  • Added a README
  • Definitions in mappings.h are actually used to define the wire to LED mappings.
  • As an alternative to defining each LED individually, you can define a whole spire at once.
  • Fixed bug in definition of O ("off")

@AsherGlick
Copy link
Owner

After a quick test this code seems to break a couple functions, as in they no longer show up at all. After I get some free time I will look into this problem. I quite like what you did with the led mappings though, it is much more convenient. The default animations that no longer display are chaseTheDot() and fountian()

@sbliven
Copy link
Author

sbliven commented Nov 18, 2012

It seems my pull request was premature. I was seeing some bugs too, but figured they were from my development branch, which uses different mappings. If you have time to test it on your working hardware, try reverting #f9c8575 in case I screwed up the bit mangling.

Added keywords.txt for syntax highlighting.
Moved charlieCube.ino to the examples subfolder
@sbliven
Copy link
Author

sbliven commented Dec 23, 2012

OK, I now have working hardware and I'm also seeing problems with chaseTheDot and fountain. It seems to be a problem with the drawLed function–I'll try to debug it over Christmas.

Now uses PWMMMAX for full brightness, rather than 8 (right) and 255 (wrong) inconsistently.

(cherry picked from commit c4a902b)
@sbliven
Copy link
Author

sbliven commented Jan 3, 2013

The problem was with some functions using a default brightness of 255 and some of 8. The current code uses 8-phase PWM for brightness, so I just changed everything to default to PWMMMAX (btw, extra M there?).

Hopefully this will work with your hardware configuration. My 20-pin Charliecube is working great driven by an Arduino Mega.

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