Errors in publications.
Iguanaman
Posts: 32
in Propeller 1
I would like to thank all who responded in helping me understand the spin code. The Book "Programming and customizing the multicore PROPELLER microcntroller."
The book on page 140 has a typo in the code on page 140. The statement "rc.time(18, 1, @tDecay)" should be "rc.rctime(18, 1, @tDeacy)". I never would have figured
it out by my self. I take apart the program to try to figure out how it works?? But if I can not get it to work? I cannot play with it! I Smile-umed the code would be error free. I have it running now and can move on to the next program. I am sure parallax try's to publish a good a book as they can. But a typo for someone like myself who has not a clue what is going on can stop me dead in my tracks. Thanks for the support good people of forum. 16 feb 2019(sat)
The book on page 140 has a typo in the code on page 140. The statement "rc.time(18, 1, @tDecay)" should be "rc.rctime(18, 1, @tDeacy)". I never would have figured
it out by my self. I take apart the program to try to figure out how it works?? But if I can not get it to work? I cannot play with it! I Smile-umed the code would be error free. I have it running now and can move on to the next program. I am sure parallax try's to publish a good a book as they can. But a typo for someone like myself who has not a clue what is going on can stop me dead in my tracks. Thanks for the support good people of forum. 16 feb 2019(sat)
Comments
I( ran the code from the book and seems to compile OK.
https://www.dropbox.com/s/qo8swwt9fanj0sf/Propeller Book.zip?dl=0
You need a free login registration.
I want to add one thing: In my opinion, one of the best learning tools is the "Propeller Education Kit" PDF which you can find in the Propeller tool under the HELP tab. You can start at chapter four. It will give you a solid understanding of Spin programming.
The program is correct.
Look at page 141 of the Propeller Manual for OBJ or the object block declaration.
https://www.parallax.com/sites/default/files/downloads/P8X32A-Web-PropellerManual-v1.2.pdf Also if you look at the RCtime object you will see that there is PUBlic method called Time.
Public means that an outside object can call that method, while PRIvate methods can only be called within the same object.