How to use custom Pio files ? #221
-
Hi ! As a complete newbie with PIO, I added a couple of Includes to my sketch and then put the Pio file in the same folder, but this is probably not the right way to do because I'm getting a lot of errors from the Arduino IDE. (Of course I can post the whole output if needed) I'm wondering if I'm supposed to compile the Pio manually and then to include the .pio.h file in my sketch or is the Arduino IDE supposed to do that when it compiles the sketch ? Here's the program https://github.com/pmarques-dev/pico-examples/tree/master/pio/quadrature_encoder Any help appreciated. P.S: Here's my sketch
P.S: Sorry if it's not the right place to ask... I'm jumping between the Raspberry Pi forum, the Arduino forum and this repository, I'm not really sure where to ask for help... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, you need to compile the .pio file manually into a .h, and include it in your sketch. You can use the online compiler listed in the docs or the includes Don't do any stdio_init stuff, that's not compatible w/the Arduino core since the core itself manages the Serial ports. |
Beta Was this translation helpful? Give feedback.
Yes, you need to compile the .pio file manually into a .h, and include it in your sketch. You can use the online compiler listed in the docs or the includes
pioasm
: https://wokwi.com/tools/pioasmDon't do any stdio_init stuff, that's not compatible w/the Arduino core since the core itself manages the Serial ports.