lancaster-university / microbit-v2-samples

CODAL build tools and sample programs for the micro:bit v2.x
MIT License
66 stars 87 forks source link

Set to static any non *_test functions. #45

Closed microbit-carlos closed 1 year ago

microbit-carlos commented 2 years ago

Mostly so that user code can use function names like onShake() or onButtonA().

Fixes https://github.com/lancaster-university/microbit-v2-samples/issues/8

microbit-carlos commented 1 year ago

@finneyj @JohnVidler If nobody has any reservations about this PR I'll merge by the end of the week, as it doesn't affect operation of any of the samples and enables users to use function names often shown in code examples, like onButtonA() and onShake().

microbit-carlos commented 1 year ago

Merging as discussed in the CODAL sync call.