Telegram Group & Telegram Channel
Forwarded from Raspberry Project
اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/33
Create:
Last Update:

اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/33

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

That strategy is the acquisition of a value-priced company by a growth company. Using the growth company's higher-priced stock for the acquisition can produce outsized revenue and earnings growth. Even better is the use of cash, particularly in a growth period when financial aggressiveness is accepted and even positively viewed.he key public rationale behind this strategy is synergy - the 1+1=3 view. In many cases, synergy does occur and is valuable. However, in other cases, particularly as the strategy gains popularity, it doesn't. Joining two different organizations, workforces and cultures is a challenge. Simply putting two separate organizations together necessarily creates disruptions and conflicts that can undermine both operations.

Find Channels On Telegram?

Telegram is an aspiring new messaging app that’s taking the world by storm. The app is free, fast, and claims to be one of the safest messengers around. It allows people to connect easily, without any boundaries.You can use channels on Telegram, which are similar to Facebook pages. If you’re wondering how to find channels on Telegram, you’re in the right place. Keep reading and you’ll find out how. Also, you’ll learn more about channels, creating channels yourself, and the difference between private and public Telegram channels.

Micropython & IOT from ar


Telegram Micropython & IOT
FROM USA