Dev/jpsnyder/debug/led

- Cleaned up sprite implementation and fixed some bugs.
- Implemented line function in C instead of python.
- added a "tests" folder and the ability to run these tests by calling "setup.py test" in the terminal

I was getting issues with floating point numbers with your algorithm and
casting to an int would be less elegant because you never know if its going
to round up or down.

Jonathan Snyder
(240) 328-7894



On Wed, Jul 9, 2014 at 6:38 PM, scottsilverlabs <notifications@github.com>
wrote:

> In rstem/led2/led_driver.c:
>
> > @@ -112,6 +133,28 @@ int fill(unsigned int color){
> >
> >  int line(int x1, int y1, int x2, int y2, unsigned int color){
> >      // TODO: if the python version isn't fast enough
> > +
>
> For that performance difference, I'd rather stick with Python. Interesting
> your comment about floating point numbers - why do you say that? It should
> be using whatever type the user passed in, which has to be integers or
> point() will throw an exception.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/scottsilverlabs/raspberrystem/pull/28/files#r14740779>
> .
>