Uploaded June 2022 | Updated November 2026, 3 days ago
I reprogrammed the chip to have extra patterns. These patterns don't use EEPROM storage - there's just a bit of code for each pattern. I also improved the multiplexing of the LEDs, and debounced the push button better than the code supplied in the kit. If you only have an STC15W201 chip (1K flash), then you can't have all these patterns, but my code supports the -201 chip anyway - you just can't have all the patterns loaded at once. My kit had an STC15W204 chip (4K flash) and all the patterns demonstrated here only about half fills it. You could double the number of patterns if you care to write them! Here's the source code, hex files for the -201 and -204, and a description of how it works: ceptimus.co.uk/index.php/2022/06/22/led-hourglass-kit-programming
I reprogrammed the chip to have extra patterns. These patterns don't use EEPROM storage - there's just a bit of code for each pattern. I also improved the multiplexing of the LEDs, and debounced the push button better than the code supplied in the kit. If you only have an STC15W201 chip (1K flash), then you can't have all these patterns, but my code supports the -201 chip anyway - you just can't have all the patterns loaded at once. My kit had an STC15W204 chip (4K flash) and all the patterns demonstrated here only about half fills it. You could double the number of patterns if you care to write them! Here's the source code, hex files for the -201 and -204, and a description of how it works: ceptimus.co.uk/index.php/2022/06/22/led-hourglass-kit-programming










