school project using led strip
Fork of PololuLedStrip by
Diff: PololuLedStrip.cpp
- Revision:
- 22:8dc878594d24
- Parent:
- 19:46d7ab0ba3e7
--- 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