June 6, 2015 at 5:07 pm #2316bcraigieParticipant
Could 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?
ThanksJune 8, 2015 at 10:15 pm #2326JosephKeymaster
A 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).
JosephJune 10, 2015 at 7:08 am #2335MikeParticipant
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 #2359SimonModerator
Hi – 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)
SimonJune 18, 2015 at 9:10 am #2408
- You must be logged in to reply to this topic.