Hardware
In Kog, a pin is a signal. useButton watches a GPIO input, useAnalogRead
streams ADC millivolts, and useDigitalWrite drives an output — all as
fine-grained reactive values, so a pin edge updates the UI the same way
useState does. The same code runs unchanged on a real board.
The simulator gives you virtual hardware: press the button to drive GPIO pin 0 (BOOT on a real board), and drag the slider to feed millivolts into the ADC on pin 4.
Hold the button — each press bumps the counter, toggles the LED pin, and logs to
the console panel. Move the slider and watch the adc: … mV readout track it.
This is the shipped examples/hardware-demo, seeded from source.