Commit Graph

367 Commits (f9cd0f21d9e17e6d29d47c75f5466f78d76f2c66)

Author SHA1 Message Date
Ben Blazak 2dce6e4066 lots
- fixed some includes (`uint8_t` comes from a header, not the language)
- put code from some of the .h files into .c files
- now using open drain logic (hi-Z or GND) on both chips instead of
  driving the row pins high on the teensy, or using a pull-up resistor
  on the row pins with the mcp23018
- put `return 0;` at the end of some functions that weren't void
- fixed/updated some documentation; esp. the row assignments for the
  mcp23018
- generalized the unused/row/column pin assignment and init code using
  macros, so they'll be much easier to move around if necessary
- fixed a redefinition error in "lib/usb/keyboard-usage-page.h"
2012-04-05 03:08:20 -07:00
Ben Blazak f41502ba3c mostly working on mcp23018.c; init() and update() might be ready :)
also, moved the twi code to lib/teensy-2-0/twi*
2012-04-02 01:59:00 -07:00
Ben Blazak b0b9335651 few things; mostly, I2C works now!; it was a hardware error
i had been leaving the RESET pin floating... this does not work.  it
must be externally biased - high, if you want the chip to work.. :) lol
2012-03-31 17:02:55 -07:00
Ben Blazak f49d503698 little work on the teensy init function and header; not much else 2012-03-28 01:03:11 -07:00
Ben Blazak a288b8a045 intermitent checkin; lots of stuff; i2c on hold; kb logic in progress 2012-03-27 03:06:52 -07:00
Ben Blazak b77e74cacd doing something clever with macro prefixes, which didn't work
i'd like to keep it around in the history though, just for fun - :)
2012-03-21 16:51:42 -07:00
Ben Blazak 19725eed4a *lots* of stuff .. :) - got PWM working!
also, i didn't make a note of it in the *.md file, but Waveform
Generation Mode 15 for fast PWM wasn't working right (well.. wasn't
working how i expected it to).  i misinterpreted what the modes were
doing, partially (haha, or all-ly?) because i didn't read the
description of fast pwm thoroughly enough...  in any case, all the
information's in the datasheet, and it's actually not terribly long.
i'm not sure how to correctly use Mode 15 yet, but i think i'll leave it
alone for now, since Mode 5 works as expected, and i think what the
datasheet says about *that* makes enough sense to me for me to be
content for the moment.
2012-03-19 00:01:41 -07:00
Ben Blazak 4dd05f515b working more on controller_init(), and file factoring 2012-03-16 18:31:36 -07:00
Ben Blazak 37b504adfe mostly: figured out how to initialize the LEDs with PWM 2012-03-16 03:15:47 -07:00
Ben Blazak 6fb3bf7a57 still working...
- removed the comment about the RESET pin on the MCP23018: i think these
  chips reset on powerup
- the partitioning of code into files is all wrong at the moment... i
  need to write some more and then fix that
2012-03-15 01:01:36 -07:00
Ben Blazak 4bcc0e5dc3 split the firmware into general/controller/keyboard files 2012-03-14 14:46:52 -07:00
Ben Blazak f628b56812 worked on pin assignments a little; and some other minor updates 2012-03-13 23:51:51 -07:00
Ben Blazak afb0aaccef mostly comments documenting pin and matrix assignment 2012-03-13 00:40:28 -07:00
Ben Blazak 5f4b6c9e09 added some stuff in src/lib 2012-03-11 19:17:32 -07:00
Ben Blazak 6570e7ae39 added src files - not much there yet though 2012-03-11 18:52:31 -07:00
Ben Blazak d04eb56c0d (no code yet - still researching and setting stuff up) 2012-03-11 18:33:21 -07:00
Ben Blazak d319638a35 initial commit 2012-03-11 14:51:51 -07:00