Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 1:aebf4e377b4d, committed 2016-02-26
- Comitter:
- mfiore
- Date:
- Fri Feb 26 16:56:04 2016 +0000
- Parent:
- 0:4a3a5f1bdca6
- Commit message:
- Updated mbed library to revision 112, disable regulator's battery charger
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 02 14:00:17 2015 +0000
+++ b/main.cpp Fri Feb 26 16:56:04 2016 +0000
@@ -9,8 +9,16 @@
*/
#include "mbed.h"
+
+// This line controls the regulator's battery charger.
+// BC_NCE = 0 enables the battery charger
+// BC_NCE = 1 disables the battery charger
+DigitalOut bc_nce(PB_2);
int main() {
+ // Disable the battery charger unless a battery is attached.
+ bc_nce = 1;
+
PwmOut out(D12);
while (true) {
--- a/mbed.bld Fri Oct 02 14:00:17 2015 +0000 +++ b/mbed.bld Fri Feb 26 16:56:04 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96 \ No newline at end of file