Use macro in VSM?


Senior Member
Should I be able to use a macro in VSM? I have this simple macro that works on Picaxe chips, but it won't compile in VSM. JimS
'** Clears OLED display.
#macro clearoled
	serout B.1,n2400,(254,1):pause 30


Technical Support
Staff member
Macros are currently only supported within PE6.

There is an option in PE6 which allows the expanded macro source to be obtained, which could then be pasted into the basic file you are using within VSM ...

File -> Options -> Diagnostics -> Pre-processor -> [X] Display Pre-processor output


Senior Member
Thank you, hippy...It would be a convenience to be able to run PE6 code containing macros. JimS