displaying on SSD1306, 128x64 pixels OLED

Dependencies:   microbit

Committer:
bvirk
Date:
Tue Feb 25 20:59:35 2020 +0000
Revision:
12:b4d5e007640e
Parent:
6:c69f08f464b5
doc removed from cpp files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bvirk 6:c69f08f464b5 1 #include "MicroBit.h"
bvirk 6:c69f08f464b5 2 #include "Display.h"
bvirk 6:c69f08f464b5 3 #include "common.h"
bvirk 6:c69f08f464b5 4
bvirk 6:c69f08f464b5 5 void example_secClock() {
bvirk 6:c69f08f464b5 6 // change to see - example 17:31:00 becomes
bvirk 6:c69f08f464b5 7 uint32_t secs = 17*3600+31*60-uBit.systemTime()/1000;
bvirk 6:c69f08f464b5 8 while (true) {
bvirk 6:c69f08f464b5 9 display.vertSecClock(secs+uBit.systemTime()/1000);
bvirk 6:c69f08f464b5 10 uBit.sleep(1000);
bvirk 6:c69f08f464b5 11 }
bvirk 6:c69f08f464b5 12 }