This directive forces the compiler to generate code for an older "18M2" chip rather than a newer "18M2+" chip.
When a PICAXE-18M2 device is selected and a syntax check or programming is perforned the compiler will generate code for an "18M2+" chip. If the chip being used is an "18M2" and cannot support the code which has been generated an error will occur when an attempt is made to program the chip. By using the #legacy command the compiler is forced to generate code which will program into an "18M2" and will report errors if the program would only be suitable for an "18M2+".
- Applies To:
- See Also:
- Related Create:
Submit Your Own Code!
You must be logged in to submit code examples. Login now.