Author: shedboy71

An if statement can be followed by an optional else statement, which executes when the expression is false. Syntax The syntax of an if...else statement is [codesyntax lang="cpp"] if(expression) { /* statement(s) will execute if the expression is true */ } else { /* statement(s)...
img
while loops will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit. This could be in your code, such as an incremented variable, or an external condition, such...

Here we show you how to create a custom image on the led matrix, we use the Mu editor [codesyntax lang="python"] from microbit import * im = Image('99999:90009:90009:90009:99999:') display.show(im) [/codesyntax].

img
The MCP9808 digital temperature sensor converts temperatures between -20°C and +100°C to a digital word with ±0.5°C (max.) accuracy. The MCP9808 comes with user-programmable registers that provide flexibility for temperature sensing applications. The registers allow user-selectable settings such as Shutdown or low-power modes and the...

The HDC1000 is a digital humidity sensor with integrated temperature sensor that provides excellent measurement accuracy at very low power. The device measures humidity based on a novel capacitive sensor..

The BME280 is a humidity sensor features an extremely fast response time which supports performance requirements for emerging applications such as context awareness, and high accuracy over a wide temperature range..

1 11 12 13 15
This div height required for enabling the sticky sidebar
Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views :