I’ve written some code to control an LED strip. I am using a library kindly ported by @peekay123 and I have had it working fine with direct calls to the library routines within my firmware code.
Now I am trying to change an array variable through API calls to my core, but I’m finding as soon as I try this, everytime I make an API call the core just resets.
I’m not sure if this is just my lack of understanding of the wiring language and arrays (and perhaps memory management)?
I have pasted my code here: http://pastebin.com/V2fma4YC
The commented out lines 45 to 57 do what I expect them to do if I uncomment them (ignore the incorrect comment about rack 4). What they do is assign a bank of LEDs on the strip to a rack top in my data centre) and this code flashes each rack (1 to 9) in turn. So this proves to me that the various routines work properly.
Any assistance on this would really be appreciated.
P.S. Wasn’t sure which category in the forums this fit into, but I’m only having problems with the API calls, so this is why I picked “Cloud Software”