By default, the Netbeans build shows warnings for unused parameters in methods. Event handlers often do not use their MicroBitEvent parameter and this raises a number of warnings. To suppress these warnings, and document that the parameter was not meant to be used, add the UNUSED macro. i.e. at the top of your code file add the define