Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Ease of programming with "raw" C++?

  1. #1

    Ease of programming with "raw" C++?

    Hi,
    I am a moderate (and improving) C++ programmer. I am interested in programming my Teensy board using just C++ and not the Arduino-dialect of it. From what I can tell this is either fairly easy or pretty complex http://kevincuzner.com/2014/04/28/te...-1-bare-metal/

    I am just wondering, before I go too far, how much more challenging it is to write C++ than use Arduino, if modern C++ (and the STL) can be used, and how well existing community libraries for Arduino (such as Firmata and ethernet) work.

    Thanks

  2. #2
    Senior Member
    Join Date
    Jan 2014
    Posts
    147
    https://forum.pjrc.com/threads/41857...al-development

    PJRC is working on using more recent GCC versions; and is working on ethernet stuff for the T3.6.

    STL has been in GCC for a many years, but not wonderful to implement in teensyduino libraries. There have been some STL implementations for arduino. The emperor's search engine is all-knowing and all-seeing, and awaits your bidding.

    Some later firmata versions address specifics of Teensy boards. My T3.5 has made firmata performance tolerable.

  3. #3
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    532
    Depends on what parts of STL you would like to use. I've got vector ported to work with Arduino:
    https://github.com/bolderflight/Vector

    This was the major STL feature that I was looking to use and I still get the convenience of working within the Arduino IDE.

  4. #4
    Senior Member+
    Join Date
    Jul 2014
    Location
    New York
    Posts
    3,670
    I have successfully used the Eigen library on the teensy and Arduino mega using a port for STL for Arduino. Teensy STD support is already built in and don't need an extra library. Do a quick search of the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •