jb6113 645ca6c115 LED mirroring will seem to sync better now, not tested, but probably | 2 年之前 | |
---|---|---|
.. | ||
Makefile | 2 年之前 | |
README.md | 2 年之前 | |
main.c | 2 年之前 | |
main.elf | 2 年之前 | |
main.hex | 2 年之前 | |
main.o | 2 年之前 |
Everyone agrees that manufacturers suck at manufacturing reliable products. They primarily produce equipment that constantly needs attention. If one were to buy enough products, they would spend most their day reseting all of the things. Thankfully we only use a small fraction of what we buy, unused products will happily wait to be reset, no worry about them catching fire or exploding, probably. Top scientists have recently discovered that 16% of our lives is spent turning things off then on again. While this is not a majority of our lives, one might possibly be able to recover this somewhat unproductive time, for free.
Unplug it, automatically. In the worst case a manufacturer will produce something with no status lights. Why do they do this? I do not know. When manufacturers make a device they think
on power up the usb device is turned off
run the following commands forever
* turn off the usb device (it should be off by default)
* wait 3 seconds
* turn on the usb device and wait a couple minutes, the computer will boot and load custom firmware into the USB device
* enter an infinite small loop
* clear a bit
* or the led into the bit every serveral times for 500ms
* compare this to last, if they match, increment a counter, otherwise clear counter
* store this over last
* if the counter is big, we need to reboot