zerog2k / stc_diyclock

STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
MIT License
174 stars 67 forks source link

4 digit display models? #31

Open Hegz opened 6 years ago

Hegz commented 6 years ago

Hi, I purchased this unit:

https://www.ebay.ca/itm/New-LED-DIY-Digital-Electronic-Micro-Controller-Kit-Clock-Time-Thermometer-CA-/292048065603?var=&hash=item899c6ccd6d

The major difference that I can see would be that this unit uses a single 4 digit seven segment display. I'm not sure if this firmware would have support for that.

Schematic: clock.pdf

Will this work with the open source firmware? It would be fantastic to stop this thing changing the display, any maybe turn down the LED intensity...

vargham commented 6 years ago

I have the same model. I made a working fork for that model. Check here: https://github.com/vargham/stc_diyclock

zerog2k commented 6 years ago

Thanks for contributing @vargham! Welcome any PRs back upstream...

vargham commented 6 years ago

There is a problem to solve, before PR. Ifdef works for every pin except for clock chip. I had to comment out the original clock chip pin defines to try my version. So there should be a clean up before PR.