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: NCP5623B mbed-rtos mbed
Fork of mbed_blinky by
Revision 13:142a8d831f29, committed 2016-04-04
- Comitter:
- maclobdell
- Date:
- Mon Apr 04 18:21:23 2016 +0000
- Parent:
- 12:d41bdc50f852
- Commit message:
- added debug print of "helloworld"
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 04 17:41:12 2016 +0000
+++ b/main.cpp Mon Apr 04 18:21:23 2016 +0000
@@ -5,15 +5,17 @@
DigitalOut myled(LED1);
I2C led_i2c(I2C_SDA, I2C_SCL);
NCP5623B* led_cont;
+Serial debug(USBTX, USBRX);
int main() {
led_cont = new NCP5623B(led_i2c);
led_cont->setLEDCurrent(16);
-
+ debug.baud(115200);
+ debug.printf("hello world\n");
+
while(1) {
-
- led_cont->setPWM(NCP5623B::LED_3, 8);
+ led_cont->setPWM(NCP5623B::LED_3, 8);
wait(0.2);
led_cont->setPWM(NCP5623B::LED_3, 0);
wait(0.2);
