BlocklyProp - Example of start new cog (at bottom of thread)
John Kauffman
Posts: 653
I searched public programs with "new cog" and could not find an example, based on titles.
Among blocks I did not see anything promising.
Could someone post a simple example of spinning up a few cogs with different LED blinks and sharing a common variable?
Thanks.
Among blocks I did not see anything promising.
Could someone post a simple example of spinning up a few cogs with different LED blinks and sharing a common variable?
Thanks.
Comments
http://blockly.parallax.com/blockly/editor/blocklyc.jsp?project=171
Do you know about Ken's Webinars?
https://www.parallax.com/news/2016-10-07/calling-all-educators-blockly-and-s3-robot-google-hangouts-sign-today?utm_content=buffer6c050&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
These are a great idea and would be wonderful to have for other
I'm planning to log in for all of them except one conflicts w/ a lecture. I want to hear what other educators are asking.
I don't know if I mentioned, I have several kids that have finished WAMM (in C) and will go back to CH 01 doing all exercises in Blockly.
Another group is doing Scratch and I want to try using S3 as a natural compliment to Scratch for a unit on hardware.
- John
Let me know which webinar you might miss and I'll ask the webmaster if he could put it on YouTube.
Hey John - there's a "new processor" block. We're using this terminology because "cogs" are quite Parallax-specific and we want to make the concept of multiple processors running in parallel easier for our customers to understand.
Ken Gracey
Great questions John!
1 - Create functions to go into cogs by creating separate stack starting with Functions/To and put blocks inside.
2 - In main stack, place Control/NewProcessorFunction with argument coming from Functions/(list)
Worked perfect to blink pins 26 & 27.
Whit: for future, people searching for this question will see after first 2 posts that the thread veered off into webinars and finally answered here. They might not get down here to answer. Can we cut webinar posts or maybe create different thread with just question and answer? I'm always thinking of how a current thread will be useful for future searchers.