With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Feels like I'm in overload. I'm a noob to both assembly and microcontrollers, so I'm stretching my vast years of programming in higher languages. I pretty much think I understand everything except 2 things: In random, why:out TCNT0, die1 Reading the data sheet the only reason I can see to write anything to the timer counter is to stop the next compare from happening???Next, you got me!! I know the hidden value for milliseconds comes into play in the delay you had in random, and no, I have no idea where the value would come from, and what it should be? Also, it appears seed starts out uninitialized and is added to die1 the first time random is called with no value?What am I missing?
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.