's Avatar

@decdiv

17
Followers
9
Following
57
Posts
21.02.2025
Joined
Posts Following

Latest posts by @decdiv

Toit package registry

My BLE HID driver for Toit has been published.

pkg.toit.io/package/gith...

#ble #hid #toit

12.12.2025 19:11 👍 1 🔁 0 💬 0 📌 0

Always fun when 'memcpy' isn't working. Toit's RMT encoder wasn't working on the esp32c3 because the data wasn't correctly copied.

Not sure yet if it's a known issue or limitation.

#esp32c3 #toit

07.12.2025 14:12 👍 0 🔁 0 💬 0 📌 0
Converting Nikon SA-21 adaptor to SA-30

Just modded my Super Coolscan 5000 negative scanner. The negative feeder is now recognized as a SA-30, allowing to scan 40 negatives at once.

Tutorials: www.shtengel.com/gleb/convert...
www.stockholmviews.com/coolscan-rol...

#scanning #nikon #modding #negatives

04.12.2025 10:31 👍 0 🔁 1 💬 0 📌 0
Preview
Scripts to automatically commit dependabot PRs. Scripts to automatically commit dependabot PRs. GitHub Gist: instantly share code, notes, and snippets.

Just had to commit plenty of dependabot PRs (update of the checkout action).

Here are my scripts that made it a bit easier:
gist.github.com/floitsch/4d3...

#github #dependabot

30.11.2025 15:06 👍 1 🔁 0 💬 1 📌 0

Always fun when you go through the trouble of writing a bug repro, just to find out that the main already has a bug-fix for it...

I even looked at the GitHub repository, but somehow ended looking at the wrong branch there.

23.11.2025 15:42 👍 0 🔁 0 💬 0 📌 0
Preview
Twenty years on: Did joining the EU make new members richer? EU membership enjoys strong approval in new member states largely thanks to the economic firepower they have gained. Euronews Business takes a closer look at the GDP growth story in the new accession ...

Clear benefits for (poorer) countries to join the EU.

www.euronews.com/business/202...

#eu

03.11.2025 20:14 👍 0 🔁 0 💬 0 📌 0

Lots of package updates after the SDK changed `--on-error` to `if-error` (and yes: there is a logic behind that change).

I hope I have updated all packages under my control.

#toit

29.10.2025 19:12 👍 0 🔁 0 💬 0 📌 0

Windows...
When doing a `stat` on a directory that is in the process of being created/removed one can hit a permission-denied error.

I just implemented a directory-based lockfile approach, and hit this issue with Windows. Now I need to retry when hitting that error...

#toit #toitlang

29.10.2025 14:52 👍 0 🔁 0 💬 0 📌 0

Toit v2.0.0-alpha.189 has been released.
Enjoy!

#toitlang #toit

28.10.2025 11:53 👍 2 🔁 2 💬 0 📌 0

Good progress on my lockfile package. Should be ready for a release as soon as the Toit SDK and host package have been updated.

This was the last major blocker for a pure Toit-based package manager.

#toit #lockfile

20.09.2025 19:21 👍 0 🔁 0 💬 0 📌 0

Just fixed an issue with BLE notifications. NimBLE was running out of resources, and instead of waiting and retrying we just gave up.

With that fixed my HID keyboard library seems to work nicely.

#toit #ble

14.09.2025 19:40 👍 1 🔁 0 💬 0 📌 0

Don't know what I would do without my oscilloscope.

Just looked at an issue where a modem would wake up when the ESP32 went into deep-sleep. Turns out, there was a 10us spike on the modem's reset line during shut-down. These kind of things are almost impossible to debug without an oscilloscope.

14.09.2025 11:23 👍 5 🔁 0 💬 0 📌 0

This has cost me soo much time:

> For data transferred from the HID Device to the Report Host, the Report ID is prepended to data received by the Report Host [...] before being passed to a USB HID Class driver.

13.09.2025 15:10 👍 0 🔁 0 💬 0 📌 0

Playing around with BLE HID.
On the one hand quite simple, but on the other hand finicky. Very frequently I have Android that works fine, but not Linux, and then Linux that works, but not Android...

#toit #ble

07.09.2025 19:46 👍 1 🔁 0 💬 1 📌 0

DSB (Danish railroad operator):
===
[...] buy your tickets on our website [...] - these tickets cannot be transferred to the app, as they are two different systems.

An app ticket is a digital ticket and a print-it-yourself ticket is a pdf file [...].

They can't be synchronized.
===

#dsb #fail

18.07.2025 10:01 👍 2 🔁 0 💬 0 📌 0

We just got the confirmation: Toit will have a booth at Maker Faire Hannover 2025 (August 23-24).

If you're attending, make sure to drop by!

03.06.2025 12:04 👍 1 🔁 1 💬 0 📌 0

And don't forget "\r\n" line endings.

29.05.2025 14:27 👍 0 🔁 0 💬 0 📌 0

TIL that tar archives can fail to extract on Windows if the target of a symlink appears later than the actual symlink (inside the same archive).

28.05.2025 14:48 👍 1 🔁 0 💬 0 📌 0

It's amazing how much effort goes into supporting Windows. `\` as delimiters for paths; a different way of spawning programs (without a way of passing arguments as array), ...
And today I spent the whole day trying to get Toit to work nicely on Windows systems with non-UTF-8 code pages.

27.05.2025 17:58 👍 1 🔁 0 💬 1 📌 0

Managed to create a debian package for Toit today. Hopefully the next release will build it automatically.
I also looked into a homebrew package, and that looks good too. (Still needs more testing).

23.05.2025 19:31 👍 2 🔁 0 💬 0 📌 0
Toit programming language

Toit v2.0.0-alpha.180 was released.
See toitlang.org (latest news) for more details.

09.05.2025 15:28 👍 0 🔁 1 💬 0 📌 0

Just implemented RMT encoder support for Toit.
Users will be able to provide a start|between|stop-sequence (where "between" is between bytes), and then sequences for 1/2/4 bits.
Just implemented a UART using this approach. Pretty neat.

#Toit #RMT #ESP32

30.04.2025 16:59 👍 1 🔁 0 💬 0 📌 0

Still working on rewriting the RMT driver of Toit to the "new" API of the ESP-IDF.
I believe I made a bit of progress today. Pretty sure I found a race condition in the ESP-IDF driver.

#Toit #RMT

23.04.2025 16:32 👍 0 🔁 0 💬 0 📌 0

Shootout to GitHub. Our GitHub account had unpaid invoices from the previous owner. We filed a support ticket, and GitHub voided the missing payments without any issues. Thanks!

#GitHub

17.04.2025 06:26 👍 1 🔁 0 💬 0 📌 0

My external USB drive is acting up.
I used `UDF`, so it's platform independent. I'm regretting that decision now. The `fsck` for UDF consists of `int main() { return 0; }`. :(

github.com/pali/udftool...

14.04.2025 11:50 👍 0 🔁 0 💬 0 📌 0
Redbat monitor arm for laptops. Can be fixed on a desk. Swivels out of the way when not needed.

Redbat monitor arm for laptops. Can be fixed on a desk. Swivels out of the way when not needed.

Bought two of these arms (designed for laptops) for my desk. One for my oscilloscope, and one for my soldering station.

They are now out of my way when I don't need them, but still easily accessible.

03.04.2025 05:43 👍 2 🔁 0 💬 0 📌 0
Buffer overrun in the I2C driver (IDFGH-14934) · Issue #15643 · espressif/esp-idf Answers checklist. I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there. I have updated my IDF branch (master or release) to the latest version and checked t...

Found two issues in the i2c slave implementation of the esp-idf today. Explains why I couldn't get the Toit implementation to work.
Hopefully progress will be faster with those out of the way.

github.com/espressif/es...
github.com/espressif/es...

#Toit #I2C #buffer-overrun #ESP-IDF

24.03.2025 17:20 👍 1 🔁 0 💬 0 📌 0

Currently using wedrivers to write a test for some code that has a web-page.

For debugging I'm not running the browser in headless mode, and I have to say: it's pretty cool to see the browser change in front of me.

#webdriver

22.03.2025 14:39 👍 0 🔁 0 💬 0 📌 0

Wasn't really on the top of my TODO list, but couldn't stand it anymore. Just refactored a small portion of the host package. The 'fork' function should be much easier to use once my PR lands.

#Toit

21.03.2025 18:05 👍 0 🔁 0 💬 0 📌 0

Our sign-server (running locally at my home) isn't super stable. I think it's because it's running from an USB drive.

I just took a Toit-plug (smart-plug with an ESP32 inside) and wrote a small Toit program that checks the health periodically. If the server isn't reachable the plug resets it now.

20.03.2025 13:28 👍 1 🔁 0 💬 0 📌 0