XOD 0.27.0: Tweaks and Simulation
Howdy! Today the XOD visual programming language brings something new and unique. 🥁 They are tweak nodes and debugging modes.
Many of you love the
watch nodes which can show values coming from a microcontroller board in real-time. XOD goes further. Starting from 0.27.0 watches obtain their antipodes called tweaks. Tweaks are similar to constants, but you may change their values in real-time when the debugger is active. So, basically, you can adjust a parameter and see how your device reacts right away!
All the watch and tweak nodes now live in a dedicated library
Tweaks are cool, watches too, but do we always need an Arduino to test a small patch? In many cases, we want to check an algorithm, a part of the program which does not interact with real hardware but instead relies on time, numbers, and logic. Now debugging becomes even more accessible. You may run a program without extra hardware at all! Your PC is enough. Place a few watches and tweaks onto your patch and hit Deploy → Simulate. Vois la, the program goes live even without Arduino, even if you are running the browser-based IDE.
You can read about the new nodes and session modes in the new guide article:
A few more notable improvements shipped with 0.27.0. First, XOD IDE now offers a simple serial console which is useful to talk to UART hardware over USB directly. If you use Arduino IDE, you know what is it: the Serial Monitor. Here you can send a line to the module and see its response back on the screen.
Next, the standard library got a color type. The color operations are available in
xod/color. The new type is not used anywhere yet, this will be done in future releases; however, it defines an important concept so that authors of libraries can speak the same language and rely on the unified type system.
xod/patch-nodes/jumper node — which was previously used as an internal utility — gets own outstanding look. It renders as a simple line segment now and still does nothing. You may use it to visually re-route links without affecting the logic.