Jump to content

Archived

This topic is now archived and is closed to further replies.

PineDominator

[Version 1] Help To Convert To C/c++

Recommended Posts

I would like to start by thanking all of you. I have had a lot of success with the teensy so far.

I am using the Arduino software and now feel it's time to switch to c/c++

because I feel I know there cut down c well enuff to put my time to better use

by learning c++, as well as learning electronics.

First I would like to purchase a really good book on c/c++.

I have some experience in quckbasic, and now Arduino's version of c.

I need to get a better understanding for object oriented programming.

Second how do I go about changing my library's and sketches to c?

is it mostly changing things like (int to uint8_t)?

Share this post


Link to post
Share on other sites

Book: How to program C

Book: How to program C++

Those are both good books. One book I kind of refuse to want to pick up is the "Mastering C" book I have which is probably the size of a few Webster Dictionaries...

Share this post


Link to post
Share on other sites

I found the best way is to dive in, and use Google for what you don't understand or what doesn't work. Especially for Objective-C, the Apple documentation is incredibly useful.... MSDN/.NET not so much.

One thing I found useful that I only started doing a few months ago was to use source control - I personally recommend Git. That way if you completely screw up on something you can go back to your last commit, and can create a branch for something you don't fully understand yet, or isn't working 100% (I did that when I started learning Core Data.)

Share this post


Link to post
Share on other sites

If you want to program your teensy in "true" C, look up AVR-GCC tutorials online, it's the most popular AVR C compiler, used by Arduino itself.

You will also need to read the datasheet for the microcontroller thoroughly, it's an invaluable source of information.

Share this post


Link to post
Share on other sites

Thank you guys.

I am going to take the google/online source for now since the book I want is too expensive right now.

I also want to freshly learn c in it's OOP form c++.

Already learned a lot on "Pointers", at first I didn't think I would ever take advantage of pointers

but now I can think of a couple ways I would use them in a far in the future project.

Share this post


Link to post
Share on other sites

Trust me on this one - if you ever write anything remotely complex, you will be relying on pointers.

Share this post


Link to post
Share on other sites

c is beautiful :D

ftw ... ajunta on ubuntu is pretty cool :D

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...