Improve power light control

This commit is contained in:
Jeremy Soller
2020-01-13 15:51:22 -07:00
parent c71a595efc
commit c1236b9e4a
4 changed files with 87 additions and 51 deletions

View File

@ -4,7 +4,7 @@
void timer_mode_1(int value) {
timer_stop();
TMOD = 0x01;
TMOD = (TMOD & 0xF0) | 0x01;
TH0 = (unsigned char)(value >> 8);
TL0 = (unsigned char)value;
TR0 = 1;