Use macro in VSM?

jims

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
Code:
'** Clears OLED display.
#macro clearoled
	serout B.1,n2400,(254,1):pause 30
#endmacro
 

hippy

Senior 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
 

jims

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