meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
groups:mg:temperature_pressure_and_humidity_monitoring [2022/01/21 16:16] fienegroups:mg:temperature_pressure_and_humidity_monitoring [2024/03/20 09:37] (current) – Admin: Syntax-Update (Migration from deprecated "fontcolor" plugin to "color" plugin) klaus
Line 57: Line 57:
  
 <blockquote> <blockquote>
-<fc #008000>//#!/usr/bin/python3//</fc>+<color #008000>//#!/usr/bin/python3//</color>
  
-**<fc #008000>import</fc> <fc #6495ed>board</fc> \\ +**<color #008000>import</color> <color #6495ed>board</color> \\ 
-<fc #008000>import</fc> <fc #6495ed>busio</fc> \\ +<color #008000>import</color> <color #6495ed>busio</color> \\ 
-<fc #008000>import</fc><fc #6495ed> adafruit_bmp280</fc>**+<color #008000>import</color><color #6495ed> adafruit_bmp280</color>**
  
 i2c = busio.I2C(board.SCL, board.SDA)\\ i2c = busio.I2C(board.SCL, board.SDA)\\
 bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76) bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76)
  
-<fc #008000>print</fc>(<fc #ff0000>"Temperature: %0.1f C"</fc> % bmp280.temperature)\\ +<color #008000>print</color>(<color #ff0000>"Temperature: %0.1f C"</color> % bmp280.temperature)\\ 
-<fc #008000>print</fc>(<fc #ff0000>"Pressure: %0.1f hPa"</fc> % bmp280.pressure)+<color #008000>print</color>(<color #ff0000>"Pressure: %0.1f hPa"</color> % bmp280.pressure)
 </blockquote> </blockquote>