Another Bit of Help Needed: A byte array
DiablodeMorte
Posts: 238
I've reached another snag in my project(The first being the high byte low byte problem[noparse][[/noparse]see other post]): I need to be able to pass a 32 byte array to a function. I've defined the variable:
and now I need to pass it to function load_song... and access each byte
I've tried:
Load_Song(song)
With no luck, I even tried using pointers.. but that just caused the robot to produce a general fault. Any suggestions?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
Var Byte song[noparse][[/noparse]32] Pub Main song[noparse][[/noparse]0] = blah song = blah song = blah song = blah song = blah ...etc
and now I need to pass it to function load_song... and access each byte
I've tried:
Load_Song(song)
PUB Load_Song(data_array) data_array.Byte[noparse][[/noparse]0]
With no luck, I even tried using pointers.. but that just caused the robot to produce a general fault. Any suggestions?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Current Projects:
Robot Control Via Skype API - Dev Stage(50% Complete) - Total(25%)
Robot Localization Via Xbee's - Research Stage
IR Tracking with Propeller - Research Stage
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.