mbed os with nrf51 internal bandgap enabled to read battery level

Dependents:   BLE_file_test BLE_Blink ExternalEncoder

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 #include "mbed.h"
elessair 0:f269e3021894 2
elessair 0:f269e3021894 3 DigitalOut myled(LED1);
elessair 0:f269e3021894 4
elessair 0:f269e3021894 5 int main() {
elessair 0:f269e3021894 6 while(1) {
elessair 0:f269e3021894 7 myled = 1;
elessair 0:f269e3021894 8 wait(0.2);
elessair 0:f269e3021894 9 myled = 0;
elessair 0:f269e3021894 10 wait(0.2);
elessair 0:f269e3021894 11 }
elessair 0:f269e3021894 12 }