Skip to content

Commit 2952fd7

Browse files
committed
Badger2040W: Fix news text wrapping and URLs.
1 parent 0410b7c commit 2952fd7

File tree

1 file changed

+3
-3
lines changed
  • micropython/examples/badger2040w/examples

1 file changed

+3
-3
lines changed

micropython/examples/badger2040w/examples/news.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import badger_os
88

99
# URLS to use (Entertainment, Science and Technology)
10-
URL = ["http://feeds.bbci.co.uk/news/video_and_audio/entertainment_and_arts/rss.xml",
11-
"http://feeds.bbci.co.uk/news/video_and_audio/science_and_environment/rss.xml",
10+
URL = ["http://feeds.bbci.co.uk/news/entertainment_and_arts/rss.xml",
11+
"http://feeds.bbci.co.uk/news/science_and_environment/rss.xml",
1212
"http://feeds.bbci.co.uk/news/technology/rss.xml"]
1313

1414
code = qrcode.QRCode()
@@ -161,7 +161,7 @@ def draw_page():
161161
if feed:
162162
page = state["current_page"]
163163
display.set_pen(0)
164-
display.text(feed[page]["title"], 2, 40, WIDTH - 105, 2)
164+
display.text(feed[page]["title"], 2, 30, WIDTH - 130, 2)
165165
code.set_text(feed[page]["guid"])
166166
draw_qr_code(WIDTH - 100, 25, 100, code)
167167

0 commit comments

Comments
 (0)