|Top Previous Next|
All programmable boards, programmable serial controllers, and Tibbo Project System (TPS) devices offered by Tibbo feature a button referred to as the "setup" or "MD" button ("MD" stands for "mode").
All programmable Tibbo modules have a line for connecting this button externally.
The setup button has a special system function: powering-up a Tibbo device with this button pressed (on modules, the MD line held LOW) causes the device to enter the firmware upgrade mode. This mode is for uploading new TiOS (firmware) into the device. The second system function of the MD button is to bypass forgotten passwords.
When a programmable Tibbo device is executing a Tibbo BASIC/C application, the MD button can be used as a general-purpose input button.
The button. object offers the folloing:
The button.time read-only property returns the time (in 0.5 intervals) elapsed since the button was last pressed or released. You can use this property to execute different button actions depending on whether the button was "long-pressed" or "short-pressed":
The button does not require any pre-configuration.
The button.pressed R/O property, however, bypasses the debouncing algorithm to return the immediate state of the button at the very moment the property is read.