Skip to content

Commit 01c50d8

Browse files
authored
Update README.md
1 parent 1e80f4f commit 01c50d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Send a signal to activate an ultrasonic ping signal to be sent out, it then wait
6868
```blocks
6969
let ir_value = cyberbot.ping(cyberbot.ServoPin.P16, cyberbot.Units.CM)
7070
```
71-
Starts reading the binary values returned by the QTI sensors stating if light is seen (0) or if there is no light (1), then compiling all the sensors' values together converting them into a single decimal value. Next, it takes the decimal value from qti_states and converts it back to binary, which is then shifted over to the desired bit location (3) and returns the binary value that was stored there.
71+
This starts reading the binary values returned by the QTI sensors stating if light is seen (0) or if there is no light (1), then compiling all the sensors' values together converting them into a single decimal value. Next, it takes the decimal value from qti_states and converts it back to binary, which is then shifted over to the desired bit location (3) and returns the binary value that was stored there.
7272
```blocks
7373
let qti_states = cyberbot.qtiRead(cyberbot.BotPin.P7, cyberbot.BotPin.P4)
7474
let bit_value = cyberbot.bitGet(qti_states, 3)

0 commit comments

Comments
 (0)