Use like this:
String myString = String(n);
You can find more examples here.
Related Posts:
- Arduino Sketch upload issue – avrdude: stk500_recv(): programmer is not responding
- Arduino Sketch upload issue – avrdude: stk500_recv(): programmer is not responding
- avrdude: stk500v2_ReceiveMessage(): timeout
- avrdude: ser_open(): can’t open device “\\.\COM3”: Access is denied
- Arduino Nano – “avrdude: ser_open():system can’t open device “\\.\COM1″: the system cannot find the file specified”
- Bitwise operation |= in C
- arduino suddenly shows “avrdude: ser_open(): can’t open device “\\.\COM3” after last upload
- ATMega328P “AVRDude: Could not find USBTiny Device (0x1781/0xc9f)”
- try/catch block in Arduino
- Windows .NET API / Windows 7 / Bluetooth communication with Intel Curie Arduino / Genuino 101
- Control an Arduino with Java
- Arduino IDE can’t find ESP8266WiFi.h file
- Arduino IDE can’t find ESP8266WiFi.h file
- Arduino Leonardo – “avrdude: butterfly_recv(): programmer is not responding”
- Arduino sprintf float not formatting
- Mapping a numeric range onto another
- Arduino IDE is not showing any port macOS
- How to convert an ASCII char to its ASCII int value?
- how to stop a loop arduino
- How to store data in the flash memory of a Arduino Uno (ATmega328p)