home.social

#trinket — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #trinket, aggregated by home.social.

fetched live
  1. Good Bye Trinket. Hello WebTigerPython?

    Über ein Video von Rhett Allain erreichte mich die betrübliche Nachricht, daß die Online-Python-IDE Trinket im August dieses Jahres den Dienst einstellt. Zwar soll die Software, die Trinket antreibt, unter einer Open-Source-Lizenz veröffentlicht werden, die Trinket-Website wird aber definitiv geschlossen. kantel.github.io/posts/2026020 #Python #Trinket #WebTigerPython #Turtle #VPython #CreativeCoding #Spyder #Physik

  2. Good Bye Trinket. Hello WebTigerPython?

    Über ein Video von Rhett Allain erreichte mich die betrübliche Nachricht, daß die Online-Python-IDE Trinket im August dieses Jahres den Dienst einstellt. Zwar soll die Software, die Trinket antreibt, unter einer Open-Source-Lizenz veröffentlicht werden, die Trinket-Website wird aber definitiv geschlossen. kantel.github.io/posts/2026020 #Python #Trinket #WebTigerPython #Turtle #VPython #CreativeCoding #Spyder #Physik

  3. Noch mehr fraktale Bäume mit Python und der Schildkröte

    Meine bisherigen, recht gelungenen Experimente mit CPythons Turtle und nahezu identischem Quellcode mit Trinkets Schildkröte haben mich zu weiteren Experimenten animiert. Dieses Mal habe ich wieder einen fraktalen Baum konstruiert und sowohl in Trinket wie auch in Standard-Python implementiert: kantel.github.io/posts/2025082 #Python #Turtle #Trinket #Fraktale #CreativeCoding

  4. Noch mehr fraktale Bäume mit Python und der Schildkröte

    Meine bisherigen, recht gelungenen Experimente mit CPythons Turtle und nahezu identischem Quellcode mit Trinkets Schildkröte haben mich zu weiteren Experimenten animiert. Dieses Mal habe ich wieder einen fraktalen Baum konstruiert und sowohl in Trinket wie auch in Standard-Python implementiert: kantel.github.io/posts/2025082 #Python #Turtle #Trinket #Fraktale #CreativeCoding

  5. Arbor Pythagorae mit CPythons Schildkröte und mit Trinkets Turtle

    Nachdem mein letztes Experiment mit CPythons Turtle und dem nahezu identischen Quellcode in Trinket so erfolgreich verlaufen war, hatte ich Blut geleckt nund wollte eines meiner Lieblingsobjekte, den Pythagoras-Baum, auch mit Pythons Turtle (und parallel dazu auch mit Trinkets Schildkröte) realisieren. kantel.github.io/posts/2025080 #Python #Turtle #Trinket #CreativeCoding

  6. Arbor Pythagorae mit CPythons Schildkröte und mit Trinkets Turtle

    Nachdem mein letztes Experiment mit CPythons Turtle und dem nahezu identischen Quellcode in Trinket so erfolgreich verlaufen war, hatte ich Blut geleckt nund wollte eines meiner Lieblingsobjekte, den Pythagoras-Baum, auch mit Pythons Turtle (und parallel dazu auch mit Trinkets Schildkröte) realisieren. kantel.github.io/posts/2025080 #Python #Turtle #Trinket #CreativeCoding

  7. Ein fraktaler Baum mit Pythons Turtle

    In diesem Beitrag möchte ich wieder Pythons Turtle bemühen, um damit fraktale, selbstähnliche Bäume zu erzeugen. Und auch wenn ich große Sympathien für die Turtle-Implementierung in TigerJython habe, ihr Nachteil ist, daß sie große Unterschiede zu der Turtle-Implementierung in Standard-Python besitzt. Daher habe ich mich bei diesem Beispiel entschieden, Trinkets-Turtle wieder hervorzukramen. kantel.github.io/posts/2025073 #Python #Turtle #Trinket #Fraktale

  8. Ein fraktaler Baum mit Pythons Turtle

    In diesem Beitrag möchte ich wieder Pythons Turtle bemühen, um damit fraktale, selbstähnliche Bäume zu erzeugen. Und auch wenn ich große Sympathien für die Turtle-Implementierung in TigerJython habe, ihr Nachteil ist, daß sie große Unterschiede zu der Turtle-Implementierung in Standard-Python besitzt. Daher habe ich mich bei diesem Beispiel entschieden, Trinkets-Turtle wieder hervorzukramen. kantel.github.io/posts/2025073 #Python #Turtle #Trinket #Fraktale

  9. Auf zu neuen Ufern? Python im Browser

    Bei all meiner (wiedererwachten) Begeisterung für TigerJython habe ich nicht vergessen, daß der Software eine wichtige Eigenschaft fehlt: TigerJython läuft nicht im Browser. Das ist natürlich in der heutigen Zeit ein schwerwiegendes Handicap und so habe ich mich nach Alternativen umgeschaut. kantel.github.io/posts/2025062 #Python #TigerJython #Trinket #Turtle #VPython #PyScript #Proseco #PygameCE #Pygbag #Pyxel #microStudio #Brython #CreativeCoding

  10. Auf zu neuen Ufern? Python im Browser

    Bei all meiner (wiedererwachten) Begeisterung für TigerJython habe ich nicht vergessen, daß der Software eine wichtige Eigenschaft fehlt: TigerJython läuft nicht im Browser. Das ist natürlich in der heutigen Zeit ein schwerwiegendes Handicap und so habe ich mich nach Alternativen umgeschaut. kantel.github.io/posts/2025062 #Python #TigerJython #Trinket #Turtle #VPython #PyScript #Proseco #PygameCE #Pygbag #Pyxel #microStudio #Brython #CreativeCoding

  11. Created this today on Trinket.io. Used my limited python knowledge to create this piece of artwork. @donwatkins

  12. Schlangenfraß: Video-Tutorials zum Wochenende

    Da mein Programm für die nächsten Wochen oder gar Monate darin besteht, mindestens die ersten drei Kapitel aus Daniel Shiffmans »The Nature of Code« nach Python und Pygame zu portieren und um eigene Beispiele zu erweitern, habe ich mir zur Vorbereitung erst einmal ein paar Video-Tutorials herausgesucht, die ich Euch nicht vorenthalten möchte: kantel.github.io/posts/2025022 #GameDev #Python #Pygame #Pymunk #VPython #Trinket #NatureOfCode

  13. Schlangenfraß: Video-Tutorials zum Wochenende

    Da mein Programm für die nächsten Wochen oder gar Monate darin besteht, mindestens die ersten drei Kapitel aus Daniel Shiffmans »The Nature of Code« nach Python und Pygame zu portieren und um eigene Beispiele zu erweitern, habe ich mir zur Vorbereitung erst einmal ein paar Video-Tutorials herausgesucht, die ich Euch nicht vorenthalten möchte: kantel.github.io/posts/2025022 #GameDev #Python #Pygame #Pymunk #VPython #Trinket #NatureOfCode

  14. "Every day since you bought that thing off from sketch corner of the bazaar you feel like something is watching you. Always. But if you look into the orb all you see is nothingness ... the end."

    Jumped into a Pixel Daily yet again with a little mashup!

    Theme was Orb this time!

    16x16, extended #pico8 palette
    Aseprite, MagicaVoxel

    #PixelArt #DigitalArt #PixelDailies #pico8 #orb #MastoArt #trinket

  15. "Every day since you bought that thing off from sketch corner of the bazaar you feel like something is watching you. Always. But if you look into the orb all you see is nothingness ... the end."

    Jumped into a Pixel Daily yet again with a little mashup!

    Theme was Orb this time!

    16x16, extended #pico8 palette
    Aseprite, MagicaVoxel

    #PixelArt #DigitalArt #PixelDailies #pico8 #orb #MastoArt #trinket

  16. Hexagonaler Random Walker (mit der Turtle und in Trinket)

    Da ich mit meinen Spiralen Blut geleckt hatte, wollte ich unbedingt zu Beginn des Jahres noch etwas mit Pythons Turtle anstellen. Also habe ich den hexagonalen Random Walk, den ich im Dezember 2017 schon einmal hier in diesem Blog Kritzelheft vorgestellt hatte, wieder aus der Mottenkiste hervorgekramt und ein wenig aufgehübscht. kantel.github.io/posts/2024010 #Python #Turtle #CreativeCoding #RandomWalk #Trinket

  17. Hexagonaler Random Walker (mit der Turtle und in Trinket)

    Da ich mit meinen Spiralen Blut geleckt hatte, wollte ich unbedingt zu Beginn des Jahres noch etwas mit Pythons Turtle anstellen. Also habe ich den hexagonalen Random Walk, den ich im Dezember 2017 schon einmal hier in diesem Blog Kritzelheft vorgestellt hatte, wieder aus der Mottenkiste hervorgekramt und ein wenig aufgehübscht. kantel.github.io/posts/2024010 #Python #Turtle #CreativeCoding #RandomWalk #Trinket

  18. We of course have to have the voxel version as well, because ... well, just because!

    16x16x16, MagicaVoxel, PICO-8 extended palette.

    Sketchfab: ko-fi.com/i/IF2F2PUFQ8

    #PixelDailies #MagicaVoxel #3D #VoxelArt #DigitalArt #MastoArt #trinket

  19. We of course have to have the voxel version as well, because ... well, just because!

    16x16x16, MagicaVoxel, PICO-8 extended palette.

    Sketchfab: ko-fi.com/i/IF2F2PUFQ8

    #PixelDailies #MagicaVoxel #3D #VoxelArt #DigitalArt #MastoArt #trinket

  20. Pixel Dailies - Trinket

    The one an only drill, that will pierce the heavens!

    16x16, MagicaVoxel, PICO-8 extended palette

    #PixelArt #DigitalArt #PixelDailies #pico8 #MastoArt #trinket

  21. Pixel Dailies - Trinket

    The one an only drill, that will pierce the heavens!

    16x16, MagicaVoxel, PICO-8 extended palette

    #PixelArt #DigitalArt #PixelDailies #pico8 #MastoArt #trinket

  22. @donwatkins I'm working in Mu. It is pretty good. I wish there was a way to publish your digital art online easily like you can in #trinket.io. Any ideas? #programming #python

  23. @donwatkins I'm working in Mu. It is pretty good. I wish there was a way to publish your digital art online easily like you can in .io. Any ideas?

  24. New Blog Post: Edtechman-I think by 5th grade students should have some exposure to syntax coding. Block coding is fine but if you want to ratchet up problem solving and coding literacy, syntax coding is the way to go. It’s a natural progression, but I think the average teacher is scared to go 2 syntax coding. I want to change that. edtechman.blogspot.com/?m=0 #python #coding #education #education #teaching #5thgrade @edutooters @donwatkins #programming #ipensource #trinket.io

  25. New Blog Post: Edtechman-I think by 5th grade students should have some exposure to syntax coding. Block coding is fine but if you want to ratchet up problem solving and coding literacy, syntax coding is the way to go. It’s a natural progression, but I think the average teacher is scared to go 2 syntax coding. I want to change that. edtechman.blogspot.com/?m=0 @edutooters @donwatkins .io

  26. Trinket kann Matplotlib – aber nur in der kostenlosen Version

    Trinket treibt mich noch in den Wahnsinn. Ich hatte bisher immer einen großen Bogen um die Modes von Trinket gemacht, die mit einem kleinen, grünen Schlüssel angezeigt wurden, weil sie – glaubte ich – nach einem der kostenpflichtigen »Plans« verlangten. Seit heute weiß ich, daß dies komplizierter und sehr ärgerlich ist: kantel.github.io/posts/2023073 #Trinket #Python #DataScience #Visualisierung

  27. Trinket kann Matplotlib – aber nur in der kostenlosen Version

    Trinket treibt mich noch in den Wahnsinn. Ich hatte bisher immer einen großen Bogen um die Modes von Trinket gemacht, die mit einem kleinen, grünen Schlüssel angezeigt wurden, weil sie – glaubte ich – nach einem der kostenpflichtigen »Plans« verlangten. Seit heute weiß ich, daß dies komplizierter und sehr ärgerlich ist: kantel.github.io/posts/2023073 #Trinket #Python #DataScience #Visualisierung

  28. What is the right side of my graphic not displayed? Does anyone know. Maybe it’s a flaw with Trinket.io? @donwatkins @brysonpayne @edutooters @edutooter

  29. Flappy Bird: Retrogaming und Künstliche Intelligenz

    Zum Zehnjährigen: Obwohl eigentlich noch recht jung (von 2013) ist Flappy Bird wegen seines riesigen Erfolgs sehr schnell ein Computerspielklassiger geworden, der mittlerweile in unzähligen Versionen nachprogrammiert wurde und nicht nur für die Ausbildung der Spieleprogrammierer, sondern auch als Forschungsobjekt im Bereich Künstliche Intelligenz herhalten muß. kantel.github.io/posts/2023033 #FlappyBird #Retrogaming #KI #Trinket

  30. Trinket, die Turtle und die Bildchen

    Wie gestern angekündigt, erkunde ich gerade die Möglichkeiten, die Trinkets Turtle bietet. Die gute Nachricht ist, daß sie sich anscheinend wenn überhaupt, dann nur in Nuancen von Pythons Standard-Turtle unterscheidet (irgendwo muß sie es vermutlich, denn Pythons Turtle basiert auf Tkinter, während Trinkets Schildkröte in den Canvas von HTML5 zeichnet). kantel.github.io/posts/2023022 #Python #Turtle #Trinket #GameDev #Retrogaming

  31. Creative Coding mit Python

    Nein, das hat nicht Zeit bis Freitag: Beim wilden Durchstöbern und Aufräumen meinens Feedreaders sind mir vier Playlists mit Video-Tutorials von Coding Cassowary untergekommen, die alle mehr oder weniger zum Themenkomplex »Creative Coding mit Python« gehören. kantel.github.io/posts/2023021 #Python #ProcessingPy #Trinket #Pygame #Simulation #CreativeCoding

  32. CircuitPython USB to Serial MIDI Router

    I’ve indirectly used USB and Serial MIDI with CircuitPython a few times now, but haven’t explicitly shown how to use it as a simple USB (device) to serial MIDI converter.  This project shows how to do that.  Any CircuitPython device should be usable like this, but I’ve used this as an excuse to do something with the Seeedstudio Seeeduino XIAO board.

    Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

    These are the key tutorials for the main concepts used in this project:

    If you are new to microcontrollers, see the Getting Started pages.

    Parts list

    The Circuit

    If you are using a Raspberry Pi then the circuit is one I’ve used several times already.  Connect up your 3V3 compatible MIDI module to GND, 3V3, RX and TX.

    If you are using a Trinket M0 then there is a really good learning guide on the Adafruit site that will get you going – again you’ll need the same GND, 3V3, RX and TX pins.

    In my case, I wanted an excuse to do something with a Seeedstudio Seeeduino XIAO module.  This is a SAMD21G based module with a USB-C connector, and would need to be connected up as follows.

    The general idea is that the CircuitPython device will connect to a PC (or other USB host) as a USB MIDI device and forward any MIDI traffic between the USB MIDI link and a connected serial MIDI module.

    The Code

    The basic idea is relatively straightforward once your device is up and running with Circuitpython itself (see the Adafruit guides for help to get this far!):

    Set up the USB MIDI deviceSet up the serial MIDI devicewhile:    IF there is a USB MIDI IN message THEN        Send it out on the serial MIDI OUT port    IF there is a serial MIDI IN message THEN        Send it out on the USB MIDI OUT port

    The only slight quirk is that I try to filter out unrecognised MIDI messages to limit the forwarded traffic, but if you haven’t imported the adafruit_midi representation of a MIDI message, then the code will not recognise it!  So I need to pull in the various MIDI message representations at the start of the file.

    Not being a python person myself really, I may well be missing something and there might be a more elegant way to do this, but I have to say I’m not really a fan of how MIDI is implemented in CircuitPython as it feels too hidden away behind “clever layers” for my liking.  But having said that, there really is no easier way (at present) for making a USB MIDI device than CircuitPython.

    The code also supports flashing an LED on reception of a MIDI event.  For the XIAO this looks like the following:

    led = digitalio.DigitalInOut(board.D13)led.direction = digitalio.Direction.OUTPUTled.value = Truedef ledOn():    led.value = Falsedef ledOff():    led.value = True

    With the XIAO the LED is on when led.value = False.  For the Raspberry Pi Pico, it would be different again, something like the following (untested, but pasted in from my other code):

    led = digitalio.DigitalInOut(board.GP25)led.direction = digitalio.Direction.OUTPUTdef ledOn():    led.value = Truedef ledOff():    led.value = False

    Some boards support the Python/CircuitPython “built in LED” identifier – you might be able to get away with using board.LED above, but the True/False logic still needs setting up correctly for your board.  Some boards are now using board.LED_INVERTED too, so just see what works.

    One way to see what is supported is to do the following in the REPL shell when connected to the board:

    >>> import board
    >>> dir (board)

    Also, whilst the XIAO and other boards have board.TX and board.RX defined for the default serial port, the Raspberry Pi Pico does not, so the code to initialise the serial MIDI will also have to be changed to look more like the following for the Pico (this is to use UART 0 on GP0 and GP1).

    uart = busio.UART(tx=board.GP0, rx=board.GP1, baudrate=31250, timeout=0.001)

    The original was:

    uart = busio.UART(tx=board.TX, rx=board.RX, baudrate=31250, timeout=0.001)

    Find the XIAO version on GitHub here.

    Closing Thoughts

    As always, I continue my love/hate relationship with CircuitPython (and Python more generally), but I can’t deny, this is still probably the easiest way to get a USB MIDI device to serial MIDI converter up and running!

    Now USB MIDI Host… well that is another story…

    Kevin

    #circuitpython #midi #raspberryPiPico #trinket #usbMidi #xiao