digistump / DigistumpArduino

Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
932 stars 377 forks source link

Error CHaracters #166

Open HdExploiter opened 6 months ago

HdExploiter commented 6 months ago

Hi, I need help with my ATtiny85. When I use special characters, they are displayed incorrectly. For example: if I enter "DigiKeyboard.print("start https://www.youtube.com/watch?v=dQw4w9WgXcQ");" on arduino ide in the command prompt, I receive "C:\Users\utente>start httpsç--www.youtube.com-watch_vìdQw4w9WgXcQ ". How can I resolve this problem?

pfeerick commented 6 months ago

You probably need to encapsulate the URL (to the rickroll) in quotes so that the colon and forward slashes are not considered path/escape characters.

i.e. try single quotes around the url ;)

DigiKeyboard.print("start 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'");

You would also be much better off using the ArminJo/DigistumpArduino or SpenceKonde/ATTinyCore board support package / repos, as the digistump one is basically abandoned (and has had no updates in over seven years).