Skip to content

Commit 4b2cf07

Browse files
authored
Merge pull request #31 from echo-lalia/quickfix
Quick fix two small bugs
2 parents 8aaf0a9 + 57f3651 commit 4b2cf07

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

app-source/MHBasic/MHBasic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def cmd_run(self, args):
303303
self.running = True
304304
self.stop_flag = False
305305
while self.running and not self.stop_flag and self.pc <= self.pc_limit:
306-
if "GO" in kb.get_new_keys():
307-
print("[BREAK] GO PRESSED.")
306+
if "G0" in kb.get_new_keys():
307+
print("[BREAK] G0 PRESSED.")
308308
break
309309

310310
if self.pc in self.lines:
@@ -348,7 +348,7 @@ def cmd_input(self, args):
348348
scr_buf[11] = f"{var_name}? " + ''.join(current_text) + "_"
349349
scr_show()
350350

351-
if 'ENT' in keys or 'GO' in keys:
351+
if 'ENT' in keys or 'G0' in keys:
352352
scr_buf[11] = scr_buf[11][:-1]
353353
try:
354354
line = ''.join(current_text)
@@ -464,7 +464,7 @@ def main_loop():
464464
# create variable to remember text between loops
465465
current_text = []
466466
scr_feed("MicroHydra BASIC 1.0.")
467-
scr_feed("Press GO Button to Break.")
467+
scr_feed("Press G0 Button to Break.")
468468
scr_feed("] _")
469469
scr_show()
470470

@@ -481,7 +481,7 @@ def main_loop():
481481

482482
# if there are keys, convert them to a string, and store for display
483483
if keys:
484-
if 'GO' in keys:
484+
if 'G0' in keys:
485485
machine.reset()
486486
if 'SPC' in keys:
487487
current_text.append(' ')

app-source/MHBasic/details.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ author: RealClearwave
22
author_link: https://github.com/RealClearwave
33
license: MIT
44
license_link: https://github.com/echo-lalia/MicroHydra-Apps/blob/main/LICENSE
5-
app_version: 1.1
5+
app_version: 1.2
66

77
short_description: A BASIC interpreter and REPL
88

app-source/Wikipedia/Wikipedia.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
"""A simple app to query Wikipedia for page summaries.
2-
3-
v1.3
4-
5-
Changes:
6-
Fixed brightness, modified to use mhconfig
7-
8-
"""
1+
"""A simple app to query Wikipedia for page summaries."""
92
import requests, network, time, json
103
from machine import Pin, freq
114
from lib.display import Display
@@ -96,7 +89,7 @@ def fetch_article():
9689
# wait until connected
9790
gprint(f"Waiting for connection...")
9891
while not nic.isconnected():
99-
time.sleep(100)
92+
time.sleep_ms(100)
10093

10194
if "CARDPUTER" in Device:
10295
led.fill((0,10,10)); led.write() # set led

app-source/Wikipedia/details.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ author: echo-lalia
22
author_link: "https://github.com/echo-lalia"
33
license: MIT
44
license_link: https://github.com/echo-lalia/MicroHydra-Apps/blob/main/LICENSE
5-
app_version: 2.0
5+
app_version: 2.1
66

77
short_description: Fetch Wikipedia article summaries
88

0 commit comments

Comments
 (0)