Browse Source

uart number is fixed

Nadiia Kotelnikova 4 years ago
parent
commit
024886a662
1 changed files with 2 additions and 11 deletions
  1. 2 11
      bluetooth/at_commands.py

+ 2 - 11
bluetooth/at_commands.py

@@ -1,20 +1,11 @@
-'''
-pyboard - BT adapter
-X9        RXD
-X10       TXD
-GND       GND
-3V3       KEY
-V+        VCC
-'''
-
 import pyb
 
 led2 = pyb.LED(2)
 led3 = pyb.LED(3)
 
-uart = pyb.UART(3, 38400)
+uart = pyb.UART(1, 38400)
 
-command = "AT+ORGL?" + "\r\n"
+command = "AT+VERSION?" + "\r\n"
 
 while True:
     uart.write(command)