Reading Data from Micro:bit
Micro:bit uses a process called WebUSB, which makes a connection between the browser or app and it via the USB cable. To enable the WebUSB to Micro:bit, firmware version 0250 …
Micro:bit with IR sensor
Sample to use on pin to trigger the IR sensor detects an object. This is event-driven mode, Micro:bit will capture all trigger change and execute them one by one. Legacy …
Adding scroll up & down arrow into DIV
Down arrow is shown to let the reader know there is content below, while up arrow is shown to allow reader to jump back to top HTML CSS Javascript Dependent …
Unsupport time input on Android
Symptom: time selector from Android always be validated as an error. Solution: add pattern=”[0-9]{2}:[0-9]{2}” attribute on to time input. Explanation from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time
HTML5 setCustomValidity oninvalid and oninput explanation
Symptom: When an input field is triggered as invalid input, setCustomValidity(‘….’) will be fired and show the custom message. After correcting the value of the input, the result of validation …
Micro:bit Hand Wash Timer
中國武漢肺炎非常嚴峻,專家建議洗手是最有效的預防方法。洗手必需最少20秒時間。這 Micro:bit 的編程是一個20秒的計時器。 使用方法:按 A 鍵開始,20秒倒數後心心閃爍便完成。