AaronLiddiment / RGBLEDS

Matrix, Text & Sprite libraries for use with FastLED
68 stars 28 forks source link

Drawline issue with arduino #14

Open jubersoudagar opened 6 years ago

jubersoudagar commented 6 years ago

Hey.. I'm struggling to get DrawLine to do what I'd expect, even when using your example code. No matter what values I put in as x0, y0, x1, y1, my line is either vertical on x=0 or horizontal on y=0.

AaronLiddiment commented 6 years ago

I believe this is a problem I fixed a long time ago when I separated out each class. I'm not sure why people keep using the combined repository, if you click on my name near the top of the page it will show you my other repositories. You will see that each class has it's own, these are the later ones with several corrections applied to them and each has a Wiki. The problem you are having is to do with the coordinates being changed to uint32's when calculating the slope of the line and effectively using 16 bit fractions. In the RGBLEDS release I was not casting explicitly. This is corrected in this repository: https://github.com/AaronLiddiment/LEDMatrix

jubersoudagar commented 6 years ago

thanks ..... this is working properly.... I need 1 more help ... Now I want create fastled and fastled matrix programs on pic controller ...... So how I should start ?

On Mon, Aug 13, 2018 at 4:49 AM, Aaron Liddiment notifications@github.com wrote:

I believe this is a problem I fixed a long time ago when I separated out each class. I'm not sure why people keep using the combined repository, if you click on my name near the top of the page it will show you my other repositories. You will see that each class has it's own, these are the later ones with several corrections applied to them and each has a Wiki. The problem you are having is to do with the coordinates being changed to uint32's when calculating the slope of the line and effectively using 16 bit fractions. In the RGBLEDS release I was not casting explicitly. This is corrected in this repository: https://github.com/AaronLiddiment/LEDMatrix

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AaronLiddiment/RGBLEDS/issues/14#issuecomment-412492373, or mute the thread https://github.com/notifications/unsubscribe-auth/AoXN46WvCSnuSo4k5TsOCmCtvt4CryDLks5uQWfEgaJpZM4V6TET .

jubersoudagar commented 5 years ago

I want to drive 1000 pixels using arduino uno...... What should I do???? Plzz help

lawes666 commented 5 years ago

Don't use a uno ... not enough memory