where do i put the h files and ccp files
That is a very general question… There are lib/
for external libraries and src/
for your own source code. For more options, see Redirecting....
When you create a project with either the PIO IDE or pio init ...
you get the src
and lib
folder. What you’re looking at is the global library repository for PIO to which you can install libraries using the library manager of the pio lib install..
command.
Refer to Redirecting... and Library Management — PlatformIO latest documentation
how to i include libraries into scripts?
Refer to the documentation of the library manager as I’ve linked above.