Re: [atreus] atreus firmware compatibility with arduino micro
- Phil Hagelberg
- 2015-01-11 @ 16:16
Thomas Riboulet <firstname.lastname@example.org> writes:
> So I grabbed a piece of keyboard I had lying around to get some cherry
mx red and I also grabbed a handful of diodes I had.
> The next step once I have those is to load a micro controller with a
firmware and have a play around.
> I could not find a star 32U4 micro right away but I did find a similar
one using the same chip an arduino micro.
> I was wondering about the compatibility of the atreus firmware with the
arduino micro: can I use it ?
> I assume I have to at least change a couple of things related to the pins.
Yeah, it should work fine with the Arduino Micro or any other ATmega32u4
chips that expose enough pins, with a bit of adjustment.
You may need to tweak the avrdude parameters in the makefile, and you
will definitely have to change the pinout definitions: ROW_COUNT,
COL_COUNT, rows, col_pins, and col_ports. There's also a few places
where it's assumed all the rows are connected to pins on PORTD that you
might have to change.
Or depending on which pins the Arduino Micro exposes, it might be possible to
wire it into the same ports on the Arduino as on the A-Star. That might
result in some funky wiring but would allow you to leave the firmware alone.