Dividing a word into bytes on Picaxe?

Can anyone remember how the heck a word variable is split into individual bytes on Picaxe?

Say I have the word 2234, and I want it to be transfarred serial as 2,2,3,4 .. how?

(I know I have seen this somewhere sometime, just cannot figure out where, and I am going nuts now!)

Thanks!

BINTOASCII

Isn’t something like this?

BINTOASCII range, b1,b2,b3

Aaaaah yes!!BINTOASCII…

Aaaaah yes!!

BINTOASCII… That’s the one I was looking for.

Thanks a lot XicoMBD!!

:slight_smile:

You’re welcome!I’ve used it

You’re welcome!

I’ve used it a couple weeks ago to make distance debug on an LCD and then on a processing aplication.

 

What are you planning to do? Can you tell us? :slight_smile:

I am playing around with a

I am playing around with a dancing robot. It listens to music, and dances to it. I hope :slight_smile:

On the side it is going to have a 4*7 LED display, showing how groovy it feels :slight_smile: And I have Groovy in a word, needed it to come to flashy numbers!

More on the project soon on it’s own page :slight_smile:

Cheers

Dancing robot

Hey, I am really looking forward to see the result.

Well, you can look out and

Well, you can look out and help me :wink:

I can see you are from Copenhagen, I sit on Amager.