Recent Posts

11
General Discussion / Re: MicroSD fails to initialize
« Last post by Rydez on July 23, 2022, 09:59:43 AM »
Started doing some deeper debugging within the SD library. I've found that the card fails here: https://github.com/arduino-libraries/SD/blob/a61e84b97b7742024ea2c8545a2b797aa6d551f4/src/utility/Sd2Card.cpp#L305. Timeout is reached while attempting to go into idle state. The timeout is set to 2,000 ms. I tried waiting 100,000 ms, but it didn't work. The status_ variable in Sd2Card is 0x20 before running card.init(), and 0xFF after.
12
General Discussion / Re: MicroSD fails to initialize
« Last post by Rydez on July 22, 2022, 12:55:09 PM »
Thinking about going and getting a fresh SD card to test. Are the SD cards distributed by TinyCircuits special in some way? Or, will any SD card work?
13
General Discussion / Re: MicroSD fails to initialize
« Last post by Rydez on July 22, 2022, 12:45:08 PM »
If I'm remembering correctly, I did not test the card before formatting it with Ubuntu. The initial formatting was done with the UI shown here: https://itsfoss.com/format-usb-drive-sd-card-ubuntu/.

I attempted to run the sketch you sent, but I'm getting the same output because SD.begin(chipSelect) fails. I also attempted using SD.begin() in the past while trying to figure this out myself.
14
TinyTV & Tiny Video Player / Re: Tiny TV Remote Power ON-OFF
« Last post by jgavlik on July 22, 2022, 12:39:50 PM »
Réna,

Thanks, again!

-john
15
TinyTV & Tiny Video Player / Re: Tiny TV Remote Power ON-OFF
« Last post by lennevia on July 22, 2022, 12:14:11 PM »
Yes, that's it.
16
General Discussion / Re: MicroSD fails to initialize
« Last post by lennevia on July 22, 2022, 12:07:03 PM »
Did you test the card before formatting it with Ubuntu? I'm curious if the formatter you used could have mismanaged the protected memory of the SDHC SD Cards we distribute.

The windows formatter you linked from our site has some warnings that formatters from other operating systems could lower performance, but it doesn't mention that the card would be unusable. It still works with dragging and dropping files, so it's possible the Ubuntu formatter could have formatted the protected memory of the SD Card making the card info unreadable. Can you share what tool you used, or are you able to look into how it reformats SDHC cards?

Could you try writing a .txt file to the SD Card to see if that works? You can use this example, you'll just have to change the Serial object to SerialUSB: https://github.com/arduino-libraries/SD/blob/master/examples/DumpFile/DumpFile.ino - This example uses SD.begin(chipSelect) rather than the card.init(SPI_HALF_SPEED, chipSelect) in the example that's not working so it handles initialization a little differently.
17
General Discussion / Re: MicroSD fails to initialize
« Last post by Rydez on July 22, 2022, 11:21:41 AM »
Not sure if this would cause a problem, but I originally formatted the SD using Ubuntu's OS, then later I went to a Windows computer to use the SD formatter from https://www.sdcard.org/downloads/formatter/.
18
Thumby / Re: New game: Flucht
« Last post by lennevia on July 22, 2022, 11:19:18 AM »
The pixel trail and failure animation are so polished! Simple but incredible. Well done!

Thanks for sharing!
19
Thumby / New game: Flucht
« Last post by discreetmud on July 22, 2022, 09:47:37 AM »
My game has just been added to the arcade.



It's played in portrait mode, so your Thumby will be horizontal instead of vertical, and the screen will be taller than wide. It's a one button game, any Thumby button will work.



You can also play it in your browser! https://sergilazaro.itch.io/flucht

I made a compatibility layer so that I could play it on my desktop as well as on a web browser, using pygame and webassembly. More info on this repo: https://github.com/sergilazaro/flucht

Feel free to use my code (MIT licensed), and use the same concept to be able to "export" your games for your desktop or browser. The compatibility layer is not complete (I only implemented what I needed), but it can be a start if you're interested.

You can see a video of what it looks like on the Thumby itself on this tweet: https://twitter.com/sergilazaro/status/1550060693335982080 (retweets appreciated but not needed). It runs pretty smooth, I believe around 30fps. I have a FPS counter disabled by default that I enabled every now and then for debugging and optimizing.

I'm excited to get other people to play it! :)
20
TinyTV & Tiny Video Player / Re: Tiny TV Remote Power ON-OFF
« Last post by jgavlik on July 21, 2022, 06:12:22 PM »
Réna,

Then based on your comments, can one assume that this is the part of the code that does the Tiny TV ON-OFF without the power switch?

-john

  if (IRresult == powerCode || checkNewButtonPress(TSButtonLowerLeft)) {
    if (!isOff) {
      if (!isStopped()) {
        requestPause();
        delay(10);
        display.endTransfer();
      }
      display.off();
      isOff = true;
    } else {
      display.on();
      if (!isStopped()) {
        display.goTo(0, 0);
        display.startData();
        requestUnPause();
      }
      isOff = false;
    }
  }
SMF spam blocked by CleanTalk