Help with Sprites?

now this
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: “Arduino Leonardo”

Sketch uses 8394 bytes (29%) of program storage space. Maximum is 28672 bytes.
Global variables use 1224 bytes (47%) of dynamic memory, leaving 1336 bytes for local variables. Maximum is 2560 bytes.
processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168)
at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port ‘COM3’.
at processing.app.Serial.touchForCDCReset(Serial.java:107)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144)
… 5 more
Caused by: jssc.SerialPortException: Port name - COM3; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:101)
… 6 more
An error occurred while uploading the sketch
Exception in thread “Thread-57” java.util.ConcurrentModificationException
at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:127)
at cc.arduino.contributions.libraries.LibrariesIndexer.setLibrariesFolders(LibrariesIndexer.java:106)
at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:682)
at processing.app.Base.onBoardOrPortChange(Base.java:1313)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2198)
at java.lang.Thread.run(Thread.java:748)

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

… which might look suspiciously like the ones from ‘HelloWorld’

2 Likes

My bad it was bricked from Trolly Fish and yay it worked. :smiley:

There is a bug in the Arduino IDE where if an upload fails then the next upload will fail with an error message regardless of if the game works.

No idea why it happens, but I think that’s what happened there beacuase it compiled properly and then failed with a ‘RunnerException’.

1 Like

Is there a place where I can put 0x00 and edit it?

Emuty’s tool has an upload feature using the ‘Browse…’ button.

Where is upload? #####

Do I upload a .txt file?

I would presume it loads data in the same format it gives it out in.

It`s not working. ##

The format is:

# [Pixel] 16x16
0x00, 0x00, 0x70, 0x90, 0x98, 0x0c, 0x04, 0x00, 0x00, 0x30, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00,

Yep I copying the 0x00 and paste it in.

You must put in the first line with the correct dimensions.

I am in Emuty’s tool and hiting upload and clicking on the .txt file with # [Pixel] 128x94 0x00’.

Cut and paste this:

# [Pixel] 16x16
0x00, 0x00, 0x70, 0x90, 0x98, 0x0c, 0x04, 0x00, 0x00, 0x30, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00,

… into a text file. It works for me.

Yours may be failing as 128x94 is too big. Also, is the 0x00 on the next line? Finally, are you including all of the data??

That worked don’t know what happed.

Mine worked or yours? If yours, what did you do differently??

Mine worked
I just did this

#[Pixel] 128x60

0x00

to

#[Pixel] 128x60
0x00

Right … I guess its really fussy on the extra carriage return. :slight_smile:

1 Like