med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

343
active users

#micropython

2 posts2 participants0 posts today
Dave<p>Does anyone with micropython knowledge see why the EMF badge would prompt an invalid syntax code in line 13, when I try to run this? Maybe it's not even on this line. I've thrown it into Mu Editor, but it wouldn't tell me anything. All indents are spaces. </p><p><a href="https://gist.github.com/davedarko/e85d4f0c76fffd45e80228f2f217072e" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/davedarko/e85d</span><span class="invisible">4f0c76fffd45e80228f2f217072e</span></a></p><p><a href="https://chaos.social/tags/tildagon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tildagon</span></a> <a href="https://chaos.social/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a></p>
Stylus<p>Yay! We've officially removed support for building <a href="https://social.afront.org/tags/microPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microPython</span></a> with <a href="https://social.afront.org/tags/python2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python2</span></a> <a href="https://github.com/micropython/micropython/pull/17870" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/micropython/micropy</span><span class="invisible">thon/pull/17870</span></a></p>
Dr Footleg (he/him)<p>It was challenging to design such a small modular <a href="https://fosstodon.org/tags/3Dprinted" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>3Dprinted</span></a> <a href="https://fosstodon.org/tags/robot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>robot</span></a> for <a href="https://fosstodon.org/tags/PiWars" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PiWars</span></a> in 2024. I have started to work on the code again as so much was unfinished for the competition. This was my first robot using a <a href="https://fosstodon.org/tags/RaspberryPi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RaspberryPi</span></a> 5 and my first robot with encoder motors. I wrote mechanum mixing with IMU support in <a href="https://fosstodon.org/tags/Micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Micropython</span></a> for the Motor2040 board, which the Pi5 talks to over the USB lead. After some work to better comment the code I have finally published it on <a href="https://github.com/Footleg/PiWars2024" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Footleg/PiWars2024</span><span class="invisible"></span></a><br><a href="https://fosstodon.org/tags/3Dprinting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>3Dprinting</span></a></p>
Patrick Van Oosterwijck<p>Another thing I'm a big fan of is MicroPython! ManT1S will ship with an OTA-capable <a href="https://noc.social/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> runtime pre-installed, with WebREPL enabled out of the box. This means that you can load files and get a console over the network when you use the ManT1S-Bridge! It's hard to beat the convenience of connecting your device, popping into a <a href="https://noc.social/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a> and interactively playing with the <a href="https://noc.social/tags/hardware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hardware</span></a> to get started.<br><a href="https://noc.social/tags/embedded" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>embedded</span></a> <a href="https://noc.social/tags/dev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dev</span></a> <a href="https://noc.social/tags/development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>development</span></a> <a href="https://noc.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <br><a href="https://www.crowdsupply.com/silicognition/mant1s" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">crowdsupply.com/silicognition/</span><span class="invisible">mant1s</span></a></p>
Jeremy, aka Jaharmi<p><span class="h-card" translate="no"><a href="https://social.lol/@pauls" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>pauls</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@bigzaphod" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>bigzaphod</span></a></span> Totally agree! <a href="https://fosstodon.org/tags/ESPHome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ESPHome</span></a> was my gateway into this, and then to <a href="https://fosstodon.org/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> /#CircuitPython. I used MicroPython for an electronic conference name badge with <a href="https://fosstodon.org/tags/airquality" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>airquality</span></a> sensors, which has been pretty fun as a project. (Not to mention useful, as it also led to my discovery of a <a href="https://fosstodon.org/tags/headache" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>headache</span></a> / <a href="https://fosstodon.org/tags/migraine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>migraine</span></a> trigger I was unaware of before.)</p>
Stylus<p>ooh interesting. Someone else is working on MicroPython for m68k.</p><p>I just discovered <a href="https://github.com/yunkya2/micropython-x68k/tree/port-x68k/ports/x68k" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/yunkya2/micropython</span><span class="invisible">-x68k/tree/port-x68k/ports/x68k</span></a> The documentation is all in Japanese and I haven't plugged it into a translator yet to find out the details except that possibly this version is for Sharp X680x0.</p><p><a href="https://social.afront.org/tags/retroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retroComputing</span></a> <a href="https://social.afront.org/tags/m68k" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68k</span></a>-micropython <a href="https://social.afront.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a></p>
Jonathan Hogg<p>Fuck me! A PR I opened adding PCNT support to the ESP32 <a href="https://mastodon.social/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> port *four* years ago last week has just been merged!</p><p>Which is great news as I've got two projects in flight that are going to need it and I can finally stop maintaining my own fork</p>
RevK :verified_r:<p>I have a few of these, well, will have a few more over next week...</p><p><a href="https://www.tindie.com/products/revk/esp32-s3-mini-1-n4-r2-dev-board-all-gpios/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">tindie.com/products/revk/esp32</span><span class="invisible">-s3-mini-1-n4-r2-dev-board-all-gpios/</span></a></p><p>I am tweaking the design but all of them do 2A 3.3V power for many peripherals, and ALL the GPIOs for an ESP32-S3-MINI-1-N4-R2, and a single WS2812 LED.</p><p>USB-C and DC 5V-17V</p><p>They are ideal for anyone wanting to play around with these processors, whether native ESP IDF, <a href="https://toot.me.uk/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a>, <a href="https://toot.me.uk/tags/arduino" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>arduino</span></a>, or whatever.</p>
John_Newall<p>This prototype cycle for my temperature and humidity tracker is almost complete with a new 50% slimmer case. It's been quite a journey <a href="https://fosstodon.org/tags/electronics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>electronics</span></a> <a href="https://fosstodon.org/tags/kicad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kicad</span></a> <a href="https://fosstodon.org/tags/esp32" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>esp32</span></a> <a href="https://fosstodon.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> <a href="https://fosstodon.org/tags/blender" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blender</span></a> <a href="https://fosstodon.org/tags/3dprinting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>3dprinting</span></a></p>
Scott Small 🇨🇦<p>For those not following <a href="https://oldbytes.space/tags/m68kMicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68kMicroPython</span></a> development, a lot has been happening rather quickly in the last couple of weeks!</p><p>There's enough support for the Toolbox now that I've been able to re-create the <a href="https://oldbytes.space/tags/Macstodon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Macstodon</span></a> splash/loading screen with it - see below.</p><p>Big thanks to <span class="h-card" translate="no"><a href="https://social.afront.org/@stylus" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>stylus</span></a></span> for all his hard work developing the port and making this possible!</p><p><a href="https://oldbytes.space/tags/RetroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RetroComputing</span></a> <a href="https://oldbytes.space/tags/RetroProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RetroProgramming</span></a> <a href="https://oldbytes.space/tags/VintageMac" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VintageMac</span></a> <a href="https://oldbytes.space/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://oldbytes.space/tags/Mac" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mac</span></a> <a href="https://oldbytes.space/tags/MacOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MacOS</span></a> <a href="https://oldbytes.space/tags/ClassicMac" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ClassicMac</span></a> <a href="https://oldbytes.space/tags/68k" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>68k</span></a> <a href="https://oldbytes.space/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://oldbytes.space/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> <a href="https://oldbytes.space/@smallsco/114889267494614758" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">oldbytes.space/@smallsco/11488</span><span class="invisible">9267494614758</span></a></p>
Stylus<p>I made a new release of m68k-micropython: <a href="https://github.com/m68k-micropython/micropython/releases/tag/20250720" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/m68k-micropython/mi</span><span class="invisible">cropython/releases/tag/20250720</span></a></p><p>This adds the following groups of mac APIs (which I didn't actually test):</p><ul><li>deskmgr</li><li>dialogmgr</li><li>fontmgr</li><li>menumgr</li><li>textedit</li></ul><p><a href="https://social.afront.org/tags/m68kMicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68kMicroPython</span></a> <a href="https://social.afront.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> <a href="https://social.afront.org/tags/macintosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macintosh</span></a> <a href="https://social.afront.org/tags/vintageMacintosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vintageMacintosh</span></a> <a href="https://social.afront.org/tags/retroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retroComputing</span></a></p>
Stylus<p><a href="https://social.afront.org/tags/m68kMicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68kMicroPython</span></a> happenings: The "struct-types" branch is coming along. There are now autogenerated bindings for the following parts of the API: modmactypes.c<br>modqd.c<br>modtoolboxevent.c<br>modtoolboxutil.c<br>modwindowmgr.c</p><p>there's probably broken stuff but for instance you can now splat directly onto the screen</p><pre><code>&gt;&gt;&gt; scrn = qd.qdGlobals().screenBits<br>&gt;&gt;&gt; n = scrn.bounds.bottom * scrn.rowBytes<br>&gt;&gt;&gt; for i in range(n): scrn.baseAddr[i] = i<br></code></pre><p>and types are checked:</p><pre><code>&gt;&gt;&gt; qd.FillRect(7, "blue")<br>Traceback (most recent call last):<br> File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br>TypeError: Expected int, got Rect<br></code></pre><p>um well except the error message is backwards 💦 </p><p>and in upstream <a href="https://social.afront.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> land my exploration found that there were problems with the uctypes module and "REPR_B", so I'm working on fixing that and ensuring it stays fixed via the CI system: <a href="https://github.com/micropython/micropython/pull/17688" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/micropython/micropy</span><span class="invisible">thon/pull/17688</span></a></p><p>right at the moment, the micropython PR is failing for some reason that will probably be more obvious to me once I've had another night to recover from jet lag.</p>
Mike Coats 🏴󠁧󠁢󠁳󠁣󠁴󠁿🇪🇺🌍♻️<p>Here we go! An ESP32-S3 running MicroPython using each of the Monstera leafs as a capacitive touch pad.</p><p>Each pad works individually and multitouch works across all four too!</p><p><a href="https://mikecoats.social/tags/electronics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>electronics</span></a> <a href="https://mikecoats.social/tags/microPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microPython</span></a></p>
Poul-Henning Kamp<p>I am a sucker for opto-electronics, so got this discarded kit (ex CNN's London studio?)</p><p>Each button has a 36x24 LCD display and red+green LEDS.</p><p>Well-designed hardware: ColdFire (=68k) CPU, plenty of RAM, plenty of FLASH, serial port, ethernet etc.</p><p>Firmware ? Not so impressive, but very easy to get rid of:</p><p>Anybody can flash new firmware from ethernet: No userid, no password, all you need to know is the IP# and how they botched their CRC-16 implementation.</p><p>Now it runs <a href="https://fosstodon.org/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> :-)</p>
Mike Coats 🏴󠁧󠁢󠁳󠁣󠁴󠁿🇪🇺🌍♻️<p>My latest blog post: Metronalmost</p><p><a href="https://mikecoats.com/metronalmost/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">mikecoats.com/metronalmost/</span><span class="invisible"></span></a></p><p>This metronome, by design, will never, ever, tick exactly once per second. This infuriating object is designed to thwart the goals of <span class="h-card" translate="no"><a href="https://hackaday.social/@hackaday" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>hackaday</span></a></span>'s One Hertz Challenge contest.</p><p><a href="https://mikecoats.social/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a> <a href="https://mikecoats.social/tags/electronics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>electronics</span></a> <a href="https://mikecoats.social/tags/hackaday" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hackaday</span></a> <a href="https://mikecoats.social/tags/microPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microPython</span></a> <a href="https://mikecoats.social/tags/openSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openSource</span></a> <a href="https://mikecoats.social/tags/openHardware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openHardware</span></a></p>
Stylus<p>I went ahead and created a github organization for a fresh fork of micropython, and then made a release. You can get a fresh dsk of this micropython mac port from <a href="https://github.com/m68k-micropython/micropython/releases" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/m68k-micropython/mi</span><span class="invisible">cropython/releases</span></a> and as <span class="h-card" translate="no"><a href="https://oldbytes.space/@smallsco" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>smallsco</span></a></span> noted it works on infinitemac.org</p><p><a href="https://social.afront.org/tags/umac" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>umac</span></a> <a href="https://social.afront.org/tags/microPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>microPython</span></a> <a href="https://social.afront.org/tags/retro68" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retro68</span></a> <a href="https://social.afront.org/tags/macintosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macintosh</span></a> <a href="https://social.afront.org/tags/retroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retroComputing</span></a></p>
Stylus<p>Doing a little iterative code development in micropython on an emulated m68k mac... I might not be so happy with the loading time if a real floppy was involved, but in an emulator it's heckin' snappy.</p><p>Clearly I need to tackle the issue that you can't <u>REALLY</u> draw to the same window as the terminal....</p><p><a href="https://social.afront.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> <a href="https://social.afront.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://social.afront.org/tags/retroComputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retroComputing</span></a> <a href="https://social.afront.org/tags/retro68" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retro68</span></a> <a href="https://social.afront.org/tags/macintosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macintosh</span></a> <a href="https://social.afront.org/tags/m68k" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68k</span></a></p>
Stylus<p>Now you can witness one of the first quickdraw calls from MicroPython on mac... 🎉 ⬛ </p><p><a href="https://social.afront.org/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> <a href="https://social.afront.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://social.afront.org/tags/retrocomputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retrocomputing</span></a> <a href="https://social.afront.org/tags/retro68" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retro68</span></a> <a href="https://social.afront.org/tags/macintosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>macintosh</span></a> <a href="https://social.afront.org/tags/m68k" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>m68k</span></a></p>
AxWax<p>how it started: "let's try to get started on a set for my <a href="https://chaos.social/tags/RFFF25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RFFF25</span></a> gig"</p><p>how it's going: "attempting (and so far failing) to completely rewrite some 2-year-old <a href="https://chaos.social/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a> code on my DIY MIDI to CV interface" 😩</p>
Xavi<p>Is there anyone in the room with knowledge about <a href="https://talamanca.social/tags/ESP32" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ESP32</span></a> microcontrollers?</p><p>I am playing with a <a href="https://talamanca.social/tags/Waveshare" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Waveshare</span></a> development board that has an <a href="https://talamanca.social/tags/AMOLED" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AMOLED</span></a> and a touchscreen, and it says it has built-in <a href="https://talamanca.social/tags/SH8601" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SH8601</span></a> display driver and <a href="https://talamanca.social/tags/FT3168" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FT3168</span></a> capacitive touch chip, using <a href="https://talamanca.social/tags/QSPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QSPI</span></a> and <a href="https://talamanca.social/tags/I2C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>I2C</span></a> communication respectively.</p><p><a href="https://www.waveshare.com/product/arduino/boards-kits/esp32-s3-touch-amoled-1.8.htm" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">waveshare.com/product/arduino/</span><span class="invisible">boards-kits/esp32-s3-touch-amoled-1.8.htm</span></a></p><p>It directly works in <a href="https://talamanca.social/tags/Arduino" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Arduino</span></a> with <a href="https://talamanca.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>, but I am trying to make it work with <a href="https://talamanca.social/tags/MicroPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroPython</span></a>. </p><p>Before I spend effort trying to compile it with <a href="https://talamanca.social/tags/LVGL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LVGL</span></a>, I want to know if I could print a "Hello World" to the screen as is, and while my mind tells me that I need a driver, the sentence "built-in display driver using QSPI" makes me think that I could eventually use the display without code drivers, but I don't know how.</p><p>I'd love to see an example, if it's possible, or to be pointed to any resources that I can read in this regard. I am complete newbie.</p><p>Re-posts are appreciated.</p><p>Thank in advance 😊</p>