jb6113 645ca6c115 LED mirroring will seem to sync better now, not tested, but probably | vor 2 Jahren | |
---|---|---|
.. | ||
Makefile | vor 2 Jahren | |
README.md | vor 2 Jahren | |
main.c | vor 2 Jahren | |
main.elf | vor 2 Jahren | |
main.hex | vor 2 Jahren | |
main.o | vor 2 Jahren |
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