In some cases, they aren't realistically possible, such as std::thread on an 8-bit microcontroller. However, going back the other way may require some minor editing.īut note that not all features of modern C++ versions are available on all Arduino platforms. However, they are directly equivalent to bool and unsigned char.Īll of these things mean you can probably port general C++ code directly to Arduino without difficulty. For example, boolean and byte are not in the C++ standard. In addition to the functions, the libraries add alternative names for some types. It's fast, but it can be quite hard to learn and understand. That's how embedded programming is usually done. If you didn't have those functions, you'd need to fiddle directly with special registers to control everything. These add on various features, such as functions you can call to control the hardware. It's really just C++ with some domain-specific libraries. There isn't really an Arduino language as such.
0 Comments
Leave a Reply. |