Debug light example bug?
Greetings all!
I've had a Hydra sitting on my shelf for a few months now and I am finally getting around to playing around with it.
Anyways, I typed in the debug LED example on page 191 of the Hydra book. When I compile, the Propeller Tool gives an error on the lines with #!DEBUG_LED_PORT_MASK indicating that "Source register/constant cannot exceed $1FF."
I have tried substituting in $FE and $1FE which will compile fine, but the light does not change brightness.
I'm not sure if I have made a typo that I am not seeing or if the book is wrong. I'd attach my type up of the example, but first what are the rules around here about posting such copyrighted material?
Thanks!
I've had a Hydra sitting on my shelf for a few months now and I am finally getting around to playing around with it.
Anyways, I typed in the debug LED example on page 191 of the Hydra book. When I compile, the Propeller Tool gives an error on the lines with #!DEBUG_LED_PORT_MASK indicating that "Source register/constant cannot exceed $1FF."
I have tried substituting in $FE and $1FE which will compile fine, but the light does not change brightness.
I'm not sure if I have made a typo that I am not seeing or if the book is wrong. I'd attach my type up of the example, but first what are the rules around here about posting such copyrighted material?
Thanks!
Comments
I think it is best you design your own LED dimming program!
This example was given to show the interaction between COGS, SPN and asembly code only... Nobody seemed to have tested its functionality