From b74a4ed7b0eca057ea501dcf90250cef8312be6b Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Tue, 30 Jun 2026 15:35:56 +0200 Subject: [PATCH] Update to mention the QR package. --- docs/tutorials/misc/c-service.mdx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/misc/c-service.mdx b/docs/tutorials/misc/c-service.mdx index bb37fd54..fd570de7 100644 --- a/docs/tutorials/misc/c-service.mdx +++ b/docs/tutorials/misc/c-service.mdx @@ -88,11 +88,20 @@ As you can see, the Toit program successfully communicated with the C service. ## Qrcode service An echo service is nice, but not very useful. Let's create a more useful service -that generates QR codes. As of 2024-05-15 there doesn't exist a QR-code library -that is written in Toit, so we will use +that generates QR codes. We will use Espressif's [qrcode](https://components.espressif.com/components/espressif/qrcode) component that is written in C. + + +These days you can generate QR codes directly in Toit with the +[qr](https://pkg.toit.io/package/github.com%2Flightbug-io%2Ftoit-qr) package, so +you would not normally reach for a C component just for this. We still use the C +`qrcode` component here because this tutorial is about communicating with C code, +and a QR-code generator makes for a realistic example. + + + ### Toit qrcode service Create a new `toit-qrcode` directory next to the `echo` directory in the `components` folder.