![]() ![]() Well, it's pure in that it isn't using the Arduino libraries but it IS using avrlib. Note that there is no separate setup() and main() functions. Here is an example of a pure C program for blinking an LED. Avrdude will use ICSP for programming the device. It's easy to code in C and the GCC compiler is the same one included in Arduino. Years ago I was working with bare iron on an ATmega128 with the AVR toolchain (included with Arduino) and AVRdude (also included with Arduino I believe) and I found it a very pleasant chip to use (unlike mid-range 8 bit PICs). Grab the User Manual / Datasheet and start reading. The AVR platform is really a decent place to start. In effect, recreating what the libraries already do but without the bloat. You can learn to write to the bare iron in terms of timers, ADC, IO, etc. ![]() You can use the Arduino hardware without the libraries. There are two aspects to the problem of "where to start": Hardware and software (tools). I would love your opinion on what would be your recommendation for good entry points to learning C/C++ by yourself if you were not taking the Arduino route. Of course I do agree with you, that a proper production environment will suffer big time if you rely on basic Arduino programming skills. I doubt, that I would have been able to wrap my head around things like shifting registers, bit logic and the likes, without starting at the shallow end in the first place. The more things I build with tools like Arduino or Processing, the more I learn about "eloquent" ways of getting things done. I am not aiming to become a programmer, but am grateful for the opportunity to easily build my own hacky prototypes to illustrate an idea or build a temporary solution for an exhibition or other kind of presentation. Now, the more I stare into the abyss that is "actual programming", I can improve on my coding skills - ’though I guess my programming "skills" will never make it into a real production environment. However: When I started dipping my toes into the shallow waters of Arduino and working with micro controllers, I was glad to find a lot of libraries and helper functions like map() etc. Anyone can do it.Ĭode: template long map(T _x, A _x_min, B _x_max, C _out_from, D _out_to, typename std::enable_if::value >::type* = 0) and uniform random integers within a specified range are generated by Heck, even a six year old can cut with a knife, who needs a decade of education just to do a heart bypass. well, as foolish as thinking: well, start as a janitor at the hospital, work hard, get promoted to "orderly", then in time, get promoted as nurse, then promoted doctor, then heart surgeon. No doubt there are a few 10 year-olds who knows more math than most college grads can ever dream of, but to merely assume that math and other basics are irrelevant is. No wonder programmers are getting no respect these days. The talking heads on the show was amazed at how programming was easy and that kids would in no time be making 6 figures automating everything. The waiting room TV was showing a Microsoft elementary school project working with what appears to be 3rd/4th graders "programming" by (using some Microsoft developed tools) dragging cartoon icons around to make a "working application". It was just around the time when software became suspect for that LION air crash, just around that time I was at a tire-repair store waiting on some tire work. * *** */ I said deadly in the first paragraph, there is a reason. it will even help in understanding cooking recipes. If one can't answer that question, learning more math will help with understanding EE, politics, economy, history. ![]() ![]() * *** */ If you can answer this question, you don't need the map() function: In a class of 1234 students, 6.7% passed how many student passed? That is to "map" 6.7% from 100 (definition of percent) into 1234 (actual sample). It has been as successful and as deadly as "easy ways to do heart surgery for DIY'ers". (I think this exceeds the normal definition of a reply and drifted into the "rant" category) I think "map" function is a misguided attempt to make programming "easier" for everybody. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |