研究筆記-LoPy

緣起

    聽說有個整合了 Wifi, Bluetooth, LoRa 的好東西,所以借來玩玩

Step by Step

GPIO Checked

# sample code in the document seems have syntax error, following is good.

import machine

led=machine.Pin("GPIO12",machine.Pin.OUT)

led(1)

Boot with your code

Replace main.py in flash/

network module don’t have Bluetooth. Maybe need upgrade

Upgrade firmware

升級時,電源另外給 5v, 資料還是用 3.3v

FTDI TxD-P0(Rx0), FTDI RxD-P1(Tx0), FTDI GND-GND.

0.9.0.b network module don’t have Bluetooth. 1.1.0.b1 have.

from 0.9.0.b to 1.1.0.b1

>>> import os

>>> print(os.uname().release)

1.1.0.b1

Check Bluetooth Adv

Output: CC2650 SensorTa.

Normal console output

Try PyMate

參考資料