🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Sudoku app for M5Paper

    Scheduled Pinned Locked Moved PROJECTS
    7 Posts 4 Posters 14.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      murraypaul
      last edited by

      Source available here: https://github.com/murraypaul/M5Sudoku

      M5Sudoku

      Sudoku application for M5Paper

      Can generate uniquely solveable Sudoku puzzles, targetting a given number of clues, to act as a difficulty setting.

      At any point, can validate that the puzzle is still solvable.

      Can mark squares as either a known value, or a set of possible values.

      Can save and reload current state to EEPROM.

      Will automatically shutdown and save state after 5 minutes of inactivity.

      179823

      Notes:

      • Selecting a square in the large grid will display it in the small grid on the right
      • The selected square is highlighted in the large grid
      • You can use the small grid to either set a single known value for the square, or select multiple possible values
      • It may not be possible to generate a uniquely solveable puzzle of the given numbers of clues in the time requested
      • In this situation, the puzzle with the lowest number of clues that still gives a unqiue solution will be returned
      • The fewer target clues you ask for, the longer it will take to generate the puzzle
      • The 'Validate' button will confirm that the puzzle is still uniquely solveable
      • The 'Clue' button will fill in one randon unsolved square
      • Over time the screen may get a bit muddy, due to the fast refresh option used on the EPD screen
      • The 'Validate' button will also do a full screen slow refresh, which will clean up the display
      1 Reply Last reply Reply Quote 1
      • felmueF Offline
        felmue
        last edited by

        Hello @murraypaul

        this is very cool. Nicely done.

        When I compile it in PlatformIO I get a couple of errors. I've fixed them and made a pull-request for you to consider.

        Thanks a lot!
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        M 2 Replies Last reply Reply Quote 0
        • M Offline
          murraypaul @felmue
          last edited by

          @felmue I'll try to get PlatformIO set up and take a look, thanks,

          1 Reply Last reply Reply Quote 0
          • M Offline
            murraypaul @felmue
            last edited by

            @felmue I've updated the code, it should now compile with no warnings in PlatformIO.

            1 Reply Last reply Reply Quote 0
            • felmueF Offline
              felmue
              last edited by

              Hello @murraypaul

              Thank you!
              Felix

              GPIO translation table M5Stack / M5Core2
              Information about various M5Stack products.
              Code examples

              1 Reply Last reply Reply Quote 0
              • IAMLIUBOI Offline
                IAMLIUBO
                last edited by

                @murraypaul ,
                Great, thanks for sharing.

                1 Reply Last reply Reply Quote 0
                • E Offline
                  ekalfwonS
                  last edited by ekalfwonS

                  I've been trying to get this to compile/install using the Arduino IDE and i'm not getting anywhere... Once installed, the M5Paper just continuously reboots, flashing the screen on and off.

                  Watching the serial monitor I see this repeated on each reboot... Any suggestions?


                  Rebooting...
                  M5EPD initializing...OK
                  Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
                  Core 1 register dump:
                  PC : 0x400d7c9f PS : 0x00060330 A0 : 0x800d48ea A1 : 0x3ffb1f10
                  A2 : 0x3ffc19a0 A3 : 0x00000000 A4 : 0xffffffff A5 : 0x3ffc1a78
                  A6 : 0x0001fa40 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb1ee0
                  A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x000003c0
                  A14 : 0x0000021c A15 : 0x3f407a74 SAR : 0x00000011 EXCCAUSE: 0x0000001c
                  EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

                  Backtrace: 0x400d7c9f:0x3ffb1f10 0x400d48e7:0x3ffb1f40 0x400d5d7e:0x3ffb1f90 0x400e174b:0x3ffb1fb0 0x40088dbd:0x3ffb1fd0

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post