Ok So this is a strange one.
In my little test program If I disable the C icon the ws2811 component stops working!? Re Enable it works fine.
edit* Ok so if I // some c code it also breaks the ws2811 component. Something going on with comments.
edit, edit: you have to initialize the ws2811 first, then things work.
Buggy,buggy!
Chad
FOund a weird one! Disable C Icon breaks component.
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: FOund a weird one! Disable C Icon breaks component.
Hi Chad,
I can't seem to replicate the problem you're having. If you're still having it?
With the file you posted it's complaining that Port pin C0 isn't available on your target device which seems fairly straight forward.
I can see that if you have for example an opening comment such as /* in a C icon that is unterminated then this would cause a problem with the Flowcode code generation but simple // commments shouldn't cause any issues.
I can't seem to replicate the problem you're having. If you're still having it?
With the file you posted it's complaining that Port pin C0 isn't available on your target device which seems fairly straight forward.
I can see that if you have for example an opening comment such as /* in a C icon that is unterminated then this would cause a problem with the Flowcode code generation but simple // commments shouldn't cause any issues.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: FOund a weird one! Disable C Icon breaks component.
Hi Chad,
Your project compiles OK for me with or without the C code enabled.
What exactly do you mean by "the ws2811 component stops working"?
Leigh
Your project compiles OK for me with or without the C code enabled.
What exactly do you mean by "the ws2811 component stops working"?
Leigh
Re: FOund a weird one! Disable C Icon breaks component.
Leiah, don't even worry about. I managed to fix it by changing the initialization order and I have more stuff going on in my newer test program and it seems to be working now.
The ws2812 component is a little wiggy on the arm. I am getting used to it's oddities. I am much more worried about getting spi working on my display, dmx, write to flash....
thanks
chad
The ws2812 component is a little wiggy on the arm. I am getting used to it's oddities. I am much more worried about getting spi working on my display, dmx, write to flash....
thanks
chad