Is the Arduino Micro board supported? #691
-
|
Does anyone know of any example code for how to use When I saw the Arduino Micro mentioned in ravedude/src/boards.toml I got my hopes up that it might already be supported. As best I can tell that isn't actually the case though; for example:
If I had some help I feel like I might be able to get it working and open a pull request. That's a big "might" though: I've got very little relevant experience that's directly relevant. The silver lining is that I've got experience in adjacent fields, so I'm not completely lost: I have a few years experience working as a C programmer for embedded systems, and I know the basics of Rust thanks to some previous non-embedded pet projects. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I think all that is missing is support in The Arduino Micro is based on ATmega32U4 so it doesn't have a hardware serial; instead the MCU can talk directly to USB. That's not yet supported officially in avr-hal, so keep this in mind (issue #40). If you hit any issues, feel free to ask about it :) And let's maybe continue this topic in the issue for the micro, that you linked (#161). |
Beta Was this translation helpful? Give feedback.
I think all that is missing is support in
arduino-hal. That's pretty straight-forward to add - just check the official documentation for the board for technical info like pinout, clock speed, serial, etc. See the changes in commits like 190f2c3 or 21342dc for reference, but beware that some details have changed since then. You can take a look at the latest code for other boards to see what things need to look like. Add at least a blink example for the board, imo that's all that is needed.The Arduino Micro is based on ATmega32U4 so it doesn't have a hardware serial; instead the MCU can talk directly to USB. That's not yet supported officially in avr-hal, so keep this in mind (issue #40).
I…