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.
Fork of PololuLedStrip by
Revision 22:8dc878594d24, committed 2017-01-26
- Comitter:
- taptoneesarm
- Date:
- Thu Jan 26 09:57:13 2017 +0000
- Parent:
- 21:87fd6273e0ff
- Commit message:
- Tapton school project
Changed in this revision
| PololuLedStrip.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PololuLedStrip.cpp Tue Nov 26 23:05:08 2013 +0000
+++ b/PololuLedStrip.cpp Thu Jan 26 09:57:13 2017 +0000
@@ -38,7 +38,7 @@
PololuLedStrip::PololuLedStrip(PinName pinName)
{
- gpio_init(&gpio, pinName, PIN_OUTPUT);
+ gpio_init_out(&gpio, pinName);
}
void PololuLedStrip::write(rgb_color * colors, unsigned int count)
@@ -65,7 +65,7 @@
__enable_irq(); // Re-enable interrupts now that we are done.
wait_us(24); // Hold the line low for 24 microseconds to send the reset signal.
- //*(gpio.reg_set) = gpio.mask;
- //*(gpio.reg_clr) = gpio.mask;
+ //(gpio.reg_set) = gpio.mask;
+ //(gpio.reg_clr) = gpio.mask;
}
\ No newline at end of file
