Rahix / avr-hal

embedded-hal abstractions for AVR microcontrollers
Apache License 2.0
1.28k stars 218 forks source link

Example: breadboard-hal, deadbug-hal #341

Open steelman opened 1 year ago

steelman commented 1 year ago

Add an example showing how to use avr-hal without a board like Arduino Uno but with an MCU in a circuit on a custom pcb, a breadboard or a dead bug.

stappersg commented 1 year ago

Patches welcome

stappersg commented 1 year ago

Patches welcome

and karma bonus points for explain what a "dead bug" is and why it needs a Hardware Abstraction Layer.

steelman commented 1 year ago

The term deadbug refers to the look of a circuit assembled by soldering wires and components directly to pins of an integrated circuit laying upside down. See https://hackaday.com/tag/deadbug

I suppose these don't require a hal. However, a project targeted at deadbug circuit still needs to have some defined, that without a board hal remains undefined. I am asking for a minimal list of such stuff.

I might push a patch as I managed to build a project of mine, but I haven't uploaded it to an MCU so my findings may be wrong.

stappersg commented 1 year ago

If I understand correctly: At software level are breadboard and deadbug the same.

... might push a patch ...

Yes, take it for further. Especially for yourself.

steelman commented 1 year ago

At software level are breadboard and deadbug the same.

Yes.

stappersg commented 1 year ago

This issue has now a link to https://github.com/Rahix/avr-hal/discussions/337 "How do I write a custom avr-hal for atmega32u4 devices?"

steelman commented 1 year ago

Thank you. This is somewhat helpful.