Printing in RP2040

I have this code:
unsigned char *car ;
how can I print unsigned char ??

Serial.print (F("unsigned char"));
1 Like

AWOL, even more funny considering the profile picture

You can't. You can't even upload that to the rp2040. You must have the setup() and loop() functions defined, as a minimum.

I used Serial.print(car);
but I have this error:
no matching function for call to 'print(unsigned char*&)'

Cast it char (assuming it is null terminated)

Yes, of course, this is not my problem

Yes, it is. The code you posted will not compile, so it will not upload.

Imagine if your car is broken and will not start. So you remove one of the wing mirrors, take that with you as you take the bus to the garage and hand the wing mirror to the mechanic. Can the mechanic diagnose why your car won't start by examining the wing mirror?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.