Raspberry Pi Pico Essentials (Extract)

Page 1

books Index

Raspberry Pi Pico Essentials

Program, build, and master over 50 projects with MicroPython and the RP2040 microprocessor ED •

T

• T

Send the . p o o l m a r g o r Main p

R I ErDe to smar temperatu EST

UART Bluetooth Smartphone LCD Sensors DAC & ADC 7-segment BME-280 RP2040 I2S EEPROM

ead data R # hile True: adline() GPIO # Decode buf = uart.re ) ' 8 F T Wi-Fi e('U d o c e d . f u b 2? received? = P10T TM# dat RS-232 App "T?") n = dat.find( Autorun ru B shed-DC GI2eCt the : 0 > n #! PWM if Hello World ) ( e r u t a rd r Breadboa # ILE nDsert T T = GetTempe str(T) Length Tstr = "T=" + # T Io ) ) r n(Tst # AT c " n Tlen = str(le \ r \ " + n e l END="+T Dt = "AT+CIPS # Send to ESP ) uart.write(Dt # Wait 2 sec ) utime.sleep(2 # Send da tr) uart.write(Ts Dogan Ibrahim ● 495


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.