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 می باشد.
Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.
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.