Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: Mapping port and pin in C++ CTOR - best practice

2013-12-31 by ron@teahousestudio.com

Just to add, I have found some definitions in sfr_defs.h and portpins.h

so I know I can do things like bit_is_set(_port, _bit) in the Button code (and call the CTOR with something like Button btn = Button(PINB, PB2, true); )


What I'm not clear about is how to set the IO mode for (_port, _bit) in the CTOR.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.