Skip to content

Instantly share code, notes, and snippets.

View jaustin's full-sized avatar

Jonathan Austin jaustin

  • micro:bit/Makespace/Me
  • United Kingdom
View GitHub Profile
//Kregg's light sensor failure example
//https://gist.github.com/khanning/19753c1a0f978117b992c60668d09d1c
// build as main.cpp in microbit-samples
#include "MicroBit.h"
MicroBit uBit;
uint8_t lightLevel;
void lightLevelReady(MicroBitEvent) {
lightLevel = uBit.display.readLightLevel();