Please sign in to comment.
ledm: added I/O overrides and corrected prescaler formula
This commit contains several changes: - the prescaler divides by N+1, not N. Corrected the formula and the default prescaler value. The refresh rate is now 1 kHz. Before, it was only 983 Hz. - setting the prescaler to 0 stops scanning. Note that the I/Os are not automatically reset, so some LEDs may be left on. Using 0 to disable the prescaler reduces the maximum refresh rate to 26 kHz. Before, it was 52 kHz. - six new registers to directly set the row and column I/Os. There are three registers for rows and columns: one to force pins Z, one to force pins to 0, and one to force pins to 1. A write changes the state of a pin only if the corresponding bit is set to one.
- Loading branch information...