Home 2018 › Forums › Crumble › Development › Random number generator
Tagged: Scratch
- This topic has 4 replies, 4 voices, and was last updated 8 years, 5 months ago by
Simon.
-
AuthorPosts
-
June 6, 2015 at 5:07 pm #2316
bcraigie
ParticipantCould we have a random number function please? Generating a random number from 0 to 255 each time it is called.
Or would this become possible when the crumble can be programmed by scratch?
Actually, can the crumble be programmed by writing (typing) code to give a broader range of available functions?
Thanks
June 8, 2015 at 10:15 pm #2326Joseph
KeymasterA random number function is on the list 🙂
Scratch should take care of this too, but the Crumble won’t be programmed then – just running as a peripheral.
There is a simple text based language that is used between the GUI and the Crumble, it’s not ready from prime time yet though (no error checking).
Joseph
June 10, 2015 at 7:08 am #2335Mike
ParticipantHi Joseph,
Are you saying that if/when using Scratch to ‘program’ the crumble, that when you unplug it the crumble does NOT retain the program?
:/
June 15, 2015 at 6:39 am #2359Simon
ModeratorHi – I’ll be the one doing the Scratch interface.
Traditionally with the Arduino for instance, you can code it its native language which it retains when unplugged or you can get it to run as a serial command device programmed in a non-native language which won’t work when its un-plugged.Initially, thats what I’ll get going on the Crumble.
However, I’ve already got a Scratch code -> Crumble code compiler (its just handles outputs on/off at moment) so that’s one method of getting code to work un-plugged.
The other approach is the way MBlock have done it with their Arduinio approach but at the moment their code hasn’t been open-sourced (although they’ve promised to do this)
Simon
June 18, 2015 at 9:10 am #2408Simon
ModeratorNew Scratch sub-forum with pre-release ScratchCrumble 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.