Commit graph

90 commits

Author SHA1 Message Date
XANTRONIX Development
f8a3cf8d6b Symmetry is important 2016-06-05 23:52:28 -05:00
XANTRONIX Development
4ca1444747 HOLY SHIT YES 2016-06-05 22:54:31 -05:00
XANTRONIX Development
985e556556 Most amusingly I am achieving novel results with this ATmega2560 2016-06-05 22:51:28 -05:00
XANTRONIX Development
3e2a43529a That comment better belongs in <tabby/avr.h> now 2016-06-05 20:40:56 -05:00
XANTRONIX Development
a2cb39f782 Until I refactor tabby_printer_send_page() to be nicer, this'll do 2016-06-05 17:37:34 -05:00
XANTRONIX Development
663b11e37d Now I realize fully that this is hacky as hell, but it does result in the (painfully slow) printing of full 160x144 images 2016-06-05 17:24:25 -05:00
XANTRONIX Development
0a92613528 Because people will nitpick anything 2016-06-05 16:45:04 -05:00
XANTRONIX Development
2906e26df5 You gain some, you lose some 2016-06-05 15:06:57 -05:00
XANTRONIX Development
a2c079bf90 No more magic numbers! :((((( 2016-06-05 12:37:05 -05:00
XANTRONIX Development
fbb785945b Still no closer to a solution :( 2016-06-05 02:39:06 -05:00
XANTRONIX Development
70f1fc349e Implement retry mechanism 2016-06-05 02:26:15 -05:00
XANTRONIX Development
d670c605a1 As it turns out, not putting 244µs between packets makes things unreliable sometimes; Nintendo was really saying that the interval between the start of two packets should be >=270µs, not that there should be a period of silence that long 2016-06-05 00:33:10 -05:00
XANTRONIX Development
fa4b6ae020 Ensure clock pulses occur at ~8192Hz
Other changes:

    * Rip out checksum routine; it's a lot better to rely on the Game Boy
      Printer returning the device identifier and status bitfield to
      resend packets when checksum error bit is set

    * Ensure incoming value is read just ahead of rising edge (but I was
      already doing that so like yeah)

    * Ensure 270µs interval after packet transmission
2016-06-05 00:01:59 -05:00
XANTRONIX Development
49463eb8f8 That seems deadly accurate 2016-06-04 22:12:14 -05:00
XANTRONIX Development
f1ef2fbb7c Why the fuck are you only printing the last line? 2016-06-04 22:01:06 -05:00
XANTRONIX Development
6dd486d5f3 Implement stuff to print like, a thing 2016-06-04 20:33:10 -05:00
XANTRONIX Development
75dd5b3c9b Use tabby_printer_response struct for good times! 2016-06-04 19:26:34 -05:00
XANTRONIX Development
6fa31cccd8 Holy shit, it fucking works 2016-06-04 19:11:06 -05:00
XANTRONIX Development
904bf866a6 whatever 2016-06-04 01:45:57 -05:00
XANTRONIX Development
35d47901d6 Gonna bit bang this without interrupts yo 2016-06-03 23:01:49 -05:00
XANTRONIX Development
a069adb1df I CAN DO THAT BY HAND BOYEEEEE 2016-06-03 23:01:22 -05:00
XANTRONIX Development
aab50cbbbd Guess that's nice 2016-06-03 22:54:08 -05:00
XANTRONIX Development
bdf0b3b4e0 Wow, I wasn't even monitoring inputs correctly. Clearly I am rusty in the AVR ways 2016-06-03 16:54:39 -05:00
XANTRONIX Development
84b5d6a2c9 SO FREAKING ANNOYINGLY CLOSE 2016-06-02 23:32:38 -05:00
XANTRONIX Development
a43cb02ec9 Fix state machine bug in serial input parser 2016-06-02 22:55:13 -05:00
XANTRONIX Development
445c52cdf4 Add more validation to serial read state machine 2016-06-02 22:54:59 -05:00
XANTRONIX Development
e8cfe8e77a Go down to 38400 baud for stability 2016-06-02 22:54:35 -05:00
XANTRONIX Development
a48298e08f Implement tabby_printer_link_init() 2016-06-02 22:54:07 -05:00
XANTRONIX Development
d9007fc717 Use the correct timer interrupt mask, TIMSK1 2016-06-02 18:06:47 -05:00
XANTRONIX Development
66f62e972a Use the correct register and bit flag to enable the correct timer counter compare interrupt 2016-06-02 22:51:21 +00:00
XANTRONIX Development
8f06f6abc8 Maybe someday I'll suck less at reading datasheets 2016-06-02 00:28:36 -05:00
XANTRONIX Development
d4e60aeace Little things I forgot 2016-06-02 00:20:53 -05:00
XANTRONIX Development
f62f6ad71a Got my port directions all bass-ackwards for some stupid reason 2016-06-02 00:14:25 -05:00
XANTRONIX Development
7562ab6870 No need to pass checksum to tabby_printer_packet_recv() caller 2016-06-02 00:10:57 -05:00
XANTRONIX Development
a7ba26c6db Well gosh 2016-06-02 00:10:21 -05:00
XANTRONIX Development
5762889c5a Actually bother to stop and restart SPI timer when needed 2016-06-02 00:01:50 -05:00
XANTRONIX Development
8e460b56ea Implement tabby_printer_packet_send() 2016-06-01 23:56:00 -05:00
XANTRONIX Development
4e3d8073b5 Holy guacamole! 2016-06-01 23:51:18 -05:00
XANTRONIX Development
4640fa8216 Don't forget to send device ID and status byte from Game Boy Printer to host 2016-06-01 23:49:27 -05:00
XANTRONIX Development
75b588a288 Yikes, did I actually make a thing that might be used to talk to the Game Boy Printer? I think so. 2016-06-01 23:40:40 -05:00
XANTRONIX Development
c679426262 *shrug* Gotta commit somethin' 2016-06-01 22:30:12 -05:00
XANTRONIX Development
e618aa68cd Poppin' more cruft out the repo 8) 2016-06-01 20:33:47 -05:00
XANTRONIX Development
85404e606b Dammit all again 2016-06-01 00:31:13 -05:00
XANTRONIX Development
21f24e4ea0 whups 2016-06-01 00:03:26 -05:00
XANTRONIX Development
167394aada Totes unused 2016-05-31 23:53:43 -05:00
XANTRONIX Development
3c7633108c Cutting out more crap; I mean the µc sends health responses anyway 2016-05-31 23:39:41 -05:00
XANTRONIX Development
eba12edc65 Cut superfluous code down to the bone 2016-05-31 23:28:55 -05:00
XANTRONIX Development
0e37c57a3a This is useful for extraction or whatever 2016-05-31 20:03:11 -05:00
XANTRONIX Development
b7f169f1b4 Don't bother sending responses to a receiver that'll do jack shit with them 2016-05-31 19:58:03 -05:00
XANTRONIX Development
68852d460b You know what? This, right here, fucking works 2016-05-31 19:32:20 -05:00