mirror of
https://github.com/alankrantas/microbit-micropython-cookbook.git
synced 2026-01-04 19:31:22 +01:00
Update README.md
This commit is contained in:
@@ -578,7 +578,7 @@ while True:
|
|||||||
|
|
||||||
if button_a.is_pressed():
|
if button_a.is_pressed():
|
||||||
text = input('Enter your message: ')
|
text = input('Enter your message: ')
|
||||||
if len(text) > 0:
|
if len(text) > 0 and len(text.strip()) > 0:
|
||||||
to_be_send = text.strip()[:250]
|
to_be_send = text.strip()[:250]
|
||||||
radio.send(to_be_send)
|
radio.send(to_be_send)
|
||||||
print('YOU:', to_be_send)
|
print('YOU:', to_be_send)
|
||||||
|
|||||||
Reference in New Issue
Block a user