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 SD600A by
Diff: SD600A.cpp
- Revision:
- 17:a625ffe26993
- Parent:
- 16:910bf46f2ce4
- Child:
- 18:a61600110235
--- a/SD600A.cpp Thu Oct 11 04:05:02 2012 +0000 +++ b/SD600A.cpp Thu Oct 11 04:30:47 2012 +0000 @@ -9,9 +9,12 @@ #include "LedStrip.h" #include "SD600A.h" -/* uint8_t current_byte; // used by SPI ISR - uint32_t bit_index; // used by SPI ISR - uint32_t byte_index; */ +/* + * Soft SPI clockout routine. Triggered every ten microseconds, + * repeatedly clocks out the strip contents. Since each update function + * actually updates a byte at a time, and the C-m3 peeks the write buffer, + * there is no need to lock the buffer. + */ void SD600A::idle_function(void) { clk = 1;