4/6/2023 0 Comments Conio library for c++![]() ![]() The advantage, and really the only good option on a limited flash micro like the tiny416 is you end up with small code and you don't get the compiler trying to use pointers all the time, which look sort of ugly on these 8bitters. output/low is on (4 instructions- pin mode and pin set to 'off') led.on() //a single 'sbi 1, 0' (set bit since pin is in invert mode) The disadvantage when you get into templates, is it 'infects' everything and you end up having to use templates quite often. The big advantage of the templates is you can end up with- PA0_OUTL_t led //sets pin mode. ![]() I am also using c++ for a tiny416- where I use templates and it is mostly just a collection of headers. With only c++11 support, constexpr seems to end up limited (for constexpr functions anyway), unless you are a recursive coding guru. >It would be nice to use templates and constexpr to generate really fast, small code for handling the peripherals. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |