Toit is a modern high-level language designed specifically for microcontrollers
Toit is optimised for live reloading on your microcontroller. Your code runs incrementally as you write it and you get instant feedback. Push changes over your local WiFi in two seconds and reserve your USB cable for charging your phone. You iterate quickly, learn fast, and build better things.
What if you want to say "Hello" a lot without getting your fingers all tired? You should define a function. Calling a function in Toit is as simple as mentioning its name. If the function doesn’t take arguments that’s all you need.Learn more...
hi: print "Hello World!" greet name: print "Hello $name!" main: hi greet "Kasper"
Toit + Jaguar = 🥳
Jaguar is a small application developed by the Toit team, that runs on your ESP32. It enables live reloading and lets you update and restart your ESP32 code over WiFi.
Update your code and restart your ESP32 conveniently over WiFi. No need to flash over serial, reboot your device, or wait for it to reconnect to your network.
Change your code in your editor, update it on your device, and restart it all within seconds.
Updates contain compiled Toit programs that are relocated and installed in flash on the device. Old versions are stopped and their resources are freed automatically.
The Toit language can also be used on the desktop. In fact, we use it to develop many of the tools that come with the SDK.
Follow this easy step-by-step guide to get up and running with Toit.
Download and get started with the latest version of Toit.
Learn how to code with Toit and how you can use it in your IoT projects.
Toit v2.0.0-alpha.42 release Nov. 25th, 2022
Optimize access to Task.current and calls to identical. Fix a few issues with the BLE stack. Add AES functions for GCM mode, used by TLS. Remove check whether port is character device in tools/firmware on windows. Disable DTLS supporton ESP32 targets. Add cursor to buffered readers . Allow an odd number of hex digits in encoding.hex.decode. Fix flashing on Windows. Rewrite 'pin.wait_for'.
Toit v2.0.0-alpha.41 release Nov. 14th, 2022
Add support for external SPI flash. Update sdk/tools to work on Windows hosts.
Toit v2.0.0-alpha.40 release Nov. 13th, 2022
Add support for ESP-NOW. Add necessary primitives for implementing pkg-host on Windows. Improve generated documentation for AES. Fix BLE descriptors.
Toit v2.0.0-alpha.39 release Nov. 4th, 2022
Implement FlashRegistry for Windows hosts. Minor fixes for the ESP32S2.
Toit v2.0.0-alpha.38 release Nov. 2nd, 2022
Add networking capability on Windows. Add UART support on Mac and Windows. Fix compilation on ARM-based Windows. Raise TLS receive buffer size on host platforms. Use non-integer constants for UART stop bit count. Fix calculation of 64 bit CRCs.
Toit v2.0.0-alpha.37 release Nov. 1st, 2022
Add accelerated CRC algorithms. Prefer writing full pages during OTA. Make GitHub actions work in forks.
Writing a driver in Toit
Just a few lines of Toit code are needed to reap the full benefits of the Toit ecosystem — without having to rely on firmware developers.
Choosing Toit for your IoT project means that your ESP32-based devices become as easy to program as smartphones: develop your app, deploy it to the devices of your choice, and then update and reinstall as often as needed, even on a shaky connection — all that while the other apps on the device keep running. Welcome to the 21st century, IoT!