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 34 (the light sensor on a CYD).
Hold the button — each press bumps the counter, cycles the RGB LED through
red → green → blue (pins 4/16/17, the CYD's onboard LED, active-low), 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.