Raspberry Pi Pico W Mandelbrot Set
Stumbled across a Python script to run a Mandelbrot set in ASCII in Python so I thought I would see how it ran on the RaspberryPi Pico.
After tweaking it slightly from the source it ended up like this mandelbrot.py
This results in the following;
                             ...................................................................................................
                           .....................................................................................................
                         .......................................................................................................
                       .........................................................................................................
                     ...................................,,,,,,,,,,,,,,,,,.......................................................
                    ..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.............................................
                  .....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................................
                 .................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------,,,,,,,,,,,,.................................
               ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------:i;;::::-------,,,,,,,,,.............................
              .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------:::;ih$+;;::::-------,,,,,,,,,..........................
             ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------------::::;;+# hiiii :---------,,,,,,,,,.......................
            .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------------:::::;;i+hM MM #+;;:---------,,,,,,,,,,....................
          .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------------::::::;;ii+hH* $H+ii;:::---------,,,,,,,,,,..................
         ........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::::;i+HhH     *h++;;::::---------,,,,,,,,,,................
        .......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::::;;;+           *@ +i;::::::-------,,,,,,,,,,,..............
        .....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::;;;;;ii+hM@          $hii;;:::::::------,,,,,,,,,,,............
       .....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------------:::;;;;;;iiii++h            *h+ii;;;;:::::::----,,,,,,,,,,,...........
      ....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------------::::;ii++ ++++++hhHH$@         @MHhh++ii;;;;;ihi;:---,,,,,,,,,,,,.........
     ....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------:::::::;;+H   @MHhH$  #                 $@  h++ii++M$i;:---,,,,,,,,,,,,........
     ...,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------::::::::::;;;ii@      #@                         $HH*  $#  #;:---,,,,,,,,,,,,.......
    ..,,,,,,,,,,,,,,,,,,,,,,,,,,,------:::::::::::::;;;;ii+hM                                        * i;::---,,,,,,,,,,,,,.....
   ..,,,,,,,,,,,,,,,,,,,,,,,,,-----:::::::::::::::;;;;;i++HHM#                                       *+;;:::---,,,,,,,,,,,,,....
   ..,,,,,,,,,,,,,,,,,,,,,-----::::::::::::::::;;;;;;iiM                                           #Mhii;;::---,,,,,,,,,,,,,....
  ..,,,,,,,,,,,,,,,,,------::;iH+;;;;;;;;;;;;;;;iiiii++H$                                            Mh++;::----,,,,,,,,,,,,,...
  .,,,,,,,,,,,,---------::::;;iH#++iiii++H*++iiiiii+++H$                                               $ H;::----,,,,,,,,,,,,,..
  ,,,,,,,,------------:::::;;;+h **M HhhM  $HHMhhhhhhHM@                                                 H;::----,,,,,,,,,,,,,,.
 .,,,,,------------::::::::;;ii+hM#    @@      #$HHHHM                                                 H+i;::-----,,,,,,,,,,,,,.
 ,,,,------------:::::::::;iiiihh$                 $$*                                                 @ i;::-----,,,,,,,,,,,,,,
 ,,-------------::::::::;;iii+H *                   @                                                  M+;:::-----,,,,,,,,,,,,,,
 ,------------:::::;;;;i+#HhhhM$@                                                                      Mi;:::------,,,,,,,,,,,,,
 ----------::;;;;;;;iii+hH* *  @                                                                      hi;::::------,,,,,,,,,,,,,
 ::::;;;iiMiiiiii+++++MHM                                                                           $+i;;::::------,,,,,,,,,,,,,
                                                                                                  *Hh+i;;::::------,,,,,,,,,,,,,
 ::::;;;iiMiiiiii+++++MHM                                                                           $+i;;::::------,,,,,,,,,,,,,
 ----------::;;;;;;;iii+hH* *  @                                                                      hi;::::------,,,,,,,,,,,,,
 ,------------:::::;;;;i+#HhhhM$@                                                                      Mi;:::------,,,,,,,,,,,,,
 ,,-------------::::::::;;iii+H *                   @                                                  M+;:::-----,,,,,,,,,,,,,,
 ,,,,------------:::::::::;iiiihh$                 $$*                                                 @ i;::-----,,,,,,,,,,,,,,
 .,,,,,------------::::::::;;ii+hM#    @@      #$HHHHM                                                 H+i;::-----,,,,,,,,,,,,,.
  ,,,,,,,,------------:::::;;;+h **M HhhM  $HHMhhhhhhHM@                                                 H;::----,,,,,,,,,,,,,,.
  .,,,,,,,,,,,,---------::::;;iH#++iiii++H*++iiiiii+++H$                                               $ H;::----,,,,,,,,,,,,,..
  ..,,,,,,,,,,,,,,,,,------::;iH+;;;;;;;;;;;;;;;iiiii++H$                                            Mh++;::----,,,,,,,,,,,,,...
   ..,,,,,,,,,,,,,,,,,,,,,-----::::::::::::::::;;;;;;iiM                                           #Mhii;;::---,,,,,,,,,,,,,....
   ..,,,,,,,,,,,,,,,,,,,,,,,,,-----:::::::::::::::;;;;;i++HHM#                                       *+;;:::---,,,,,,,,,,,,,....
    ..,,,,,,,,,,,,,,,,,,,,,,,,,,,------:::::::::::::;;;;ii+hM                                        * i;::---,,,,,,,,,,,,,.....
     ...,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------::::::::::;;;ii@      #@                         $HH*  $#  #;:---,,,,,,,,,,,,.......
     ....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------:::::::;;+H   @MHhH$  #                 $@  h++ii++M$i;:---,,,,,,,,,,,,........
      ....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------------::::;ii++ ++++++hhHH$@         @MHhh++ii;;;;;ihi;:---,,,,,,,,,,,,.........
       .....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------------:::;;;;;;iiii++h            *h+ii;;;;:::::::----,,,,,,,,,,,...........
        .....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::;;;;;ii+hM@          $hii;;:::::::------,,,,,,,,,,,............
        .......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::::;;;+           *@ +i;::::::-------,,,,,,,,,,,..............
         ........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------::::::;i+HhH     *h++;;::::---------,,,,,,,,,,................
          .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------------::::::;;ii+hH* $H+ii;:::---------,,,,,,,,,,..................
            .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------------:::::;;i+hM MM #+;;:---------,,,,,,,,,,....................
             ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------------::::;;+# hiiii :---------,,,,,,,,,.......................
              .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------:::;ih$+;;::::-------,,,,,,,,,..........................
               ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------:i;;::::-------,,,,,,,,,.............................
                 .................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----------,,,,,,,,,,,,.................................
                  .....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................................
                    ..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.............................................
                     ...................................,,,,,,,,,,,,,,,,,.......................................................
                       .........................................................................................................
                         .......................................................................................................
                           .....................................................................................................
I amended the code to update the OLED I was using in the temperature sensor tests mand_oled.
It does not process very fast in MicroPython as can be seen from this video and would probably would look better on a single colour OLED.
I am going to try doing the same in C to see how much of a speed improvement there is over MicroPython.