Search the Community
Showing results for tags 'drive'.
Found 2 results
Recently, I had and idea that I could do the big "factory" for any software, that would copy and paste the software )such as openos or data card software) to floppy disks (yeah, that idea is stupid). But I have gone to a problem. I have a REALLY HUGE stack of disk drives, but I do not want to copy every program to every floppy disk manually (I would need to get the dress of floppy, I would need to copy and blah), but what IF the disk drives have their own adress? What if I could just write these programs via the adress of the disk drive? Of course, if you have any other idea, then I will be very happy to get any solution.
TL;DR: http://pastebin.com/DG1wiRDc I was messing around with tape drives and trying to make them loop, and it turns out that it's a bit more complicated than it would seem. If the audio used is shorter than the tape, the tape doesn't automatically stop when the audio ends, instead playing silence for the rest of the unused tape length, before stopping. This renders isEnd() and .getState() useless, because after the audio is over, the tape will still play, only actually ending (and stopping) several minutes later (audio and tape length assumed to differ by several minutes, your mileage may vary). After doing lots of research and messing with the API, I found the command read(), which reads the current byte. It seems that even with the audio having quiet points (assuming you've written the audio starting from the beginning of the tape, but I did minimal testing), the read() command returns "0" when the audio of the tape ends, which I used to detect when to rewind and replay. With an internet card, you can run pastebin get DG1wiRDc Loop to download the program, running it with Loop Unfortunately, I didn't have much luck adding a way to abort the program, so you might have to power cycle the computer to get it to stop. BONUS: http://pastebin.com/CZ1kJFMB Here's another program I wrote, you might have to fiddle with it a bit for it to work for you, because I just bodged this together in an attempt to rickroll someone.