gpio.mode(LEDpin, gpio.OUTPUT)--set LED pin as output pin gpio.write(LEDpin, gpio.LOW)— set LED state initially low
—begin uart with specs uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) —set callback function on receive to make decision about LED on/off uart.on("data",1, function(data) if(data == "1") then gpio.write(LEDpin, gpio.HIGH) print("LED ON") elseif(data == "2") then gpio.write(LEDpin, gpio.LOW) print("LED OFF") else print("select proper option") end end, 0)
نکته : پسورد دیفالت ماژول بلوتوث برای اتصال 0000 یا 1234 می باشد.
gpio.mode(LEDpin, gpio.OUTPUT)--set LED pin as output pin gpio.write(LEDpin, gpio.LOW)— set LED state initially low
—begin uart with specs uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) —set callback function on receive to make decision about LED on/off uart.on("data",1, function(data) if(data == "1") then gpio.write(LEDpin, gpio.HIGH) print("LED ON") elseif(data == "2") then gpio.write(LEDpin, gpio.LOW) print("LED OFF") else print("select proper option") end end, 0)
نکته : پسورد دیفالت ماژول بلوتوث برای اتصال 0000 یا 1234 می باشد.
Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.
China’s stock markets are some of the largest in the world, with total market capitalization reaching RMB 79 trillion (US$12.2 trillion) in 2020. China’s stock markets are seen as a crucial tool for driving economic growth, in particular for financing the country’s rapidly growing high-tech sectors.Although traditionally closed off to overseas investors, China’s financial markets have gradually been loosening restrictions over the past couple of decades. At the same time, reforms have sought to make it easier for Chinese companies to list on onshore stock exchanges, and new programs have been launched in attempts to lure some of China’s most coveted overseas-listed companies back to the country.