To get the example ADC code to work on the Lancaster Github site, change the line:
MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_BOTH);
To:
MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_ANALOG);
I tested this using both the online Mbed compiler and the yotta compiler.