displaying on SSD1306, 128x64 pixels OLED
Diff: example_Stick.cpp
- Revision:
- 6:c69f08f464b5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/example_Stick.cpp Sun Feb 23 01:57:35 2020 +0000 @@ -0,0 +1,16 @@ +#include "MicroBit.h" +#include "MicroBitI2C.h" +#include "MicroBitPin.h" +#include "MicroBitDisplay.h" + +#include "Display.h" +#include "common.h" + +void example_stick() { + + while(true) { + uint16_t samples =uBit.io.P0.getAnalogValue(); + display.setStick(samples/40); + } +} +