1*** Variables ***
2${UART}                       sysbus.uart0
3${URI}                        @https://dl.antmicro.com/projects/renode
4
5${BMP180}=     SEPARATOR=
6...  """                                         ${\n}
7...  using "platforms/cpus/nrf52840.repl"        ${\n}
8...                                              ${\n}
9...  bmp180: Sensors.BMP180 @ twi0 0x77          ${\n}
10...  """
11
12*** Keywords ***
13Create Machine
14	Execute Command          mach create
15	Execute Command          machine LoadPlatformDescriptionFromString ${BMP180}
16	Execute Command          sysbus LoadELF ${URI}/BMP180_I2C.ino.arduino.mbed.nano33ble.elf-s_3127076-ba5f49cd34cd9549c2aa44f83af8e2011ecd1c22
17
18*** Test Cases ***
19Should Read Temperature
20	Create Machine
21	Create Terminal Tester    ${UART}
22
23	Execute Command           sysbus.twi0.bmp180 Temperature 24
24
25	Start Emulation
26
27	Wait For Line On Uart     Temperature: 24.00 degC
28
29Should Read Pressure
30	Create Machine
31	Create Terminal Tester    ${UART}
32
33	Execute Command           sysbus.twi0.bmp180 UncompensatedPressure 1100
34
35	Start Emulation
36
37	Wait For Line On Uart     Pressure: 231048.00 Pa
38