【问题标题】:digispark not printing simbol \,digispark 不打印符号 \,
【发布时间】:2020-06-30 12:50:51
【问题描述】:

我在 digikeyboard.printIn 中写入 \ 符号时遇到问题,该行停止突出显示并输出错误

D:\documents\Arduino\powershell_write.ino:在函数'void loop()'中:

powershell_write:67:24: 错误:不完整的通用字符名称 \U

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

                    ^

powershell_write:92:24: 错误:不完整的通用字符名称 \U

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

                    ^

退出状态 1 不完整的通用字符名称 \U

提前感谢帮助

【问题讨论】:

    标签: arduino attiny


    【解决方案1】:

    你必须转义\

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

    如果允许,也可以使用正斜杠:

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

    【讨论】:

      猜你喜欢
      • 2013-03-13
      • 2022-01-13
      • 2022-08-23
      • 2011-12-19
      • 1970-01-01
      • 2017-12-16
      • 2014-02-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多