Just my 2 cents in how to handle and manipulate text strings (Character Arrays) in C code... all shown using Arduino, but is universal on embedded systems coded in C. Very useful stuff in here that can be used in many projects!
It's a doozy, so here are the timestamps:
2:13 Intro, Size, Length, and Null
8:10 Concatenate
10:33 Copy and Move
16:09 Comparing two strings
17:09 Find string in another string
21:06 Parsing a string, like data separated by commas
24:50 Convert string to integers, long, float and back to string
28:00 Pass and return strings with functions
29:25 Parse data from a serial port - real example
THE CODE:
www.kevindarrah.com/download/...
Check out my Tindie store (trigBoard is available) www.tindie.com/stores/kdcircu...
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
/ kdarrah
Twitter: / kdcircuits
For inquiries or design services:
www.kdcircuits.com
17 июл 2024