Recent Posts

41
General Discussion / I wonder ...
« Last post by Butimis on February 22, 2024, 03:48:59 AM »
Hello,

I was able to connect once and download the example tinyscreen+ from the Arduino IDE.  However I tried loading my own script (and there might have been something wrong with it), and now I can't communicate at all with my TinyScreen+.  I'm on a Mac running El Capitan, and I'm wondering if there is something that people recommend trying to reestablish communications.

thanks,
Penny
42
TinyTV & Tiny Video Player / Tinytv Mini colors inverted
« Last post by bowchicawahwow on February 21, 2024, 12:18:01 AM »
I just received my TinyTv Mini and it works most of the times but sometimes all of the videos colors are inverted. It won’t change until I let the battery die and restart it. Any suggestions?
43
General Discussion / AST1041 Pulse Ox sensor R2
« Last post by malindaurith on February 19, 2024, 05:38:44 PM »
Hi all,

I received the AST1041 Pulse Ox sensor (MAX30101). But I can't find schematic of the PCB due to this a revision 2 . As I see all the recourses are for revision 1.
due to I don't have time to return the  components. can you please help me to find the revision 2 schematic.  I will upload the sensor images.

Thank you.
Malinda.
44
Thumby / Re: Doom
« Last post by henryg on February 12, 2024, 03:48:13 PM »
I see what you mean by shaky. I was able to throw something together using python (that could still use more work to be 'public release" quality) that calls the python version of uf2convert from https://github.com/microsoft/uf2/tree/master/utils . The main drawback is that you have to call it from the folder where the script resides and have uf2conv.py and uf2families.json in the same folder.

What it does is take the .bin file from the compiled output, pad it with zeros to the specific length needed, and then concat the whx file. After this I run it through uf2conv to create the final flashable file.

the script can be run like:

~/rp2040-doom/uf2conv$ ./single.py ../thumby-build/src/doom_tiny.bin ../doom1.whx doom.uf2

since the actual work of the script is fairly simple (and there is a c version of uf2conv), I'm sure it can be ported to be included in the workflow of the make files or however you want to handle it.
45
Thumby / Re: Doom
« Last post by AncientJames on February 11, 2024, 08:51:55 PM »
Oh! I'd convinced myself that wasn't the problem after all. Thanks for that!
The way I packaged it up into a single UF2 was pretty shaky, and I'd love to learn of a better approach. What I did was to package the doom1.whx file into its own UF2 file using uf2conv, and then concatenate that with doom_tiny.uf2. From my understanding of the spec this should be a valid UF2 file, but the RP2040 bootloader refused to accept it. However, using uf2conv to convert the combined file to raw binary and then converting it back produced a file that did work.
I'll update the repo when I'm back on the relevant machine.
46
Thumby / Re: Doom
« Last post by henryg on February 10, 2024, 04:05:44 AM »
It actually was the spi rate!

here is the diff file of the only change I made and it started running. I messed around with some FRAME_PERIOD settings to find the best, one, but that will wait until after sleep. Prior to this change, no matter what I set FRAME_PERIOD or PARK_LINES to, it would not work. So I can now compile and mess with stuff on my own to get everything working as smoothly as possible for my devices.

I guess the only question I have left is if there there is an easy to way to build it into a single file with the whx, like the release on github?

Thank you sooo much for helping troubleshoot this even though you weren't able to replicate it.

--- ../src/pico/i_video.c.orig   2024-02-10 01:57:59.954548400 -0600
+++ ../src/pico/i_video.c   2024-02-10 02:43:46.964548400 -0600
@@ -438,7 +438,7 @@
 
     gpio_set_function(PICO_DEFAULT_SPI_SCK_PIN, GPIO_FUNC_SPI);
     gpio_set_function(PICO_DEFAULT_SPI_TX_PIN, GPIO_FUNC_SPI);
-    spi_init(spi0, 62500000);
+    spi_init(spi0, 62000000);
     spi_set_format(spi0, 8, SPI_CPOL_0, SPI_CPHA_0, SPI_MSB_FIRST);
 
     gpio_put(J_OLED_CS, 1);
47
Thumby / Re: Doom
« Last post by AncientJames on February 09, 2024, 05:11:42 PM »
For that last one, I lowered the spi transfer rate and turned off the frame syncing (although I doubt the transfer rate was a factor here). It sounds as though your device would work just with different settings for PARK_LINES and FRAME_PERIOD. Failing that, getting the frame period approximately right and skipping the sync trick doesn't look too bad.

If you're able to build your own version that's probably the way to go, since I don't have the hardware to test on.
48
Thumby / Re: Doom
« Last post by htmlgames on February 04, 2024, 03:38:28 PM »
Cool and thanks for update henryg.

Also, would it be possible to have a v1.1 for the uf2 single install please?
49
Thumby / Re: Doom
« Last post by henryg on February 04, 2024, 03:02:01 PM »
That worked! (The most recent doom_tiny.uf2). The sync needs tweaking, but I was able to play the game! What ended up being the problem and can I pull the updated code somewhere (didn't see it on GitHub)? Thank you so much for your effort troubleshooting this!
50
Thumby / Re: Doom
« Last post by htmlgames on February 04, 2024, 02:22:31 PM »
Hi  AncientJames,
  Thanks for supplying the updates, I think your close to solving this now. BTW I'm currently working on a project so cannot test the above latest files just yet....

I've noticed on the newer thumby grayscale py needs a fix in general - even those from thumby arcade.

 I'm not sure your project uses the grayscale py files that the thumby arcade uses, but I will mention the fix to that file with the changes for more recent thumby (and what I believe the person above may have as both having similar issues).

 It looks like during screen init you need to have a small delay for it to work. I did this 'hack' by using playBlocking cmd for this.
Grayscale arcade games now run 100% from the arcade once I modify that file.
(Search for pf in the attached file if you're interested)

edit'; here's the tumbyGS.cfg file contents from mine.
gsV3,timing,107,oled,0
SMF spam blocked by CleanTalk